The error code is not in this version.

101 views
Skip to first unread message

Mike Fang

unread,
Feb 7, 2023, 3:52:31 AM2/7/23
to Google Ads API and AdWords API Forum
Hi,
I got below error message when I creating an ad group
"The error code is not in this version."
Could you help to explain what this error message mean?

The outgoing request log
[2023-02-07T08:45:26.927704 #116]  INFO -- : Outgoing request: Headers: {"developer-token":"REDACTED","login-customer-id":"9677213623","x-goog-api-client":"gl-ruby/3.0.4 gccl/20.0.0 gax/0.9.0 gapic/20.0.0 grpc/1.47.0","x-goog-request-params":"customer_id=7605883623"} Payload: {"customerId":"7605883623","operations":[{"create":{"name":"Google Ads - Shopping Demo Product | 76155 | 499156 |  | Untitled Value1 |","status":"ENABLED","adRotationMode":"OPTIMIZE","campaign":"customers/7605883623/campaigns/19646139075"}}]}

The incoming response log
[2023-02-07T08:45:26.927877 #116]  INFO -- : Incoming response (errors)
Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError): The error code is not in this version

thanks

Google Ads API Forum Advisor

unread,
Feb 7, 2023, 8:57:36 AM2/7/23
to mike...@placements.io, adwor...@googlegroups.com

Hi Mike,

Thanks for reaching out to the Google Ads API Fang.

I’ve checked your API request payload and I found that you are using PERFORMANCE_MAX campaign type to create an Ad group with below API request. You may note that campaign ID 19646139075 is a PERFORMANCE_MAX and it does not support the Ad group. 

 

{

 "customerId": "***",

 "operations": [

  {

   "create": {

    "name": "Google Ads - Shopping Demo Product | 76155 | 499156 | | Untitled Value1 |",

    "status": "ENABLED",

    "adRotationMode": "OPTIMIZE",

    "campaign": "customers/*****/campaigns/19646139075"

   }

  }

 ]

}

 

This is why you encountered said error on your end when you try to use Ad group service. I hope this helps.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2iWn7l:ref

Mike Fang

unread,
Feb 7, 2023, 11:30:28 PM2/7/23
to Google Ads API and AdWords API Forum

So you mean we cannot create ad groups under a performance max campaign?

Google Ads API Forum Advisor

unread,
Feb 8, 2023, 6:45:17 AM2/8/23
to mike...@placements.io, adwor...@googlegroups.com

Hi Mike,

I'm a colleague of Yasar from the Google Ads API team.

I can confirm that it is not possible to create an ad group under a Performance Max campaign. I suggest you check out this documentation to learn about the resources needed when creating Performance Max campaigns. Also, this documentation notes that you shouldn't select an AdGroup when querying Performance Max campaigns, since no campaigns will be returned.

Regards,

Google Logo
Kevin Gil
Google Ads API Team
 


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