API 12 - GetEstimatedBidByKeywords返回内部错误 [英] API 12 - GetEstimatedBidByKeywords returns internal error

查看:75
本文介绍了API 12 - GetEstimatedBidByKeywords返回内部错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好


我试图查询GetEstimatedBidByKeywords 但它返回一个内部错误



这里是我的php片段 

 $ keyword1 = new KeywordAndMatchType; 
$ keyword1-> KeywordText ='mobile';
$ keyword1-> MatchTypes = [MatchType :: Exact];

$ keyword2 = new KeywordAndMatchType;
$ keyword2-> KeywordText ='samsung';
$ keyword2-> MatchTypes = [MatchType :: Exact];

$ keywords = [$ keyword1,$ keyword2];

$ request = new GetEstimatedBidByKeywordsRequest();
$ request-> Keywords = $ keywords;
$ request-> EntityLevelBid ='Keyword';
$ request-> CurrencyCode ='USD';
$ request-> TargetPositionForAds ='MainLine1';
$ request-> CampaignId = $ campaignId;
$ request-> AdGroupId = $ adGroupId;

$ results = $ adInsightProxy-> GetService() - > GetEstimatedBidByKeywords($ request);

这是SOAP请求

< soap-env:envelope 
xmlns:soap-env =" http://schemas.xmlsoap .ORG /肥皂/信封/"
xmlns:ns1 =" http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.V12.Message"
xmlns:ns2 =" http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.V12.Entity"
xmlns:ns3 =" Microsoft.Advertiser.AdInsight.Api.Service.V12"
xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance">
< soap-env:header>
< ns3:customeraccountid> ***< / ns3:customeraccountid>
< ns3:customerid> ***< / ns3:customerid>
< ns3:developertoken> BBD37VB98< / ns3:developertoken>
< ns3:username>
< ns3:password>
< ns3:authenticationtoken> ***< / ns3:authenticationtoken>
< / ns3:密码>
< / ns3:username>
< / soap-env:header>
< soap-env:body>
< ns3:getestimatedbidbykeywordsrequest>
< ns3:keywords>
< ns1:keywordandmatchtype>
< ns1:keywordtext> mobile< / ns1:keywordtext>
< ns1:matchtypes>
< ns2:matchtype> Exact< / ns2:matchtype>
< / ns1:matchtypes>
< / ns1:keywordandmatchtype>
< ns1:keywordandmatchtype>
< ns1:keywordtext> samsung< / ns1:keywordtext>
< ns1:matchtypes>
< ns2:matchtype> Exact< / ns2:matchtype>
< / ns1:matchtypes>
< / ns1:keywordandmatchtype>
< / ns3:keywords>
< ns3:targetpositionforads> MainLine1< / ns3:targetpositionforads>
< ns3:locationids xsi:nil =" true">
< ns3:currencycode> USD< / ns3:currencycode>
< ns3:campaignid> ***< / ns3:campaignid>
< ns3:adgroupid> ***< / ns3:adgroupid>
< ns3:entitylevelbid>关键字< / ns3:entitylevelbid>
< / ns3:locationids>
< / ns3:getestimatedbidbykeywordsrequest>
< / 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 =" Microsoft.Advertiser.AdInsight.Api.Service.V12"
xmlns:i =" http://www.w3.org/2001/XMLSchema-instance">
< trackingid
xmlns =" https://adapi.microsoft.com"> 7a455439-9a34-43a7-a2f7-e453c3d92b43
< / trackingid>
< batcherrors
xmlns:a =" https://guideads.microsoft.com/AdInsight/v12">
< operationerrors
xmlns:a =" https://guideads.microsoft.com/AdInsight/v12">
< a:operationerror>
< a:代码> 0< / a:代码>
< a:details i:nil =" true">
< a:errorcode> InternalError< / a:errorcode>
< a:message>发生了内部错误。< / a:message>
< / a:详情>
< / a:operationerror>
< / operationerrors>
< / batcherrors>
< / apifaultdetail>
< / detail>
< / s:fault>
< / s:body>
< / s:信封>

希望你能帮助我。


谢谢,


Cres


解决方案

您好Cres。


请说明您使用哪个SOAP客户端生成请求?元素应该是PascalCase,如

此模板
。 AuthenticationToken也不应该在UserName和Password中。你应该排除用户名和密码。 


你试过这个
开始漫游


我希望这有帮助,


埃里克


Hi

im trying to query the GetEstimatedBidByKeywords  but it returns an internal error

here's my php snippet 

$keyword1 = new KeywordAndMatchType;
$keyword1->KeywordText = 'mobile';
$keyword1->MatchTypes = [MatchType::Exact];

$keyword2 = new KeywordAndMatchType;
$keyword2->KeywordText = 'samsung';
$keyword2->MatchTypes = [MatchType::Exact];

$keywords = [$keyword1, $keyword2];

$request = new GetEstimatedBidByKeywordsRequest();
$request->Keywords = $keywords;
$request->EntityLevelBid = 'Keyword';
$request->CurrencyCode = 'USD';
$request->TargetPositionForAds = 'MainLine1';
$request->CampaignId = $campaignId;
$request->AdGroupId = $adGroupId;

$results = $adInsightProxy->GetService()->GetEstimatedBidByKeywords($request);

here's the SOAP request

<soap-env:envelope
	xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:ns1="http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.V12.Message"
	xmlns:ns2="http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.V12.Entity"
	xmlns:ns3="Microsoft.Advertiser.AdInsight.Api.Service.V12"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<soap-env:header>
		<ns3:customeraccountid>***</ns3:customeraccountid>
		<ns3:customerid>***</ns3:customerid>
		<ns3:developertoken>BBD37VB98</ns3:developertoken>
		<ns3:username>
			<ns3:password>
				<ns3:authenticationtoken>***</ns3:authenticationtoken>
			</ns3:password>
		</ns3:username>
	</soap-env:header>
	<soap-env:body>
		<ns3:getestimatedbidbykeywordsrequest>
			<ns3:keywords>
				<ns1:keywordandmatchtype>
					<ns1:keywordtext>mobile</ns1:keywordtext>
					<ns1:matchtypes>
						<ns2:matchtype>Exact</ns2:matchtype>
					</ns1:matchtypes>
				</ns1:keywordandmatchtype>
				<ns1:keywordandmatchtype>
					<ns1:keywordtext>samsung</ns1:keywordtext>
					<ns1:matchtypes>
						<ns2:matchtype>Exact</ns2:matchtype>
					</ns1:matchtypes>
				</ns1:keywordandmatchtype>
			</ns3:keywords>
			<ns3:targetpositionforads>MainLine1</ns3:targetpositionforads>
			<ns3:locationids xsi:nil="true">
				<ns3:currencycode>USD</ns3:currencycode>
				<ns3:campaignid>***</ns3:campaignid>
				<ns3:adgroupid>***</ns3:adgroupid>
				<ns3:entitylevelbid>Keyword</ns3:entitylevelbid>
			</ns3:locationids>
		</ns3:getestimatedbidbykeywordsrequest>
	</soap-env:body>
</soap-env:envelope>

and here's the soap response

<s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
	<s:body>
		<s:fault>
			<faultcode>s:Client</faultcode>
			<faultstring xml:lang="en-US">Internal system error. Check the SOAP fault details for more information</faultstring>
			<detail>
				<apifaultdetail
					xmlns="Microsoft.Advertiser.AdInsight.Api.Service.V12"
					xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
					<trackingid
						xmlns="https://adapi.microsoft.com">7a455439-9a34-43a7-a2f7-e453c3d92b43
					</trackingid>
					<batcherrors
						xmlns:a="https://bingads.microsoft.com/AdInsight/v12">
						<operationerrors
							xmlns:a="https://bingads.microsoft.com/AdInsight/v12">
							<a:operationerror>
								<a:code>0</a:code>
								<a:details i:nil="true">
									<a:errorcode>InternalError</a:errorcode>
									<a:message>An internal error has occurred.</a:message>
								</a:details>
							</a:operationerror>
						</operationerrors>
					</batcherrors>
				</apifaultdetail>
			</detail>
		</s:fault>
	</s:body>
</s:envelope>

Hope you could help me.

Thanks,

Cres

解决方案

Hi Cres.

Please clarify which SOAP client do you use to generate the request? The elements should be PascalCase as shown in this template. Also the AuthenticationToken should not be inside UserName and Password. You should exclude UserName and Password. 

Have you tried this get started walk-through?

I hope this helps,

Eric


这篇关于API 12 - GetEstimatedBidByKeywords返回内部错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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