产品目录api失败 [英] product catalog api fail

查看:62
本文介绍了产品目录api失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要帮助.我尝试从 https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/ads-management/v2.3 开始创建的帐户.已通过电话批准.创建了一个企业帐户,一个广告帐户,一个应用程序,等等.将应用链接到广告accont,例如 https://developers.facebook.com/docs/marketing-api/access#standard_accounts .现在,我尝试创建产品目录.我一直都遇到相同的错误:

need help. I tried to start with https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/ads-management/v2.3 created account. Approved it by phone. created a business account, an ad account, an app, and so on. linked app to ad accont like this https://developers.facebook.com/docs/marketing-api/access#standard_accounts. Now i tried to create product catalog. i am getting same error all the time:

 The app is not whitelisted to use this API

我试图调用api来创建/列出/管理产品目录.当我这样做时,UI也一样-我可以创建产品目录&喂养.但通过API-所有时间都出错.我不明白它需要什么?

i tried to call api to cteate/list/managment product catalog. when i did, the same by UI - i can create product catalog & feed. but by API - all time error. i do not understand what it need?

现在尝试创建产品集:

GET /<product_catalog ID>/product_sets/?
access_token=<my access token from app with full rights get from exploer>
{
  "error": {
    "message": "(#200) The app is not whitelisted to use this API",
    "type": "OAuthException",
    "code": 200
  }
}

尝试创建相同的内容:

POST : /v2.3/<product_catalog ID>/product_sets/?access_token=<my access token from app with full rights get from exploer>&name=my new prod set
{
  "error": {
    "message": "(#275) Ad account cannot be determined for this request",
    "type": "OAuthException",
    "code": 275
  }
}

那么,要使它起作用,我需要进行哪些更改?

So what Are the changes i needed to make it work?

是否可以使api调用正常工作?

is it any way to made api calls work correctly?

p.s.我猜设置有问题-我在SDK中运行单元测试-情况相同.我已经阅读过有关游戏应用程序的问题-但我的应用程序不是游戏,因此我无法使用这种解决方案.如果有人了解白名单API想要什么-请帮忙!谢谢.

p.s. i guess something wrong in settings - i run unit tests in SDK - have the same situation. i have read about that problems with game app - but my app - is not a game, so i cant use solution in my situation. if some body understand what whitelist API want - please help! Thanks.

推荐答案

所链接的文档解释了该错误-除非您的应用被批准对API进行 Standard 访问,否则它只能访问特定数量的广告帐户,并且这些帐户需要在应用设置中预先配置

The error is explained by the documentation you linked to - unless your app is approved for Standard access to the API it can only access a specific number of ad accounts and those accounts need to be pre-configured in the app settings

许多业务管理器API不能使用,因为它们未绑定到这些预先指定的帐户之一(因此,无法为此请求确定 Ad帐户错误).

Many of the business manager APIs can't be used because they're not tied to one of those pre-specified accounts (hence the Ad account cannot be determined for this request error).

通常,除非您的应用程序可以访问 standard 级别,否则业务管理器API可能对您不起作用,但是如果某些应用程序是特定于帐户的,则可能会使用

In general, the business manager APIs likely won't work for you until your app has access at the standard level, though some will if they're account-specific

这篇关于产品目录api失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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