Bing Ads PHP报告请求 - 无效的帐户ID? [英] Bing Ads PHP Reporting Request - Invalid Account ID?

查看:56
本文介绍了Bing Ads PHP报告请求 - 无效的帐户ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在处理MSDN上提供的bing ads报告请求代码示例。 (它不会让我链接到具体的例子)



当我运行脚本时,我收到以下错误: 



" InvalidAccountIdInAccountReportScope0指定的帐户报告范围包含无效的帐户ID,在"详细信息"字段中列出。请提交包含有效范围和ID的报告请求。操作失败并出现以下故障:
处的BatchError索引:0代码:2023错误代码:InvalidAccountIdInAccountReportScope消息:指定的帐户报告范围包含无效的帐户ID,在"详细信息"字段中列出。请提交包含有效范围和ID的报告请求。有关上面输出的错误代码的更多详细信息,请参阅MSDN文档
。"\
$


我非常确定我在中设置了正确的AccountID文件:



这是我的账户ID条目



//指定您的凭证。



 (其他凭据已删除,但已经到位)

$ AccountId =" X ****" ;;



有没有人看到我传递会出现问题的帐号ID的方式?或者您是否需要更多信息来排除故障(我已经超出了绿色)?



提前付款,

Matt



Hi All,

I'm working off of the bing ads reporting request code example provided here on MSDN. (it won't let me link to the specific example)

When I run the script, I get the following error: 

"InvalidAccountIdInAccountReportScope0The specified account report scope contains an invalid account id, listed in the Details field. Please submit a report request with valid scope and ids. The operation failed with the following faults: BatchError at Index: 0 Code: 2023 Error Code: InvalidAccountIdInAccountReportScope Message: The specified account report scope contains an invalid account id, listed in the Details field. Please submit a report request with valid scope and ids. Please see MSDN documentation for more details about the error code output above."\

I am pretty certain I have the correct AccountID set in the document:

Here is my entry for AccountID

// Specify your credentials.

 (other credentials removed, but they are in place)
$AccountId = "X****";

Does anyone see anything with the way I'm passing the accountID that would present an issue? Or do you need more information to troubleshoot (I'm beyond green at this)?

Thanks in advance,
Matt


推荐答案

Hi Matt。

Hi Matt.

在请求中,您指定了一个以"X"开头的帐号。帐户ID类型很长,您可以使用
SearchAccounts <获取您的帐户ID / a>或
GetAccountsInfo
此PHP示例
使用
GetUser
- > SearchCustomers - >
GetAccountsInfo
,但另一种方法是使用
GetUser
- >
SearchAccounts

In the request you specified an account number, which begins with an 'X'. Account Ids are of type long, and you can get your account ID(s) using SearchAccounts or GetAccountsInfo. This PHP example uses GetUser -> SearchCustomers -> GetAccountsInfo, although an alternative is to use GetUser -> SearchAccounts.

有关详细信息,请参阅
帐户和客户标识符

For more information, please see Account and Customer Identifiers.

我希望这有帮助!


这篇关于Bing Ads PHP报告请求 - 无效的帐户ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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