让 'image_overlay_spec' 发挥 Facebook 动态广告创意的作用
Getting 'image_overlay_spec' to work Facebook Dynamic Ad Creative
我正在尝试让 'image_overlay_spec' 在创建 Facebook 动态广告时发挥作用。我已经获得了实际广告本身的模板,但我还希望能够在图片顶部显示信息。
object_story_spec: JSON.stringify({
page_id: process.env.FB_PAGE_ID,
template_data: {
description: '{{product.description}}',
link: 'REDACTED',
name: '{{product.name | titleize}}',
},
}),
image_overlay_spec: JSON.stringify({
text_template_tags: ['{{product.price}}'],
text_type: 'price',
theme_color: 'background_e50900_text_fffff',
}),
这就是我现在拥有的。 object_story_spec 按预期工作,但 image_overlay_spec 不工作。 API 没有任何关于如何使其工作的具体示例。
找到了!
object_story_spec: JSON.stringify({
page_id: process.env.FB_PAGE_ID,
template_data: {
description: '{{product.description}}',
link: 'redacted',
name: '{{product.name | titleize}}',
},
image_overlay_spec: JSON.stringify({
overlay_template: 'pill_with_text',
text_font: 'droid_serif_regular',
text_type: 'price',
position: 'top_right',
theme_color: 'background_e50900_text_fffff',
float_with_margin: 'true',
}),
}),
我正在尝试让 'image_overlay_spec' 在创建 Facebook 动态广告时发挥作用。我已经获得了实际广告本身的模板,但我还希望能够在图片顶部显示信息。
object_story_spec: JSON.stringify({
page_id: process.env.FB_PAGE_ID,
template_data: {
description: '{{product.description}}',
link: 'REDACTED',
name: '{{product.name | titleize}}',
},
}),
image_overlay_spec: JSON.stringify({
text_template_tags: ['{{product.price}}'],
text_type: 'price',
theme_color: 'background_e50900_text_fffff',
}),
这就是我现在拥有的。 object_story_spec 按预期工作,但 image_overlay_spec 不工作。 API 没有任何关于如何使其工作的具体示例。
找到了!
object_story_spec: JSON.stringify({
page_id: process.env.FB_PAGE_ID,
template_data: {
description: '{{product.description}}',
link: 'redacted',
name: '{{product.name | titleize}}',
},
image_overlay_spec: JSON.stringify({
overlay_template: 'pill_with_text',
text_font: 'droid_serif_regular',
text_type: 'price',
position: 'top_right',
theme_color: 'background_e50900_text_fffff',
float_with_margin: 'true',
}),
}),