When I try to enumerate all campaigns, if the campaign's status is 'cancelled', the convert from json will crash:
GetEmailCampaigns gecRes = ecApi.GetEmailCampaigns(null, null, "globalStats");
foreach (JObject c in gecRes.Campaigns)
{
GetEmailCampaign campaign = c.ToObject(); //crash here
}
There's probably missing 'Cancelled' in GetEmailCampaign.StatusEnum.
When I try to enumerate all campaigns, if the campaign's status is 'cancelled', the convert from json will crash:
GetEmailCampaigns gecRes = ecApi.GetEmailCampaigns(null, null, "globalStats");
foreach (JObject c in gecRes.Campaigns)
{
GetEmailCampaign campaign = c.ToObject(); //crash here
}
There's probably missing 'Cancelled' in GetEmailCampaign.StatusEnum.