API results different from Twitter Ads Panel



We are having troubles here to make the results delivered by the API to match the ones shown on the Ads Panel. We’ve tried all kinds of things and it definitely looks like a bug from the API (or the panel) side. The differences are too big.

Calling the API, using Twurl, from 2016-08-05 to 2016-08-10, a span of 5 days:

twurl -H ads-api.twitter.com "/1/stats/accounts/18ce53z684q?start_time=2016-08-05T00:00:00-0300&end_time=2016-08-10T00:00:00-0300&entity=CAMPAIGN&entity_ids=5nfy6&granularity=TOTAL&metric_groups=ENGAGEMENT&placement=ALL_ON_TWITTER"| python -m json.tool

Gives me:
“clicks”: [ 1062 ],
“impressions”: [ 387875 ]

While the panel, from just one day, 2016-08-06,
Gives me:
“clicks”: [ 1411 ],
“impressions”: [ 394224 ]

As seen on the screenshot as well:


Hi @controledash

I think, in this case, this is not a bug in twitter side.

If you take a look carefully to you’r screenshot it looks like youre getting stats for ALL CHANELS, take a look at:

But you’re getting results in the API for Twitter see: “&placement=ALL_ON_TWITTER”

You need to:

mix values from placement ALL_ON_TWITTER and PUBLISHER_NETWORK, or filter in the dashboard correctly, to get the same results.



Tks a lot @hector_borras
this solved our issue, but wouldnt it be nice if we could get all results with just one call ?

Any plans to support placement=ALL_CHANNELS any time soon?



In our case we don’t create campaign for both placements, so this isn’t a problem for us.

I don’t really know if they have something in mind to implement