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