Hi, 

Unfortunately, I can only respond in English. 

The access tokens are short lived (an hour) and if you try to save it and 
make an API call once that expires, the call will not be successful. 
Instead, you could save the refresh token which is long lived and use that 
refresh token for generating a new access token (if already expired) for 
each API calls. Are you using our PHP client library 
<https://github.com/googleads/googleads-php-lib>? If so, you could follow 
the instructions in the linked document and update the refresh token in the 
adsapi_php.ini 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/adsapi_php.ini>
 
file and that should take care of renewing the access token for all the 
future calls. The document 
<https://developers.google.com/adwords/api/docs/guides/first-api-call#oauth2_access_and_refresh_tokens>
 
about OAuth should also be helpful for you. 

Please let me know if you have any additional questions. 

Thanks,
Sreelakshmi, 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/825f8d5b-29cd-4b9c-922c-7b06417868f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Токен ав... Oleg Sidorov
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to