Skip to main content

Campaign Feeds

In order to understand how your admin can create and configure a campaign, feed please Check the page: 'FAQ Campaign Feeds'


Campaign feeds are useful when you need to automatise gathering a list of campaigns matching given conditions (e.g.: list of active campaigns that are linked to a specific website in Qualifio). Common usages are:

  • Generate dynamically a page that includes several campaigns
  • List all campaigns to be selected from your CMS

How to use campaign feeds?

Every campaign feed is available through an URL. The format of the response could be either:

  • XML
  • JSON

JSON response

"name":"Qualifio - Showcases"
"campaignTitle":"Vote for your Belgians of the year ",
"campaignType":"Sondage ou vote anonyme",
"creator":"Qualifio - Showcases"
"javascript":"<div id=\"qualifio_insert_place_110990\" class=\"qualifio_iframe_wrapper\"></div>\n <script type=\"text/javascript\">\n (function(b,o,n,u,s){\n var a,t;a=b.createElement(u);\n a.async=1;a.src=s;t=b.getElementsByTagName(u)[0];\n t.parentNode.insertBefore(a,t);o[n]=o[n]||[]})\n (document,window,'_qual_async','script','//');\n _qual_async.push(['createIframe', 'qualifio_insert_place_110990', '',\n '20', 'B7FDCFDA-C477-C4BA-3C54-728AD8594DE6', '100%', '2656', '', '', '', 'max-width:810px;margin:0 auto;']);\n </script>",
"html":"<iframe src=\"//\"\n id=\"qualifio110990\" class=\"qualifio_iframe_tag\" width=\"100%\" height=\"1200\"\n scrolling=\"auto\" frameborder=\"0\" hspace=\"0\" vspace=\"0\" style=\"overflow-x:hidden;max-width: 1200px;\">\n "

Parse the JSON response

Based on your use case you may iterate on each element of the channels[] array and read information required by your integration. For instance you may need the title of the campaign (channel.campaign.campaignTitle) and the campaign integration tag (channel.integration.javascript)

<script type="text/javascript">
function(data, status) {
let campaignsList = $("<div>");
$.each(data.channels,function(key, channel){

Supported request parameters


By design the number of campaigns included in a campaign feed response is limited to 100. If you need to retrieve the next 100 campaigns, you have to use the cursor parameter and provide the ID of the last campaign read from the previous request: cursor=1234567.


By design, campaigns in the feed are ordered in ascending order by their startDate (oldest to newest). To sort the campaigns in descending order (newest to oldest), use channelOrder=DESC. You'll end up with the latest campaigns showing first.