Two days ago I noticed that I was not able to get data via stats/accounts/:account_id. Then I realised that the problem is in stats/accounts/:account_id/active_entities because it started to return empty response on any account I have for any date range I set. Query params I used: ?entity=LINE_ITEM&start_time=2019-08-08T00:00:00Z&end_time=2019-08-15T00:00:00Z, and a lot of other combinations of date range.
jrsyo
#2
@Pixelycia Could you please tell us your Ads account ID?
Some of them 18ce53wvubo, 18ce54139yn, 18ce53w2sow
jrsyo
#4
Hey @Pixelycia,
I checked that 3 accounts but neither of those has active campaigns during that period (2019-08-08 - 2019-08-15).
And why it was working on accounts that never had ad campaigns? Now it breaks mine application’s logic and I don’t undestand how I should check account’s count of views for some range of date (without using Engagement API)?
jrsyo
#6
@Pixelycia
And why it was working on accounts that never had ad campaigns?
I don’t think it was working. As I said, there are no data to return anyway and empty response data is expected for those accounts. Why does it break your application logic? because even if you call active entities endpoint for an account that has campaigns running, you might get empty data and you need to deal with it appropriately as we mentioned in our guide: Active Entities | Docs | Twitter Developer Platform
(See the bottom of the content)