python3-facebook api:adCreative创建错误:“ error_subcode”:1487390

时间:2019-08-07 10:40:00

标签: python-3.x facebook-graph-api facebook-business-sdk

无法通过展示位置资产自定义创建adCreative。得到一个错误: “ error_user_title”:“广告资产供稿目标规则缺少Instagram发布者平台”,         “ error_user_msg”:“广告资产Feed包含目标规则,该规则在定位中具有instagram排名,但在发布商平台中没有instagram”, 但我输入了instagram_actor_id,为什么?

我已经能够成功创建没有自定义展示位置的广告。 我已尽力理解我的错误,但失败了。

下面是我的主要参数代码:

fields = []
params_creative = {
    "instagram_actor_id": "9****",
    'name': 'test_creative_{}'.format(datetime.datetime.now().strftime("%m%d %H:%M:%S")),
    # "call_to_action_type": "INSTALL_MOBILE_APP",
    'asset_feed_spec': {
        "videos": [{
            "adlabels": [{"name": "labelfb", }],
            "video_id": "2***"
        },
            {
                "adlabels": [{"name": "labelig", }],
                "video_id": "2**"
            }
        ],
        "bodies": [{"text": ""}],
        "link_urls": [{
            "website_url": "https://itunes.apple.com/app/id**",
            # "display_url": "<DISPLAY_URL>"
        }],
        "titles": [{"text": "Level Up"}],
        "ad_formats": ["SINGLE_VIDEO"],
        "call_to_action_types": ["WATCH_MORE"],
        "descriptions": [{
            "text": "111",
            # "title": "test_creative_title",
        }],
        "asset_customization_rules": [
            {
                "customization_spec": {
                    "publisher_platforms": ["facebook"],
                    "facebook_positions": ["instream_video", 'instant_article', 'feed', "story"]
                },
                "video_label": {"name": "labelfb"
                                }
            },
            {
                "customization_spec": {
                    "publisher_platforms": ["facebook"],
                    "instagram_positions": ["stream"]
                },
                "video_label": {"name": "labelig", }
            },
            {
                "customization_spec": {
                    "publisher_platforms": ["instagram"],
                    "instagram_positions": ["stream"]
                },
                "video_label": {"name": "labelig", }
            },
            {
                "customization_spec": {
                    "publisher_platforms": ["messenger"],
                    "instagram_positions": ["stream", "story"]
                },
                "video_label": {"name": "labelig", }
            }
        ]
    },
    "object_story_spec": {
        "instagram_actor_id": "9**",
        "page_id": "2**", }

0 个答案:

没有答案