google-ads-api: Invalid customer ID

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)
    }
  }

About this issue

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

Most upvoted 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

I can confirm this is working in v8.1.0 as well! Thank you!

@WillCooter great job! I can confirm the fix in v8.1.0. Thank you!

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

Amazing, I’ll test it shortly. Appreciate the effort here