使用New Builder模板通过API创建MailChimp营销活动未生效问题
问题根源
MailChimp的New Builder(现称Content Builder)与Classic Builder模板在API层面的处理逻辑完全分离:
settings.template_id参数仅支持Classic Builder创建的模板- 当传入New Builder模板ID时,系统无法解析其专属的结构化内容,会自动降级为Classic Builder模式,并生成带占位内容的空白活动
解决步骤
要使用New Builder模板创建营销活动,需调整API请求的参数结构:
先调用模板详情接口,获取New Builder模板的核心结构化内容:
GET /3.0/templates/{template_id}从返回结果中提取
content字段的完整JSON数据(这是New Builder模板的配置核心)在创建营销活动的请求中,移除
settings.template_id,新增content字段并填入刚才提取的模板内容,同时保留content_type为template:{ "type": "regular", "recipients": { "list_id": "..." }, "settings": { "subject_line": "a test", "preview_text": "", "title": "", "from_name": "...", "reply_to": "..." }, "content_type": "template", "content": { // 粘贴从模板详情接口获取的content内容 } }
完成以上操作后,创建的营销活动即可正确加载指定的New Builder模板,不会再自动切换到Classic Builder模式。
内容的提问来源于stack exchange,提问作者wal
相关产品推荐
相关产品推荐

