The downloadCompanyUnsubscribesAndBounces() method creates a file containing all the unsubscribe and bounce records available for the company calling it. This file is returned as a FileSpec in which the location field indicates a URL pointing to the generated file. To return only unsubscribe events that are not related to any campaign, set the “exclude_campaign_unsubs” argument to true.If your unsubscribes and bounces are linked to other companies within your organization, set the “include_org_linked_unsubs” argument to true to include unsubscribes and bounces from those other companies as well. The downloaded file will contain the email address, the event (UNSUBSCRIBE or BOUNCE), and the event date. If the “exclude_campaign_unsubs” argument is not used, the file will also contain a campaign id for those records that are associated with any campaign.This method is now capable of returning the event date in UTC instead of the user’s timezone, which greatly increases the execution speed. This is handled through a new boolean parameter: UTC_date.
Input
[vrtypens:downloadCompanyUnsubscribesAndBouncesArgs]
the caller’s company through an organization (default is false).
the “unsubscribe” link in a campaign (default is false).
This date/time should be specified in ISO 8601 format.
This date/time should be specified in ISO 8601 format.
Examples
PHP
$vr->downloadCompanyUnsubscribesAndBounces( array( 'session_id' => $sid, 'delimiter' => 'tab', ) );
Ruby
vr.downloadCompanyUnsubscribesAndBounces({ 'session_id' => sid, 'delimiter' => 'tab', })
Java
DownloadCompanyUnsubscribesAndBouncesArgs downloadCompanyUnsubscribesAndBouncesArgs = new DownloadCompanyUnsubscribesAndBouncesArgs(); downloadCompanyUnsubscribesAndBouncesArgs.setSession_id(sessionID); downloadCompanyUnsubscribesAndBouncesArgs.setDelimiter("tab"); DownloadCompanyUnsubscribesAndBouncesResult unsub_result = vr.downloadCompanyUnsubscribesAndBounces(downloadCompanyUnsubscribesAndBouncesArgs);
C#.NET
downloadCompanyUnsubscribesAndBouncesArgs objGetBouncesUnsubscribes = new downloadCompanyUnsubscribesAndBouncesArgs(); objGetBouncesUnsubscribes.session_id = _sSessionId; objGetBouncesUnsubscribes.delimiter = strDelimiter; objVR.downloadCompanyUnsubscribesAndBounces(objGetBouncesUnsubscribes);
Perl
$vrapi->downloadCompanyUnsubscribesAndBounces( { session_id => $sid, delimiter => 'tab', } );