Key | Description | Sample Value |
---|---|---|
start_date | Absolute beginning date for syncing bookmarked endpoints (YYYY-MM-DDTHH:MM:SSZ ). | 2023-01-01T00:00:00Z |
consumer_key | OAuth 1.0a consumer key. | YOUR_TWITTER_ADS_CONSUMER_KEY |
consumer_secret | OAuth 1.0a consumer secret. | YOUR_TWITTER_ADS_CONSUMER_SECRET |
access_token | OAuth 1.0a access token. | YOUR_TWITTER_ADS_ACCESS_TOKEN |
access_token_secret | OAuth 1.0a access token secret. | YOUR_TWITTER_ADS_ACCESS_TOKEN_SECRET |
account_ids | Comma-delimited list of Twitter Ad Account IDs. | id1, id2, id3 |
attribution_window | Number of days for latency look-back period to stabilize analytics reporting. | 14 |
with_deleted | Include logically deleted records in the results (true or false ). | true |
country_codes | Comma-delimited list of ISO 2-letter country codes for targeting and segmentation. | US, CA, MX, DE |
page_size | Optional: custom page_size for pagination. | 1000 |
reports | List of reports with name , entity , segment , and granularity details. | [{"name": "campaigns_genders_hourly_report", "entity": "CAMPAIGN", "segment": "GENDER", "granularity": "HOUR"}] |
request_timeout | Timeout for the Twitter Ads API client (default: 300 seconds). | 300 |