Integration guide

Integration of advertising blocks on the site
Integrate the codes of myTarget advertising blocks on the website.

For direct integration you need to copy the js-code from the ad unit settings:
Sample JS-code to set up the ad unit

<script async src=""></script>
<ins class="mrg-tag" style="display:inline-block;width:300px;height:250px" data-ad-client="ad-917436" data-ad-slot="917436"></ins>  
<script>(MRGtag = window.MRGtag || []).push({})</script>
and place in the HTML of the site between the tags <body> and </body>, where the advertisement should be displayed.
For integration through the ad server, the ad unit code must be placed in the open auction setting the priority according to the price list. More detailed:


Was this article helpful?