You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用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请求的参数结构:

  1. 先调用模板详情接口,获取New Builder模板的核心结构化内容:

    GET /3.0/templates/{template_id}
    

    从返回结果中提取content字段的完整JSON数据(这是New Builder模板的配置核心)

  2. 在创建营销活动的请求中,移除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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.10 03:42:46