For most advertisers surface types and asynchronous script code can be used in addition to synchronous scripts and iframes. The asynchronous script looks like this:
<ins class="asm_async_creative" style="display:inline-block; width:160px; height:600px;"
data-asm-host="meinadserver.adspirit.de"
data-asm-params="pid=123"></ins>
<script src="http://meinadserver.adspirit.de/adasync.js" async type="text/javascript" language="JavaScript"></script>
What is to be considered?
Thus advertising materials can be delivered to asynchronous advertising space this promotional material must first be explicitly marked as asynchronous (advertising materials Settings -> asynchronous -> Yes or Yes, via IFrame). With the setting "Yes" to indicate that this advertising material can be loaded asynchronously without problems (especially since it does not use document.write in JavaScript). With the setting "Yes, via Iframe" the ad before output is packaged in an iframe and can therefore without loading the asynchronous ad space script to disrupt synchronous content.
Changes from the synchronous script code
Compared to normal non-asynchronous script code the passing parameters in placement changes. these were simply appended to the script URL in normal codes, they must be listed with asynchronous advertising space in the attribute data-asm-params="...". The parameters are ranked here in URL spelling each other. Example:
<ins class="asm_async_creative" style="display:inline-block; width:160px; height:600px;"
data-asm-host="meinadserver.adspirit.de"
data-asm-params="pid=123&search=meinsuchwort&cookie_x=123"></ins>
<script src="http://meinadserver.adspirit.de/adasync.js" async type="text/javascript" language="JavaScript"></script>
Click counting with asynchronous AdSpirit advertising space
In asynchronous integrated advertising funds AdSpirit the control of the click counting two attributes are inserted in the <ins ..> element, this noisy data-asm-click and data-asm-encode. The value of data-asm-click, enter the click-through URL (not encoded). to be as the value of data-asm-encode a bear, how often encodes the data at the click URL passed (default is 0). Example:
Code before adjustments
<ins class="asm_async_creative" style="display:inline-block; width:160px; height:600px;"
data-asm-host="meinadserver.adspirit.de"
data-asm-params="pid=123"></ins>
<script src="http://meinadserver.adspirit.de/adasync.js" async type="text/javascript" language="JavaScript"></script>
Code after adjustments
<ins class="asm_async_creative" style="display:inline-block; width:160px; height:600px;"
data-asm-click="http://www.tracker.de/track.php"
data-asm-encode="1"
data-asm-host="meinadserver.adspirit.de"
data-asm-params="pid=123"></ins>
<script src="http://meinadserver.adspirit.de/adasync.js" async type="text/javascript" language="JavaScript"></script>
Dynamic loading / Scroll Into View / Lazy loading
Asynchronous advertising space support the ability only to load the ad when the ad space in the visible range appears. For example, the ad space could be placed on the page and therefore not visible in side start. Is the dynamic reloading enabled in your advertising space is so long not loaded until it is visible, so the user has scrolled in the example to the footer.
To enable this feature, please add the attributedata-asm-scrollintoview="true" in the <ins ...> element one. Example:
<ins class="asm_async_creative" style="display:inline-block; width:160px; height:600px;"
data-asm-scrollintoview="true"
data-asm-host="meinadserver.adspirit.de"
data-asm-params="pid=123"></ins>
<script src="http://meinadserver.adspirit.de/adasync.js" async type="text/javascript" language="JavaScript"></script>