Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

INVALID JSON PAYLOADS

3,842 views
Skip to first unread message

Friends advitisors

unread,
Oct 18, 2022, 2:28:47 PM10/18/22
to Google Ads API and AdWords API Forum
Hello Team, i m stucked here please help me out for this error. I ve tried many times to  get this error solve on my side after getting no solution i m here  for help. The problem is that when i create JSON file for curl request it always says that invallid JSON payloads at "/operations/"
ATTACHING BELOW THE RESQUEST AND THE RESPONSE : 
REQUSEST: 
curl --header "Content-Type: application/json" \
--header "developer-token: ${DEVELOPER_TOKEN}" \
--header "login-customer-id: ${MANAGER_CUSTOMER_ID}" \
--header "Authorization: Bearer ${OAUTH_ACCESS_TOKEN}" \                                                      --data @create_billingSetup.json -X POST $REST_URL -i HTTP/1.1
RESPONES:
HTTP/2 400
vary: X-Origin
vary: Referer
vary: Origin,Accept-Encoding
content-type: application/json; charset=UTF-8
date: Tue, 18 Oct 2022 18:20:41 GMT
server: ESF
cache-control: private
x-xss-protection: 0
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
alt-svc: h3=":443"; ma=2592000,h3-29=":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"
accept-ranges: none

{
  "error": {
    "code": 400,
    "message": "Invalid JSON payload received. Unknown name \"operation\": Proto field is not repeating, cannot start list.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "description": "Invalid JSON payload received. Unknown name \"operation\": Proto field is not repeating, cannot start list."
          }
        ]
      }
    ]
  }
}
curl: (6) Could not resolve host: HTTP

Google Ads API Forum Advisor

unread,
Oct 19, 2022, 12:17:06 AM10/19/22
to friendad...@gmail.com, adwor...@googlegroups.com
Hi,

This is Carmela from the Google Ads API team. Thank you for reaching out.

Moving forward, it appears that you are mutating billing _setups. Kindly note that the request body and HTTP request should be followed as shown in the provided guide.

Furthermore, if the issue persists, you may send us the create_billingSetup.json file and the REST_URL for further investigation. You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,
Google Logo
Carmela
Google Ads API Team
 


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