Invalid customer ID
See original GitHub issueStarted 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:
- Created 2 years ago
- Reactions:3
- Comments:15 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@MitulGedeeya @jfcorsini @arditti @matcwhite @cyruszah @varun27896 The invalid customer id issue should be fixed with the latest version of the library (v8.1.0)
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