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

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

问题描述

需要帮助.我尝试从 https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/ads-management/v2.3 开始创建的帐户.通过电话批准.创建了一个企业帐户、一个广告帐户、一个应用程序等等.将应用链接到这样的广告帐户 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?

附言我猜设置有问题 - 我在 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 无法使用,因为它们未绑定到这些预先指定的帐户之一(因此 无法为此请求确定广告帐户 错误).

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).

一般来说,除非您的应用具有标准级别的访问权限,否则业务管理器 API 可能对您不起作用,但如果它们是特定于帐户的,则某些 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天全站免登陆