Adwords API on localhost with PHP - Getting oAuth redirect_uri_mismatch error

10 views
Skip to first unread message

ste...@stonecreate.com

unread,
Mar 24, 2015, 1:38:04 PM3/24/15
to adwor...@googlegroups.com

Hope someone can help.

Im attempting to set up a test environment to interact with Google adword campaigns using php.

I've downloaded the Google Ads APIs Client Library for PHP and entered my developerToken, userAgent, clientCustomerId, client_id and client_secret as per the instructions (https://github.com/googleads/googleads-php-lib)

I've ran GetRefreshToken.php via php in console and visited the link it generated but it just says

400. Thats an error. Error: redirect_uri_mismatch Application: Google Statistics

I researched the error and it said i needed to have the correct REDIRECT URIS in my Google Developer Console. I've tried lots of variations but nothing seems to work. It's currently set at:

http://localhost:8888/

I'm running the API on localhost using MAMP, what should the redirect URI be?

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages