There are two ways to monetize your SmartView page when using a SmartFormat feed: 1) Inserting two sponsored links within your content; and 2) Inserting your own 300 x 250 display ad on the page via the feed. Here’s how each works:
- Add up to two <snf:sponsoredLink> elements and one <snf:adcontent> element inside a single <snf:advertisement> element of your SmartFormat feed.
- Within the <snf:sponsoredLink> element, <link> and <advertiser> are required. <title> and <thumbnail> are optional.
- You may add any javascript based display ad tag to <snf:adcontent> but many publishers use Google Ad Manager or DFP ad tags. Please see our FAQ on adding Google Ads to your SmartFormat feed.
1) <snf:sponsoredLink>
Specifies sponsored content which is displayed under this article as an element under <snf:advertisement> (House ads for subscriptions or conferences are also allowed).
- The name of the advertiser is required in the <advertiser> element.
- Specifies the name of the entity underwriting the sponsored content.
- In the case of a house ad, specify your company name.
- URL of the article in <link> is limited to one under your domain.
- <title> and <thumbnail>(aspect ratio 4:3, 320 x 240 px recommended) are optional.
<snf:advertisement>
<snf:sponsoredLink link="http://times.smartnews.com/sponsored/article1.html" thumbnail="http://times.smartnews.com/sponsored/image1.jpg" title="sponsored link 1" advertiser="Example Company"/>
</snf:advertisement>
2) <snf:adcontent>
Specifies an ad tag to be used in SmartView of this article as an element under <snf:advertisement>
- The largest ad tile supported is 300 x 250px. Smaller, 300 x 50 mobile banner ads not recommended.
- Many publisher partners use Google Ad Manage to serve their ad tags. Here’s an example of what that would look like in the SmartFormat feed.
<snf:advertisement>
<snf:adcontent>
<![CDATA[<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
<script>window.googletag = window.googletag || {cmd: []};googletag.cmd.push(function() {googletag.defineSlot("/00000000/samplesite.com/news-opinion", [300,250], "div-gpt-ad-0000000000000-0").setTargeting("Pos",["smartnews-feed"]).addService(googletag.pubads());googletag.pubads().enableSingleRequest();googletag.enableServices();});</script>
<div id="div-gpt-ad-0000000000000-0" style="width: 300px; height: 250px;"><script>googletag.cmd.push(function() {googletag.display("div-gpt-ad-0000000000000-0"); });</script></div>]]>
</snf:adcontent>
</snf:advertisement>
Both <snf:sponsoredLink> and <snf:adcontent>
And here is the sample code for both Sponsored links and a display ad together. Please make sure to place both <snf:sponsoredLink> and <snf:adcontent> inside a single <snf:advertisement> element.
<snf:advertisement>
<snf:sponsoredLink link="http://times.smartnews.com/sponsored/article1.html" thumbnail="http://times.smartnews.com/sponsored/image1.jpg" title="sponsored link 1" advertiser="Example Company"/>
<snf:sponsoredLink link="http://times.smartnews.com/sponsored/article2.html" thumbnail="http://times.smartnews.com/sponsored/image2.jpg" title="sponsored link 2" advertiser="Example Company"/>
<snf:adcontent><![CDATA[Script]]></snf:adcontent>
</snf:advertisement>