无法使用Facebook图形API创建广告素材 [英] Unable to create ad creative using Facebook graph api

查看:105
本文介绍了无法使用Facebook图形API创建广告素材的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试创建开发环境,以便在开发模式下获取广告见解.

We are trying to create dev environment for fetching ads insights in development mode.

我们能够实现以下项目,除了广告创意和广告;广告制作

We are able to achieve below items except ad creative & ad creation

  1. 沙盒广告帐户测试用户
  2. 访问令牌,并具有获得所需的广告见解权限.
  3. 使用Access令牌,我们可以创建广告集,广告系列和上传图片.
  4. 当我们尝试创建广告素材时,我们的反应不佳

响应: { 错误": { "message":无效的参数", "type":"OAuthException", 代码":100, "error_subcode":1885183, "is_transient":否, "error_user_title":广告创意发布是由处于开发模式的应用创建的," "error_user_msg":广告创意帖子是由处于开发模式的应用创建的.创建此广告必须在公共场合.", "fbtrace_id":"DtL9CQLDa1T" } }

Response: { "error": { "message": "Invalid parameter", "type": "OAuthException", "code": 100, "error_subcode": 1885183, "is_transient": false, "error_user_title": "Ads creative post was created by an app that is in development mode", "error_user_msg": "Ads creative post was created by an app that is in development mode. It must be in public to create this ad.", "fbtrace_id": "DtL9CQLDa1T" } }

&如果我们将应用设置为公共模式,则访问令牌将无效.

请求:

curl -X POST \
  'https://graph.facebook.com/v3.0/act_1966727743624778/adcreatives?access_token=<Token>' \
  -H 'Cache-Control: no-cache' \
  -H 'Postman-Token: bf7aeed1-0391-441c-be78-a62528ecdaac' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F 'name=blabla creative' \
  -F 'object_story_spec={ "link_data": { "image_hash": "10c7a77ac2d0d19ba36a246d6f9ea0dd", "link": "https://app.google.com", "message": "try it out"     },    "page_id": "<pageid>"}'

推荐答案

错误表示您正在尝试创建广告,其中广告素材基于应用程序在开发模式下创建的帖子. 因为创建该帖子的应用的开发人员以外的其他人都看不到该帖子,所以这是不允许的.

The error is saying that you're trying to create an ad where the creative is based on a post which was created by an app in development mode. Because that post won't be visible to anyone other than developers of the app which created the post, that's not allowed.

使用页面上已经存在的帖子创建广告,或确保用于创建帖子的应用程序不在开发模式下(请记住,您可以为广告使用隐藏/未发布的帖子)

Create the ad using a post which already exists on the page, or make sure the app you're using to create the posts isn't in development mode (remember, you can use a hidden/unpublished post for the ad)

同样,问题不在于应用在开发模式下创建的广告",而是广告正在推广的帖子是由应用在开发模式下创建的

Again, the problem isn't the 'ad' being created by an app in development mode, its that the post the ad is promoting was created by an app in development mode

这篇关于无法使用Facebook图形API创建广告素材的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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