Skip to content

Simple page

John Paul Barbagallo edited this page Jun 15, 2016 · 20 revisions

Integrating Yieldmo Ads

The placement code is designed to request the remote SDK library only once, even if there are multiple placements on the same page. Please reach out Yieldmo representative to send you the code via email.

Sample Placement Code

<div id="ym_1234567890" class="ym"></div>
<script type="text/javascript">
(function(e,t){if(t._ym===void 0)
{t._ym="";var m=e.createElement("script");m.type="text/javascript",
m.async=!0,m.src="//static.yieldmo.com/ym.min.js",
(e.getElementsByTagName("head")[0]||e.getElementsByTagName("body")[0]).appendChild(m)}
else t._ym instanceof String||void 0===t._ym.chkPls||t._ym.chkPls()})(document,window);
</script>

Notes

  • An engineer will need to add the code into the DOM container that we're expected to appear in. In the spirit of maintaining W3C standards and not creating duplicate elements with the same id attribute, this unique placement is to not be repeated on the same page. Doing so will result in the second duplicated placement never displaying an ad.
  • Yieldmo ad placements are meant to be used once per hard page refresh.