Hello Hannes,

If you got your client ID and secret only a few minutes ago, and you get an 
error such as Error: redirect_uri_mismatch, it's possible the changes you 
made haven't yet propagated. Wait for some time and try clicking the 
Authorize API's button again. If the problem persists you could add the URI 
http://127.0.0.1:43342/authorize/ 
<http://www.google.com/url?q=http%3A%2F%2F127.0.0.1%3A43342%2Fauthorize%2F&sa=D&sntz=1&usg=AFQjCNGsvVA_ZCMOyek9BoiujUw6fqZduw>
 in 
the API console and Authorize APIs as shown in the step-5 
<https://developers.google.com/adwords/api/docs/guides/authentication#setup> of 
this OAuth guide 
<https://developers.google.com/adwords/api/docs/guides/authentication#generate_oauth2_credentials>.
 
Please give it a try and let me know if you are still facing issue and 
share the error logs. 

Regards,
Sai Teja, AdWords API Team

On Wednesday, January 2, 2019 at 5:02:26 AM UTC-5, han...@outlook.de wrote:
>
> from oauthtokengenerator command line .net Visual Studio sample project, I 
> get random port on localhost. So I can not set the redirect url in 
>
> https://console.developers.google.com/apis/credentials/oauthclient/
>
> message
>
> *400.* That’s an error.
>
> *Error: redirect_uri_mismatch*
>
> The redirect URI in the request, http://127.0.0.1:43342/authorize/, does 
> not match the ones authorized for the OAuth client. To update the 
> authorized redirect URIs, visit: 
> https://console.developers.google.com/apis/credentials/oauthclient/253684253019-ppgstu9lusmlunir6in7qfa9e3s8pn7k.apps.googleusercontent.com?project=253684253019
>
>
> https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&response_type=code&client_id=253684253019-ppgstu9lusmlunir6in7qfa9e3s8pn7k.apps.googleusercontent.com&redirect_uri=http%3A%2F%2F127.0.0.1%3A43342%2Fauthorize%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4e58076a-1b92-458a-a71f-8300ab9ba734%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to