Sign in

Create Line Item

documented

Create a new line item under a campaign.

POST /5/accounts/{account_id}/line_itemsAds APIno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://ads-api.x.com/5/accounts/{{$account_id}}/line_items" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "X-Api-Key: {{X_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"campaign_id": "{{$campaign_id}}", "name": "{{$name}}", "objective": "{{$objective}}", "product_type": "{{$product_type}}", "placements": ["{{$placements}}"], "bid_amount_local_micro": {{$bid_amount_local_micro}}, "start_time": "{{$start_time}}", "end_time": "{{$end_time}}", "entity_status": "{{$entity_status}}"}'
Create Line Item · X · OpenIntegrations