使用关键字undefined / set为null的可选属性调用UpdateKeywords时会发生什么? [英] When calling UpdateKeywords with optional attributes of the keywords undefined / set to null, what happens?

查看:82
本文介绍了使用关键字undefined / set为null的可选属性调用UpdateKeywords时会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是寻找快速文档说明以及Python特定问题。


注意到在Bing Ads V12文档中有关数据类型的文档中,AdGroup属性全部声明在更新时,如果没有为可选属性传递值,则不会更改。你可以在这里查看:

https://docs.microsoft.com/en-us/bingads/campaign-management-service/adgroup?view=bingads-12
。这是一个非常有用的澄清。


我只是好奇它是否与关键字相同。对于大多数可选的关键字属性,没有更多详细信息指定

https://docs.microsoft.com/en-us/bingads/campaign-management-service/keyword?view=bingads-12
。只是想确定所以我们不会对生产中的关键字进行任何意外的不必要更新。


另外,对于Python SDK,我们不应该在SOAP对象上包含这些属性'发送到UpdateKeywords / AdGroups /等。调用(所以`del keyword_object.MatchType`)或者只是将它们设置为None?


谢谢!

解决方案

嗨Eric。


是的,我们将在文档中澄清,如果您将关键字的属性保留为空/空,则不会修改关键字的属性。请注意关键字

出价
金额。 


将广告系列管理服务与Bing Ads Python SDK一起使用时,如果未指定出价属性或将其设置为无,您的关键字出价不会更新。 枚举(值集)数据类型的只读属性必须设置为无。
其他你可以设置为None,或者不打扰设置它们。这更像是SUDS要求(外部SDK依赖)而不是Bing Ads或Python特定。有关详细信息,请参阅  使用
SUDS使用Bing Ads Python SDK
。 

 update_keyword.Bid =无



您可以设置Bid.Amount属性以更改关键字出价。

 update_keyword.Bid = campaign_service.factory.create('Bid')
update_keyword.Bid.Amount = 0.46



将广告系列管理服务与Bing Ads Python SDK一起使用时,如果您要继承广告组级出价,而不是使用关键字级出价,则服务期望您将Bid.Amount设置为null(新的空出价) 。但是,重要的是
注意SUDS(由Bing Ads Python SDK使用)不允许  Bid.Amount属性为null,因此您需要删除关键字,然后添加新关键字而不设置出价,或将Bid设置为无。我们建议您使用

BulkServiceManager
用于关键字更新,即上传BulkKeyword实体。通过上传BulkKeyword,您无需删除和添加要从广告组级出价中继承的关键字,而且您还可以灵活地在帐户中的所有广告系列中更新数百万个关键字。有关如何使用批量服务进行关键字更新的示例,请参阅

bulk_keywords_ads.py


我希望这会有所帮助!


Eric


Just looking for a quick docs clarification, along with a Python specific question.

Noticed that in documentation on the data types in the Bing Ads V12 docs, AdGroup attributes all state that on update, if no value is passed for an optional attribute, it's not changed. You can check it here: https://docs.microsoft.com/en-us/bingads/campaign-management-service/adgroup?view=bingads-12. That's a great, useful clarification.

I just curious whether it's the same for Keywords. For most of the optional Keyword attributes, there's no more details specified https://docs.microsoft.com/en-us/bingads/campaign-management-service/keyword?view=bingads-12. Just want to be sure so we don't make any accidental unwanted updates to our keywords in production.

Also, for the Python SDK, should we not include those attributes on the SOAP objects we're sending to the UpdateKeywords/AdGroups/etc. calls (so `del keyword_object.MatchType`) or just set them to None?

Thanks!

解决方案

Hi Eric.

Yes we will clarify in documentation that the properties for keywords are not modified if you leave them null / empty. Please take note of the special rule for Keyword Bid Amount. 

When using the Campaign Management service with the Bing Ads Python SDK, if the Bid property is not specified or is set to None, your keyword bid will not be updated. Read-only properties of enumeration (value set) data types must be set to None. The others you can set to None, or don't bother setting them. This is more of a SUDS requirement (external SDK dependency) rather than Bing Ads or Python specific. For more details please see Using SUDS with the Bing Ads Python SDK

update_keyword.Bid=None


You can set the Bid.Amount property to change the keyword level bid.

update_keyword.Bid=campaign_service.factory.create('Bid')
update_keyword.Bid.Amount=0.46


When using the Campaign Management service with the Bing Ads Python SDK, if you want to inherit the ad group level bid, instead of using the keyword level bid, the service expects that you would have set the Bid.Amount null (new empty Bid). However, it is important to note that SUDS (used by the Bing Ads Python SDK) does not allow the  Bid.Amount property to be null, so you will need to delete the keyword and then add a new keyword without the Bid set, or with Bid set to None. We recommend that you use the BulkServiceManager for keyword updates, i.e. upload BulkKeyword entities. With the BulkKeyword upload, you won't have to delete and add keywords to inherit from the ad group level bid, and you also have the flexibility of updating millions of keywords across all campaigns in your account. For examples of how to use the Bulk service for keyword updates, please see bulk_keywords_ads.py.

I hope this helps!

Eric


这篇关于使用关键字undefined / set为null的可选属性调用UpdateKeywords时会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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