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="https://ad.mail.ru/static/ads-async.js"></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:

DFP: https://support.google.com/admanager/answer/372187...

AdFox: https://sites.help.adfox.ru/page/231/
Was this article helpful?
Yes
No