Always problem for update adGroupbidModify, somebody help me ?

32 views
Skip to first unread message

Jian Hu

unread,
Apr 5, 2024, 11:32:49 AM4/5/24
to Google Ads API and AdWords API Forum
Hello,
I can't update bidmdofify for adGroup, someone could help me ?

I have this error message: "CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER"

Thanks very much !



I copy my request and response:
****************************************************************************************
google-ads.WARNING: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v16.services.AdGroupBidModifierService/MutateAdGroupBidModifiers", CustomerId: 5537212111, RequestId: "luiK5s_REgnaXZww3X7u_w", IsFault: 1, FaultMessage: "["Cannot override the bid modifier for the given criterion ID if the parent campaign is opted out of the same criterion."]"  

[2024-04-05T11:27:56.568226+00:00] google-ads.NOTICE: Request

-------

Method Name: /google.ads.googleads.v16.services.AdGroupBidModifierService/MutateAdGroupBidModifiers

Host: googleads.googleapis.com

Headers: {

    "x-goog-api-client": "gl-php\/8.2.17 gccl\/22.1.0 gapic\/22.1.0 gax\/1.30.0 grpc\/1.60.0 rest\/1.30.0 pb\/+n",

    "User-Agent": "gcloud-php-new\/22.1.0",

    "x-goog-request-params": "customer_id=5537212111",

    "developer-token": "REDACTED",

    "login-customer-id": "2839567378"

}

Request:

{"customerId":"5537212111","operations":[{"updateMask":"resourceName,bidModifier","update":{"resourceName":"customers\/5537212111\/adGroupBidModifiers\/160130504349~30000","bidModifier":2}}]}



Response

-------

Headers: {

    "request-id": "luiK5s_REgnaXZww3X7u_w",

    "date": "Fri, 05 Apr 2024 11:27:56 GMT",

    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"

}



Fault

-------

Status code: 3

Details: Request contains an invalid argument.

Failure: {"errors":[{"errorCode":{"adGroupBidModifierError":"CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER"},"message":"Cannot override the bid modifier for the given criterion ID if the parent campaign is opted out of the same criterion.","trigger":{"doubleValue":2},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"update"},{"fieldName":"bid_modifier"}]}}],"requestId":"luiK5s_REgnaXZww3X7u_w"}

Google Ads API Forum Advisor

unread,
Apr 5, 2024, 5:11:27 PM4/5/24
to jia...@twenga.com, adwor...@googlegroups.com

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. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02tOt7X:ref" (ADR-00230082)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages