Peter,

I've red 
: 
https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-web?hl=en
So I added http://localhost/oauth2callback and 
http://127.0.0.1:44807/oauth2callback to authozized redirections.
The error is solved and I could validate the authorization, but I was 
redirected to http://127.0.0.1:44807/oauth2callback
But this URI doesn't exists, so it's an error page.

Thanks
Laurent
Le vendredi 18 février 2022 à 11:12:37 UTC+1, Laurent Petr a écrit :

> Hi Peter,
>
> Thanks!
>
> "php AuthenticateInDesktopApplication.php" is whats I tried yesterday.
> But, as my app is a web app, I've just tryed "php 
> AuthenticateInWebApplication.php".
> The detailed message doesn't speak of king of app now, It's a problem of 
> authorized URI :
> "Erreur 400 : redirect_uri_mismatch
> Vous ne pouvez pas vous connecter à cette appli, car elle ne respecte pas 
> le règlement OAuth 2.0 de Google.
> Si vous êtes le développeur de l'appli, enregistrez l'URI de redirection 
> dans Google Cloud Console."
>
> The URI is with authorization problem is: 
>    
>    - redirect_uri: http://127.0.0.1:44807/oauth2callback
>
> I tryed to replace 127.0.0.1 by the domain name I have authorized in the 
> console, but the error is the same.
>
> Best regards
> Laurent
>
> Le vendredi 18 février 2022 à 04:22:18 UTC+1, adsapi a écrit :
>
>> Hi Laurent,
>>
>> Thank you for reaching out to our API support team.
>>
>> If you wish to follow the desktop app flow, you may follow this guide 
>> <https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-desktop?hl=en>
>>  
>> for PHP instead. Should you continue to encounter issues, you may write 
>> back to our team and specify which step in the guide the issue was 
>> encountered.
>>
>> Best regards,
>>
>> [image: Google Logo] 
>> Peter Laurence 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2WwZFQ:ref
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/dd106e3e-a36c-4694-a2fe-8bf1bbdc5945n%40googlegroups.com.
  • Au... Laurent Petr
    • ... Laurent Petr
      • ... Laurent Petr
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
          • ... Laurent Petr
            • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
              • ... Laurent Petr
                • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to