Hi Agusti,

The clientCustomerId is the customer ID of your target AdWords account 
which is usually, in the form of 123-456-7890. According to this guide 
<https://developers.google.com/adwords/api/docs/guides/call-structure#request_headers>,
 
the clientCustomerId is required for all requests except CustomerService 
and ReportDefinitionService (specifically if you are running the reports in 
parallel).

There's a possibility that your calls succeeded without clientCustomerId 
when you were using the said two services. However, with the other API 
services, it will always return that specific error if you'll not specify a 
clientCustomerId.

Our recommended approach is to set the clientCustomerId and other OAuth2 
credentials in the property file 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/resources/ads.properties>.
 
This way, you don't have to set these fields in your code just like this 
example 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201710/basicoperations/GetCampaigns.java>
 specifically 
on this line 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201710/basicoperations/GetCampaigns.java#L42>
.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0c492e92-8fc5-4d0b-b481-0118a9e75a83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to