Issues with the asynchronous stats endpoint


#1

Hi,

We have recently implemented a new integration to work with the new version of your Ads API.
Overall it went well but we do have a couple of issues we would like your help with:

  1. We found a strange behaviour when pulling spend for campaigns segmented by platform. It seems like for the last 2 days it’s inconsistent depending on the time period asked for.
    for example, when we tried to pull the stats for campaign 59x9s, between 24-25/06/2016:

https://ads-api.twitter.com/1/stats/jobs/accounts/18ce54axepf/?placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT%2CBILLING%2CMOBILE_CONVERSION&start_time=2016-06-24T00%3A00%3A00%2B0400&entity=CAMPAIGN&with_deleted=true&end_time=2016-06-26T00%3A00%3A00%2B0400&granularity=DAY&entity_ids=59x9s&segmentation_type=PLATFORMS

we received certain number in metric billed_charge_local_micro for date 24/06/2016, and when we tried to pull stats using the exact same endpoint and segmentation for the date 24/06/2016:

https://ads-api.twitter.com/1/stats/jobs/accounts/18ce54axepf/?placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT%2CBILLING%2CMOBILE_CONVERSION&start_time=2016-06-24T00%3A00%3A00%2B0400&entity=CAMPAIGN&with_deleted=true&end_time=2016-06-25T00%3A00%3A00%2B0400&granularity=DAY&entity_ids=59x9s&segmentation_type=PLATFORMS

we receive lower number in metric billed_charge_local_micro for date 24/06/2016.
Note that yesterday the stats retrieved for 23/6/2016 as part of the time period 23-24/6/2016 were different form the ones received for querying only for 23/6/2016, but today 23/6/2016’s stats are consistent when pulling both ways.

  1. as Kai already posted here - Asynchronous Segmented Stats missing mobile_conversion_installs
    the metrics mobile_conversion_installs is always missing when querying the asynchronous stats endpoint for promoted tweets segmented by platform.
    for example, when requesting platform segmented stats for promoted tweet vbszy using the asynchronous endpoint :

https://ads-api.twitter.com/1/stats/jobs/accounts/18ce54axepf/?placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT%2CBILLING%2CMOBILE_CONVERSION&start_time=2016-06-22T00%3A00%3A00%2B0400&entity=PROMOTED_TWEET&with_deleted=true&end_time=2016-06-27T00%3A00%3A00%2B0400&granularity=DAY&entity_ids=vbszy&segmentation_type=PLATFORMS

we do not receive any mobile_conversion_installs:

{u’data’: [{u’id’: u’vbszy’,
u’id_data’: [{u’metrics’: {
u’mobile_conversion_installs’: {u’assisted’: None,
u’order_quantity’: None,
u’post_engagement’: None,
u’post_view’: None,
u’sale_amount’: None}},
u’segment’: {u’segment_name’: u’iOS devices’, u’segment_value’: u’0’}},
{u’metrics’: {
u’mobile_conversion_installs’: {u’assisted’: None,
u’order_quantity’: None,
u’post_engagement’: None,
u’post_view’: None,
u’sale_amount’: None}},
u’segment’: {u’segment_name’: u’Desktop and laptop computers’,
u’segment_value’: u’4’}},
{u’metrics’: {
u’mobile_conversion_installs’: {u’assisted’: None,
u’order_quantity’: None,
u’post_engagement’: None,
u’post_view’: None,
u’sale_amount’: None}},
u’segment’: {u’segment_name’: u’Android devices’,
u’segment_value’: u’1’}}]}],
u’data_type’: u’stats’,
u’request’: {u’params’: {u’country’: None,
u’end_time’: u’2016-06-26T20:00:00Z’,
u’entity’: u’PROMOTED_TWEET’,
u’entity_ids’: [u’vbszy’],
u’granularity’: u’DAY’,
u’metric_groups’: [u’ENGAGEMENT’, u’BILLING’, u’MOBILE_CONVERSION’],
u’placement’: u’ALL_ON_TWITTER’,
u’platform’: None,
u’segmentation_type’: u’PLATFORMS’,
u’start_time’: u’2016-06-21T20:00:00Z’}},
u’time_series_length’: 5}

while using the same query without the segmentation will give the installs data:

https://ads-api.twitter.com/1/stats/jobs/accounts/18ce54axepf/?placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT%2CBILLING%2CMOBILE_CONVERSION&start_time=2016-06-22T00%3A00%3A00%2B0400&entity=PROMOTED_TWEET&with_deleted=true&end_time=2016-06-27T00%3A00%3A00%2B0400&granularity=DAY&entity_ids=vbszy

{u’data’: [{u’id’: u’vbszy’,
u’id_data’: [{u’metrics’: {
u’mobile_conversion_installs’: {u’assisted’: [5, 6, 4, 1, 4],
u’order_quantity’: None,
u’post_engagement’: [23, 13, 15, 5, 8],
u’post_view’: [13, 6, 3, 6, 8],
u’sale_amount’: None}}],
u’data_type’: u’stats’,
u’request’: {u’params’: {u’country’: None,
u’end_time’: u’2016-06-26T20:00:00Z’,
u’entity’: u’PROMOTED_TWEET’,
u’entity_ids’: [u’vbszy’],
u’granularity’: u’DAY’,
u’metric_groups’: [u’ENGAGEMENT’, u’BILLING’, u’MOBILE_CONVERSION’],
u’placement’: u’ALL_ON_TWITTER’,
u’platform’: None,
u’segmentation_type’: None,
u’start_time’: u’2016-06-21T20:00:00Z’}},
u’time_series_length’: 5}

Thanks in advance!