Hi there,

I am seeing a new issue with the Google Ads API when trying to create a 
bidding strategy. 

Client: Google Ads Java SDK <https://github.com/googleads/google-ads-java>
Version: Latest v6 (11.0.0)

Here is an example of the request:

Request
-------
MethodName: 
google.ads.googleads.v6.services.BiddingStrategyService/MutateBiddingStrategies
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=REDACTED, 
x-goog-api-client=gl-java/1.8.0_252 gapic/ gax/1.60.1 grpc/1.32.2}
Body: customer_id: "REDACTED"
operations {
  create {
    enhanced_cpc {
    }
    name: "Name"
  }
}

As you can see, it's very simple: creating an enhanced cpc bidding 
strategy. The response I consistently receive is:

Response
--------
Headers: 
Metadata(content-type=application/grpc,request-id=_hAi8RqwxI5hXrlBBR_Q1A,date=Wed,
 
28 Apr 2021 20:55:47 GMT,alt-svc=h3-29=":443"; ma=2592000,h3-T051=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
  error_code {
    request_error: UNKNOWN
  }
  message: "The error code is not in this version."
  trigger {
    string_value: "ENHANCED_CPC"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "scheme"
    }
  }
}

Status: Status{code=INVALID_ARGUMENT, description=Request contains an 
invalid argument., cause=null}

This sounds like some kind of 400 error, but I've looked at the docs 
<https://developers.google.com/google-ads/api/reference/rpc/v6/BiddingStrategy#scheme>
 
and confirmed I'm sending all required fields and the string length is 
within limits. I've upgraded to the latest java sdk library version, but 
still no helpful error message returned. Can you please advise how to debug 
this? This code path has not been changed and other identical requests have 
succeeded before. Please let me know if you need any other info from me. 
Thank you for your time!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/329ce27c-5bf6-498b-b3e9-4f573d5f1ebfn%40googlegroups.com.

Reply via email to