Hi,

You should add http://localhost:51551/OAuthCallback added as a valid 
callback url in your OAuth2 project on Google Developers Console.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Monday, August 4, 2014 3:35:21 PM UTC-4, qe-...@33across.com wrote:
>
>
> I'm following the instructions ditto from 
> https://developers.google.com/accounts/docs/OAuth2InstalledApp to get an 
> access token for installed app but keep getting the error for about two 
> days. I'm at a loss what to do. Tried looking up bunch of forums and find 
> discussions with variants of the same problem. 
>
> So here is my problem: 
>
> I create a new installed app in the google developer's console and 
>
> Client ID for native application Client ID   ....
> Client secret.... Redirect URIs 
>    
>    - urn:ietf:wg:oauth:2.0:oob 
>    - http://localhost 
>
>
>
> I'm able to get the code using the browser fine from this url
>
>
> https://accounts.google.com/o/oauth2/auth?client_id=.......&redirect_uri=http://localhost:51551/Callback&response_type=code&scope=https://www.googleapis.com/auth/adexchange.seller.readonly&access_type=offline
>
> This is where I face the problem (breaking my head over two days on what 
> is wrong)
>
> curl -d 
> "code=....&client_id=.....&client_secret=......&grant_type=authorization_code&redirect_uri=urn:ietf:wg:oauth:2.0:oob"
>  
> -X POST https://accounts.google.com/o/oauth2/token
>
> {
>   "error" : "redirect_uri_mismatch"
> }
>
> I have for security reasons specified code/client_id/client_secret etc as 
> ... for this post hiding the real information. 
>
> Many of the other problem posts I have seen have been related to not 
> creating it as native application but instead as webserver and then using 
> this api. But I have created it as native application/other and still 
> getting this error. 
>
> Any help would be greatly appreciated. What is wrong with my redirect_uri 
> and why am I getting redirect_uri_mismatch?
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to