Correct OAuth2 redirect URI ?

36 views
Skip to first unread message

Stephen Barrett

unread,
May 7, 2018, 1:15:21 PM5/7/18
to AdWords API and Google Ads API Forum
I'm getting stuck on setting up my OAuth2 Credentials. I have all the necessary information and have run GetRefreshToken.php but it keeps on saying that I don't have the correct Redirect URI. I'm on a mac and I haven't moved the Vendor directory anywhere else. What needs to be my redirect URI?

I tried going through the Playground route and successfully got a RefreshToken. I've placed it in the adsapi_php.ini file. Is there another file I need to put it in as well? My web flow is API Access on behalf of my clients.

Teja Makani

unread,
May 7, 2018, 5:49:57 PM5/7/18
to AdWords API and Google Ads API Forum
Hello Stephan, 

If you were able to generate the OAuth token using the playground, you can update the same set in your adsapi_php.ini file and use them to make the API calls. You only need to update the credentials in the adsapi_php.ini file. Are you currently able to make API calls using the existing set of credentials? If so, you could continue using it. If you are not able to make successful API calls, could you share the error logs with me? You could use reply privately to author option while sharing the details.

This guide on web application flow should be helpful for you. 

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