Hi Vince,

The application token is deprecated and ignored, so you can choose to
leave it blank or send in an arbitrary value.

Best,
- Eric Koleda, AdWods API Team

On Nov 13, 7:00 am, vinceadwords <[email protected]>
wrote:
> Hi everyone,
>
> I was reading the README file of the PHP package and here was what I
> found out about the application token.
>
> ============
> Basic usage
> -----------
>
> For those of you who have already built PHP clients without
> using the client library, the AdWords class has methods for
> setting username, password, client ID (clientEmail or
> clientCustomerId),
> application token, developer token, and useragent so that you
> don't have to write the code to set the request headers. The methods
> for
> creating new instances of service classes takes the place of the code
> for instantiating the stubs that connect to the web services.
>
> In the following example, for using the default constructor,
>
>   $user = new AdWordsUser();
>
> the credentials are loaded from the "src/Google/Api/Ads/AdWords/
> auth.ini" file.
>
> The credentials can also be loaded in one of two ways: supplying an
> alternative
> authentication INI file or supplying credentials via the constructor's
> parameters.
>
> If an authentication INI file is provided and successfully loaded,
> those
> values will be used unless a corresponding parameter overwrites it.
> If the authentication INI file is not provided (e.g. it is null)
> the class will attempt to load the default authentication file at the
> path
> of "../auth.ini" relative to this file's directory. Any corresponding
> parameter,
> which is not null will however, overwrite any parameter loaded from
> the default
> INI.
>
>   $user = new AdWordsUser(NULL, $email, $password, $developerToken,
>       $applicationToken, $userAgent, $clientId);
>
>   or
>
>   // Used if the account is not using the MCC to log in.
>   $user = new AdWordsUser(NULL, $email, $password, $developerToken,
>       $applicationToken, $userAgent);
> ============
>
> $user = new AdWordsUser(NULL, $email, $password, $developerToken,
> $applicationToken, $userAgent, $clientId);
>
> ============
>
> Question:
>
> I don't have an application token and from what I have read on this
> forum, it is no longer required. Does that mean I can leave the
> $applicationToken field blank?
>
> ============
>
> In the auth.ini file, you will see the following:
>
> ============
> email = "INSERT_EMAIL_ADDRESS_HERE"
> password = "INSERT_PASSWORD_HERE"
> userAgent = "INSERT_COMPANY_NAME_HERE"
> applicationToken = "INSERT_APPLICATION_TOKEN_HERE"
> developerToken = "INSERT_DEVELOPER_TOKEN_HERE"
> ============
>
> Question:
>
> Do I leave the applicationToken field blank?
>
> ============

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to