Looping through all bids that belong to each ad group in a campaign.

11 views
Skip to first unread message

Werner Reyneke

unread,
Jan 26, 2022, 11:40:47 AM1/26/22
to Google Ads API and AdWords API Forum
Good day, how do I get a collection of all campaigns, then iterate through their ad groups and update specific Bids please? Thanks in advance. Werner - C# .Net Developer.

Google Ads API Forum Advisor

unread,
Jan 26, 2022, 8:50:43 PM1/26/22
to wrey...@gmail.com, adwor...@googlegroups.com
Hi Werner,

Good day as well and thank you for reaching out to our API support team.

You can instead directly query all the ad groups belonging to your account using the ad_group report. You should also be able to filter using the campaign.id field.

Once you acquire the details of the ad group such as the ad group's resource_name, you may then use those to update the bid or other attributes of the ad group using the AdGroupService

Examples on retrieving a report can be found here, while examples of updating an ad group can then be found here. I hope this helps.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2VPkiQ:ref
Reply all
Reply to author
Forward
0 new messages