VerticalResponse API  

Go Back   VerticalResponse API > VerticalResponse API > Campaigns

Notices

Campaigns Discuss issues regarding any type of campaign method.

Reply
 
Thread Tools Display Modes
  #1  
Old October 21st, 2009, 12:08 PM
colin colin is offline
Junior Member
 
Join Date: Oct 2009
Location: Ottawa, ON
Posts: 16
colin is on a distinguished road
Default Launch Campaign...

Hi there,

I'm using the C# sample code to see how to launch a Campaign. Using the sample code, the campaign is launched. However, when I go in my web browser to that campaign, it says that the campaign "You didn't complete all the pre-launch steps...". Apparently the scheduled step is not set.

this is the C# code that is being used:

Code:
                    createEmailCampaignArgs objeCampaignArgs = new createEmailCampaignArgs();
                    EmailCampaign objeCampaign = new EmailCampaign();
                    objeCampaign.name = strName;
                    objeCampaign.type = strType ;
                    objeCampaign.template_id = iTemplateID ;
                    objeCampaign.from_label = strFromLabel;
                    objeCampaign.mail_date = Convert.ToDateTime (DateTime.Now.ToString("s")); //Date should be in ISO 8601 format
                    objeCampaign.send_friend = true;
                    objeCampaign.redirect_url = strRedirectURL;
                    
                    objeCampaign.template_idSpecified = true;
                    objeCampaign.contents = objeCampaignContent;
                    
                    //Set required parameters.
                    objeCampaignArgs.session_id = _sSessionId;
                    objeCampaignArgs.email_campaign = objeCampaign;
                    
                    //Try to create the campaign. 
                    iCampaignID = objVR.createEmailCampaign(objeCampaignArgs);
I'm looking to be able to fully launch a campaign from the API.

Thanks, colin
Reply With Quote
  #2  
Old October 21st, 2009, 02:17 PM
colin colin is offline
Junior Member
 
Join Date: Oct 2009
Location: Ottawa, ON
Posts: 16
colin is on a distinguished road
Default

Nevermind.

It seems to work now, although I'm not sure why.
Reply With Quote
  #3  
Old October 22nd, 2009, 02:09 AM
carlobee carlobee is offline
Member
 
Join Date: Jul 2009
Posts: 47
carlobee is on a distinguished road
Default

good to know it's already working.

Reply With Quote
Reply

Tags
campaign, launch

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2008 VerticalResponse, Inc.