Issue with Invalid Customer ID Error on Google Ads API

321 views
Skip to first unread message

Daniyal Shehzad

unread,
Aug 20, 2024, 12:44:45 PM8/20/24
to Google Ads API and AdWords API Forum

Dear Google Ads Support Team,

I hope this message finds you well.

I am reaching out regarding an issue I encountered while attempting to use the Google Ads API. Specifically, when hitting the following endpoint:

https://googleads.googleapis.com/v17/customers/601-906-3200:uploadClickConversions

I received the following error response:

{
  "error": {
    "status": "INVALID_ARGUMENT",
    "message": "Request contains an invalid argument.",
    "code": 400,
    "details": [
      {
        "errors": [
          {
            "errorCode": {
              "requestError": "INVALID_CUSTOMER_ID"
            },
            "message": "Invalid customer ID '601-906-3200'."
          }
        ],
        "@type": "type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure",
        "requestId": "pS6OFn4JKjOWvMQYM1auzQ"
      }
    ]
  }
}. 

It appears that the customer ID 601-906-3200 is being flagged as invalid. Could you please assist me in resolving this issue? I have double-checked the ID, and it seems to be correctly formatted. Any guidance on how to resolve this or further steps I should take would be greatly appreciated.

Thank you in advance for your support.

Google Ads API Forum Advisor

unread,
Aug 20, 2024, 1:18:59 PM8/20/24
to daniyals...@gmail.com, adwor...@googlegroups.com
Hi,

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

From the error log, I understand that you are encountering the 'INVALID_CUSTOMER_ID' error while uploading the click conversions via the Google Ads API.

Note that the customer-id provided in the request has hyphens included. So, please specify the customer-id without hyphens (-) to avoid this error. Client libraries have built in support for this.

I hope this helps.

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

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages