We are calling the twitter ads api to get ads data but there seems to be mismatch in fields such as impressions, clicks, cost, conversion, revenue from the month of January 2021.

The mentioned fields are not matching with the UI. Can you please help here?

We did some research before and found that we need to use both the placement values(ALL_ON_TWITTER and PUBLISHER_NETWORK) in order to get the exact data.

We did this change too, but still the data is not matching.
Could someone please help out here?

Hi @MeasuredInc ,

Can you provide an example API call, the response, and which data is not matching with the UI? Do provide the ad account ID too.

Hi @Jasl692, sharing the API calls we are making.

Account ID: 8wd5j

API call for report generation:
https://ads-api.twitter.com/11/stats/jobs/accounts/8wd5j?end_time=2021-03-01T00:00:00Z&entity=CAMPAIGN&entity_ids={entity_ids}&granularity=TOTAL&metric_groups=WEB_CONVERSION,MOBILE_CONVERSION&placement=ALL_ON_TWITTER&start_time=2021-01-01T00:00:00Z

Then we use the job id provided by this call and get the report:
https://ads-api.twitter.com/11/stats/jobs/accounts/8wd5j?job_ids={job_id}

Attaching the response:

{"data_type":"stats","time_series_length":1,"data":[{"id":"evjdh","id_data":[{"segment":null,"metrics":{"mobile_conversion_spent_credits":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_installs":{"skan":{"post_view":null,"post_engagement":null},"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},"conversion_purchases":{"order_quantity_engagement":[3000000],"sale_amount_engagement":[309440000],"sale_amount_view":[12142040000],"post_view":[12],"order_quantity":[93000000],"assisted":null,"post_engagement":[3],"sale_amount":[12451480000],"metric":[15],"order_quantity_view":[90000000]},"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},"conversion_sign_ups":{"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_achievements_unlocked":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_searches":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_site_visits":{"order_quantity":[1000000],"post_engagement":[544],"post_view":[487],"sale_amount":[88070000]},"mobile_conversion_key_page_views":{"post_view":null,"post_engagement":null},"auto_created_conversion_session":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},"mobile_conversion_shares":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"conversion_site_visits":{"order_quantity_engagement":[1000000],"sale_amount_engagement":[88070000],"sale_amount_view":null,"post_view":[487],"order_quantity":[1000000],"post_engagement":[544],"sale_amount":[88070000],"metric":[1031],"order_quantity_view":null},"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},"mobile_conversion_sign_ups":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"auto_created_conversion_landing_page_view":null,"mobile_conversion_purchases":{"skan":{"post_view":null,"post_engagement":null},"post_view":[12],"order_quantity":[93000000],"assisted":null,"post_engagement":[3],"sale_amount":[12451480000]},"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},"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":null,"order_quantity":null,"post_engagement":null,"sale_amount":null,"metric":null,"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":null,"sale_amount":null,"post_engagement":null,"order_quantity":null},"mobile_conversion_invites":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null}}}]},{"id":"ewwgm","id_data":[{"segment":null,"metrics":{"mobile_conversion_spent_credits":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_installs":{"skan":{"post_view":null,"post_engagement":null},"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},"conversion_purchases":{"order_quantity_engagement":[87000000],"sale_amount_engagement":[7991849999],"sale_amount_view":[127500000],"post_view":[1],"order_quantity":[87000000],"assisted":null,"post_engagement":[39],"sale_amount":[8119349999],"metric":[40],"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},"conversion_sign_ups":{"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_achievements_unlocked":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_searches":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_site_visits":{"order_quantity":[5000000],"post_engagement":[1735],"post_view":[36],"sale_amount":[427310000]},"mobile_conversion_key_page_views":{"post_view":null,"post_engagement":null},"auto_created_conversion_session":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},"mobile_conversion_shares":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"conversion_site_visits":{"order_quantity_engagement":[5000000],"sale_amount_engagement":[427310000],"sale_amount_view":null,"post_view":[36],"order_quantity":[5000000],"post_engagement":[1735],"sale_amount":[427310000],"metric":[1771],"order_quantity_view":null},"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},"mobile_conversion_sign_ups":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"auto_created_conversion_landing_page_view":null,"mobile_conversion_purchases":{"skan":{"post_view":null,"post_engagement":null},"post_view":[1],"order_quantity":[87000000],"assisted":null,"post_engagement":[39],"sale_amount":[8119349999]},"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},"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":null,"order_quantity":null,"post_engagement":null,"sale_amount":null,"metric":null,"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":null,"sale_amount":null,"post_engagement":null,"order_quantity":null},"mobile_conversion_invites":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null}}}]}],"request":{"params":{"start_time":"2021-01-01T00:00:00Z","segmentation_type":null,"entity_ids":["evjdh","ewwgm"],"end_time":"2021-03-01T00:00:00Z","country":null,"placement":"ALL_ON_TWITTER","granularity":"TOTAL","entity":"CAMPAIGN","platform":null,"metric_groups":["WEB_CONVERSION","MOBILE_CONVERSION"]}}}

Thanks @MeasuredInc.

One immediate thing I noticed is you have included the timezone in the end_time and start_time parameters and it does not match the ad account’s default time zone. The Ads Manager UI displays data based on the account’s timezone, so if you pull data via the API and specifies a different timezone, it is not going to match with the UI.

The ad account 8wd5j timezone is America/Los_Angeles, while you specified a UTC timezone (T:00:00:00Z) in the API. You can look at this doc on how to set your timezone in the API request Timezones | Docs | Twitter Developer Platform. I recommend though for you to leave out the timezone in the start_time and end_time parameters, if you leave it out it’ll default to the ad account’s default timezone i.e. just input the date 2021-01-01 .

Also make sure to refer to this doc Overview | Docs | Twitter Developer Platform on some common items to take note of when comparing data between API and UI.

If the data still doesn’t match after making that change, please provide an example more specifically:

  • API call request
  • API response
  • Which data field value in the API response that doesn’t match with UI, as an example
  • Name of the column you’re comparing that data to in the UI

Thanks for checking, @Jasl692

We corrected the start_time and end_time parameters as you suggested, but we are still seeing discrepancy in our data.

Sharing API details:
URL: https://ads-api.twitter.com/11/stats/jobs/accounts/8wd5j

Parameters: {
  entity: "CAMPAIGN",
  granularity: "DAY",
  placement: "ALL_ON_TWITTER",
  metric_groups: "ENGAGEMENT,BILLING,VIDEO,WEB_CONVERSION,MEDIA,MOBILE_CONVERSION",
  entity_ids: {entity_ids},
  start_time: "2022-01-01",
  end_time: "2022-01-08",
}
Method: POST
Body: {}
Response: {  "start_time": "2021-12-31T23:00:00Z",  "segmentation_type": null,  "url": null,  "entity_ids": "entity_ids",  "end_time": "2022-01-07T23:00:00Z",  "country": null,  "placement": "ALL_ON_TWITTER",  "id": "job_id",  "expires_at": null,  "status": "PROCESSING",  "granularity": "DAY",  "entity": "CAMPAIGN",  "created_at": "2023-01-09T14:36:37Z",  "platform": null,  "updated_at": "2023-01-09T14:36:37Z",  "metric_groups": ["ENGAGEMENT","BILLING","VIDEO","WEB_CONVERSION","MEDIA","MOBILE_CONVERSION"  ]}

Note: We call this above API for all placements, i.e. PUBLISHER_NETWORK, ALL_ON_TWITTER

Then we use the job ID provided by this call and get the report:
URL: https://ads-api.twitter.com/11/stats/jobs/accounts/8wd5j?job_ids={job_id}

{"data_type":"stats","time_series_length":1,"data":[{"id":"evjdh","id_data":[{"segment":null,"metrics":{"mobile_conversion_spent_credits":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_installs":{"skan":{"post_view":null,"post_engagement":null},"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},"conversion_purchases":{"order_quantity_engagement":[3000000],"sale_amount_engagement":[309440000],"sale_amount_view":[12142040000],"post_view":[12],"order_quantity":[93000000],"assisted":null,"post_engagement":[3],"sale_amount":[12451480000],"metric":[15],"order_quantity_view":[90000000]},"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},"conversion_sign_ups":{"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_achievements_unlocked":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_searches":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_site_visits":{"order_quantity":[1000000],"post_engagement":[544],"post_view":[487],"sale_amount":[88070000]},"mobile_conversion_key_page_views":{"post_view":null,"post_engagement":null},"auto_created_conversion_session":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},"mobile_conversion_shares":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"conversion_site_visits":{"order_quantity_engagement":[1000000],"sale_amount_engagement":[88070000],"sale_amount_view":null,"post_view":[487],"order_quantity":[1000000],"post_engagement":[544],"sale_amount":[88070000],"metric":[1031],"order_quantity_view":null},"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},"mobile_conversion_sign_ups":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"auto_created_conversion_landing_page_view":null,"mobile_conversion_purchases":{"skan":{"post_view":null,"post_engagement":null},"post_view":[12],"order_quantity":[93000000],"assisted":null,"post_engagement":[3],"sale_amount":[12451480000]},"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},"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":null,"order_quantity":null,"post_engagement":null,"sale_amount":null,"metric":null,"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":null,"sale_amount":null,"post_engagement":null,"order_quantity":null},"mobile_conversion_invites":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null}}}]},{"id":"ewwgm","id_data":[{"segment":null,"metrics":{"mobile_conversion_spent_credits":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_installs":{"skan":{"post_view":null,"post_engagement":null},"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},"conversion_purchases":{"order_quantity_engagement":[87000000],"sale_amount_engagement":[7991849999],"sale_amount_view":[127500000],"post_view":[1],"order_quantity":[87000000],"assisted":null,"post_engagement":[39],"sale_amount":[8119349999],"metric":[40],"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},"conversion_sign_ups":{"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_achievements_unlocked":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_searches":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"mobile_conversion_site_visits":{"order_quantity":[5000000],"post_engagement":[1735],"post_view":[36],"sale_amount":[427310000]},"mobile_conversion_key_page_views":{"post_view":null,"post_engagement":null},"auto_created_conversion_session":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},"mobile_conversion_shares":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"conversion_site_visits":{"order_quantity_engagement":[5000000],"sale_amount_engagement":[427310000],"sale_amount_view":null,"post_view":[36],"order_quantity":[5000000],"post_engagement":[1735],"sale_amount":[427310000],"metric":[1771],"order_quantity_view":null},"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},"mobile_conversion_sign_ups":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null},"auto_created_conversion_landing_page_view":null,"mobile_conversion_purchases":{"skan":{"post_view":null,"post_engagement":null},"post_view":[1],"order_quantity":[87000000],"assisted":null,"post_engagement":[39],"sale_amount":[8119349999]},"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},"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":null,"order_quantity":null,"post_engagement":null,"sale_amount":null,"metric":null,"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":null,"sale_amount":null,"post_engagement":null,"order_quantity":null},"mobile_conversion_invites":{"post_view":null,"order_quantity":null,"assisted":null,"post_engagement":null,"sale_amount":null}}}]}],"request":{"params":{"start_time":"2021-12-31T23:00:00Z","segmentation_type":null,"entity_ids":["evjdh","ewwgm"],"end_time":"2022-01-07T23:00:00Z","country":null,"placement":"ALL_ON_TWITTER","granularity":"TOTAL","entity":"CAMPAIGN","platform":null,"metric_groups":["WEB_CONVERSION","MOBILE_CONVERSION"]}}}

We are finding discrepancy with all these below data fields from API response

conversion_purchases

  • metric
  • sale_amount
  • billed_charge_local_micro

Please let me know if any additional information is required.

Thanks

Hey @MeasuredInc, the API request doesn’t seem to match the report data you provided. And can you please provide the entity IDs in your request as well.

I tried querying this example campaign evjdh:
https://ads-api.twitter.com/12/stats/accounts/8wd5j?end_time=2022-01-08&entity=CAMPAIGN&entity_ids=evjdh&granularity=TOTAL&metric_groups=ENGAGEMENT,BILLING,VIDEO,WEB_CONVERSION,MEDIA,MOBILE_CONVERSION&placement=PUBLISHER_NETWORK&start_time=2022-01-01
But there are no results as there’s no data for that campaign in that time frame, which matches the Ads Manager UI.

Hi @Jasl692, Thanks for quick response

Ahh! My bad, We have 115 entity Ids in total,

Entity Ids: ["d0wlr","d0ykq","d1g4i","d1jna","d1l4v","d34t9","d34uy","d469f","d5bjf","d5ges","d6q5w","d9j2x","d9p0r","dawbp","djdr5","djkdn","dknae","dpaur","dpuxy","e7qzc","ect0s","ej66v","ekqjq","eq525","eqxsz","eqxv4","erbwg","erql8","ert95","eymz2","ezyyw","f04e4","f07xe","f07y8","f234w","f5b6w","f7h6p","f7mfz","f7mi3","fdd9p","fddba","fdjmt","fdjos","fe2g1","fkfvd","fmwgy","fn8n1","foqho","foql9","foqly","foqma","foqmq","fq6dx","fqqio","fqqjv","fqqke","fqqlc","fr7o9","fw0gn","g3yz2","g3z2p","g7w5x","g7wxy","g8549","ge3vg","ge457","gfw52","gi5qa","gi87e","glq7p","gmbee","gvao3","gvary","gx70s","gx740","gx74l","gy9xh","gzfay","h7h65","h7rnh","h8gfh","h9glq","h9gz8","h9qti","hcq5t","hete7","hib1z","hmmkd","hmmme","hn7qr","hn7ry","hpzyu","hq1nw","hs5qp","huk7a","hukn1","i113d","i185p","i5ucq","i8fjr","ialzn","iam17","igy8k","ihj19","ihj4u","ij1jw","ik0fv","ik0vy","iktza","imdyf","in2s8","in6wh","innw3","iqsfd","is1mp",]

Sharing API details:
URL: https://ads-api.twitter.com/12/stats/jobs/accounts/18ce54z2rx2

Parameters: {
  entity: "CAMPAIGN",
  granularity: "DAY",
  placement: "ALL_ON_TWITTER",
  metric_groups: "ENGAGEMENT,BILLING,VIDEO,WEB_CONVERSION,MEDIA,MOBILE_CONVERSION",
  entity_ids: "g3z2p,g7w5x,g7wxy,g8549,ge3vg,ge457,gfw52,gi5qa,gi87e,glq7p,gmbee,gvao3,gvary,gx70s,gx740,gx74l,gy9xh,gzfay,h7h65,h7rnh",
  start_time: "2022-02-01",
  end_time: "2022-03-01",
}
Method: POST
Body: {}
Response: {"start_time": "2022-01-31T23:00:00Z","segmentation_type": null,"url": null,"entity_ids": ["g3z2p","g7w5x","g7wxy","g8549","ge3vg","ge457","gfw52","gi5qa","gi87e","glq7p","gmbee","gvao3","gvary","gx70s","gx740","gx74l","gy9xh","gzfay","h7h65","h7rnh"],"end_time": "2022-02-28T23:00:00Z","country": null,"placement": "ALL_ON_TWITTER","id": "1613153442264141824","expires_at": null,"status": "PROCESSING","granularity": "DAY","entity": "CAMPAIGN","created_at": "2023-01-11T12:38:46Z","platform": null,"updated_at": "2023-01-11T12:38:46Z","metric_groups": ["ENGAGEMENT","BILLING","VIDEO","WEB_CONVERSION","MEDIA","MOBILE_CONVERSION"]}

Also, we ran some queries on our database to compare data with UI and getting discrepancy for all these highlighted rows

Please let me know if any additional information is required.

Thanks

Hi @Jasl692,
Did you get any chance to look on the above issue?

Please let me know if any additional information is required.

Thanks

Hi,

Sorry we’re still investigating the discrepancy, will update when I can!

Hi @MeasuredInc,

(edited)
Sorry for the delay. It looks like this is a known issue and we are trying to fix it. The conversion_purchases data from the UI is the accurate one, so you can treat that as the source of truth. The data from the UI includes data from deleted pixels, whereas the API does not. Hence the UI shows a more comprehensive data of your campaigns. I’ll update when this is fixed!

1 Like

Hey @MeasuredInc,

The team is still looking into this, and would like to check with you if you think the data you’re seeing from the API or UI is more accurate?

Hi @Jasl692,

Thanks for information,
I will check with my team and let you know.

Thank you. Sorry just 1 more thing if you could check with your team, whether any changes or deletions were made to your event tags around the affected period? This can help us confirm some parts of the issue.