MailChimp API V3,为收件人创建带有高级过滤功能的广告系列

时间:2018-09-12 08:26:03

标签: php mailchimp-api-v3.0

我需要为广告系列使用高级过滤功能,但是我无法在API中找到有关如何使用此功能的任何信息。

现在,我的代码如下所示,但是我需要对条件进行分组,而文档(http://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/)却没有提到任何有关分组的内容,就像界面(https://mailchimp.com/features/advanced-segmentation/)一样

$campaign = array(
  'type' => 'regular',
  'recipients' => array(
    'list_id' => $this->list,
    'segment_opts' => array(
      'match' => 'all',
      'conditions' => array(
        array(
          'condition_type' => 'TextMerge',
          'op' => 'is',
          'field' => 'AUCTION',
          'value' => '1',
        ),
        array(
          'condition_type' => 'Language',
          'op' => 'is',
          'field' => 'language',
          'value' => $fLanguage,
        ),
      ),
    ),
  ),
  'settings' => array(
    'subject_line' => $fSubject,
    'title' => $fTitle,
    'from_name' => '***',
    'reply_to' => '***',
    'inline_css' => true,
  ),
);

有什么建议吗?

谢谢!

0 个答案:

没有答案