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



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.


Hi @igorek3615

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



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


@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!