client customer ID when both developer/client

52 views
Skip to first unread message

seoal...@gmail.com

unread,
Sep 28, 2015, 8:46:56 AM9/28/15
to AdWords API Forum
Hi,

I am doing some quick test with the example provided in the API and I am struggling against the following error

AuthenticationError.CLIENT_CUSTOMER_ID_INVALID

and I would like to know where I was wrong. Here's what I did

1) Requesting developer token for Indipendente Adwords developer (has been approved around one week ago)
2) Downloading Java api
3) Creating a new project in my account page. I called it "Test". (Note: I am both developer and client in this way)
4) Retrieving client ID and secret of the project Test and put it in the asd.properties
5) Running GetRefreshToker.java. It run fine
6) Setting up the asd.properties as the following
       api.adwords.refreshToken=1/etc., the output of the previous step
       api.adwords.clientId= what I see in the Test project
       api.adwords.clientSecret= the other field in the Test project
       api.adwords.clientCustomerId= my customer id, which I find in my account page, up-right (the page for developer I assume/hope...)
       api.adwords.userAgent="mywebsite.com.test_dev"

       api.adwords.developerToken=the approved token

       api.adwords.isPartialFailure=false
7) Running GetKeywordIdeas.java
8) Getting the afore mentioned error :)

Any help is really appreciated! I have been googling it for a couple of hours already...

Thanks in advance

Umesh Dengale

unread,
Sep 28, 2015, 11:52:00 AM9/28/15
to AdWords API Forum
Hello,

Could you check that you are setting the Customer ID to the property api.adwords.clientCustomerId in the proper format in the ads.properties file(e.g. api.adwords.clientCustomerId=123-456-7890)? Please check out our basic concept guide for more details.

Cheers,
Umesh, AdWords API Team.

seoal...@gmail.com

unread,
Sep 28, 2015, 2:36:54 PM9/28/15
to AdWords API Forum
Hello,

thanks for your reply.

I figured out what was not working. I was doing an incredibly stupid mistake.

In my file there was

api.adwords.clientCustomerId="123-456-7890"

instead of

api.adwords.clientCustomerId=123-456-7890

Thank you, cheers

Umesh Dengale

unread,
Sep 28, 2015, 2:53:34 PM9/28/15
to AdWords API Forum
Hello,

I am glad that your Authentication issue got resolved.

Thanks,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages