ApplyOfflineConversions返回400但没有响应 [英] ApplyOfflineConversions returns 400 with no response
本文介绍了ApplyOfflineConversions返回400但没有响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
ApplyOfflineConversions返回400但没有响应。这是SOAP请求:
ApplyOfflineConversions returns 400 with no response. Here's the SOAP request:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header xmlns="https://bingads.microsoft.com/CampaignManagement/v11">
<Action mustUnderstand="1">ApplyOfflineConversions</Action>
<ApplicationToken i:nil="true" />
<CustomerAccountId i:nil="false">***</CustomerId>
<CustomerId i:nil="false">***</CustomerId>
<DeveloperToken i:nil="false">***</DeveloperToken>
<AuthenticationToken i:nil="false">REDACTED</AuthenticationToken>
</s:Header>
<s:Body>
<ApplyOfflineConversionsRequest xmlns="https://bingads.microsoft.com/CampaignManagement/v11">
<OfflineConversions i:nil="false">
<OfflineConversion>
<ConversionCurrencyCode i:nil="false">EUR</ConversionCurrencyCode>
<ConversionName i:nil="false">Lead</ConversionName>
<ConversionTime>2018-01-02T16:54:44Z</ConversionTime>
<ConversionValue i:nil="false">1.45</ConversionValue>
<MicrosoftClickId i:nil="false">***</MicrosoftClickId>
</OfflineConversion>
<OfflineConversion>
<ConversionCurrencyCode i:nil="false">EUR</ConversionCurrencyCode>
<ConversionName i:nil="false">Lead</ConversionName>
<ConversionTime>2018-01-02T17:20:16Z</ConversionTime>
<ConversionValue i:nil="false">2.80</ConversionValue>
<MicrosoftClickId i:nil="false">***</MicrosoftClickId>
</OfflineConversion>
</OfflineConversions>
</ApplyOfflineConversionsRequest>
</s:Body>
</s:Envelope>
这是请求代码:
headers = {
'Accept': 'text/xml',
'Content-type': "text/xml; charset=\"UTF-8\"",
"Content-length": "%d" % len(soapStr),
"SOAPAction": "ApplyOfflineConversions",
"HOST": "campaign.api.bingads.microsoft.com",
}
endpoint_url = "https://campaign.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/CampaignManagementService.svc?wsdl"
res = requests.post(endpoint_url, headers=headers, data=soapStr)
感谢您的帮助。
Thanks for the help.
推荐答案
这是否与其他业务发行repro?我注意到的一件事是CustomerAccountId结束标记不正确:
Does this issue repro with other operations? One thing I noticed is the CustomerAccountId closing tag is incorrect:
<CustomerAccountId i:nil="false">***</CustomerId>
我希望这会有所帮助,
Eric
这篇关于ApplyOfflineConversions返回400但没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文