1. Help Center
  2. Mediavine Ads
  3. Customizing your ad experience

How to manually place ads in your content with content hints

Mediavine ads utilize ad logic in order to automatically place your in-content ads.

For in-content ads, our script wrapper will, in real time, parse through your content for each user to find the most optimal positions to place your ads. It uses guidelines set out by the Coalition for Better Ads, of which we are a member. Google is also a member and uses the Coalition's guidelines in their Ad Experience Tool.

The size of a desktop user's window or the physical device a user is using will determine where the script wrapper inserts your content ads. (For full information on how this works, please see this help guide.)

If you'd rather decide where in your content you'd like ads inserted, you can manually add a "hint" using HTML that our technology will look for. If it detects any of these hints, it won't use the logic to insert ads and will rely solely on these hints. 

 

Using your text editor, insert this code:

<div class="content_hint"></div>

 

If you insert this code three times, three ads will display. If you insert it four times, four will display, and so forth. 

 

If, for some reason, you need to have ads land in different spots based on whether your reader is on a mobile device or desktop computer, you can use the codes below:

<div class="content_mobile_hint"></div>
<div class="content_desktop_hint"></div>

 

To add the content hints using the Gutenberg editor, just add the code inside a Custom HTML block.

Important Notes

If you insert even one of these hints, the Mediavine script wrapper will not display in-content ads as usual. Ads will ONLY display where hints have been inserted. 

Please be sure not to place too many ads in your content. As a rule of thumb, when manually placing ads, you should not have more than one ad per screen view. This prevents your site from exceeding the limits set by the Coalition for Better Ad Standards - 30% ads and 70% content.

Contact us at publishers@mediavine.com or by using the blue chat bubble in the bottom right of your screen with any questions, or if you need any help