在调用GetCampaignsByAccountId(PHP)期间出现错误代码106(UserIsNotAuthorized) [英] Error code 106 (UserIsNotAuthorized) during call to GetCampaignsByAccountId (PHP)

查看:61
本文介绍了在调用GetCampaignsByAccountId(PHP)期间出现错误代码106(UserIsNotAuthorized)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





今天刚开始使用Bing Ads API,很高兴用它构建一些应用程序。我正在使用PHP SDK(最新的版本9)。



能够弄清楚如何正确使用OAuth并运行一些示例代码(例如搜索客户代码:https://msdn.microsoft.com/en-US/library/dn629678.aspx



但是,我试图运行一个简单的脚本,用于列出我帐户中的广告系列(用于测试目的),并且我一直在获取"UserIsNotAuthorized用户不代表授权开发者。"



在论坛上进行了一些搜索并尝试了一些解决方案,但没有运气。我相信这是我在函数中使用的参数的问题,所以想澄清我对参数的理解是正确的。 />


从文档中,这里是GetCampaignsByAccountIdRequest的构造函数的参数。



string ApplicationToken,

字符串AuthenticationToken,

字符串CustomerAccountId,

字符串CustomerId,

字符串DeveloperToken,

字符串密码,

字符串UserName,

long AccountId



这是我用于参数的内容,请更正我:

ApplicationToken - 我在PHP中使用NULL值。 br />
CustomerAccountId - 在"帐户& "结算",使用数字"帐户ID"。

CustomerId - 在"帐户& "结算",使用数字"客户ID"。

DeveloperToken - 我的单用户开发人员令牌来自https://developers.bingads.microsoft.com/Account

密码 - 我用来登录Bing Ads的密码。
$
用户名 - 我用来登录Bing Ads的用户名(不是电子邮件)。

AccountId - 在"Accounts& "结算",使用字母数字"帐号"。



尝试了上述不同的变体,仍然收到UserIsNotAuthorized错误。



对于上述问题的任何帮助将不胜感激,谢谢!



Hi,

Just started using the Bing Ads API today and am excited to build some applications with it. I'm using the PHP SDK (the latest, version 9).

Was able to figure out how to use OAuth properly and get some of the sample code running (such as the Search Customers code at: https://msdn.microsoft.com/en-US/library/dn629678.aspx

However, I was trying to run a simple script to list the campaigns in my account (for testing purposes), and I keep on getting a "UserIsNotAuthorized The user does not represent a authorized developer."

Did some searching on the forums and tried out some of the solutions, but no luck. I believe it's an issue with the arguments I'm using in the function, so wanted to clarify my understanding of the parameters is correct.

From the documentation, here are the parameters for the constructor of GetCampaignsByAccountIdRequest.

string ApplicationToken,
string AuthenticationToken,
string CustomerAccountId,
string CustomerId,
string DeveloperToken,
string Password,
string UserName,
long AccountId

Here's what I'm using for the parameters, please correct me:
ApplicationToken - I'm using the NULL value in PHP.
CustomerAccountId - Under "Accounts & Billing", used the numeric "Account ID".
CustomerId - Under "Accounts & Billing", used the numeric "Customer ID".
DeveloperToken - My Single User Developer token from https://developers.bingads.microsoft.com/Account
Password - Password I use to login to Bing Ads.
UserName - Username I use to login to Bing Ads (not the email).
AccountId - Under "Accounts & Billing", used the alphanumeric "Account number".

Tried different variations also of the above, and still getting the UserIsNotAuthorized error.

Any assistance with the above problem would be greatly appreciated, thanks!


推荐答案

你好。

AccountId和CustomerAccountId应该相同,即  在" Accounts& "结算",使用
数字"帐户ID"。

AccountId and CustomerAccountId should be the same i.e. Under "Accounts & Billing", used the numeric "Account ID".

我希望这有帮助!


这篇关于在调用GetCampaignsByAccountId(PHP)期间出现错误代码106(UserIsNotAuthorized)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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