Create a draft campaign using a template

i want to create an application that will create and send campaigns using the API.

I have already created some templates and now i want to create and send campaigns that will be based on different templates depending on some criteria. I was thinking of using the "Creating a draft campaign" that is available on the API documentation but i have two questions.

1. How do i specify for each draft campaign which template will use.
2. On the example on the API documentation (http://www.campaignmonitor.com/api/campaigns/) there is a parameter "the URL's of the HTML" which seems to be obligatory. If i will be using an already created template how will i be able to get the URL of that template?

Thank you in advance
Andreas

jamesd jamesd, 5 years ago

Hey Andreas,

We don't currently support the use of templates when creating campaigns using the API. There has been a lot of discussion about this in the past, and we have a feature request to which I've added a vote for you.

As you may appreciate, the issue which complicates this, is how to allow people to define all the content of a template and/or edit the template content via the API.

JonJoyce, 5 years ago

Even simply selecting which template is to be used on a draft would be a much needed improvement to the API.


Jonathon Joyce

http://www.jonathonjoyce.co.uk/projects/campaign-monitor-cfc/
http://campaignmonitorcfc.riaforge.org/
kmcc049, 5 years ago

I have been using the API for approximately an hour and noticed this already. Seems like a big shortfall not being able to select a template for a campaign. My intended use was to create a few templates probably through the web api and then just present the sender a list of templates to choose from at send time.

What are the recommended work arounds? Create the html for the template and just upload everytime?

Thanks

JonJoyce, 5 years ago

kmcc049,

You can upload templates to the client via the API, then when the client goes to create a campaign, they get the option to upload HTML/Zip file OR select one of the pre-uploaded templates. Thats the only way you can do it at the moment.

Either that or recreate the RTE on your site and save off the html file and upload that (but then cant be ammended in CM).


Jonathon Joyce

http://www.jonathonjoyce.co.uk/projects/campaign-monitor-cfc/
http://campaignmonitorcfc.riaforge.org/
helena.lankreijer, 5 years ago

Jonathon Joyce,

We worked for a short while with the web version of Campaign Monitor and I am now trying to integrate it with a .Net application. Our idea is to create templates in the web-version and allow clients to preview and select them with the API, customize it to their content and send it.

I also run into the problem that the Campaign.Create method does not allow a template to be selected as start of a new campaign.

I would like to add a vote to make this possible in the API as well. This would be a logical step since the templates can be retrieved with the API. The next step is to start using them as is possible in the web-version.

Regards,
Helena Lankreijer

jszobody, 5 years ago

This continues to be a big oversight in CM's api. While they point out the complexity of this request, they ignore that much of their competition already supports this. It's a poor excuse. For a company (like ourselves) that is trying to build very tight integration with an app, this is massive.

digerata, 5 years ago

Please add my vote, as well.

SteVader SteVader, 4 years ago

Oh no. This really wasn't the answer I was looking for. Please add my vote to the feature request also.

indigoweb, 4 years ago

Please add my vote too.

roshodgekiss roshodgekiss, 4 years ago

Hi indigoweb, with pleasure. I'll keep this thread updated if this is something we include in a future release. Many thanks for writing in!


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
vivianspencer, 4 years ago

Please add my vote too

roshodgekiss roshodgekiss, 4 years ago

Done - welcome to the forums, vivianspencer! :D


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
kelek, 4 years ago

Add my vote, too.  I was able to work around this the hard way, creating a custom system that accepts uploaded Campaign Monitor templates, populates them, and when generating a Campaign creating both a static version and uploading a campaign-specific Template to Campaign Monitor.

roshodgekiss roshodgekiss, 4 years ago

Thanks for your vote kelek and welcome to the forums! I'll be sure to keep everyone updated on this :)


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
jamesd jamesd, 4 years ago

Hey all,

Sorry it's been a long time coming, but we're happy to announce that we've implemented the ability to create a campaign from a template in the Campaign Monitor API.

Please be sure to check out the API docs for full details. Hope that helps.

Also, you can subscribe to our API Announcements forum for regular API updates.

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