Impressions from API does not match Twitter´s UI

api

#1

Impressions from ui::

Impressions from API:

{
“data_type” : “stats”,
“time_series_length” : 1,
“data” : [{
“id” : “5m4c4”,
“id_data” : [{
“segment” : null,
“metrics” : {
“video_views_50” : null,
“impressions” : [363033],
“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_add_to_wishlists” : {
“post_view” : null,
“order_quantity” : null,
“assisted” : null,
“post_engagement” : null,
“sale_amount” : null
},
“mobile_conversion_checkouts_initiated” : {
“post_view” : null,
“order_quantity” : null,
“assisted” : null,
“post_engagement” : null,
“sale_amount” : null
},
“tweets_send” : [4],
“conversion_purchases” : {
“order_quantity_engagement” : null,
“sale_amount_engagement” : null,
“sale_amount_view” : null,
“post_view” : null,
“order_quantity” : null,
“assisted” : null,
“post_engagement” : null,
“sale_amount” : null,
“metric” : null,
“order_quantity_view” : 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” : [2579430000],
“qualified_impressions” : null,
“video_views_75” : null,
“conversion_sign_ups” : {
“order_quantity_engagement” : null,
“sale_amount_engagement” : null,
“sale_amount_view” : null,
“post_view” : [80],
“order_quantity” : null,
“assisted” : null,
“post_engagement” : [219],
“sale_amount” : null,
“metric” : [299],
“order_quantity_view” : null
},
“media_engagements” : null,
“follows” : [35],
“mobile_conversion_achievements_unlocked” : {
“post_view” : null,
“order_quantity” : null,
“assisted” : null,
“post_engagement” : null,
“sale_amount” : null
},
“video_3s100pct_views” : null,
“app_clicks” : null,
“mobile_conversion_searches” : {
“post_view” : null,
“order_quantity” : null,
“assisted” : null,
“post_engagement” : null,
“sale_amount” : null
},
“mobile_conversion_site_visits” : {
“order_quantity” : null,
“post_view” : [29],
“post_engagement” : [213],
“sale_amount” : null
},
“retweets” : [42],
“mobile_conversion_key_page_views” : {
“post_engagement” : null,
“post_view” : null
},
“video_cta_clicks” : null,
“likes” : [250],
“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,
“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_engagement” : null,
“sale_amount_engagement” : null,
“sale_amount_view” : null,
“post_view” : [29],
“order_quantity” : null,
“post_engagement” : [213],
“sale_amount” : null,
“metric” : [242],
“order_quantity_view” : null
},
“engagements” : [2141],
“conversion_custom” : {
“order_quantity_engagement” : null,
“sale_amount_engagement” : null,
“sale_amount_view” : null,
“post_view” : null,
“order_quantity” : null,
“post_engagement” : null,
“sale_amount” : null,
“metric” : null,
“order_quantity_view” : null
},
“video_views_100” : null,
“clicks” : [2057],
“mobile_conversion_sign_ups” : {
“post_view” : [80],
“order_quantity” : null,
“assisted” : null,
“post_engagement” : [219],
“sale_amount” : null
},
“media_views” : null,
“card_engagements” : null,
“replies” : [7],
“url_clicks” : [372],
“video_mrc_views” : null,
“mobile_conversion_purchases” : {
“post_view” : null,
“order_quantity” : null,
“assisted” : null,
“post_engagement” : null,
“sale_amount” : 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” : [333],
“mobile_conversion_updates” : {
“post_view” : null,
“order_quantity” : null,
“assisted” : null,
“post_engagement” : null,
“sale_amount” : null
},
“conversion_downloads” : {
“order_quantity_engagement” : null,
“sale_amount_engagement” : null,
“sale_amount_view” : null,
“post_view” : [48],
“order_quantity” : null,
“post_engagement” : [217],
“sale_amount” : null,
“metric” : [265],
“order_quantity_view” : null
},
“mobile_conversion_levels_achieved” : {
“post_view” : null,
“order_quantity” : null,
“assisted” : null,
“post_engagement” : null,
“sale_amount” : null
},
“mobile_conversion_downloads” : {
“post_view” : [48],
“post_engagement” : [217],
“order_quantity” : 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
}
}
]
}
],
“request” : {
“params” : {
“start_time” : “2016-08-01T03:00:00Z”,
“segmentation_type” : null,
“entity_ids” : [“5m4c4”],
“end_time” : “2016-09-01T03:00:00Z”,
“country” : null,
“placement” : “ALL_ON_TWITTER”,
“granularity” : “TOTAL”,
“entity” : “CAMPAIGN”,
“platform” : null,
“metric_groups” : [“BILLING”, “VIDEO”, “MOBILE_CONVERSION”, “ENGAGEMENT”, “MEDIA”, “WEB_CONVERSION”]
}
}
}


#2

Hey @camillagm

Can you please provide us the exact request and response bodies of the request, using twurl ? My initial guess is that the entity in question is also being served on the Twitter Audience Platform (TAP) and therefore the missing impressions can be retrived by passing the placement=PUBLISHER_NETWORK to the stats endpoint.

Thanks!


#3

Thank you so much! I took a while to respond because I was using a SDK to make the requests, so I had to learn this twurl to reproduce the requests.

You were right! It was the segmentation. But after making the 2 requests, I still wasn’t getting the expected results. I was getting the statics from promoted tweet level and summing up to campaigns.

twurl -X POST -H ads-api.twitter.com "/1/stats/jobs/accounts/18ce53upsbd?entity_ids=yh5ib,yh5ic,yh5id,yh5ie&entity=PROMOTED_TWEET&start_time=2016-08-01T03:00:00Z&end_time=2016-09-01T03:00:00Z&granularity=TOTAL&placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT,BILLING,VIDEO,MEDIA,WEB_CONVERSION,MOBILE_CONVERSION"

But I found out I was getting only the non deleted ones and the online report shows both. Now, passing all the ids, the sum is ok!

But do I really have to make 2 requests to get all placements? I don’t need it segmented. I tried to pass null but I got an error.

Thank you!


#4

Hi,

Unfortunately you have to call it twice, we have taken note of this feedback in the past (Get ALL_ON_TWITTER and PUBLISHER_NETWORK placement results in only one call) but the cost of building support of it would be large so it’s difficult to prioritize above other work.

However, you might make an optimization to call for it only for line items that actually do have that placement.

Thanks,

John