使用Python为Bing Ads API操作GetEstimatedBidByKeywords创建suds对象 [英] Create suds object for Bing Ads API operation GetEstimatedBidByKeywords using Python

查看:98
本文介绍了使用Python为Bing Ads API操作GetEstimatedBidByKeywords创建suds对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

对于此广告洞察服务方法

SuggestKeywordsFromExistingKeywords(ns4:ArrayOfstring Keywords,xs:string Language,ns4:ArrayOfstring PublisherCountries,xs:int MaxSuggestionsPerKeyword,
xs:int SuggestionType,xs:boolean RemoveDuplicates,xs: boolean ExcludeBrand,xs:long AdGroupId,xs:long CampaignId)

我为ns4:ArrayOfstring创建了一个对象,如下所示:

keywords = AdInsight_service.factory.create('ns4:ArrayOfstring')
keywords.string.append(" Laptop") keywords.string.append( "移动")

keywords=AdInsight_service.factory.create('ns4:ArrayOfstring') keywords.string.append("Laptop") keywords.string.append("mobile")

现在我试着称之为广告洞察服务方法

GetEstimatedBidByKeywords(ns2:ArrayOfKeywordAndMatchType Keywords,ns1:TargetAdPosition TargetPositionForAds,xs:string Language,ns4:ArrayOfstring
PublisherCountries,ns1:Currency Currency,xs:long CampaignId,xs:long AdGroupId,xs:string EntityLevelBid)

如何为ArrayOfKeywordAndMatchType创建一个对象?

请帮助我。谢谢,Rasheedh B (rasheedh1989@gmail.com)

推荐答案

你好。

我们有 GitHub上的
示例

keyword_and_match_types=ad_intelligence_service.factory.create('ns0:ArrayOfKeywordAndMatchType')
keyword_and_match_type_1=ad_intelligence_service.factory.create('ns0:KeywordAndMatchType')
keyword_and_match_type_1.KeywordText='flower'
keyword_and_match_type_1.MatchTypes=match_types
keyword_and_match_type_2=ad_intelligence_service.factory.create('ns0:KeywordAndMatchType')
keyword_and_match_type_2.KeywordText='delivery'
keyword_and_match_type_2.MatchTypes=match_types
        
keyword_and_match_types={'KeywordAndMatchType': [keyword_and_match_type_1, keyword_and_match_type_2]}

需要针对V10 Ad Insight更新示例,但希望它可以帮助您了解正确的方向。如果您有任何其他问题,请告诉我。

The sample will need to be updated for V10 Ad Insight, but hopefully it will help point you in the right direction. Please let me know if you have any other questions.

致以最好的问候,

Eric


这篇关于使用Python为Bing Ads API操作GetEstimatedBidByKeywords创建suds对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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