Re: Private message regarding: INVALID_CUSTOMER_ID while accessing KeywordPlanIdeaService

2023-05-02 Thread Zeyuan Gu
Hi Ajay,

I came across your question on the Google Ads API forum. You asked some 
intriguing and challengine question! Did you your "INVALID_CUSTOMER_ID" 
problem fixed? I bet you are constantly running into issues when developing 
with GAQL just like me when I first started 3.5 years ago. I am an 
ex-Google software engineer and I worked on Google Ads. I understand how 
painful it is to use the API and decided to quit Google and work on solving 
peoples' problem with GAQL full-time.

I built this software called Adzviser  which takes 
your natural language query and translates it to GAQL. You can ask 
questions in lines of "How much did I spend on search campaigns last month" 
and the results will be shown right there for you (video demo 
). I'm also very open to discuss literally 
ANY challenges that you will come across. Just keep me as point of contact 
if you ever run into any problems pulling data from Google Ads.

Look forward to hearing from you.

Zeyuan Gu
Adzviser 
Log Angeles, US

On Sunday, April 30, 2023 at 5:41:57 AM UTC-5 Ajay Balgovind Kuril wrote:

> Hi ,
> Sharing logs here, have removed credentials due to company policies.
> [nltk_data]   Package stopwords is already up-to-date!
>  {'developer_token': '-', 'refresh_token': '1//XX-', 
> 'client_id': 'X', 'client_secret': 'XX-XXX', 
> 'use_proto_plus': False, 'login_customer_id': '9237865946'}
> Request made: ClientCustomerId: , Host: googleads.googleapis.com, Method: 
> /google.ads.googleads.v13.services.KeywordPlanIdeaService/GenerateKeywordIdeas,
>  
> RequestId: bAjMOKyHSBEgff1RSaJwiA, IsFault: True, FaultMessage: Invalid 
> customer ID ''.
> Traceback (most recent call last):
>   File 
> "/Users/admin/Desktop/Ajay/Youtube_API/colabnotebook_f/colabnotebook/driver.py",
>  
> line 29, in 
> getkeywords(site, input_keywords_list)
>   File 
> "/Users/admin/Desktop/Ajay/Youtube_API/colabnotebook_f/colabnotebook/driver.py",
>  
> line 20, in getkeywords
> google_df = get_df(input_keywords_list, site, 'Direct (Product 
> Keywords)')
>   File 
> "/Users/admin/Desktop/Ajay/Youtube_API/colabnotebook_f/colabnotebook/search_volume_puller.py",
>  
> line 270, in get_df
> keyword_ideas = keyword_plan_idea_service.generate_keyword_ideas(
>   File 
> "/usr/local/lib/python3.9/site-packages/google/ads/googleads/v13/services/services/keyword_plan_idea_service/client.py",
>  
> line 436, in generate_keyword_ideas
> response = rpc(
>   File 
> "/usr/local/lib/python3.9/site-packages/google/api_core/gapic_v1/method.py", 
> line 113, in __call__
> return wrapped_func(*args, **kwargs)
>   File 
> "/usr/local/lib/python3.9/site-packages/google/api_core/grpc_helpers.py", 
> line 72, in error_remapped_callable
> return callable_(*args, **kwargs)
>   File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
> 247, in __call__
> response, ignored_call = self._with_call(request,
>   File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
> 290, in _with_call
> return call.result(), call
>   File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
> 146, in result
> raise self._exception
>   File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
> 274, in continuation
> response, call = self._thunk(new_method).with_call(
>   File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
> 301, in with_call
> return self._with_call(request,
>   File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
> 290, in _with_call
> return call.result(), call
>   File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
> 146, in result
> raise self._exception
>   File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
> 274, in continuation
> response, call = self._thunk(new_method).with_call(
>   File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
> 301, in with_call
> return self._with_call(request,
>   File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
> 287, in _with_call
> call = self._interceptor.intercept_unary_unary(continuation,
>   File 
> "/usr/local/lib/python3.9/site-packages/google/ads/googleads/interceptors/exception_interceptor.py",
>  
> line 99, in intercept_unary_unary
> self._handle_grpc_failure(response)
>   File 
> "/usr/local/lib/python3.9/site-packages/google/ads/googleads/interceptors/exception_interceptor.py",
>  
> line 71, in _handle_grpc_failure
> raise self._get_error_from_response(response)
> google.ads.googleads.errors.GoogleAdsException: (<_InactiveRpcError of RPC 
> that terminated with:
> status = StatusCode.INVALID_ARGUMENT
> details = "Request contains an invalid argument."
> debug_error_string = "UNKNOWN:Error received from peer ipv4:
> 142.250.

Private message regarding: INVALID_CUSTOMER_ID while accessing KeywordPlanIdeaService

2023-04-30 Thread 'Ajay Balgovind Kuril' via Google Ads API and AdWords API Forum
Hi ,
Sharing logs here, have removed credentials due to company policies.
[nltk_data]   Package stopwords is already up-to-date!
 {'developer_token': '-', 'refresh_token': '1//XX-', 
'client_id': 'X', 'client_secret': 'XX-XXX', 
'use_proto_plus': False, 'login_customer_id': '9237865946'}
Request made: ClientCustomerId: , Host: googleads.googleapis.com, Method: 
/google.ads.googleads.v13.services.KeywordPlanIdeaService/GenerateKeywordIdeas, 
RequestId: bAjMOKyHSBEgff1RSaJwiA, IsFault: True, FaultMessage: Invalid 
customer ID ''.
Traceback (most recent call last):
  File 
"/Users/admin/Desktop/Ajay/Youtube_API/colabnotebook_f/colabnotebook/driver.py",
 
line 29, in 
getkeywords(site, input_keywords_list)
  File 
"/Users/admin/Desktop/Ajay/Youtube_API/colabnotebook_f/colabnotebook/driver.py",
 
line 20, in getkeywords
google_df = get_df(input_keywords_list, site, 'Direct (Product 
Keywords)')
  File 
"/Users/admin/Desktop/Ajay/Youtube_API/colabnotebook_f/colabnotebook/search_volume_puller.py",
 
line 270, in get_df
keyword_ideas = keyword_plan_idea_service.generate_keyword_ideas(
  File 
"/usr/local/lib/python3.9/site-packages/google/ads/googleads/v13/services/services/keyword_plan_idea_service/client.py",
 
line 436, in generate_keyword_ideas
response = rpc(
  File 
"/usr/local/lib/python3.9/site-packages/google/api_core/gapic_v1/method.py", 
line 113, in __call__
return wrapped_func(*args, **kwargs)
  File 
"/usr/local/lib/python3.9/site-packages/google/api_core/grpc_helpers.py", 
line 72, in error_remapped_callable
return callable_(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
247, in __call__
response, ignored_call = self._with_call(request,
  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
290, in _with_call
return call.result(), call
  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
146, in result
raise self._exception
  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
274, in continuation
response, call = self._thunk(new_method).with_call(
  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
301, in with_call
return self._with_call(request,
  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
290, in _with_call
return call.result(), call
  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
146, in result
raise self._exception
  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
274, in continuation
response, call = self._thunk(new_method).with_call(
  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
301, in with_call
return self._with_call(request,
  File "/usr/local/lib/python3.9/site-packages/grpc/_interceptor.py", line 
287, in _with_call
call = self._interceptor.intercept_unary_unary(continuation,
  File 
"/usr/local/lib/python3.9/site-packages/google/ads/googleads/interceptors/exception_interceptor.py",
 
line 99, in intercept_unary_unary
self._handle_grpc_failure(response)
  File 
"/usr/local/lib/python3.9/site-packages/google/ads/googleads/interceptors/exception_interceptor.py",
 
line 71, in _handle_grpc_failure
raise self._get_error_from_response(response)
google.ads.googleads.errors.GoogleAdsException: (<_InactiveRpcError of RPC 
that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = "UNKNOWN:Error received from peer 
ipv4:142.250.199.170:443 {created_time:"2023-04-30T16:05:51.695222+05:30", 
grpc_status:3, grpc_message:"Request contains an invalid argument."}"
>, <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = "UNKNOWN:Error received from peer 
ipv4:142.250.199.170:443 {created_time:"2023-04-30T16:05:51.695222+05:30", 
grpc_status:3, grpc_message:"Request contains an invalid argument."}"
>, errors {
  error_code {
request_error: INVALID_CUSTOMER_ID
  }
  message: "Invalid customer ID \'\'."
}
request_id: "bAjMOKyHSBEgff1RSaJwiA"
, 'bAjMOKyHSBEgff1RSaJwiA')

On Friday, 28 April 2023 at 20:57:01 UTC+5:30 Google Ads API and AdWords 
API Forum wrote:

Hi,

Thank you for reaching out to our team.

Regarding your concern, it appears that this is about the 
*INVALID_CUSTOMER_ID* error. The said error means that the customer ID is 
invalid. That said you may check your specified CID in your request.

In order for our team to better check and investigate this issue on our 
end, can you provide the complete *request* and *response* logs with *request 
ID* and *request* header generated on your end.

Note that these logs can be requested or provided to the developer handling 
the Google Ads API transactions when loggi