Hi,

Try this:

  $auth = new AuthToken($email, $password, 'GOOGLE', 'adwords');

You can read more about the authToken header value here:

  http://code.google.com/apis/adwords/v2009/docs/headers.html

Best,
- Eric Koleda, AdWords API Team

On Mar 26, 7:29 am, molaMolar <na...@actualweb.es> wrote:
> sorry, I've found.
>
> the problem is that I do not get the auth token,
> How do I get the auth token?
>
> On 26 mar, 11:07, molaMolar <na...@actualweb.es> wrote:
>
>
>
> > Hi all, in the new version of the AdWords API, how do I get the auth
> > token?.
> > I make the call is:
>
> > $namespace = 'https://adwords.google.com/api/adwords/cm/v200906';
>
> > # Define SOAP
> > $auth = new AuthToken($email, $password, $account_type, $service);
> > $headers =
> >   '<RequestHeader xmlns="' . $namespace . '">' .
> >   '<authToken>' . $auth->get_auth_token() . '</authToken>' .
> >   '<clientEmail>' . $client_email . '</clientEmail>' .
> >   '<userAgent>' . $user_agent . '</userAgent>' .
> >   '<developerToken>' . $developer_token . '</developerToken>' .
> >   '<applicationToken>' . $application_token . '</applicationToken>' .
> >   '</RequestHeader>';
>
> > "I put in  fields  $account_type and $service?
>
> > thanks and sorry for my english.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to