question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid customer ID

See original GitHub issue

Started getting this error. I tried multiple ads Id but it always gives me same error

GoogleAdsFailure {
  errors: [
    GoogleAdsError {
      error_code: [ErrorCode],
      message: "Invalid customer ID ''."
    }
  ],
  request_id: '5qJwTFD3XIuWfJKCXNfonw'
}

My Function to create client is as follow

auth(adsId) {
    adsId = adsId.replace(/-/g, '')

    try {
      return client.Customer({
        customer_id: adsId,
        login_customer_id: 'xxxxxxxxx', // Optionally provide a login-customer-id
        refresh_token: constants.refreshToken
      })
    } catch (exception) {
      utils.throwError(500, '', 'Error creating Ads auth')(exception)
    }
  }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
wcootscommented, Sep 6, 2021

@MitulGedeeya @jfcorsini @arditti @matcwhite @cyruszah @varun27896 The invalid customer id issue should be fixed with the latest version of the library (v8.1.0)

3reactions
wcootscommented, Aug 23, 2021

Hi all, apologies for the delayed response. We are aware of this issue and are communicating with Google to get it solved. It seems something went wrong in the latest builds. I will post here again when we have a solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

INVALID_CUSTOMER_ID Error for Google ads api
The error INVALID_CUSTOMER_ID occurs if customer ID is invalid. When making an API call, you must use a client account ID as the...
Read more >
My customer ID is invalid!? - Google Ads Community
I'm trying to connect?link my account on my other youtube channel and usually a customer Id has hyphen but mine has no hyphens...
Read more >
Invalid Customer ID - google-ads-api, I have provided correct ...
I am using google-ads-api module in nodejs to connect with Google Ads API. I am using this code block to get Customer const...
Read more >
ReaderSDK - ERROR: Invalid customer ID - Square Developer
I've authenticated a user via OAuth, and using their access token I've created a customer linked to their account. ERROR: Invalid customer ID. ......
Read more >
Unable to deactivate online services: Invalid customer ID
When I try to deactivate it, I am getting that message "Invalid Customer ID: Customer ID can only contain alpha numeric values.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found