访问帐户但不访问广告系列 [英] Access accounts but not campaigns

查看:155
本文介绍了访问帐户但不访问广告系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我在访问广告系列管理API时遇到了一些麻烦。 我可以获得帐户信息,但在调用GetCampaignsByAccountID时使用相同的凭据我收到"无效的客户数据 - 用户不代表授权的开发者。" 


 


请求:


< s:信封xmlns:s =" http://schemas.xmlsoap.org/soap/envelope/ "

  < s:标题>

    < Action s:mustUnderstand =" 1" xmlns =" http://schemas.microsoft.com/ws/ 2005/05 / addressing / none"> GetCampaignsByAccountId< / Action >

    < h:ApplicationToken i:nil =" true" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance " xmlns:h =" https://adcenter.microsoft.com/v7 " />

    < h:CustomerAccountId xmlns:h =" https://adcenter.microsoft.com/v7"" ;> xxx< / h:CustomerAccountId >

    < h:CustomerId xmlns:h =" https://adcenter.microsoft.com/v7" ;> xxx< / h:CustomerId >

    < h:DeveloperToken xmlns:h =" https://adcenter.microsoft.com/v7" ;> xxx< / h:DeveloperToken >

    < h:密码xmlns:h =" https://adcenter.microsoft.com / v7"> xxx< / h:密码>

    < h:UserName xmlns:h =" https://adcenter.microsoft.com / v7"> xxx< / h:UserName >

  < / s:Header>

  < s:正文>

    < GetCampaignsByAccountIdRequest xmlns =" https://adcenter.microsoft.com/v7 ">

      < AccountId> 794332< / AccountId>

    < / GetCampaignsByAccountIdRequest>

  < / s:Body>

< / s:Envelope>


响应:


< s:信封xmlns:s =" http://schemas.xmlsoap.org/soap/envelope/ "

  < s:标题/>

  < s:正文>

    < s:故障>

      < faultcode> s:服务器< / faultcode>

      < faultstring xml:lang =" en-US">无效的客户数据。检查SOAP故障详细信息以获取更多信息< / faultstring>

      < detail>

        < ApiFaultDetail xmlns =" https://adcenter.microsoft.com/v7 " xmlns:i =" http://www.w3.org/2001/XMLSchema-instance "> ;

          < TrackingId xmlns =" https://adapi.microsoft.com"> ; 1d8250e6-2991-4b2c-a844-78d4e7e984db< / TrackingId >

          < BatchErrors />

          < OperationErrors>

            < OperationError>

              <代码> 106< /代码>

              < Details i:nil =" true" />

              < ErrorCode> UserIsNotAuthorized< / ErrorCode>

              <消息>用户不代表授权开发者。< / Message>

            < / OperationError>

          < / OperationErrors>

        < / ApiFaultDetail>

      < / detail>

    < / s:错误>


 


我在这个论坛上读过另一篇帖子,表明这可能是名称空间问题。


GetCampaignsByAccountIdRequest xmlns =" https://adcenter.microsoft.com/v7 " >


提前致谢!


Tony


 

解决方案

问题已解决。  CustomerAccountID和AccountID不匹配。 


Hello,

I'm having a bit of trouble accessing the campaign management api.  I can get account info just fine but when using the same credentials when calling GetCampaignsByAccountID I recieve an "Invalid Client Data - The user does not represent a authorized developer." 

 

The request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">GetCampaignsByAccountId</Action>
    <h:ApplicationToken i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:h="https://adcenter.microsoft.com/v7" />
    <h:CustomerAccountId xmlns:h="https://adcenter.microsoft.com/v7">xxx</h:CustomerAccountId>
    <h:CustomerId xmlns:h="https://adcenter.microsoft.com/v7">xxx</h:CustomerId>
    <h:DeveloperToken xmlns:h="https://adcenter.microsoft.com/v7">xxx</h:DeveloperToken>
    <h:Password xmlns:h="https://adcenter.microsoft.com/v7">xxx</h:Password>
    <h:UserName xmlns:h="https://adcenter.microsoft.com/v7">xxx</h:UserName>
  </s:Header>
  <s:Body>
    <GetCampaignsByAccountIdRequest xmlns="https://adcenter.microsoft.com/v7">
      <AccountId>794332</AccountId>
    </GetCampaignsByAccountIdRequest>
  </s:Body>
</s:Envelope>

The Response:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header />
  <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/v7" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
          <TrackingId xmlns="https://adapi.microsoft.com">1d8250e6-2991-4b2c-a844-78d4e7e984db</TrackingId>
          <BatchErrors />
          <OperationErrors>
            <OperationError>
              <Code>106</Code>
              <Details i:nil="true" />
              <ErrorCode>UserIsNotAuthorized</ErrorCode>
              <Message>The user does not represent a authorized developer.</Message>
            </OperationError>
          </OperationErrors>
        </ApiFaultDetail>
      </detail>
    </s:Fault>

 

I have read another post on this forum that indicated that perhaps it is a namespace issue.

GetCampaignsByAccountIdRequest xmlns="https://adcenter.microsoft.com/v7">

Thanks in advance!

Tony

 

解决方案

Issue has been resolved.  CustomerAccountID and AccountID did not match. 


这篇关于访问帐户但不访问广告系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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