Starting AB campaigns
To start an AB campaign, you must use the NewslattersManager class. It exposes the StartTesting method. When the testing period ends, the winning campaign is sent to the subscribers in the mailing list that did not take part in the testing phase. For more information on this, see Specifying test sample percentage.
The following code starts an AB campaign through the Native API.
public void StartABCampaign( Guid abCampaignId )
{
NewslettersManager manager = NewslettersManager.GetManager();
manager.StartTesting( abCampaignId );
}
First, you initialize the NewslettersManager. Then, you call the StartTesting method to initiate the AB campaign.