Hi Google Ads API Team,

I'm currently working with the Google Ads API (JavaScript/Node.js client) 
and trying to generate keyword ideas using the KeywordPlanIdeaService. 
However, I'm encountering a persistent error: Invalid Customer ID ''.
Here's the situation:
   
   - I have basic access to the Google Ads Developer API, and I'm using a 
client 
   account ID that is not a manager account (MCC) or a test account.
   - The client account ID I'm using is 3877686113, which is a regular client 
   account, not part of any test or sandbox environment.
   - I am authenticating through a Google Ads Manager account (4138760923), 
   and I’ve ensured that the refresh token and OAuth credentials are valid.
   - The OAuth token has the necessary scope: 
   https://www.googleapis.com/auth/adwords.

Despite passing what I believe to be correct values for the client account 
ID and refresh token, I keep encountering this error when trying to call 
the generateKeywordIdeas method.
Request Details:

Here's the request I'm making to the KeywordPlanIdeaService:

{ "customerId": "3877686113", // Client account ID "language": "1000", // 
English language code "geoTargetConstants": ["geoTargetConstants/2840"], // 
US location code "keywordPlanNetwork": "GOOGLE_SEARCH_AND_PARTNERS", 
"keywordSeed": { "keywords": ["running shoes", "sports shoes"] } }
Error:

When I run the request, I get the following error:

Google Ads API Error: {
  "errors": [{
    "error_code": {
      "request_error": "INVALID_CUSTOMER_ID"
    },
    "message": "Invalid customer ID ''"
  }],
  "request_id": "uiI2_yxjJIgkP9t4MkdgLQ"
}
What I Have Checked:
   
   1. The client account ID (3877686113) is not a manager account or test 
   account.
   2. I have basic developer access to the Google Ads API.
   3. The refresh token is valid and has the correct scope (
   https://www.googleapis.com/auth/adwords).
   4. The manager account ID (4138760923) is used for login, and the client 
   account ID is used for the actual request.

My Question:
   
   - Why am I receiving this Invalid Customer ID error despite using a 
   valid client account ID?
   - Is there something specific about basic access or my request structure 
   that might be causing this issue?
   - Are there any restrictions or special conditions when calling 
   generateKeywordIdeas from a manager account on behalf of a client account
   ?

Any help or insights you can provide would be greatly appreciated!

Thank you in advance for your assistance.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b193fb0c-5892-4d3c-9975-d2e998258dbfn%40googlegroups.com.

Reply via email to