如何访问 FB AdCreative Marketing API 中的 "Headlines" 和 "Newsfeed"?
How to access "Headlines" and "Newsfeed" in FB AdCreative Marketing API?
在 Power Editor 中,创建广告(基于流量的广告系列)时,有一个选项可以编辑 "headlines" 和 "news feed link description"(附上屏幕截图)。我在 Creative API 中找不到相应的字段。
不过,我可以添加 link 和消息。
这是一个示例代码:
link_data = AdCreativeLinkData()
link_data[AdCreativeLinkData.Field.message] = row['Message']
link_data[AdCreativeLinkData.Field.link] = row['Link']
link_data['Headline'] = row['Headline'] # <<<< NOT AVAILABLE
link_data['News Feed'] = row['News_feed'] # <<<< NOT AVAILABLE
link_data[AdCreativeLinkData.Field.image_hash] = img_hash
object_story_spec = AdCreativeObjectStorySpec()
object_story_spec[AdCreativeObjectStorySpec.Field.page_id] = config['page_id']
object_story_spec[AdCreativeObjectStorySpec.Field.link_data] = link_data
creative = AdCreative(parent_id=ad_account_id)
creative[AdCreative.Field.name] = 'AdCreative for Link Ad'
creative[AdCreative.Field.object_story_spec] = object_story_spec
creative.remote_create()
print(creative)
有什么关于如何访问字段的建议吗?可以使用 curl 来完成吗?
我发现以下字段会影响标题和动态消息:
link_data[AdCreativeLinkData.Field.name] = "test headline"
link_data[AdCreativeLinkData.Field.description] = "description test"
在 Power Editor 中,创建广告(基于流量的广告系列)时,有一个选项可以编辑 "headlines" 和 "news feed link description"(附上屏幕截图)。我在 Creative API 中找不到相应的字段。 不过,我可以添加 link 和消息。
这是一个示例代码:
link_data = AdCreativeLinkData()
link_data[AdCreativeLinkData.Field.message] = row['Message']
link_data[AdCreativeLinkData.Field.link] = row['Link']
link_data['Headline'] = row['Headline'] # <<<< NOT AVAILABLE
link_data['News Feed'] = row['News_feed'] # <<<< NOT AVAILABLE
link_data[AdCreativeLinkData.Field.image_hash] = img_hash
object_story_spec = AdCreativeObjectStorySpec()
object_story_spec[AdCreativeObjectStorySpec.Field.page_id] = config['page_id']
object_story_spec[AdCreativeObjectStorySpec.Field.link_data] = link_data
creative = AdCreative(parent_id=ad_account_id)
creative[AdCreative.Field.name] = 'AdCreative for Link Ad'
creative[AdCreative.Field.object_story_spec] = object_story_spec
creative.remote_create()
print(creative)
有什么关于如何访问字段的建议吗?可以使用 curl 来完成吗?
我发现以下字段会影响标题和动态消息:
link_data[AdCreativeLinkData.Field.name] = "test headline"
link_data[AdCreativeLinkData.Field.description] = "description test"