how to get a single campaign with campaign id of course?

19 views
Skip to first unread message

ken...@blvnp.com

unread,
Dec 8, 2017, 2:47:30 AM12/8/17
to AdWords API Forum
I want to retrieve a single campaign.

Vincent Racaza (AdWords API Team)

unread,
Dec 8, 2017, 4:05:32 AM12/8/17
to AdWords API Forum
Hi,

You can use the CampaignService.get() to retrieve campaigns in your account. If you want to retrieve only a single campaign, then you can filter by Id field in your selector/query. You can refer to this PHP example and to the query below:
$query = 'SELECT Id, Name, Status WHERE Id = XXXXXXX ORDER BY Name';
Let me know if this helps.

Thanks,
Vincent
AdWords API Team

ken...@blvnp.com

unread,
Dec 8, 2017, 4:15:16 AM12/8/17
to AdWords API Forum
I will try this, Ill let you know if this works later.


A follow up question, is it possible to use AWQL for deleting data?

Vincent Racaza (AdWords API Team)

unread,
Dec 8, 2017, 5:08:13 AM12/8/17
to AdWords API Forum
Hi,

For removing data like removing campaigns, you cannot use AWQL as "DELETE" query is not supported, only the "SELECT" query is supported. You can refer to this example on how to remove a data particularly a campaign. You can also refer to this guide for more information regarding AWQL.

ken...@blvnp.com

unread,
Dec 8, 2017, 5:09:18 AM12/8/17
to AdWords API Forum
Okay thank you very much!


On Friday, December 8, 2017 at 3:47:30 PM UTC+8, ken...@blvnp.com wrote:
Reply all
Reply to author
Forward
0 new messages