执行AddAdGroupCriterionsRequest时出错 [英] Error while doing AddAdGroupCriterionsRequest

查看:96
本文介绍了执行AddAdGroupCriterionsRequest时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只要ProductCondition属性包含特殊字符或标点符号,AddAdGroupCriterionsRequest就会抛出错误。请参阅以下内容:

Looks like the AddAdGroupCriterionsRequest throws error whenever the ProductCondition attribute contains special characters or punctuation marks. Please see below:

***外发SOAP ******************* ************************************
<?xml version =' 1.0'coding ='UTF-8'?>
$
< SOAP-ENV:Envelope xmlns:SOAP-ENV =" http://schemas.xmlsoap.org/soap/envelope/" ;>< SOAP-ENV:Header xmlns =" https://adcenter.microsoft.com/v8">< CustomerAccountId>< / CustomerAccountId>< CustomerId>< / CustomerId>< DeveloperToken> < / DeveloperToken><密码>< /密码><用户名>< /用户名>< / SOAP-ENV:标题>< SOAP-ENV:正文>< AddAdGroupCriterionsRequest
xmlns =" ; https://adcenter.microsoft.com/v8">< AccountId>< / AccountId>< AdGroupCriterions>< AdGroupCriterion i:type =" BiddableAdGroupCriterion" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance">< AdGroupId>< / AdGroupId>< Criterion
i:type =" Product" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance">< Type> Product< / Type><条件>< ProductCondition><属性>红色,白色&放大器;蓝色与LT; /属性与GT;<操作数> BingAds_Label< /操作数>< / ProductCondition>< /条件>< /标准><状态>的Active< /状态><类型> BiddableAdGroupCriterion的< /类型>< CriterionBid
I:类型= QUOT; FixedBid"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance"><类型> FixedBid< /类型><出价><金额> 0.31< /金额>< /出价>< / CriterionBid>< / AdGroupCriterion>< / AdGroupCriterions>< / AddAdGroupCriterionsRequest>< / SOAP-ENV:Body>< / SOAP-ENV:Envelope>

*** Outgoing SOAP ******************************************************
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns="https://adcenter.microsoft.com/v8"><CustomerAccountId></CustomerAccountId><CustomerId></CustomerId><DeveloperToken></DeveloperToken><Password></Password><UserName></UserName></SOAP-ENV:Header><SOAP-ENV:Body><AddAdGroupCriterionsRequest xmlns="https://adcenter.microsoft.com/v8"><AccountId></AccountId><AdGroupCriterions><AdGroupCriterion i:type="BiddableAdGroupCriterion" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><AdGroupId></AdGroupId><Criterion i:type="Product" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Type>Product</Type><Conditions><ProductCondition><Attribute>Red, White &amp; Blue</Attribute><Operand>BingAds_Label</Operand></ProductCondition></Conditions></Criterion><Status>Active</Status><Type>BiddableAdGroupCriterion</Type><CriterionBid i:type="FixedBid" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Type>FixedBid</Type><Bid><Amount>0.31</Amount></Bid></CriterionBid></AdGroupCriterion></AdGroupCriterions></AddAdGroupCriterionsRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>

******************* ************************************************** ***

***入境肥皂********************************** ******************** *

< s:信封xmlns:s =" http://schemas.xmlsoap.org/soap / envelope /">< s:Body>< s:Fault>< faultcode> s:Server< / faultcode>< faultstring xml:lang =" en-US">无效的客户端数据。检查SOAP故障详细信息以获取更多
信息< / faultstring>< detail>< ApiFaultDetail xmlns =" https://adcenter.microsoft.com/v8" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance">< TrackingId xmlns =" https://adapi.microsoft.com"> 2a10b09e-6db4-455b-a353 -722af81723d7< / TrackingId>< BatchErrors><查看BatchError><代码> 3870< /代码><详情> 0℃; /详情及GT;<错误码> CampaignServiceProductAdExtensionAttributeIsInvalid< /错误码><索引> 0℃; /索引> <消息>
产品条件的属性无效。< / Message>< / BatchError>< / BatchErrors>< OperationErrors />< / ApiFaultDetail>< / detail>< / s:故障>< / s:正文>< / s:信封>

************************ **********

************************************************************************
*** Incoming SOAP ******************************************************
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Server</faultcode><faultstring xml:lang="en-US">Invalid client data. Check the SOAP fault details for more information</faultstring><detail><ApiFaultDetail xmlns="https://adcenter.microsoft.com/v8" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><TrackingId xmlns="https://adapi.microsoft.com">2a10b09e-6db4-455b-a353-722af81723d7</TrackingId><BatchErrors><BatchError><Code>3870</Code><Details>0</Details><ErrorCode>CampaignServiceProductAdExtensionAttributeIsInvalid</ErrorCode><Index>0</Index><Message>The product condition's attribute is not valid.</Message></BatchError></BatchErrors><OperationErrors/></ApiFaultDetail></detail></s:Fault></s:Body></s:Envelope>
************************************************************************

另一个例子:

***外出的邮件**************************** **************************
$
<?xml version ='1.0'coding ='UTF-8' ?>
$
< SOAP-ENV:Envelope xmlns:SOAP-ENV =" h ttp://schemas.xmlsoap.org/soap/envelope/">< SOAP-ENV:Header xmlns =" https://adcenter.microsoft.com/v8">< CustomerAccountId>< / CustomerAccountId><客户ID>< /客户ID>< DeveloperToken>< / DeveloperToken><密码>< /密码和GT;<用户名>< /用户名>< / SOAP-ENV:页眉和GT;< SOAP -ENV:正文>< AddAdGroupCriterionsRequest
xmlns =" https://adcenter.microsoft.com/v8">< AccountId>< / AccountId>< AdGroupCriterions>< AdGroupCriterion i:type = " BiddableAdGroupCriterion的" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance">< AdGroupId> 1655510648< / AdGroupId>< Criterion
i:type =" Product" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance">< Type> Product< / Type><条件>< ProductCondition><属性> LED 2x4凹陷暗灯槽改装,2x4 LED面板灯,LED灯槽< /属性><操作数> BingAds_Label< /操作数>< / ProductCondition>< /条件>< / Criterion><状态>有效< /状态><类型> BiddableAdGroupCriterion< ; /类型>< CriterionBid
i:type =" FixedBid"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance"><类型> FixedBid< /类型><出价><金额> 0.29< /金额>< /出价>< / CriterionBid>< / AdGroupCriterion>< / AdGroupCriterions>< / AddAdGroupCriterionsRequest>< / SOAP-ENV:Body>< / SOAP-ENV:Envelope>

*** Outgoing SOAP ******************************************************
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns="https://adcenter.microsoft.com/v8"><CustomerAccountId></CustomerAccountId><CustomerId></CustomerId><DeveloperToken></DeveloperToken><Password></Password><UserName></UserName></SOAP-ENV:Header><SOAP-ENV:Body><AddAdGroupCriterionsRequest xmlns="https://adcenter.microsoft.com/v8"><AccountId></AccountId><AdGroupCriterions><AdGroupCriterion i:type="BiddableAdGroupCriterion" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><AdGroupId>1655510648</AdGroupId><Criterion i:type="Product" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Type>Product</Type><Conditions><ProductCondition><Attribute>LED 2x4 Recessed Troffer Retrofits, 2x4 LED Panel Lights, LED Troffers</Attribute><Operand>BingAds_Label</Operand></ProductCondition></Conditions></Criterion><Status>Active</Status><Type>BiddableAdGroupCriterion</Type><CriterionBid i:type="FixedBid" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Type>FixedBid</Type><Bid><Amount>0.29</Amount></Bid></CriterionBid></AdGroupCriterion></AdGroupCriterions></AddAdGroupCriterionsRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>

***************************************** ************************************
***入境香皂****** ********** <无线电通信/>
< s:Envelope xmlns:s =" http://schemas.xmlsoap.org/soap/envelope/">< s:Body>< s:Fault>< faultcode> ; s:服务器< / faultcode>< faultstring xml:lang =" en-US">无效的客户端数据。检查SOAP故障详细信息以获取更多
信息< / faultstring>< detail>< ApiFaultDetail xmlns =" https://adcenter.microsoft.com/v8" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance">< TrackingId xmlns =" https://adapi.microsoft.com"> 91396165-f468-42f3-afd1 -fd6caab8fe8f< / TrackingId>< BatchErrors><查看BatchError><代码> 3870< /代码><详情> 0℃; /详情及GT;<错误码> CampaignServiceProductAdExtensionAttributeIsInvalid< /错误码><索引> 0℃; /索引> <消息>
产品条件的属性无效。< / Message>< / BatchError>< / BatchErrors>< OperationErrors />< / ApiFaultDetail>< / detail>< / s:故障>< / s:正文>< / s:信封>

************************ ********** <无线电通信/>

************************************************************************
*** Incoming SOAP ******************************************************
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Server</faultcode><faultstring xml:lang="en-US">Invalid client data. Check the SOAP fault details for more information</faultstring><detail><ApiFaultDetail xmlns="https://adcenter.microsoft.com/v8" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><TrackingId xmlns="https://adapi.microsoft.com">91396165-f468-42f3-afd1-fd6caab8fe8f</TrackingId><BatchErrors><BatchError><Code>3870</Code><Details>0</Details><ErrorCode>CampaignServiceProductAdExtensionAttributeIsInvalid</ErrorCode><Index>0</Index><Message>The product condition's attribute is not valid.</Message></BatchError></BatchErrors><OperationErrors/></ApiFaultDetail></detail></s:Fault></s:Body></s:Envelope>
************************************************************************

推荐答案

你好chiragjain1989,

Hi chiragjain1989,

感谢您抽出宝贵时间提醒我们注意观察到的行为。 我们正在调查,并会在收到更新后立即报告。 

Thank you for taking the time to alert us to observed behavior.  We are investigating and will report back as soon as we have an update. 

谢谢!

Brad W - MSFT

Brad W - MSFT


这篇关于执行AddAdGroupCriterionsRequest时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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