@juanshishido
I’ve have an specific example of a promoted tweet who has some impressions as I can see in the ads manager, but when retrieving its metrics through the API I get everything None/ null.
promoted_tweet_id: 2a6f9x
tweet id: 1048974475667025925
line_item id: clsfq
between 2018-10-08 and 2018-10-09
In the ads manager I see 160 impressions for the 3 days, (2, 147, 11).
However in the data coming from the API this is the result:
[{'id': '2a6f9x',
'id_data': [{'metrics': {'app_clicks': None,
'auto_created_conversion_add_to_cart': None,
'auto_created_conversion_add_to_wish_list': None,
'auto_created_conversion_added_payment_info': None,
'auto_created_conversion_checkout_initiated': None,
'auto_created_conversion_complete_registration': None,
'auto_created_conversion_content_view': None,
'auto_created_conversion_download': None,
'auto_created_conversion_page_view': None,
'auto_created_conversion_purchase': None,
'auto_created_conversion_search': None,
'auto_created_conversion_sign_up_initiated': None,
'card_engagements': None,
'carousel_swipes': None,
'clicks': None,
'conversion_custom': {'metric': None,
'order_quantity': None,
'order_quantity_engagement': None,
'order_quantity_view': None,
'post_engagement': None,
'post_view': None,
'sale_amount': None,
'sale_amount_engagement': None,
'sale_amount_view': None},
'conversion_downloads': {'metric': None,
'order_quantity': None,
'order_quantity_engagement': None,
'order_quantity_view': None,
'post_engagement': None,
'post_view': None,
'sale_amount': None,
'sale_amount_engagement': None,
'sale_amount_view': None},
'conversion_purchases': {'assisted': None,
'metric': None,
'order_quantity': None,
'order_quantity_engagement': None,
'order_quantity_view': None,
'post_engagement': None,
'post_view': None,
'sale_amount': None,
'sale_amount_engagement': None,
'sale_amount_view': None},
'conversion_sign_ups': {'assisted': None,
'metric': None,
'order_quantity': None,
'order_quantity_engagement': None,
'order_quantity_view': None,
'post_engagement': None,
'post_view': None,
'sale_amount': None,
'sale_amount_engagement': None,
'sale_amount_view': None},
'conversion_site_visits': {'metric': None,
'order_quantity': None,
'order_quantity_engagement': None,
'order_quantity_view': None,
'post_engagement': None,
'post_view': None,
'sale_amount': None,
'sale_amount_engagement': None,
'sale_amount_view': None},
'engagements': None,
'follows': None,
'impressions': None,
'likes': None,
'media_engagements': None,
'media_views': None,
'poll_card_vote': None,
'qualified_impressions': None,
'replies': None,
'retweets': None,
'tweets_send': None,
'unfollows': None,
'url_clicks': None},
'segment': None}]}]
This is my request:
URI: '/4/stats/accounts/18ce54lpp19
params = {
'entity': 'PROMOTED_TWEET',
'entity_ids': '2a6f9x',
'start_time': '2018-10-07',
'end_time': '2018-10-09',
'granularity': 'DAY',
'metric_groups': 'ENGAGEMENT,MEDIA,WEB_CONVERSION',
'placement': 'PUBLISHER_NETWORK'}
Any idea of where could be the issue?