Hi Ben,

The AdWords API allows you to pass in either a clientCustomerId or a
clientEmail header, depending on how you want to specify the client
account.  In the PHP client library, the auth.ini file stores these
values in the property clientId.  The value in clientId will be put
into either the clientCustomerId header or the clientEmail header
depending on which type of value it is.

As for the applicationToken, it's been completely deprecated and is no
longer required for the sandbox or production API.  The error message
you are seeing is from an older version of the library that required
it.  Please ensure you've downloaded and installed the latest version
of the PHP client library, which is currently 2.2.0:

  http://code.google.com/p/google-api-adwords-php/downloads/list

Calling the v13 AccountService.getClientAccounts() is only needed when
you are using the v13 version of the API.  If you use the v200909 of
v201003 versions of the API then the client accounts will be
automatically generated on the first get() request made to the API.

As for the error, ensure that your first request is a get() request,
typically CampaignService.get().  Also, I seem to remember problems in
the past where gmail.com worked, but googlemail.com didn't.  Try
changing the domain to gmail.com and see if that fixes the problem.

Best,
- Eric Koleda, AdWords API Team

On Jun 3, 11:24 am, Ben Broadhurst
<ben.broadhu...@digitalinitiatives.net> wrote:
> Hi all,
> I have been trying unsuccessfully to get the sandbox working and I
> keep hitting the same problem with the lack of documentation. If
> someone could help I would really appreciate it.
>
> This post says that I need a clientId in the auth.ini 
> file:http://groups.google.com/group/adwords-api/browse_thread/thread/ecde0...
>
> The documentation makes no mention of 
> that:http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbo...
>
> This tutorial video says that I don't need an 
> applicationToken:http://www.youtube.com/watch?v=cqVtUdB975M&feature=PlayList&p=9CA736F...
> but I get this error if I leave it out "applicationToken is required
> and cannot be NULL."
>
> The video also says I need to create the client accounts with a call
> to getClientAccounts(), but this post says I don't need 
> to:http://groups.google.com/group/adwords-api/msg/08e5c4318ff90c97
>
> This is my current auth.ini (redacted):
> email = "thereareabsolutelynouserna...@googlemail.com"
> password = "[redacted]"
> userAgent = "iSUBSCRiBE"
> applicationToken = "[redacted]"
> developerToken = "thereareabsolutelynouserna...@googlemail.com++gbp"
> clientEmail = "client_1+thereareabsolutelynouserna...@googlemail.com"
>
> and currently throws the following:
> "AuthenticationError.CLIENT_EMAIL_INVALID"
>
> any help would be greatly appreciated as the docs are as confusing as
> hell.
>
> thanks all,
> ben.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to