Skip to main content
This guide will use self closing tags (<script /> instead of <script></script>) for simplicity. Most JSX and other modern compilers will accept this syntax. However, if you are working in raw HTML, you should manually close the tags.

Add the Rev script

Learn how to add our script to your site.
Add the following script to the <head> of your HTML file.
page.html
Add the following code
index.js
You may also consider adding the defer attribute to the script tag to optimize initial page load speed.
If wanting to test with another monetization provider per client, you can use the following code to conditionally load the Rev script.
index.js

Development

Add the dev attribute to the script to use dev placements.
Add the following script to the <head> of your HTML file.
page.html
Add the following code
index.js

Defining ad units

Add the data-ad attribute with the name of the placement to mark where you want ads to appear.

data-ad-size

You can customize the ad units by adding the data-size attribute with the desired size.

data-kv-{key}

Additionally, you can add targeting tags to the ad units by adding the data-kv-{key} attribute.