Campaign ID

If I create a campaign through the UI, how do I find out the ID of the campaign to send it via the API. It seems the only way to find the campaign ID is only for SENT campaigns?

madhubabu, 8 years ago

hello snowman...

      this is the problem iam facing from last tendays.

Phil Phil, 8 years ago

Hey,

At this stage it's not something which is possible through the API, although both your voices have been added to the request queue.

Can you tell us a little more about the situation? Is it something that you'd require often, to create through the interface but send via the API?

Alex D, 8 years ago

The response for a successful campaign created is the ID of that campaign.

I use the PHP class

$result = $cm->campaignCreate( 
     $clientid,  
     $campaign_name, 
     $subject, 
     $from_name, 
     $from_email, 
     $reply_email, 
     $html_content, 
     $text_content, 
     $subscriber_listid, 
     $subscriber_segments 
);

echo $result;

$result will be the campaing ID you will need to send the campaign or to get stats on the campaign once its sent.

In my case I just save that to a database for later use..

But yes you should definitely be able to get a list of sent or unsent campaigns along with ID via the API


Alex Duffield - Owner
InControl Solutions
http://www.incontrolsolutions.com

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
1-888-533-8098