https://github.com/googleads/googleads-php-lib/issues/218

Thanks!

On Friday, February 10, 2017 at 6:52:22 AM UTC-7, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi Adam,
>
> Could you file an issue for this problem on the PHP library issues page 
> <https://github.com/googleads/googleads-php-lib/issues>? The engineers 
> working on the library are actively monitoring that page and should be able 
> to answer your questions.
>
> Thanks,
> Josh, AdWords API Team
>
> On Friday, February 10, 2017 at 12:42:09 AM UTC-5, Adam Haining wrote:
>>
>> Thanks.  I'm able to manually get a new token without any problems.  I 
>> haven't been able to get it to refresh or see where it gives me a new 
>> token.  I have a few questions:
>>
>>    1. Can I refresh the token after it expires?  I've tried everything I 
>>    can think of, including using the OAuth2TokenRefresher class to try and 
>> get 
>>    a new token both before and after the token expires.
>>    2. If I cannot, how close to expiration does the token have to be to 
>>    expiration to receive a new token?  Can I force it at any time?  Do I 
>>    essentially need to have a cron job that checks any current tokens?
>>
>> Do you have any specific code examples?  This is the one thing I feel is 
>> lacking greatly in the documentation and the one thing I need to migrate 
>> our codebase to production.  Thanks!
>>
>> On Thursday, February 9, 2017 at 8:58:39 PM UTC-7, Peter Oliquino wrote:
>>>
>>> Hi Adam,
>>>
>>> Refreshing of expired access tokens happens when the Credential object 
>>> is instantiated in the client libraries. To better give you an idea of the 
>>> process, first you will need to have a refresh token that is generated 
>>> manually. Please note that due to a number of reasons, the refresh token 
>>> may also expire or become invalid and you'll need to reauthorize the 
>>> application and generate a new refresh token as stated here 
>>> <https://github.com/googleads/googleads-php-lib/wiki/API-access-using-own-credentials-(installed-application-flow)>
>>> .
>>>
>>> Once your refresh token details have been provided in your configuration 
>>> file, the client library will then automatically refresh any expired access 
>>> tokens when Credential object is created. I hope this has been helpful.
>>>
>>> Thanks and regards,
>>> Peter
>>> 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 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.
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/6beb3085-fe77-4403-b354-2d591a2c671d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • PHP ... Adam Haining
    • ... 'Peter Oliquino' via AdWords API Forum
      • ... Adam Haining
        • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
          • ... Adam Haining
            • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum

Reply via email to