Fetching campaigns with name instead id


#1

Hey All,

I am thinking to fetch campaigns from Twitter using name instead of id.
We have API URI available to fetch campaigns by id,
https://ads-api.twitter.com/0/accounts/:account_id/campaigns/:campaign_id

But not sure if there is any work around to fetch campaigns with matching name that we can pass by as query string parameter.
Any quick reply will be really appreciated.

Thanking you in advance.


#2

Hi @parag_yf,

There is no request that will return results directly based on campaign name. If you want to enable searching over campaign names, you would need to collect the name information from GET accounts/:account_id/campaigns and parse it on your end.


#3

Hi @jillblaz,

Sorry for delay in response. Thanks for your comments. I will do that way only for searching campaigns by name.