How To Wrap Your Ads

Ezoic Staff -

The first and most important step of setting up ad testing is to wrap all of your existing ads.

For the portion of traffic you send to Ezoic, this process will allow the system to test the existing ad locations along with new ad placements. 

For the portion of traffic directed to the original ad setup, the existing ad units will not be affected in any way.

If you have three existing ad units on your site, you will need to wrap three ads with Ezoic placeholder code. The rest of the placeholders added to the site will be empty i.e. they won't have any existing ad code within them. More info on creating placeholders here.

Steps:

  1. Log into your Ezoic Account
  2. Click the Ad Tester App icon                                                      
  3. Click create 'new display ad unit'
  4. Specify where on the page your ad is located. This is very important!
  5. Choose the sizes you want tested in that location
  6. Click 'Create' and copy the ad code generated by Ezoic
  7. Follow the example below to wrap your ad

Here is how wrapping works:

For example, let's say you create an Ezoic ad placeholder shown below:

 

<!-- Ezoic - above definition - under_second_paragraph -->

<div id="ezoic-pub-ad-placeholder-100">

<!-- optional: your normal ad code can go here -->

</div>

<!-- End Ezoic - above definition - under_second_paragraph -->

 

If you had an Adsense code on your site that looks like this:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<!-- 1-banner-1 -->

<ins class="adsbygoogle"

style="display:inline-block;width:468px;height:60px"

data-ad-client="ca-pub-123456789101112"

data-ad-slot="5744848575"></ins>

<script>

(adsbygoogle = window.adsbygoogle || []).push({});

</script>

 

You would simply place the code where the <!-- optional: your normal ad code can go here --> is in the Ezoic Code - so the final result would look like this:

<!-- Ezoic - above definition - under_second_paragraph -->

<div id="ezoic-pub-ad-placeholder-100">

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<!-- 1-banner-1 -->

<ins class="adsbygoogle"

style="display:inline-block;width:468px;height:60px"

data-ad-client="ca-pub-123456789101112"

data-ad-slot="5744848575"></ins>

<script>

(adsbygoogle = window.adsbygoogle || []).push({});

</script>

</div>

<!-- End Ezoic - above definition - under_second_paragraph -->

 

IMPORTANT!

It’s is your responsibility to ensure that each individual placement has the correct ad location selected AND that all of your placements comply with the Adsense Terms of Service.(https://support.google.com/adsense/answer/1346295?hl=en)

This includes no ads under pictures that mimic a slideshow, no ads too close to next buttons or menu items, no ads that look like content and no large ads on the first screen of mobile devices.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk