105 / InvalidCredentials:身份验证失败。提供的凭据无效或帐户处于非活动状态 [英] 105/InvalidCredentials: Authentication failed. Either supplied credentials are invalid or the account is inactive

查看:3393
本文介绍了105 / InvalidCredentials:身份验证失败。提供的凭据无效或帐户处于非活动状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

平台:

PHP GetEstimatedBid.php示例。

The PHP GetEstimatedBid.php example.

问题:

操作失败并出现以下故障:

AdApiError

代码:105

错误代码:InvalidCredentials

消息:身份验证失败。提供的凭据无效或帐户处于非活动状态

The operation failed with the following faults:
AdApiError
Code: 105
Error Code: InvalidCredentials
Message: Authentication failed. Either supplied credentials are invalid or the account is inactive

对文件所做的更改:

$用户名,字符串设置为我的微软帐户用于登录https://bingads.microsoft.com和https://developers.bingads.microsoft.com。

$Username, string set to my microsoft account used to login to https://bingads.microsoft.com and https://developers.bingads.microsoft.com .

$密码,字符串设置为用户名I用于微软帐户,即我用来登录上述网站的帐户。

$Password, string set to username I use for the microsoft account, i.e. the one I used to login to above website.

$ DeveloperToken,字符串按照https://developers.bingads.microsoft.com/Account,其中我也看到  状态:  Active 

$DeveloperToken, string as per https://developers.bingads.microsoft.com/Account, where I also see Status : Active .

$ AccountId,string或int(试过两者)设置为帮助在https://bingads.microsoft.com/Tools/Toolspage.aspx?cid找到的GET参数= 12345678&安培;的助剂= 12345678

$AccountId, string or int (tried both) set to aid GET parameter found at https://bingads.microsoft.com/Tools/Toolspage.aspx?cid=12345678&aid=12345678

还尝试获取OAuth AuthToken,并调用

$ proxy = ClientProxy :: ConstructWithAccountId($ wsdl,$ UserName,$ Password,$ DeveloperToken,$ AccountId,
$ AuthenticationToken );

Also tried obtaining an OAuth AuthToken, and calling
$proxy = ClientProxy::ConstructWithAccountId($wsdl, $UserName, $Password, $DeveloperToken, $AccountId, $AuthenticationToken);

而不是

$ proxy = ClientProxy :: ConstructWithAccountId($ wsdl,$ UserName,$ Password,$ DeveloperToken,$ AccountId,
null );

$proxy = ClientProxy::ConstructWithAccountId($wsdl, $UserName, $Password, $DeveloperToken, $AccountId, null);

帐户附加了30美元的凭证,但没有主要CC。如上所述,开发者页面上的状态为
有效

Account has a $30 voucher attached, but no primary CC. As mentioned, status is Active on the developer page.

关于为什么这不起作用的任何建议?

Any suggestions as to why this won't work?

推荐答案

你好。

您提到的示例正在为我使用生产中的OAuth工作。

The sample you mentioned is working for me using OAuth in production.

您使用AuthenticationToken走在正确的轨道上,并忽略用户名和密码。用户名不能设置为Microsoft帐户电子邮件登录。

You are on the right track using AuthenticationToken, and ignoring UserName and Password. The UserName cannot be set to a Microsoft Account email login.

听起来您已经确认您正在使用Microsoft帐户的所有匹配生产凭据(DeveloperToken和AuthenticationToken)。如果相同的Microsoft帐户也链接到生产中指定的  AccountId
,那么  authenticati通过OAuth应该工作。

Sounds like you have already confirmed that you are using all matching production credentials for the Microsoft Account (DeveloperToken and AuthenticationToken). If the same Microsoft Account is also linked to the specified AccountId in production, then authentication via OAuth should work.

此外,我假设您使用生产WSDL,因为您没有提到将其更改为沙箱。

Also I assume you using the production WSDL, since you didn't mention changing it to sandbox.

如果确认了以上所有内容,那么我建议您将SOAP请求和响应升级到支持以帮助进行故障排除。
http://msdn.microsoft.com/en-US/library/aa983155。 aspx#engagesupport

If all of the above is confirmed, then I suggest you escalate your SOAP request and response to support to assist with troubleshooting. http://msdn.microsoft.com/en-US/library/aa983155.aspx#engagesupport

另一个想法是尝试
按用户搜索客户
示例。它不需要AccountId,因此您可以消除任何潜在的帐户访问问题,并首先确保凭据验证有效。

Another idea is to try the Search Customers by User sample. It does not require an AccountId, so you can eliminate any potential account access issue and first make sure credentials authentication works.

祝你好运,

Eric

Best regards,
Eric


这篇关于105 / InvalidCredentials:身份验证失败。提供的凭据无效或帐户处于非活动状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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