1

I'm unable to set correct Email template for Mailchimp Campign.

I'm picking the Template_ID from the browser URL like: https://xxx.admin.mailchimp.com/email/templates/editor?id=`Template_ID`.

Is it correct?

        campaign_data = dict(
            type='regular',
            recipients=dict(list_id="SEGMENT ID", segment_opts=dict(
                saved_segment_id=segment_id)),
            settings=dict(
                subject_line=subject_line,
                from_name='FROM_EMAIL',
                reply_to='REPLY_EMAIL',
                template_id=<Template_ID>
            ),
            content_type="multichannel"
        )
        campaign = client.campaigns.create(campaign_data)

With the Above code, Campaign is getting created but it is not able to set correct template.

nishit chittora
  • 974
  • 13
  • 20
  • did you manage to solve this? i too am unable to assign a template to a campaign that was built with the 'New Builder' - it works if the template was built with the 'Classic Builder' - – wal Jul 31 '23 at 06:15

0 Answers0