Update 'cpc_bid_micros' for campaign

221 views
Skip to first unread message

Dennis R

unread,
Jul 3, 2023, 8:10:24 AM7/3/23
to Google Ads API and AdWords API Forum
Hello,

I have the following problem:

I would like to update the value 'cpc_bid_micros' on campaign level, unfortunately I have not found a functional way to do this, neither in the docs, nor by trying.

I have used the following example from the documentation, but without success: https://developers.google.com/google-ads/api/samples/update-ad-group

When I try to adapt this for a campaign, I get the following error message from the API: "UnexpectedValueException(code: 0): Invalid message property: cpc_bid_micros".

Accordingly, I firmly assume that it is not possible to update the value "cpc_bid_micros" of a campaign in this way. For an AdGroup this works without any problems.

I also looked at this part of the documentation, which actually only describes the same as the upper part:
https://developers.google.com/google-ads/api/docs/campaigns/bidding/set-bids

So my question is, how can I set the value 'cpc_bid_micros' for an already existing campaign and update it. Unfortunately, for our purposes, it is not enough to set it exclusively via the AdGroups.

Thanks a lot in advance!

Google Ads API Forum Advisor

unread,
Jul 3, 2023, 5:42:52 PM7/3/23
to ifd...@gmail.com, adwor...@googlegroups.com

Hi,

Welcome to the Google Ads API forum channel.

Upon checking, I've confirmed that our examples are indeed for updating bids at the ad group level. In order for us to provide you with accurate insights, can you please provide a UI screenshot of the field you're trying to update for reference? You may send these via Reply privately to author option.

This message is in relation to case "ref:_00D1U1174p._5004Q2mqvlN:ref"

Thanks,
 
Google Logo Google Ads API Team


Dennis R

unread,
Jul 4, 2023, 5:55:29 AM7/4/23
to Google Ads API and AdWords API Forum
I sent you the unredacted version privately. So that others who may have the same problem know what it's about, I'm uploading the redacted version again.
image (1).png

Google Ads API Forum Advisor

unread,
Jul 4, 2023, 12:15:56 PM7/4/23
to ifd...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for providing the requested information.

Regarding this, as per this documentation (https://developers.google.com/google-ads/api/docs/campaigns/bidding/set-bids), please note that a bid set at a lower level will override those set at higher levels. For example, a bid set on an individual ad group within a campaign would override the campaign-level bid strategy's bid.

I've tried replicating this on my end and I was able to update the said data on my end. You may try referring to the below sample request :
{
  "operations": [
    {
      "update": {
        "targetSpend": {
          "cpcBidCeilingMicros": 6000000
        },
        "resourceName": "customers/XXXXXXXX/campaigns/XXXXXXXXXX"
      },
      "updateMask": "target_spend.cpc_bid_ceiling_micros"
    }
  ]

Let us know how it goes on your end.
Reply all
Reply to author
Forward
0 new messages