Rate Your Experience

How To Wrap Your Ads

Modified on: Sun, 20 Nov, 2022

Jump to:

Generating Ezoic Ad Code

Wrapping Your Existing Ads In Ezoic Code

Wrapping Native Ads And Link Units

Using Page Level Ads/Auto-ads?

Why Do I Need To Wrap My Ads?

Wrapping Your Ads For Ad Tester (Video)



The first and most important step of setting up ad testing is to wrap all of your existing ad code inside the Code generated by Ezoic. This converts your existing ads into Ezoic placeholders when users visit Ezoic versions of your site. Users who visit non-Ezoic versions of your site will see your original ad setup unaffected 

 

Generating Ezoic Ad Code


1. Log into your Ezoic Account and click the Ezoic ads tab.
Navigate to ad positions > Placeholders.

2. Select 'New placeholder' 

3. Configure the placeholder including (more detailed info on placeholder set up here):      a. Where on the page the ad is located?
   b. Which pages the ad will appear on
   
c. Which ad sizes you'd like in this location?

image


Once you've configured your placeholder, click Save and we'll generate some Ezoic placeholder code that looks like this: 

image



Wrapping Your Existing Ads In Ezoic Code

Once you have the generated code snippet, you need to go to the tool you used to insert the ad unit to your site, and wrap it in the Ezoic snippet we've generated for you so that this:


image


Becomes:

image


Wrapping Native Ads & Link Units

Remember to make sure, when wrapping ads from your original setup, that link units and native ads are identified as such. All you need to do is select Link, 'native horizontal', or 'native vertical' from this drop-down menu before selecting 'new placeholder':

image



Using Page Level / Auto Ads?


Ezoic will automatically detect and remove Adsense Auto ads or page-level ads on Ezoic versions of the site so there's no need to wrap them!



Why Do I Need To Wrap My Ads?

It's important to make sure that every one of your ads from your original setup has been wrapped in Ezoic placeholder code for the following reasons:


1. Optimization - Ezoic placeholders are designed to work together in order to provide you with the ad setup that is best for user experience, whilst maximizing your ad revenue. Leaving any ads unwrapped is limiting the system's potential! So make sure to wrap them all for the best return. 

2. Protection from Google Policy Violations - Ezoics machine learning engine will protect you from Google Policy Violations relating to ad density - we're unable to see any ads that aren't wrapped on the page so we can't guarantee protection from policy violations.


IMPORTANT!

It 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 the next buttons or menu items, no ads that look like content, and no large ads on the first screen of mobile devices.


Wrapping Your Ads For Ad Tester (Video)



Loading ...