Need An Email Marketing Solution For All Of Your Customers?

Partner With VerticalResponse!

setCampaignLists


The setCampaignLists() method is used to specify which lists a campaign should be mailed to when launched. If the campaign contains a merge field that’s not present in one of the lists, then a fault is thrown.

Input

[vrtypens:setCampaignListsArgs]

session_id [xsd:string] (required)
Your API session id.
campaign_id [xsd:int] (required)
The id of the campaign whose lists are being set.
list_ids [vrtypens:ArrayOfInteger]
The ids of the lists that are to be associated with this campaign. If omitted or set to empty, it will unset all lists currently associated with this campaign.

Output

[xsd:boolean]
The output is always true.

Examples

Perl

$vrapi->setCampaignLists( {
    session_id  => $sid,
    campaign_id => $cid,
    list_ids    => [ $lid, $lid2, $lid3, $lid4 ],
} );

PHP

$vrapi->setCampaignLists( array(
    'session_id'  => $sid,
    'campaign_id' => $cid,
    'list_ids'    => array( $lid, $lid2, $lid3 )
) );

Ruby

vr.setCampaignLists({
    'session_id'  => sid,
    'campaign_id' => cid,
    'list_ids'    => [ lid, lid2, lid3 ]
})