AdWords API - Auth

27 views
Skip to first unread message

in...@studiofaca.com

unread,
Feb 17, 2016, 9:08:53 AM2/17/16
to AdWords API Forum
Hello.

How Can I get VALID "refresh_token" for AdWords API?


Choose either Installed application or Web application depending on the style of your application
  • If you wish to use our sample code GetRefreshToken.php to generate a refresh token, then you have to choose Installed application.
  • If you choose Web application, you will also need to write your own web application that can complete the OAuth 2.0 flow.
Source: https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0

"Installed application" doesn't exists.

https://console.developers.google.com/apis/credentials/oauthclien

I try to run "GetRefreshToken.php" but it return blank page?!

Can you help me?

Thanks.

Umesh Dengale

unread,
Feb 17, 2016, 1:46:12 PM2/17/16
to AdWords API Forum
Hello,

You could select Other radio button for the installed application in the Google console. Once OAuth client id and client secret are created then run the GetRefreshToken.php example to generate the refresh token. Please check out the PHP OAuth guide for more details.

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