Sources
Twitter Ads
Configuration
Connect to the Twitter Ads API and extract campaign and ad performance data by providing the following configuration parameters:
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 |
How to Get Access to the Twitter Ads API
To use the Twitter Ads source, you must first get access to the Twitter Ads API. Follow this guide to apply for access and configure your app credentials.
What is Twitter Ads?
Twitter Ads is an advertising platform that allows businesses to promote content, grow followers, and drive engagement through highly targeted ad campaigns across the Twitter network.
Why Integrate Twitter Ads with Mage?
- Automated marketing insights: Extract detailed campaign, ad group, and ad-level performance metrics.
- Advanced segmentation: Access granular breakdowns by gender, location, device, and more.
- Real-time reporting: Keep your analytics and BI dashboards updated with the latest ad performance data.
- Scalable API extraction: Efficiently handle large ad accounts and high-volume data reporting.
- Secure and reliable: OAuth 1.0a authentication ensures secure API access.
Supported Streams
The following Twitter Ads objects are extracted:
- account_media
- accounts
- advertiser_business_categories
- campaigns
- cards
- cards_image_conversation
- cards_poll
- cards_video_conversation
- content_categories
- funding_instruments
- iab_categories
- line_item_apps
- line_items
- media_creatives
- preroll_call_to_actions
- promotable_users
- promoted_accounts
- promoted_tweets
- scheduled_promoted_tweets
- tailored_audiences
- targeting_app_store_categories
- targeting_conversations
- targeting_criteria
- targeting_devices
- targeting_events
- targeting_interests
- targeting_languages
- targeting_locations
- targeting_network_operators
- targeting_platform_versions
- targeting_platforms
- targeting_tv_markets
- targeting_tv_shows
- tracking_tags
- tweets