Developers

How to Set up Ad Tags + Custom HTML Elements

How to Set up Ad Tags + Custom HTML Elements

If you want to implement ads on a page, you can do so by clicking on the + ADD ELEMENT button in our Layout & Design tool:


This will open up a list of all of the elements you can use. This is where you can find Ad Tag:

Once placed in your layout, it will let you paste in the ad tags and separate them into code blocks for mobile, tablet, and desktop:

Here is the code for Ad Tags:

    <!-- /8118653087/SmartHome_Billboard --><div id='div-gpt-ad-1544633047645-0'><script>googletag.cmd.push(function() { googletag.display('div-gpt-ad-1544633047645-0'); });</script></div>

Setting up Ads Using a Custom HTML Element

If you need a custom implementation that includes styling of ads or specific <div> elements, then choose Custom HTML instead of Ad Tag in the + ADD ELEMENT menu:

You can use custom HTML for many purposes, and the use case we'd like to cover here is inserting custom ads to increase your site's revenue.

You can add a Custom HTML element inside any column you have in your layout. Here's an example of a sticky ad module inserted in a Post Page:

You can also name your Custom HTML elements to easily identify them. In the example above, we named our example "left rail sticky assign."

Here is the Custom HTML code:

    <!-- /8118653087/Homepage_Leaderboard --><div id='div-gpt-ad-1544631345264-0' style="text-align : center"><script>googletag.cmd.push(function() { googletag.display('div-gpt-ad-1544631345264-0'); });</script></div>

You can create different ad placements with custom HTML for mobile, tablet, or desktop by using the Conditional Content element:

Once the Conditional Content element is placed, you can place new elements inside of it, such as custom HTML or header code.

In the drop-down menu, you'll be able to choose if you want the conditional content to be placed for mobile, tablet, or desktop:

If you choose "Is Tablet" and you're in desktop view, or "Is Mobile" and you're in tablet view, and so on, don't worry — the element hasn't disappeared. It's only visible in the viewport when it's called to be displayed.

If you have any questions about Ad Tags or the Ad Dashboard, please contact your account manager.

What Is RebelMouse?
Request a Proposal

Where 
Websites Are Built

The Fastest Sites in the World Run on RebelMouse

Let’s Chat

new!

RebelMouse Performance Monitoring

Real-Time Core Web Vitals

Get Started
DISCOVER MORE

Our Core Features

Our platform is a complete digital publishing toolbox that's built for modern-day content creators, and includes game-changing features such as our:

animate
Layout and Design toolLayout and Design tool on mobile
animate

Why RebelMouse?

Unprecedented Scale

RebelMouse sites reach more than 120M people a month, with an always-modern solution that combines cutting-edge technology with decades of media savvy. And due to our massive scale, 1 in 3 Americans have visited a website powered by RebelMouse.

120M+ Users
550M+ Pageviews
17+ Avg. Minutes per User
6+ Avg. Pages per User

Today's Top Websites Use RebelMouse

Thanks to the tremendous scale of our network, we are able to analyze a wealth of traffic data that informs our strategies and allows us to be a true strategic partner instead of just a vendor.

upworthyindy100Vault12No Film SchoolRawStoryResponsible StatecraftPrideRolling Stone QuebecPremierGuitarPenskeINN Educate Brand ConnectThe FulcrumGZEROOkayafricaBrit+CoPaper MagazinePowerToFlyNarcityCommonDreamsAllBusiness

What Clients Say

We’re here to help you weigh and understand every tech and strategic decision that affects your digital presence. Spend less time managing everything yourself, and more time focused on creating the quality content your users deserve.

Case Studies

A Team Built Like No Other

RebelMouse employs a unique, diverse, and decentralized team that consists of 70+ digital traffic experts across more than 25 different countries. We have no central office, and we cover every time zone to ensure that we’re able to deliver amazing results and enterprise-grade support around the clock.

Our team is well-versed in all things product, content, traffic, and revenue, and we strategically deploy ourselves to help with each element across all of our clients. We thrive on solving the complex.

Let's Chat