Need An Email Marketing Solution For All Of Your Customers?

Partner With VerticalResponse!

getEmailCampaignDeclineHistory


The getEmailCampaignDeclineHistory() method returns a list of instances when a launched campaign has been declined for mailing by VerticalResponse staff (e.g., an email campaign is declined because it lacks a postal address). The decline history is provided as a list of timestamps and decline reasons.

Input

[vrtypens:getEmailCampaignDeclineHistoryArgs]

session_id [xsd:string] (required)
Your API session id.
campaign_id [xsd:int] (required)
The campaign whose decline history is being checked.

Output

[vrtypens:ArrayOfEmailCampaignDecline]
An array representing all the times this campaign has been declined including the date and reason for each one.

Examples

PHP

$vr->getEmailCampaignDeclineHistory( array(
	'session_id'  => $sid,
	'campaign_id' => $cid,
) );

Ruby

vr.getEmailCampaignDeclineHistory({
	'session_id'  => sid,
	'campaign_id' => cid,
})

Java

GetEmailCampaignDeclineHistoryArgs declineHistoryArgs = new GetEmailCampaignDeclineHistoryArgs();
declineHistoryArgs.setSession_id(sessionID);
declineHistoryArgs.setCampaign_id(campaignID);

EmailCampaignDecline[] emailDeclineHistory = vr.getEmailCampaignDeclineHistory(declineHistoryArgs);

C#/.NET

getEmailCampaignDeclineHistoryArgs declineHistoryArgs = new getEmailCampaignDeclineHistoryArgs();
declineHistoryArgs.session_id = sessionId;
declineHistoryArgs.campaign_id = campaignId;

try
{
    objVR.getEmailCampaignDeclineHistory(declineHistoryArgs);
}
catch (Exception e)
{
    System.Console.WriteLine(e.Message);
}

Perl

$vrapi->getEmailCampaignDeclineHistory( {
	session_id => $sid,
	campaign_id => $cid,
} );