AdSpirit is automatically capable of adapting banner and HTML Creative to the available width, and thereby override the default size of the Creative. Need to activate the following conditions must be met:
- Create an advertising space and bind them as a script or async. Script one (no integration as IFrame or AMP).
- Include the script URL, or attribute data-asm-params when async. Script parameter &responsive=1
- Change display:inline-block to display: block
- Remove async from async. Script Codes, specify the height and width from the code and replace it with width:100%.
- Make sure that all HTML Creative in the HTML code either have a width of 100% or that the superordinate element has an attribute in the format id="%creativeid%" (is automatically set by AdSpirit for HTML5 Creative during upload).
Example code async. script:
<ins class="asm_async_creative" style="display:block; text-align:left;
text-decoration:none; width: 100%" data-asm-host="..."
data-asm-params="pid=...&responsive=1"></ins>
<script src="http://.../adasync.min.js" async type="text/javascript"></script>