2/accounts/:account_id/campaigns Can't return all campaigns displayed in the UI

api
campaign-management

#1

In the twitter UI I see more campaigns then i can retrieve from API by link 2/accounts/:account_id/campaigns.
on the attached screenshot I see 56 items, but via API i can retrieve just 42 items.


#2

Hi @igorek3615

In the API, by default you don’t retrieve deleted campaigns, you should specify it in the request.

Regards


#4

I know it, i tried to set with_deleted=true but got the same result.
What other reasons can there be?


#5

@igorek3615: The difference here is likely due to the presence of draft campaigns ("entity_status": "DRAFT"). To retrieve these for campaigns or line items, use the draft_only parameter.

Please let us know if this helps resolve your issue. Thanks!