Sign in

Attach Media to Creative

documented

Attach uploaded media to a creative.

POST /5/accounts/{account_id}/media_creativesAds 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/12/accounts/{{$account_id}}/media_creatives?line_item_id={{$line_item_id}}&account_media_id={{$account_media_id}}" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: OAuth oauth_consumer_key=\"{{X_API_KEY}}\", oauth_token=\"{{OAUTH2_ACCESS_TOKEN}}\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"{{$TIMESTAMP}}\", oauth_nonce=\"{{$NONCE}}\", oauth_version=\"1.0\", oauth_signature=\"{{OAUTH_SIGNATURE}}\"" \
  -d '{"landing_url":"{{$landing_url}}"}'