Hi,
Thank you for reaching out to the Google Ads API support team.
Upon checking the provided logs, I found that you are getting a CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER error.
This error indicates that you cannot override the bid modifier for the given criterion ID if the parent campaign is opted out of the same criterion. That means you are trying to set a bid modifier for a specific ad group criterion.However, the campaign containing this ad group is opted out of targeting the same criteria. That means since the campaign itself is opted out, setting a bid modifier at the ad group level is not allowed. Also, the resource name of the ad group bid modifier should be in the form of “customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}”. So please avoid these mistakes and try again.
I hope it helps. Please get back to us if your issue still remains the same even after following the above suggestions so that we can check from our end and assist you further.
![]() |
Google Ads API Team |