getting error when try to preview the data from google ads

75 views
Skip to first unread message

Manish Kumar

unread,
Feb 18, 2025, 7:37:03 AM2/18/25
to Google Ads API and AdWords API Forum
Hi ,

Could you please help me understand this error .
The http call failed with client error, status code 400 BadRequest, please check your activity settings.
Response: {
  "error": {
    "code": 400,
    "message": "Invalid JSON payload received. Unknown name \"returnTotalResultsCount\": Cannot find field.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "description": "Invalid JSON payload received. Unknown name \"returnTotalResultsCount\": Cannot find field."
          }
        ]
      }
    ]
  }
}

I am running followinh query using azure data factory . SELECT
    campaign.id from
  campaign;

Google Ads API Forum Advisor

unread,
Feb 18, 2025, 10:59:58 AM2/18/25
to manish...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

I understand that you are encountering the 'INVALID_ARGUMENT' error while working with the Google Ads API. 

To assist you further, please provide us with the complete API logs (request and response logs with request-id and request header) generated at your end while retrieving the data. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-02-18 15:59:22Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH2OE:ref" (ADR-00288690)



Reply all
Reply to author
Forward
0 new messages