I also ran into this problem.  Google is not very good about updating all 
their documentation when they deprecate something.

The solution is to modify the "redirect_uri" in your your request url and 
change it from "urn:ietf:wg:oauth:2.0:oob" to 
"http://localhost/notarealpage";.  That way, when you authorize your app, 
google will redirect to:

http://localhost/notrealpage?code=<authorization_code>&scope=<scope>

Then you just use that <authorization_code> to proceed with obtaining a 
refresh token.


On Monday, March 14, 2022 at 10:59:49 PM UTC-7 adsapi wrote:

> Hi,
>
> Thank you for the reply. I am also a member of the Google Ads API team and 
> let me provide support to your concern.
>
> I would like to inform you first that I am going to delete your initial 
> post as it contains sensitive information like the client ID. Please 
> refrain from posting sensitive information in public forums for security 
> purposes.
>
> Moving forward, I can see that the exact phase where you encountered the 
> error is when generating code for the refresh token. However, I am afraid 
> that our team would not be able to provide support here as the issue is 
> more Oauth2 specific and outside of our scope already. With this, I would 
> suggest reaching out to the Google Cloud platform support team via this 
> link <https://cloud.google.com/support-hub> to get support here as they 
> are more equipped to this topic and to address the issue.
>
> Regards,
> [image: Google Logo] 
> Ernie John 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Yl3Du: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/6641aa5a-d3b8-41ef-8aea-dfc66efadc51n%40googlegroups.com.
  • Tr... 1210xin H5
    • ... 1210xin H5
      • ... 'Jason Ryan' via Google Ads API and AdWords API Forum
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to