We use the stats endpoint to determine metrics for promoted tweets and their parents (line items and campaigns). Recently, a few promoted tweets that we have run are not returning metrics results despite having results on the business manager. I do not believe anything is different about how these promoted tweets are categorized in the API and information about them can be queried though the API normally.
These ads were run on 3/23 and are still active.
Any insight into why these ads are not associated with metrics would be great.
Details about the request are as follows:
Request
https://ads-api.twitter.com/2/stats/accounts/xxxxxxx
Params
{
'entity': 'PROMOTED_TWEET',
'placement': 'ALL_ON_TWITTER',
'end_time': '2018-03-27T04:00:00Z',
'start_time': '2018-03-22T04:00:00Z',
'granularity': 'DAY',
'entity_ids': ['1tmyp0', '1tup7c'],
'metric_groups': ['BILLING', 'ENGAGEMENT', 'MEDIA', 'MOBILE_CONVERSION', 'VIDEO', 'WEB_CONVERSION']
}
Response
{
'request': {
'params': {
'entity': 'PROMOTED_TWEET',
'placement': 'ALL_ON_TWITTER',
'granularity': 'DAY',
'start_time': '2018-03-22T04:00:00Z',
'end_time': '2018-03-27T04:00:00Z',
'platform': None,
'country': None,
'segmentation_type': None,
'metric_groups': ['BILLING', 'ENGAGEMENT', 'MEDIA', 'MOBILE_CONVERSION', 'VIDEO', 'WEB_CONVERSION'],
'entity_ids': ['1tup7c', '1tup7c']
}
},
'data': [{
'id_data': [{
'metrics': {
'mobile_conversion_key_page_views': {
'post_view': None,
'post_engagement': None
},
'mobile_conversion_installs': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'mobile_conversion_searches': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'auto_created_conversion_purchase': None,
'billed_charge_local_micro': None,
'billed_engagements': None,
'auto_created_conversion_added_payment_info': None,
'conversion_purchases': {
'post_view': None,
'post_engagement': None,
'sale_amount_engagement': None,
'order_quantity_engagement': None,
'assisted': None,
'sale_amount_view': None,
'metric': None,
'order_quantity_view': None,
'sale_amount': None,
'order_quantity': None
},
'clicks': None,
'mobile_conversion_add_to_wishlists': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'mobile_conversion_tutorials_completed': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'auto_created_conversion_sign_up_initiated': None,
'video_views_25': None,
'mobile_conversion_add_to_carts': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'mobile_conversion_re_engages': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'auto_created_conversion_page_view': None,
'media_engagements': None,
'auto_created_conversion_search': None,
'conversion_downloads': {
'post_view': None,
'post_engagement': None,
'sale_amount_engagement': None,
'order_quantity_engagement': None,
'sale_amount_view': None,
'metric': None,
'order_quantity_view': None,
'sale_amount': None,
'order_quantity': None
},
'mobile_conversion_checkouts_initiated': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'auto_created_conversion_complete_registration': None,
'mobile_conversion_reservations': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'video_cta_clicks': None,
'follows': None,
'conversion_sign_ups': {
'post_view': None,
'post_engagement': None,
'sale_amount_engagement': None,
'order_quantity_engagement': None,
'assisted': None,
'sale_amount_view': None,
'metric': None,
'order_quantity_view': None,
'sale_amount': None,
'order_quantity': None
},
'auto_created_conversion_add_to_cart': None,
'media_views': None,
'mobile_conversion_shares': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'poll_card_vote': None,
'mobile_conversion_levels_achieved': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'carousel_swipes': None,
'mobile_conversion_spent_credits': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'video_views_50': None,
'tweets_send': None,
'mobile_conversion_logins': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'mobile_conversion_payment_info_additions': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'mobile_conversion_rates': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'mobile_conversion_content_views': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'mobile_conversion_purchases': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'engagements': None,
'auto_created_conversion_checkout_initiated': None,
'replies': None,
'video_total_views': None,
'auto_created_conversion_add_to_wish_list': None,
'conversion_site_visits': {
'post_view': None,
'post_engagement': None,
'sale_amount_engagement': None,
'order_quantity_engagement': None,
'sale_amount_view': None,
'metric': None,
'order_quantity_view': None,
'sale_amount': None,
'order_quantity': None
},
'qualified_impressions': None,
'mobile_conversion_achievements_unlocked': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'mobile_conversion_updates': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'auto_created_conversion_download': None,
'video_3s100pct_views': None,
'likes': None,
'mobile_conversion_sign_ups': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'app_clicks': None,
'card_engagements': None,
'mobile_conversion_invites': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'assisted': None,
'order_quantity': None
},
'mobile_conversion_downloads': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'order_quantity': None
},
'video_mrc_views': None,
'impressions': None,
'video_content_starts': None,
'conversion_custom': {
'post_view': None,
'post_engagement': None,
'sale_amount_engagement': None,
'order_quantity_engagement': None,
'sale_amount_view': None,
'metric': None,
'order_quantity_view': None,
'sale_amount': None,
'order_quantity': None
},
'url_clicks': None,
'video_views_100': None,
'auto_created_conversion_content_view': None,
'mobile_conversion_site_visits': {
'post_view': None,
'post_engagement': None,
'sale_amount': None,
'order_quantity': None
},
'retweets': None,
'video_views_75': None
},
'segment': None
}],
'id': '1tup7c'
}],
'time_series_length': 2,
'data_type': 'stats'
}
These same two ads in the business manager