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: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"
}
Any help or insights you can provide would be greatly appreciated!
Thank you in advance for your assistance.
![]() |
Google Ads API Team |