Set Preroll CTA
documentedConfigure a preroll call-to-action for video ads.
POST /5/accounts/{account_id}/preroll_call_to_actionAds APIno implementation yet0 runsNo 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/12/accounts/{{$account_id}}/preroll_call_to_actions" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json" \
-d 'line_item_id={{$line_item_id}}&call_to_action={{$call_to_action}}&call_to_action_url={{$call_to_action_url}}'