Hello Sam,

It is hard to say from the data provided... Please make sure your cron user 
has access to the auth.ini file.

RefreshToken is required for the library to be able to make a call.


-Danial, AdWords API Team.


On Wednesday, December 18, 2013 3:19:03 PM UTC+4, Sam wrote:
>
> Hello,
>
> I'm trying to use API Adwords with a cron for many MCC.
> I have download the adwords api 4.6.1 And I use the 201309 version.
>
> I have use GetrefreshToken And I have generate a refresh token with succes.
>
> But after, I have try to complete the auth.ini but I have always an "
> *invalid_grant*" error.
>
> When I analyse the user object I have :
>
> [oauth2Info:AdsUser:private] => Array
>         (
>             [client_id] => xxxxxxxx
>             [client_secret] => xxxxxxxx
>             [refresh_token] => xxxxxxxx
>         )
>
> but [oauth2Handler:AdsUser:private] is empty :
>
> [oauth2Handler:AdsUser:private] => SimpleOAuth2Handler Object
>         (
>             [curlUtils:SimpleOAuth2Handler:private] => CurlUtils Object
>             (
>             )
>             [server:OAuth2Handler:private] => https://accounts.google.com
>             [scope:protected] => https://adwords.google.com/api/adwords/
> )
>
>
> In the same time, I have some field empty in 
> [requestHeaderElements:AdsUser:private] :
>
> [requestHeaderElements:AdsUser:private] => Array
>         (
>             [authToken] => 
>             [userAgent] => AdWords OAuth2 (AwApi-PHP/4.6.1, 
> Common-PHP/5.0.0, PHP/5.3.3)
>             [clientCustomerId] => xxxxxxxx
>             [developerToken] => xxxxxxxx
>             [applicationToken] => 
>         )
>
>
> Do you have an idea what I'm doing wrong, Any help will be very 
> appreciated :)
>
> Thanks a lot for your support,
>
> Sam
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to