-
Notifications
You must be signed in to change notification settings - Fork 0
Simple page
Peter Rood edited this page Dec 20, 2018
·
20 revisions
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 to a Yieldmo representative to send you the code via email.
<div id="1465861990777519642" class="ym"></div>
<script type="text/javascript">
!function (e, t) { if (void 0 === t._ym) { var a = Math.round(5 * Math.random() / 3) + '';
t._ym = ''; var m = e.createElement('script');
m.type = 'text/javascript', m.async = !0, m.src = '//static.yieldmo.com/ym.' + a + '.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>
- 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 not to 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.
After implementation, please sync up with your operations contact at Yieldmo so they may finalize the QA and launch process.