在开发模式下通过应用创建Facebook广告素材 [英] Creating a Facebook ad creative from an app in development mode

查看:63
本文介绍了在开发模式下通过应用创建Facebook广告素材的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过以下请求在我的测试应用程序中的Facebook中创建广告创意(大部分内容取自Python SDK文档

I'm trying to create an ad creative in Facebook from my test app with the following request (pretty much taken from the Python SDK Docs here):

Message: Call was not successful
Method:  POST
Path:     https://graph.facebook.com/v2.4/act_somenumber/adcreatives
Params:  {'object_story_spec': '{"link_data":{"caption":"www.example.com","image_hash":"existing_hash","link":"http://example.com","message":"try it out"},"page_id":"some_page_id"}', 'name': 'AdCreative for Link Ad'}

但是,我得到以下答复:

However, I get the following response:

Status:  500
Response:
{
  "error": {
    "code": 100,
    "is_transient": false,
    "error_subcode": 1885183,
    "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.",
    "error_user_title": "Ads creative post was created by an app that is in development mode",
    "message": "Invalid parameter",
    "type": "FacebookApiException"
  }
}

现在,我已经看到

Now, I've seen a similar question, which states:

如果您希望通过处于开发模式的应用创建广告,则可以这样做,但是您要宣传的帖子必须由非开发模式的应用创建-即,如果您的应用处于开发模式,可以,前提是您要从页面的/promotable_posts端点升级现有的页面帖子,并且创建这些帖子的应用程序本身并不处于开发模式

If you want to create ads from an app which is in development mode, this is possible, but the post you're going to promote must have been created by an app which isn't in development mode - i.e if your app is in development mode it's OK provided you're promoting existing page posts from a page's /promotable_posts endpoint and the app that created those posts is not itself in development mode

我不是要制作广告;我只是想创建一个广告素材,然后再更新广告以使用该广告素材.使用开发应用程序中的链接数据创建新广告素材的正确方法是什么?我毫不费力地创建了与右栏广告相对应的广告素材,这是目标为网站点击"的新闻Feed/Feed广告.该广告实际上是通过广告管理器而非应用创建的.

I'm not trying to create an ad; I'm merely trying to create an ad creative and then later update the ad to use that creative. What is the correct way of creating a new creative with link data from a development app? I have no problem creating ad creatives that correspond to right hand column ads, it's the newsfeed / feeds ads whose objectives are "Website Clicks". The ad in question was actually created through the ad manager, not through an app.

推荐答案

解决方法只是创建一个虚拟应用并将其设置为公开可见.

The work-around is simply to create a dummy app and set it publicly visible.

这篇关于在开发模式下通过应用创建Facebook广告素材的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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