AWQL yery for all Adgroups

18 views
Skip to first unread message

han...@outlook.de

unread,
Jan 4, 2019, 2:36:21 AM1/4/19
to AdWords API and Google Ads API Forum
Hi 

i want to itereate through alle existing (~100] adgroups and change the Add Snippets. 
So i need something like this

 Dim q = adGroupService.query("SELECT AdGroupId,AdGroupName")

if it would work, I wouldnt post :-(

give some hints 

PS the code general works, can add snippet if i hard code Adgroupid, just the how to get the list of Adgroups

Peter Oliquino (AdWords API Team)

unread,
Jan 4, 2019, 4:03:16 AM1/4/19
to AdWords API and Google Ads API Forum
Hi Hannes,

You can refer to this guide on how to properly form your AWQL query for the service that you need. You may also consider using the SELECTOR class instead as seen in this example in order to retrieve all the ad groups associated to a specific campaign.

Let me know if this helps.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages