仍在努力开始。 [英] Still trying to get started.

查看:116
本文介绍了仍在努力开始。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Bing API。 我正在尝试使用在另一个帖子中提供给我的XML生成CampaignPerformanceReportRequest报告:

I'm trying to get started with the Bing API.  I'm trying to generate a CampaignPerformanceReportRequest report using the XML that was provided to me in another thread:

  https://social.msdn.microsoft.com/Forums/en- US / 0e4dcb52-efba-4c39-aa83-ead6eec1ade4 / newbie-getting-started-with-api?forum = BingAds

 https://social.msdn.microsoft.com/Forums/en-US/0e4dcb52-efba-4c39-aa83-ead6eec1ade4/newbie-getting-started-with-api?forum=BingAds

但是,我仍然收到错误消息:

However, I am STILL getting an error message:

< s:Envelope xmlns:s =" http://schemas.xmlsoap.org/soap/envelope/">< s:Body>< s:Fault>< faultcode xmlns:a =" http://schemas.microsoft.com/ws/2005/05/addressing/none"> a:ActionNotSupported< / faultcode>< faultstring
xml:lang =" zh -US">由于EndpointDispatcher上的ContractFilter不匹配,无法在接收方处理带有Action''的消息。这可能是由于合同不匹配(发件人和收件人之间的操作不匹配)或
发件人和收件人之间的绑定/安全性不匹配。 检查发送方和接收方是否具有相同的合同和相同的绑定(包括安全要求,例如消息,传输,无)。< / faultstring>< / s:Fault>< / s:Body>< / s:信封>

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode><faultstring xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring></s:Fault></s:Body></s:Envelope>

我怀疑我没有完整的凭据。 我的样子如下:(已消毒)

I suspect that I don't have a complete set of credentials.  What I have looks like this: (sanitized)

$ auth_token =" 11416xxxxxxxx257" ;;

$ customer_account_id =" X14xxx49";

$ developer_token =" 11416xxxxxxxx257" ;;
$
$ account_id =" username@example.com" ;;

$auth_token = "11416xxxxxxxx257";
$customer_account_id = "X14xxx49";
$developer_token = "11416xxxxxxxx257";
$account_id = "username@example.com";

这实际上看起来并不正确auth_token和开发人员令牌是相同的。 这是对的吗? 我会去哪里获取正确的信息? 这是我的经理提供给我的。

This really doesn't look right since the auth_token and developer token are the same.  Is this correct?  Where would I go to actually GET the correct information?  This is what my manager provided to me.

再次感谢,

迈克。

推荐答案

你好,迈克,

以下几点需要纠正:

1。 auth_token应该是您从Oauth身份验证中获得的访问令牌。 Oauth身份验证应通过您的Microsoft帐户用户帐户(例如xxxxx@outlook.com或xxxxx@yourdomain.com)。  

1. auth_token should be the access token you get from the Oauth authentication. The Oauth authentication should be through your Microsoft Account user account (e.g. xxxxx@outlook.com or xxxxx@yourdomain.com).  

2。 customer_account_id应该是帐户ID,您在上面提供的示例中使用的是帐号。 

2. customer_account_id should be the Account Id, you are using Account Number in above exampleyou provided. 

3。您不应该在SOAP标头中使用account_id。 

3. You shouldn't need account_id in SOAP header. 

如果您想尝试使用Eric的示例进行单个调用,我会建议使用SOAP UI工具,它可以更容易地解决SOAP调用。但有一点需要记住,在
手动运行SOAP调用之前,您仍然需要在侧面获取Oauth访问令牌。

If you would like to try out single call with Eric's example, I would recommend to use SOAP UI tool which should be easier for troubleshooting the SOAP calls. But one thing to keep in mind, you still need to get the Oauth access token on the side before manually running the SOAP calls.

谢谢。

Alice 

Alice 


这篇关于仍在努力开始。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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