I understand that I can get line item count by campaignid by adding up the line items for each campaign…
We are getting the campaign count from below campaigns endpoint, we should be able to do the same for line_items.
Our side are all familiar with the rate limit issue, so we dont want to retrieve all campaign for this ad account, then iteratively get line item for each campaign, be it only ACTIVE ones. I understand that this is another solution (though will definitely hit rate limit issue later on, but also relatively slow), but total_count for line_items should return the correct value, right? It is far easier and also will save the server from getting so many get line_items call, and having to process them.
Last thing I want is to hit rate limit on both get campaigns and get line_items. It will be a blocker.
I’m hoping effort is underway to fix this… if so, do we have an idea when it will be available?
twurl -H ads-api.twitter.com /1/accounts/xxx/campaigns
data_type":“campaign”,“total_count”:49195,“next_cursor”:“8t5pqwfeo”