I am trying to get access\_token using the instructions here developers.google.com/accounts/docs/OAuth2InstalledApp (which I have followed very diligently) but keep hitting the redirect\_uri\_mismatch error. What am I doing wrong? 

First I create a installed app/other using the console (

Client ID for native application

Client ID ...
Client secret ...
Redirect URIs

```
    urn:ietf:wg:oauth:2.0:oob
    local host url

```

Got the authorization code successfully using the browser using

https://
accounts.google.com/o/oauth2/auth?client\_id=818722811109-8ak0a1l3ooqqt3bd97bktr33ghenlptk.apps.googleusercontent.com&redirect\_uri=http://:51551/Callback&response\_type=code&scope=<https://www.googleapis.com/auth/adexchange.seller.readonly&access_type=offline>

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

gives me error "redirect\_uri\_mismatch" 

I'm at a loss what I am doing wrong. I use the redirect\_uri from the console which is for the non-domain one, but can't get past this error. 

Any pointers would be appreciated. 

Thanks.