Okay, so I was able to generate some metric data that appears in the Ads Manager. It reports I have 8 purchases. And with each purchase, for testing, I also sent a PageView and a SignUp event with my Purchase info. I can’t tell from the documentation how to interpret this result I get from twitter ads api. Why does order quantify read 1000000 when I send num_items: '1' with each purchase event?
{
"data_type": "stats",
"time_series_length": 4,
"data": [{
"id": "979gn",
"id_data": [{
"segment": null,
"metrics": {
"conversion_purchases": {
"order_quantity_engagement": [0, 0, 1000000, 1000000],
"sale_amount_engagement": [0, 0, 9950000, 9950000],
"sale_amount_view": null,
"post_view": null,
"order_quantity": [0, 0, 1000000, 1000000],
"assisted": null,
"post_engagement": [0, 3, 3, 2],
"sale_amount": [0, 0, 9950000, 9950000],
"metric": [0, 3, 3, 2],
"order_quantity_view": null
},
"auto_created_conversion_add_to_wish_list": null,
"conversion_sign_ups": {
"order_quantity_engagement": [0, 0, 1000000, 0],
"sale_amount_engagement": [0, 0, 9950000, 0],
"sale_amount_view": null,
"post_view": null,
"order_quantity": [0, 0, 1000000, 0],
"assisted": null,
"post_engagement": [0, 3, 3, 2],
"sale_amount": [0, 0, 9950000, 0],
"metric": [0, 3, 3, 2],
"order_quantity_view": null
},
"auto_created_conversion_sign_up_initiated": [0, 3, 3, 2],
"auto_created_conversion_download": [0, 3, 3, 2],
"auto_created_conversion_content_view": null,
"auto_created_conversion_checkout_initiated": null,
"auto_created_conversion_added_payment_info": null,
"auto_created_conversion_complete_registration": null,
"conversion_site_visits": {
"order_quantity_engagement": [0, 0, 1000000, 0],
"sale_amount_engagement": [0, 0, 9950000, 0],
"sale_amount_view": null,
"post_view": null,
"order_quantity": [0, 0, 1000000, 0],
"post_engagement": [0, 3, 3, 2],
"sale_amount": [0, 0, 9950000, 0],
"metric": [0, 3, 3, 2],
"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
},
"auto_created_conversion_add_to_cart": null,
"auto_created_conversion_purchase": [0, 3, 3, 2],
"auto_created_conversion_page_view": null,
"auto_created_conversion_search": null,
"conversion_downloads": {
"order_quantity_engagement": [0, 0, 1000000, 0],
"sale_amount_engagement": [0, 0, 9950000, 0],
"sale_amount_view": null,
"post_view": null,
"order_quantity": [0, 0, 1000000, 0],
"post_engagement": [0, 3, 3, 2],
"sale_amount": [0, 0, 9950000, 0],
"metric": [0, 3, 3, 2],
"order_quantity_view": null
}
}
}]
}],
"request": {
"params": {
"start_time": "2017-06-22T04:00:00Z",
"segmentation_type": null,
"entity_ids": ["979gn"],
"end_time": "2017-06-26T04:00:00Z",
"country": null,
"placement": "ALL_ON_TWITTER",
"granularity": "DAY",
"entity": "LINE_ITEM",
"platform": null,
"metric_groups": ["WEB_CONVERSION"]
}
}
}
My request was:
twurl -H https://ads-api.twitter.com "/1/stats/accounts/18ce54glvsr?entity=LINE_ITEM&start_time=2017-06-22&granularity=DAY&metric_groups=WEB_CONVERSION&end_time=2017-06-26&placement=ALL_ON_TWITTER&entity_ids=979gn"