Hi,

I tried to use ‘twitter_ads’ Python SDK and ‘queue_async_stats_job’ & ‘async_stats_job_result’ function for getting Twitter ads impression and cost. (aggregated by country)

Below image is the result of API call
image

BUT,
Twitter Ads Manager Dashboard’s figure is like …

The result from images has same period(Inquiry Period :2021.08.10 ~ 2021.08.14 )
(Get result date is 2021.08.20 (today) )
(Please compare two figures in the order, line by line)

Is the situation that differences between Twitter Ads API results and the ads manager dashboard normal?
The result form some countries in. dashboard has right value with API. It is weird

In this situation which is correct, Twitter Dashboard or API result ?
Which should I use, Twitter Dashboard or API result?
Or did I use the API incorrectly?

Your advice would be appreciated.

1 Like

@juanshishido , Could you check this situation?

1 Like

Statistics differences between the API and UI are usually caused by a few different things:

  1. Your application will need to make requests for both placements, ALL_ON_TWITTER and PUBLISHER_NETWORK , separately and sum up the results to match the UI,
  2. date ranges in the UI are inclusive while the end_time is exclusive in the API, and
  3. the API will default to midnight in the accounts local timezone, if not specified

If these aren’t causing the discrepancy, please provide the Account ID, Entity IDs, and any campaign information in the UI that isn’t matching.

1 Like

@pypy can you help to share the Python SDK code that you have, I am also working on getting similar metrics Twitter Ads impression and cost for my team ads account. Appreciate your reply.