应用程序无法进行此API调用

应用程序无法进行此API调用

本文介绍了Facebook Ads Insights API:(#3)应用程序无法进行此API调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Facebook Marketing API提取Facebook Ads指标。基本上,这种流程是我希望提取公司的所有帐户ID,然后遍历它们,分别获取它们的见解。

I am trying to pull Facebook Ads metrics through the Facebook Marketing API. The flow is basically that I wish to pull all the account ids of my company, and then loop over them, retrieving the insights for them individually.

但是我有一个错误,我无法解决/理解。

However I have an error which I am not able to solve/comprehend.

当我尝试进行操作时API调用(在Graph Explorer和我的Alteryx工作流程中):

When I attempt to make the API call (both in the Graph Explorer and my Alteryx workflow):

GET-> /v2.8/act_<Account_ID>/insights

我收到以下错误:

 "error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "BNevVWUExDg"
}

我必须承认造成这一错误的原因我实在不知所措...实际上,问题出在哪里...我缺少正确的令牌范围/权限?

I must admit that I am quite at a loss what is causing this error...and actually also exactly what the issue is...am I lacking the right scope/permissions for my token?

使用相同的令牌,我能够正确调用API以获取所有帐户列表( GET-> /v2.8/me/adaccounts )。

With the same token I am able to correctly call the API to get a list of all adaccounts (GET-> /v2.8/me/adaccounts ).

任何人都知道我的问题是什么?

Anyone have an idea what my issue might be?

推荐答案

您必须确保您的特定访问令牌具有ads_management或ads_read权限。

You have to make sure that your particular access token has the permissions ads_management or ads_read.

这是从Marketing API快速入门中获得的。

This is from the Marketing API quickstart. https://developers.facebook.com/docs/marketing-apis

这些API也有速率限制,但如果是这种情况,我希望会出现不同的错误。

There are also rate limits on those API's, but I would expect a different error if that was the case.

这篇关于Facebook Ads Insights API:(#3)应用程序无法进行此API调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 15:18