Hello James,

I apologize for the unnecessary back and forth.

How exactly are you generating the new refresh tokens you're using with 
AdWords?

I do know that AdWords is different from other Google APIs in some ways, 
such as the one you've found where it can't be enabled the same way. I'm 
afraid that this may extend to how you generate refresh tokens as well, as 
I've encountered other users who needed to change their process 
specifically for AdWords. Unfortunately, as I haven't worked with other 
Google APIs except AdWords, I'm not exactly aware of how that process 
differs from the way AdWords does it.

The easiest way to get up and running with AdWords in PHP would be to use 
our PHP client library <https://github.com/googleads/googleads-php-lib>, or 
at the very least to take a look at the example that fetches a refresh 
token in PHP 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/Auth/GetRefreshTokenWithoutIniFile.php>,
 
to see how that may differ from your current process.

If I had to guess, I would say that possibly you are setting the wrong 
scope, which for AdWords is: https://www.googleapis.com/auth/adwords

Regards,
Mike, AdWords API Team

On Thursday, December 17, 2015 at 10:11:31 AM UTC-5, James Andrews wrote:
>
> Yin,
>
> I'm not trying to be a jerk here, but did you even read my 2 posts where I 
> have told you my company has been using the google APIs for 2 years with 
> oauth.  We have this working in a production environment.  The issue is 
> tokens created with the system we have set up are not working with adwords 
> API.  I am really frustrated that 1) you didn't give me a direct answer to 
> the questions I had in my 2nd post.  and 2) you aren't paying attention to 
> what I've written in both my previous posts.  If you had read either of 
> them you would have sen that the answer to your question is yes.  
>
> James
>
> On Thursday, December 17, 2015 at 11:54:13 PM UTC+9, Yin Niu wrote:
>>
>> Hi James, 
>>
>> Have you followed the OAuth guide for web application with a web flow 
>> <https://developers.google.com/identity/protocols/OAuth2WebServer>? If 
>> you need offline access 
>> <https://developers.google.com/identity/protocols/OAuth2WebServer#offline>, 
>> you need to set your access type to "offline". You can also try the OAuth 
>> Playground 
>> <https://developers.google.com/adwords/api/docs/guides/oauth_playground> to 
>> generate refresh token. 
>>
>> Thanks,
>> Yin, AdWords API Team. 
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ec9b4915-0525-428f-936f-78881e04df0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to