Hi,
I need some help please with getting data for promoted tweets.
I’m trying to pull stats report for promoted tweets but get no results.
First, I’ve pulled all promoted tweets with the following request:
/6/accounts/{my account id}/promoted_tweets with params: {‘count’: 1000, ‘with_deleted’: ‘true’}
And then, created jobs with these two requests:
-
/6/stats/jobs/accounts/{my account id} with params: {‘placement’: u’ALL_ON_TWITTER’, ‘metric_groups’: u’ENGAGEMENT,VIDEO,MEDIA’, ‘start_time’: ‘2020-03-01’, ‘entity’: u’PROMOTED_TWEET’, ‘end_time’: ‘2020-03-08’, ‘granularity’: u’DAY’, ‘entity_ids’: ‘<a list of all the promoted tweets that were returned from the first request>’}, headers: {‘Accept-encoding’: ‘gzip’}
-
/6/stats/jobs/accounts/{my account id}with params: {‘placement’: u’PUBLISHER_NETWORK’, ‘metric_groups’: u’ENGAGEMENT,VIDEO,MEDIA’, ‘start_time’: ‘2020-03-01’, ‘entity’: u’PROMOTED_TWEET’, ‘end_time’: ‘2020-03-08’, ‘granularity’: u’DAY’, ‘entity_ids’: ‘<a list of all the promoted tweets that were returned from the first request>’}, headers: {‘Accept-encoding’: ‘gzip’}
After downloading the jobs’ files, I can see that each tweet has a row with ‘None’ values for each metric.
The Twitter UI shows data for the same date range (‘promoted video views’ metric from video activity report indicates a significant amount of views).
Is there something I an missing? Could you please check this discrepancy?
Thanks a lot for your help.
1 Like
Hello, @Tsila51177746. Have you looked at our Analytics FAQs? If you’re seeing null values (or None if you’re using Python, for example), it is likely because those ads did not serve during the time period you’re requesting reporting metrics for. Do you expect to see non-null metrics for the specified time period? Are you seeing metrics at other levels (such as line item or campaign)?
Additionally, to add to @juanshishido’s point, it’d be helpful to have a sample API call (with details like account_id and entity_ids populated) so that we can reproduce the issue on our end.
Hello @imit8me and @juanshishido,
Thanks a lot for your responses.
I’m looking for a way to get the ‘promoted video views’ value that I can see in the Twitter Ads UI from your API. I can see a value for this metric in the UI, but when trying to get values for the same date range for all the promoted tweets, I can’t get the same values.
Actually, I can’t get any metric for the promoted tweets, I’m getting ‘none’ values for all metrics.
Is there a way I can share with you these ids privately?