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:

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free