使用Oauth在V8中获取帐户信息 [英] Get Accounts Info in V8 with Oauth

查看:88
本文介绍了使用Oauth在V8中获取帐户信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用V8,我正在尝试从用户密码身份验证迁移到Oauth。

I am using V8, and i am trying to migrate from user password authentication to Oauth.

我看到了论坛中的类似主题,但他们无法帮助我。

I saw similar threads in the forum but they couldn't help me.

这是我的要求:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cus="https://adcenter.microsoft.com/api/customermanagement">
   <soapenv:Header>
	<cus:AuthenticationToken>XXX</cus:AuthenticationToken>
	<cus:DeveloperToken>YYY</cus:DeveloperToken>
   </soapenv:Header>
   <soapenv:Body>
      <cus:GetAccountsInfoRequest>
      </cus:GetAccountsInfoRequest>
   </soapenv:Body>
</soapenv:Envelope>

我收到105错误"验证失败。提供的凭据无效或帐户处于无效状态。"

and i get 105 error "Authentication failed. Either supplied credentials are invalid or the account is inactive."

跟踪ID:  8515ade9-9b53-4845-bd04-9f60978be265

tracking id : 8515ade9-9b53-4845-bd04-9f60978be265

我使用用户密码,它可以正常工作。

when i use user password, it works ok.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cus="https://adcenter.microsoft.com/api/customermanagement">
   <soapenv:Header>
  	<cus:UserName>XXX</cus:UserName>
	<cus:Password>YYY</cus:Password>
	<cus:DeveloperToken>ZZZ</cus:DeveloperToken>
   </soapenv:Header>
   <soapenv:Body>
      <cus:GetAccountsInfoRequest>    
      </cus:GetAccountsInfoRequest>
   </soapenv:Body>
</soapenv:Envelope>

我在Bing帐户中授予了应用程序的完全控制权。

I granted a full control for the application in the Bing account.

知道为什么会这样吗?

Alex

推荐答案

您好。

使用AuthenticationToken和OAuth,我使用可以访问Bing Ads帐户的Microsoft帐户成功测试了您的SOAP。请确保Microsoft帐户链接到Bing广告帐户,每个链接管理用户到Microsoft帐户
部分使用OAuth管理用户身份验证指南。 您登录以注册应用程序的Microsoft帐户,例如
app_admin@contoso.com 可能无法与任何Bing Ads帐户相关联。

Using AuthenticationToken and OAuth, I successfully tested your SOAP with a Microsoft Account that has access to a Bing Ads account. Please make sure the Microsoft Account is linked to a Bing Ads account per the Link Managed Users to Microsoft Account section of the Managing User Authentication with OAuth guide. The Microsoft Account that you signed in to register the application e.g. app_admin@contoso.com might not be linked to any Bing Ads accounts.

如果您的Microsoft帐户与Bing Ads帐户相关联,并且您仍然在观察105错误,请升级为支持SOAP,管理的UserName,以及与您关联的Microsoft帐户相对应的电子邮件地址。

If your Microsoft Account is linked to a Bing Ads account, and you are still observing the 105 error, please escalate to support with the SOAP, managed UserName, and the email address corresponding to your linked Microsoft Account.

我希望这有帮助!


这篇关于使用Oauth在V8中获取帐户信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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