Skip to content

Retrieve reports of your campaign

Shahriar Hossain edited this page Dec 10, 2015 · 1 revision

Following code demonstrate how you can retrieve the reports of your mailchimp account.

Add the following namespace

 using MailChimp.Api.Net.Services.Reports; 

Then create an object of MailChimpReports class.

    MailChimpReports reports = new MailChimpReports();
    var x = reports.GetOverviewAsync().Result;
    var x2 = reports.GetOverviewByCampaignAsync("--Your_CampaignId--").Result;
    var x3 = reports.GetAdviceAsync("--Your_CampaignId--").Result;
    var x4 = reports.GetClickDetailsAsync("--Your_CampaignId--").Result;
    var x5 = reports.GetClickDetailByLinkIdAsync("--Your_CampaignId--", "LinkId_goes_here").Result;
    var x6 = reports.GetAlllSubscribersInfoAsync("--Your_CampaignId--", "LinkId_goes_here").Result;           
    var x7 =reports.GetSpecificSubscriberInfoAsync("--Your_CampaignId--", "LinkId_goes_here", string subscriber_hash);
    var x8 = reports.GetDomainPerformanceAsync("--Your_CampaignId--").Result;
    var x9 = reports.GetEepUrlActivityAsync("--Your_CampaignId--").Result;
    var x10 = reports.GetEmailActivityAsync("--Your_CampaignId--").Result;
    var x11 = reports.GetEmailActivityBySubscriberAsync("--Your_CampaignId--","LinkId_goes_here");
    var x12 = reports.GetTopLocationAsync("--Your_CampaignId--").Result;
    var x13 = reports.GetRecipientsInfoAsync("--Your_CampaignId--").Result;
    var x14= reports.GetSpecificCampaignRecipientAsync("--Your_CampaignId--");
    var x15 = reports.GetReportForChildCampaignAsync("--Your_CampaignId--").Result;
    var x16 = reports.GetUnsubscriberListAsync("--Your_CampaignId--").Result;
    var x17 =GetUnsubscriberInfoAsync("--Your_CampaignId--", string subscriber_hash)

Note: subscriber_hash : The MD5 hash of the lowercase version of the list member’s email address