Bing Ads连接身份验证问题(与重定向URI相关) [英] Bing Ads Connection Authentication Problem( related to Redirect URI)

查看:198
本文介绍了Bing Ads连接身份验证问题(与重定向URI相关)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好, 

我想使用Bing Ads来获取广告系列和广告组来自Bing Ads帐户的数据使用python脚本。我在Microsoft Application Registration Portal中创建了开发人员令牌和应用程序。我为我的应用选择了"原生平台"并使用默认的"自定义
重定向URI"(我没有添加任何新的重定向URI)

I want to use Bing Ads to get Campaign and AdGroup data from Bing Ads account using python script. I created developer token and application in Microsoft Application Registration Portal . I chose "native platform" for my application and used default "Custom Redirect URIs" (I didn’t any add any new redirect URI)

要检查身份验证连接,我使用了bing Ads"演练:Bing广告桌面应用程序在Python中"提供的示例代码。我还提供了Client-ID,开发人员令牌和环境变量。但是当我运行脚本时,它显示在
消息下面,并要求重定向URI。 

To check authentication connection, I used sample code given by bing Ads "Walkthrough: Bing Ads Desktop Application in Python" .I also provided Client-ID, developer token and environment variables. But when I run the script it shows below message and asks for redirect URI. 

消息:"您需要同意应用程序才能访问您的Bing Ads帐户。在Web浏览器中授予应用程序访问Bing Ads帐户的同意后,请输入包含授权
'code'参数的响应URI:"

Message : "You need to provide consent for the application to access your Bing Ads accounts. After you have granted consent in the web browser for the application to access your Bing Ads accounts, please enter the response URI that includes the authorization 'code' parameter: "

如"演练:Bing广告桌面应用程序在Python中"中所述,我提供了URI" https://login.live.com/oauth20_desktop.srf "然后它显示"Uri传递不包含代码参数。请确保uri中有代码,只需
示例 http://myurl.com?code=123 "。

As mentioned in "Walkthrough: Bing Ads Desktop Application in Python" I gave URI "https://login.live.com/oauth20_desktop.srf" then it shows "Uri passed doesn't contain code param. Please make sure the uri has a code in it, for example http://myurl.com?code=123".

请告诉我应该提供哪些URI。如果我对Bing Ads不熟悉,我是否也可以通过错误的方式解决任何设置步骤?

Can you please let me know what URI should I provide. Can you also let me know if I am doing any setup steps wrong way as I am new to Bing Ads?

谢谢,

Shraddha

推荐答案

使用Microsoft帐户登录打开浏览器选项?与
此示例一样
 您应该使用您的Microsoft帐户(具有Bing Ads访问权限)登录,在打开的浏览器中授予同意,然后将结果URI粘贴回控制台应用程序。 

Did a browser open with a Microsoft account login option? As with this example you should login with your Microsoft account (which has Bing Ads access), grant consent in the open browser, and then paste the result URI back into the console app. 

我希望这有帮助,

Eric


这篇关于Bing Ads连接身份验证问题(与重定向URI相关)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆