Not able to enumarate CampaignDetail..

Hi , I am using following code...

AuthenticationDetails auth = new ApiKeyAuthenticationDetails(
            var general = new General(auth);
            var clients = general.Clients();

            Client oClient = new Client(auth, "XXXXXXXXXXXXXXXXXXXXXXXXXX");
            List<CampaignDetail> lstCampaigns = oClient.Campaigns().ToList<CampaignDetail>();

But lstCampaigns has count zero..While on site I have 1 or 2 Campaign present

roshodgekiss roshodgekiss, 4 years ago

Hi again Vishal, if these two campaigns are drafts (ie. have not been sent yet), you'll want to use our Drafts method instead. Campaigns is used to return sent campaigns only. Hope that helps!

Get in touch with us on Twitter:
We're also on Facebook:

Join 150,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free