Collecting data from Twitter Ads#
This guide explains how to collect data from Twitter Ads. To learn how to collect data from a different data source, go back to the Available data sources in Adverity overview.
Introduction#
For a list of the fields that you can collect from Twitter Ads, see Twitter Ads.
You can retrieve information for cards created through Twitter Ads API
or ads.twitter.com
. You cannot retrieve information for cards
created through the Twitter user interface.
Prerequisites#
Before you start collecting data from Twitter Ads, perform all of the following actions:
Ensure that the Twitter user who sets up the authorization has one of the following roles:
Ad Manager
Account Administrator
Creating a datastream to collect data from Twitter Ads#
The basics of creating a datastream to collect data from any data source are explained in our guide to Collecting data in Adverity. This guide contains information about the specific steps to create a datastream to fetch data from Twitter Ads.
Configuration: Choose the data you want to collect from Twitter Ads#
To choose what data to collect and customize the Twitter Ads datastream configuration, follow these steps:
(Optional) Rename your datastream.
In Accounts, select the accounts for which to collect data. If you do not select any items in a drop-down list, Adverity collects data for all items in the drop-down list.
(Optional) Select the Exclude accounts checkbox to exclude the selected accounts.
In Report type, select the type of data to collect from Twitter Ads. The fields you need to configure in the following steps differ according to the report type you select.
In Level, select the type of data to collect from Twitter Ads. The configuration options below may change depending on the selected level.
In Entities, select the entities to include in the report.
In Metrics and Dimensions, change the list of fields that you want to see in your data extract.
In Placement, select the ad placement type. If you do not select any items in a drop-down list, Adverity collects data for all items in the drop-down list.
In Granularity, select the time unit in which you want to retrieve your data.
Select the Include mentions and replies checkbox to collect data for mentions and replies to your tweets.
In Campaigns, select the campaigns for which to collect data. If you do not select any items in a drop-down list, Adverity collects data for all items in the drop-down list.
Select the Include inactive campaigns checkbox to include campaigns older than 90 days.
In Segmentation, select how to segment your data.
Select the Media screenshots enabled checkbox to capture media screenshots.
What’s next?#
Apply Data Mapping to your collected data to harmonize data collected from different sources in Adverity.
Transform your data to meet your needs by creating and applying transformations to your datastream.
Load your data into Explore & Present to visualize your data in Adverity.
Load your data into an external destination of your choice.
Troubleshooting Twitter Ads#
I see an error message when fetching data from Twitter Ads#
The Expect time to be midnight in the account's local timezone
for
day granularity error message appears because you are trying to fetch
data for a date range over 90 days.
To resolve this issue, fetch data for a date range shorter than 90 days.
My ad name has not been updated in the data I have collected from Twitter Ads#
If you have updated the name of an ad in the Twitter Ads UI but the new name does not appear in the data collected from Twitter Ads, follow these steps to update the name:
Synchronize the metadata for the authorization you are using to collect the data.
Delete any cached tweets.
Wait until the update queue is empty, which means the metadata has been synchronized.
Fetch your data again to check that the name has been updated.
I cannot collect card data from Twitter Ads#
The Twitter user who authorizes Adverity to access Twitter Ads must have an Ad Manager or Account Administrator role in order to fetch the card_name and website_card_url fields:
To collect data about these card fields, follow these steps:
Update the permissions of the Twitter user who used their credentials to grant the authorization to one of the following roles:
Ad Manager
Account Administrator
Update the authorization to Twitter Ads. For more information, see Updating an authorization.
Contact your Adverity Customer Success manager. Our Engineering Team needs to manually sync all tweet data (including card data) within the Adverity platform.
Collect data from Twitter Ads using the updated authorization. If these fields are still not present in your data extract, contact the Adverity Support team.
Advanced Twitter Ads tips#
Configuring screenshot capture for Twitter Ads#
To access the Twitter Ads configuration page and enable screenshot capture, follow these steps:
Go to the Datastreams page.
In the top navigation panel, click Settings.
In the General section of the page, fill in the following fields:
- Media Screenshots enabled
To take screenshots of your ads, select this checkbox and make sure Dimensions contains the field tweet_id.
The screenshots are saved in the same storage as the Twitter Ads data extracts. For more information, see Setting up Storage for data extracts. The screenshots are stored until you delete them manually from the storage, or delete the Twitter Ads datastream.