Error 400: redirect_uri_mismatch

閲覧: 1,809 回
最初の未読メッセージにスキップ

Balaji Iyer

未読、
2021/05/21 23:15:262021/05/21
To: AdWords API and Google Ads API Forum
Hello,

I am trying to get Google AdWords data via API.

I have Get_your_refreshed_token.py and googleads.yaml file triggered from my local machine.
When i execute it, i get the following error message:

"The redirect URI in the request, urn:ietf:wg:oauth:2.0:oob, can only be used by a Client ID for native application. It is not allowed for the WEB client type. You can create a Client ID for native application at https://console.developers.google.com/apis/credentials/oauthclient"

I tried that the same with a client id and secret id from a Native "Desktop app" for Application Type when I created OAuth Client ID.

But I am seeing the same issue.

I added http://localhost for "Authorized JavaScript origins" in my ClientID for Web Application page, but that doesn't seem to fix the issue either.

Any suggestions on how I can get the refreshed token?

Thank you!

Google Ads API Forum Advisor Prod

未読、
2021/05/24 10:44:282021/05/24
To: bal...@getcases.com、adwor...@googlegroups.com

Balaji Iyer

未読、
2021/05/25 9:47:232021/05/25
To: Google Ads API Forum Advisor Prod、adwor...@googlegroups.com
Hi Lakshmi,

Yes, I am getting the same error for both Web Application and Desktop (Native) application as well.

Thanks,
Balaji. 

CONFIDENTIAL COMMUNICATION:  The information contained in this message should be considered as legally privileged and confidential information intended only for the use of the individual or entity named here in above.  If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or duplication of this transmission is strictly prohibited.  If you have received this communication in error, please notify us by telephone or e-mail immediately, return the original message to us and/or destroy all printed and electronic copies. 

Google Ads API Forum Advisor Prod

未読、
2021/05/25 21:20:502021/05/25
To: bal...@getcases.com、adwor...@googlegroups.com
Hi Balaji,

I work with Lakshmi and let me continue the discussion for this concern.

To further investigate the issue, could you provide the complete request and response logs with request ID generated on your end where we can see the error and if the issue was encountered on Google Ads API. If AdWords API, please provide the complete SOAP request and response logs instead.

You can provide it via Reply privately to author option.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HCtHZ:ref
全員に返信
投稿者に返信
転送
新着メール 0 件