I’m getting different results from the v0 stats endpoint for funding instruments compared to v1.
v0:
https://ads-api.twitter.com/0/stats/accounts/rbbo3w/funding_instruments/kh2kt?metrics=billed_charge_local_micro&start_time=2016-6-26T00%3A00%3A00Z&end_time=2016-6-27T00%3A00%3A00Z&granularity=HOUR
{u’request’: {u’params’: {u’account_id’: u’rbbo3w’, u’start_time’: u’2016-06-26T00:00:00Z’, u’funding_instrument_id’: u’kh2kt’, u’metrics’: [u’billed_charge_local_micro’], u’end_time’: u’2016-06-27T00:00:00Z’, u’granularity’: u’HOUR’}}, u’data’: {u’id’: u’kh2kt’, u’start_time’: u’2016-06-26T00:00:00Z’, u’granularity’: u’HOUR’, u’end_time’: u’2016-06-27T00:00:00Z’, u’billed_charge_local_micro’: [16830000, 15650000, 18890000, 14070000, 14660000, 11980000, 3420000, 4950000, 5080000, 5450000, 4400000, 4920000, 5820000, 5880000, 7130000, 23740000, 29850000, 10700000, 9460000, 32690000, 31950000, 13430000, 38210000, 63240000]}, u’data_type’: u’stats’}
Sum of spend = 392400000
v1:
https://ads-api.twitter.com/1/stats/accounts/rbbo3w?placement=ALL_ON_TWITTER&metric_groups=BILLING&start_time=2016-6-26T00%3A00%3A00Z&entity=FUNDING_INSTRUMENT&end_time=2016-6-27T00%3A00%3A00Z&granularity=HOUR&entity_ids=kh2kt
{u’request’: {u’params’: {u’placement’: u’ALL_ON_TWITTER’, u’metric_groups’: [u’BILLING’], u’country’: None, u’start_time’: u’2016-06-26T00:00:00Z’, u’entity’: u’FUNDING_INSTRUMENT’, u’platform’: None, u’end_time’: u’2016-06-27T00:00:00Z’, u’granularity’: u’HOUR’, u’entity_ids’: [u’kh2kt’], u’segmentation_type’: None}}, u’time_series_length’: 24, u’data’: [{u’id’: u’kh2kt’, u’id_data’: [{u’metrics’: {u’billed_engagements’: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 3, 1, 0, 1, 2], u’billed_charge_local_micro’: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15000000, 15000000, 0, 0, 21160000, 15000000, 0, 15000000, 30000000]}, u’segment’: None}]}], u’data_type’: u’stats’}
Sum of spend = 111160000