Supported Meta Tags
The Content.ad widget detects the title, image and URL for each page of internal content, but they can also be explicitly defined by using meta tags. Content.ad recognizes the following tags:

NameDescription
ca_titleThe title that should be used by the widget when displaying the page as a recommended article.
ca_imageA full path to the image that should be used by the widget when displaying the page as a recommended article.
ca_urlThe URL that should be used when sending users to a piece of content. By default the system uses the first URL it encounters but this can be controlled through the use of this meta tag.


Supported Widget Call Parameters

NameRequiredDescriptionDefault Value
idYesThe unique identifier for your account (API Key).None
widYesThe unique identifier for your widget.None
dYesThe unique identifier for your domain.None
contentRatingNoSets the maximum content rating of the ads that appear in the widget. Accepts “G”,”PG”,”PG-13″ and “R”.widget setting
serveNoWhether or not to serve a particular page as recommended content. Set to 0 on pages which should not be served as related content – such as a home or category page.1
lazyLoadNoWhether or not the widget should load after the rest of the page has completely loaded. When set to 0, the widget may load faster but it could also affect the performance of other elements on your page.0
pubdateNoThe date on which a page was published. This can be used to filter out old content that you don’t want to be served. Format: yyyy-mm-dd hh:mm:ssNone
blockIntlNoWhether or not the widget should return results for visitors outside of the US and Canada. When set to 1, the widget will not display for users outside of these countries.0
blockMobileNoWhether or not the widget should return results for visitors on mobile devices. When set to 1, the widget will not display for mobile users.0
blockTabletNoWhether or not the widget should return results for visitors on tablets. When set to 1, the widget will not display for tablet users.0
loadMultipleNoIn the event that the same widget will be dynamically reloaded on the same page without a page refresh, this must be set to 1. Most implementations will not need to set this.0
preNoAdds this value to the beginning of all links in the rendered widget. This is useful for adding macros when serving the widget through a third party ad service such as Google DFP.None
internalTargetNoSets the value of the “target” attribute on internal links (more info)._top
externalTargetNoSets the value of the “target” attribute on sponsored links (more info)._blank
exitPopNoWhen set to true, the widget will only appear when the user is about to leave the page. Required for Exit Pop widgets. More infofalse
exitPopMobileNoWhen set to true, the widget will only appear when the user scrolls up or reaches the bottom of the page. Required for Mobile Slider widgets. More infofalse
exitPopExpireDaysNoWhen widget is an exit pop, sets the frequency that the widget appears for each user. Accepts a decimal defining the number of days. When not set, the widget appears once per session. When set to 0, it appears on every pageview.None
clientIdNoAssigns a tracking parameter to any clicks generated from this impression. Accepts any string up to 64 characters.None
clientId2NoAssigns a tracking parameter to any clicks generated from this impression (separate from clientId). Accepts any string up to 64 characters.None

Please note: The parameters clientId and clientId2 should not be user-specific values.  More Info

Example

<div id="contentad01234"></div>
<script type="text/javascript">
  (function() {
    var params =
    {
      id: "821fb445-6e5e-47fd-9548-c91708f89a4a",
      d:  "dGVzdGluZzMyMS5jb20=",
      wid: "01234",
      clientId: "[your code to pull the utm_campaign value]",
      clientId2: "[your code to pull the page title]",
      cb: (new Date()).getTime()
    };

    var qs=[];
    for(var key in params) qs.push(key+'='+encodeURIComponent(params[key]));
    var s = d.createElement('script');s.type='text/javascript';s.async=true;
    var p = 'https:' == document.location.protocol ? 'https' : 'http';
    s.src = p + "://api.content.ad/Scripts/widget2.aspx?" + qs.join('&');
    d.getElementById("contentad01234").appendChild(s);
  })();
</script>

If you have a support question or bug report, please contact our support team.