MCAPI::campaignUpdate
Update just about any setting for a campaign that has <em>not</em> been sent. See campaignCreate() for details.
Caveats:<br/><ul class='simplelist square'> <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> <li>To clear/unset segment_opts, pass an empty string or array as the value. Various wrappers may require one or the other.</li> </ul>
Signature
public function campaignUpdate(string
$cid,
string
$name,
mixed
$value )
Parameters
$cid
— string- the Campaign Id to update
$name
— string- the parameter name ( see campaignCreate() ). For items in the <strong>options</strong> array, this will be that parameter's name (subject, from_email, etc.). Additional parameters will be that option name (content, segment_opts). "type_opts" will be the name of the type - rss, auto, etc.
$value
— mixed- an appropriate value for the parameter ( see campaignCreate() ). For items in the <strong>options</strong> array, this will be that parameter's value. For additional parameters, this is the same value passed to them.
Returns
- boolean
- true if the update succeeds, otherwise an error will be thrown