@prueba88888 that guide is just incorrect, we’ll update it ASAP.
The overall process is as follows:
- Create your campaign using POST /campaigns
- Create a line item using POST /line_items
- Setup targeting criteria for your line item using POST /targeting_criteria
- Create a promoted tweet for your line item using POST /promoted_tweets
If you need to update any of these along the way you can use the corresponding PUT endpoints to modify them. If you need to delete any of these items you can do so via the corresponding DELETE endpoints.
By default, line items with no targeting criteria target all users on Twitter. As a result, its generally a good practice to create your line items and campaigns with paused=true to prevent any serving while you’re still building out your campaign. You can reenable them later when you’re ready by updating them through the PUT endpoint and setting paused=false.