Hi Michael,

It's highly likely that you have problems with setting up you OAuth2 stuff.
Please double-check the guide 
<https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0> and 
follow carefully again.

Typically, you shouldn't need to fiddle with redirect URIs, it should just 
be the default when you create a project on the developer's console.
You may need to check your developer console settings again.

Unfortunately as this is related to security issues, we cannot diagnose 
OAuth2 problems from our side.
However, I suspect that there might be some mistakes in settings of 
developer console and/or OAuth2 steps themselves,
as the error "Application: Google Statistics" seems not related to AdWords 
API.

Please let me know if you have any other issues.

Cheers,
Thanet, AdWords API Team

On Wednesday, March 25, 2015 at 2:38:04 AM UTC+9, Michael Barlow wrote:
>
> 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. That’s 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?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/449a0b54-557f-4c03-a6cf-68ae9edb0f87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to