本文介绍了Bing广告Python SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试整理一个脚本,该脚本会定期(作为cron作业)更新我的Bing广告系列中的位置标准。我正在尝试按照Python SDK中的示例进行操作,但却无法使用。这是一个例子......

I'm trying to put together a script that will periodically (as a cron job) update the location criterion on my Bing ad campaigns. I'm trying to follow the examples in the Python SDK and just can't get things to work. Here's an example...

< style type =" text / css"> p.p1 {margin:0.0px 0.0 px 0.0px 0.0px;字体:11.0px摩纳哥} span.s1 {颜色:#0433ff}< / style>

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} span.s1 {color: #0433ff} </style>

authorization_data=AuthorizationData(
    account_id=None,
    customer_id=None,
    developer_token=DEVELOPER_TOKEN,
    authentication=None,
)

问题1):是account_id,customer_id和身份验证假设保持"无"?

Question 1): is the account_id, customer_id and authentication suppose to remain "None"?

campaign_service=ServiceClient(
    service='CampaignManagementService',
    version=12,
    authorization_data=authorization_data,
    environment=ENVIRONMENT,
)


authenticate(authorization_data)

问题2)执行该功能会将我带到以下网址:  https: //login.live.com/oauth20_desktop.srf?error=invalid_request&error_descriptio N =该%20provided%20value%20for%第二十条%20input%20parameter%20%27redirect_uri%27%图20是%20not%20valid。%第二十条%20client%20application%20must%20be%20marked%20AS%20%27mobile%27%2C %20或%20%20value%20must%20be%20an%20absolute%20URL%20which%20matches%20the%20registered%20redirect%20URI。& state = testing& lc = 1033

Question 2) Executing that function takes me to the following URL: https://login.live.com/oauth20_desktop.srf?error=invalid_request&error_description=The%20provided%20value%20for%20the%20input%20parameter%20%27redirect_uri%27%20is%20not%20valid.%20The%20client%20application%20must%20be%20marked%20as%20%27mobile%27%2c%20or%20the%20value%20must%20be%20an%20absolute%20URL%20which%20matches%20the%20registered%20redirect%20URI.&state=testing&lc=1033

描述引用了redirect_uri。我应该在Python代码中将它设置在哪里?

The description references a redirect_uri. Where should I be setting this in the Python code?

推荐答案

我希望这有帮助!


这篇关于Bing广告Python SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 04:32