Hi,
I want to take campaign stats on python with this request:
**GET **
https://ads-api.twitter.com/1/stats/accounts/98spr?entity_ids=43gk6&entity=CAMPAIGN&start_time=2016-10-28&end_time=2016-10-30&granularity=DAY&metric_groups=ENGAGEMENT,BILLING,WEB_CONVERSION,MOBILE_CONVERSION,VIDEO&placement=ALL_ON_TWITTER
I get INVALID_TIME_WINDOW error when using day granularity with date range from 2016-10-28 to 2016-10-31. Response here:
[{u’message’: u’Time cannot be fractional hours’, u’code’: u’INVALID_TIME_WINDOW’, u’parameter’: u’end_time’}, {u’message’: u"Expect time to be midnight in the account’s local timezone for day granularity", u’code’: u’INVALID_TIME_WINDOW’, u’parameter’: u’’}]
Such as date range from 2016-10-01 to 2016-10-20 i able to get stats. What is the cause of the situation?
Thanks.