Update MaxCPC C# code sample

28 views
Skip to first unread message

Werner Reyneke

unread,
Mar 20, 2022, 9:13:43 AM3/20/22
to Google Ads API and AdWords API Forum
Good day

I'm looking for the code how to update the AdGroupCriterion.CpcBidMicros and AdGroupCriterion.Status for a specific CustomerId and AdGroupCriterion.CriterionId.

I only found sample code that adds a new Bidding strategy record, but no sample code on how to update an existing record.

Kindly advise.

Thank you,
Werner Reyneke

Google Ads API Forum Advisor

unread,
Mar 21, 2022, 3:26:19 AM3/21/22
to wrey...@gmail.com, adwor...@googlegroups.com
Hi Werner,

Thank you for reaching out to our API support team.

We currently do not have a code example specific to what you are looking for. However, you should be able to use the AdGroupCriterionService.MutateAdGroupCriteriaRequest, and using the update operation, to pass the new value for the cpc_bid_micros.

You may also reach out to the client library owners via this link (see links under the Source column), and through the Issues tab of their respective Github pages for further guidance on the code implementation. I hope this helps. 

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2YpeYa:ref

Werner Reyneke

unread,
Mar 23, 2022, 11:55:29 AM3/23/22
to Google Ads API and AdWords API Forum
Great I got the correct code  and it's working. Thanks.

Google Ads API Forum Advisor

unread,
Mar 23, 2022, 11:13:03 PM3/23/22
to wrey...@gmail.com, adwor...@googlegroups.com
Hi Werner,

Thank you for the update.

We are glad to hear that. If you have further questions, please feel free to add those in this thread. Our team will be happy to assist and give support to you.

Regards,
Google Logo
Carmela
Google Ads API Team
 


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