-
Notifications
You must be signed in to change notification settings - Fork 0
Simple page
Muthu Arumugam edited this page Mar 11, 2016
·
20 revisions
If you have a Yieldmo login already set up, you may use Yieldmo's admin tool to generate the code on a per-placement, per-site basis. Alternatively, a representative from Yieldmo may hand deliver your code to you via e-mail. The placement code is designed to request the remote SDK library only once, even if there are 10 placements on the same page.
Sample Placement Code `
<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.m3.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 to not be repeated on the same page. Doing so will result in the second duplicated placement never displaying an ad.