Segments not being added when creating a new campaign via API

I am using the createsend-dotnet-1.0.15.dll in my console application and able to create the campaign with no issues, however the segments are failing to be added and including all subscribers on the list: Below is the code:

Campaign Campaign;
List<string> Lists = new List<string>();
List<string> Segments = new List<string>();
Lists.Add("123eaad782a560415a5522e6672c6188");
Segments.Add("23e6a056e40a71bd3e672fcfcaa19e99");
Segments.Add("1133d1a04a016bc2b44a3bb46e8d3809");

string result = Campaign.Create( "699f484ce4e3c207287b4b15db43769e", "Test Campaign15", "Test_Campaign15", "Gid", "g@brashers.com", "g@brashers.com", "http://saltlake.com/mailers/e-preview/11_e-preview/email_ad_100411.htm", "http://saltlake.com/mailers/e-preview/11_e-preview/email_ad_100411.htm", Lists, Segments);

Any help would be appreciated.

Phil Phil, 4 years ago

G'day,

Campaigns will be sent to the entirety of any included listIDs. Your Lists do include a ListID, so that's why it's being included. If you only want to include the segments, just leave Lists empty. The segmentIDs are sufficient by themselves.

Phil

automat, 4 years ago

Just lost 2 hours of my life. This should be explained in the create.php sample

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

Get started for free
1-888-533-8098