Generate Access token through PHP File

15 views
Skip to first unread message

ritesh1...@gmail.com

unread,
Dec 17, 2017, 9:41:56 AM12/17/17
to AdWords API Forum
Hi All

I am using PHP library, from which i want to generate the Access Token.
I have Client ID, Client Secret and Refresh Token ( generated from Google Playground)

Please direct me to the right example from which i can generate the Access Token? I dont see any example.
All i see is example of "adsapi_php.ini" which generates the access token automatically , but where it stores?

This access token in turn i want to utilize with other programming language which Google does not support.
So i have to generate this Access token and put this in a variable so that i can pass it to my other code.

Regards
Ritesh

Vincent Racaza (AdWords API Team)

unread,
Dec 18, 2017, 1:43:43 AM12/18/17
to AdWords API Forum
Hi Ritesh,

We do not have a specific example from our client library that would generate an access token as the generation of access token happens in the background. Also, access token expires from time to time so we don't recommend you to use the access token of your PHP client library to your other libraries.

If you want to use your current OAuth2 credential to your other client libraries that we do not support, then you need to generate your own access token manually by following this section. You can also check this guide for more information regarding OAuth2 internals for the AdWords API.

Thanks,
Vincent
AdWords API Team
Reply all
Reply to author
Forward
0 new messages