You are here

function MCAPI::campaignUpdate in Mailchimp 7

Same name and namespace in other branches
  1. 5.2 MCAPI.class.php \MCAPI::campaignUpdate()
  2. 5 MCAPI.class.php \MCAPI::campaignUpdate()
  3. 6.2 MCAPI.class.php \MCAPI::campaignUpdate()
  4. 6 MCAPI.class.php \MCAPI::campaignUpdate()

Update just about any setting for a campaign that has <em>not</em> been sent. See campaignCreate() for details

Caveats:<br/><ul> <li>If you set list_id, all segmentation options will be deleted and must be re-added.</li> <li>If you set template_id, you need to follow that up by setting it's 'content'</li> <li>If you set segment_opts, you should have tested your options against campaignSegmentTest() as campaignUpdate() will not allow you to set a segment that includes no members.</li></ul>

Related

@example mcapi_campaignUpdate.php @example mcapi_campaignUpdateAB.php @example xml-rpc_campaignUpdate.php @example xml-rpc_campaignUpdateAB.php

Parameters

string $cid the Campaign Id to update:

string $name the parameter name ( see campaignCreate() ):

mixed $value an appropriate value for the parameter ( see campaignCreate() ):

Return value

boolean true if the update succeeds, otherwise an error will be thrown

File

./MCAPI.class.php, line 348

Class

MCAPI

Code

function campaignUpdate($cid, $name, $value) {
  $params = array();
  $params["cid"] = $cid;
  $params["name"] = $name;
  $params["value"] = $value;
  return $this
    ->callServer("campaignUpdate", $params);
}