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
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.
Even simply selecting which template is to be used on a draft would be a much needed improvement to the API.
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?
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).
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.
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.
Please add my vote, as well.
Oh no. This really wasn't the answer I was looking for. Please add my vote to the feature request also.
Please add my vote too.
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!
Please add my vote too
Done - welcome to the forums, vivianspencer! :D
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.
Thanks for your vote kelek and welcome to the forums! I'll be sure to keep everyone updated on this :)
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.
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