Engagement metrics in async v1 missing


#1

Here is an example of call i’m making using the sync cal which does have engagement metrics. I’ve removed account id and entity ids from the example

GET https://ads-api.twitter.com/1/stats/accounts/<account_id>?start_time=2016-05-12T07%3A00%3A00%2B0000&end_time=2016-05-13T07%3A00%3A00%2B0000&granularity=HOUR&metric_groups=ENGAGEMENT%2CWEB_CONVERSION%2CMOBILE_CONVERSION%2CMEDIA%2CVIDEO%2CLIFE_TIME_VALUE_MOBILE_CONVERSION%2CBILLING&entity=PROMOTED_TWEET&entity_ids=&placement=ALL_ON_TWITTER

Here is the response for one of the promoted tweets

{
“id_data”: [{
“segment”: null,
“metrics”: {
“video_views_50”: null,
“impressions”: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 99, 311, 313, 590, 792, 0, 0, 0, 0, 0, 0],
“mobile_conversion_spent_credits”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_installs”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_content_views”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_lifetime_value_tutorials_completed”: {
“metric”: null,
“order_quantity”: null,
“sale_amount”: null
},
“mobile_conversion_add_to_wishlists”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_lifetime_value_checkouts_initiated”: {
“order_quantity”: null,
“sale_amount”: null,
“metric”: null
},
“mobile_conversion_lifetime_value_add_to_wishlists”: {
“metric”: null,
“order_quantity”: null,
“sale_amount”: null
},
“mobile_conversion_lifetime_value_logins”: {
“metric”: null,
“sale_amount”: null,
“order_quantity”: null
},
“mobile_conversion_checkouts_initiated”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“conversion_purchases”: {
“sale_amount”: null,
“metric”: null,
“order_quantity”: null
},
“mobile_conversion_reservations”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_tutorials_completed”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“billed_charge_local_micro”: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 660000, 620000, 600000, 1190000, 0, 0, 0, 0, 0, 0],
“qualified_impressions”: null,
“video_views_75”: null,
“conversion_sign_ups”: {
“sale_amount”: null,
“order_quantity”: null,
“metric”: null
},
“follows”: null,
“mobile_conversion_achievements_unlocked”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_lifetime_value_add_to_carts”: {
“metric”: null,
“order_quantity”: null,
“sale_amount”: null
},
“video_3s100pct_views”: null,
“app_clicks”: null,
“mobile_conversion_lifetime_value_sign_ups”: {
“sale_amount”: null,
“order_quantity”: null,
“metric”: null
},
“mobile_conversion_searches”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_lifetime_value_spent_credits”: {
“metric”: null,
“sale_amount”: null,
“order_quantity”: null
},
“retweets”: null,
“mobile_conversion_key_page_views”: {
“post_engagement”: null,
“post_view”: null
},
“video_cta_clicks”: null,
“mobile_conversion_lifetime_value_achievements_unlocked”: {
“order_quantity”: null,
“metric”: null,
“sale_amount”: null
},
“likes”: null,
“mobile_conversion_add_to_carts”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_payment_info_additions”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_re_engages”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“video_content_starts”: null,
“mobile_conversion_lifetime_value_updates”: {
“metric”: null,
“sale_amount”: null,
“order_quantity”: null
},
“video_views_25”: null,
“mobile_conversion_shares”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“conversion_site_visits”: {
“order_quantity”: null,
“sale_amount”: null,
“metric”: null
},
“mobile_conversion_lifetime_value_content_views”: {
“order_quantity”: null,
“metric”: null,
“sale_amount”: null
},
“mobile_conversion_lifetime_value_invites”: {
“sale_amount”: null,
“order_quantity”: null,
“metric”: null
},
“engagements”: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 3, 4, 4, 9, 0, 0, 0, 0, 0, 0],
“mobile_conversion_lifetime_value_shares”: {
“sale_amount”: null,
“order_quantity”: null,
“metric”: null
},
“conversion_custom”: {
“order_quantity”: null,
“sale_amount”: null,
“metric”: null
},
“video_views_100”: null,
“mobile_conversion_lifetime_value_searches”: {
“sale_amount”: null,
“metric”: null,
“order_quantity”: null
},
“mobile_conversion_lifetime_value_purchases”: {
“metric”: null,
“order_quantity”: null,
“sale_amount”: null
},
“clicks”: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 3, 4, 4, 9, 0, 0, 0, 0, 0, 0],
“media_views”: null,
“card_engagements”: null,
“mobile_conversion_lifetime_value_reservations”: {
“sale_amount”: null,
“metric”: null,
“order_quantity”: null
},
“mobile_conversion_lifetime_value_rates”: {
“order_quantity”: null,
“metric”: null,
“sale_amount”: null
},
“replies”: null,
“mobile_conversion_lifetime_value_levels_achieved”: {
“sale_amount”: null,
“order_quantity”: null,
“metric”: null
},
“url_clicks”: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 0, 0, 0, 0, 0, 0],
“video_mrc_views”: null,
“mobile_conversion_rates”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_logins”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“billed_engagements”: null,
“mobile_conversion_updates”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“mobile_conversion_lifetime_value_payment_info_additions”: {
“sale_amount”: null,
“metric”: null,
“order_quantity”: null
},
“conversion_downloads”: {
“sale_amount”: null,
“order_quantity”: null,
“metric”: null
},
“mobile_conversion_levels_achieved”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“video_total_views”: null,
“mobile_conversion_invites”: {
“post_view”: null,
“order_quantity”: null,
“assisted”: null,
“post_engagement”: null,
“sale_amount”: null
},
“carousel_swipes”: null
}
}

the same call with async (scheduling the report and fetching the compressed data from the url and decoding it) returns everything except engagement metrics.

POST https://ads-api.twitter.com/1/stats/jobs/accounts/<account_id>?start_time=2016-05-11T07%3A00%3A00%2B0000&end_time=2016-05-12T07%3A00%3A00%2B0000&granularity=HOUR&metric_groups=ENGAGEMENT%2CWEB_CONVERSION%2CMOBILE_CONVERSION%2CMEDIA%2CVIDEO%2CLIFE_TIME_VALUE_MOBILE_CONVERSION%2CBILLING&entity=PROMOTED_TWEET&entity_ids=&placement=ALL_ON_TWITTER

I did a diff on the response between sync and async and async returns null for engagement metrics:

diff ~/sync ~/async 
    5c5
    < 				"impressions": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 99, 311, 313, 590, 792, 0, 0, 0, 0, 0, 0],
    ---
    > 				"impressions": null,
    80c80
    < 				"billed_charge_local_micro": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 660000, 620000, 600000, 1190000, 0, 0, 0, 0, 0, 0],
    ---
    > 				"billed_charge_local_micro": null,
    182c182
    < 				"engagements": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 3, 4, 4, 9, 0, 0, 0, 0, 0, 0],
    ---
    > 				"engagements": null,
    204c204
    < 				"clicks": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 3, 4, 4, 9, 0, 0, 0, 0, 0, 0],
    ---
    > 				"clicks": null,
    223c223
    < 				"url_clicks": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 0, 0, 0, 0, 0, 0],
    ---
    > 				"url_clicks": null,
    274c274,275

The async call is for yesterday. Does that have any impact since sync calls are valid for the last 7 days?


#2

Actually, i’m looking into something that may be on my side. I’ll update the post if there is a real issue on Twitter’s side


#3

All set. There isn’t a Twitter API related issue. This can be closed


#4