Subscribe to Our Newsletter

x

Ad-Targeting Variables

RebelMouse supports ad variables for Runner sites, allowing you to target ads to effectively increase ad revenue and support custom campaigns. Your ad tech can automatically serve different creative based on the ad variables you set.


Supported Ad Variables

  • Tags:
    • Example output for tag "dog" is "dog"
    • Example output for tag "dogs rock" is "dogs-rock"
    • Call this variable as {{tags}}
  • Sections:
    • Example output for section 'Marin' is 'marin'
    • Example output for section "Silicon Valley" is "silicon-valley"
    • Call this variable as {{sections}}
  • Page Type: page_type (homepage, sectionpage, postpage)
    • If on post page output will be "postpage"
    • If on home page output will be "homepage"
    • If on section page output will be "sectionpage," then the section variable will give you the section you are on
    • Call this variable as {{page_type}}

Example of How to Include Ad Variables in the Runner Editor

Ads are set up in Runners based on inserting the ad code, which usually requires:

  • A piece of header code (targeting is usually found here). Header code must be added within the ad header code element:

  • Ad tags placed where the ads themselves were shown.

Variables are actually passed in that ad code, so the client code needs to call those variables. Here's an example:

googletag.pubads().setTargeting('Sections', {{sections}}).setTargeting('Tags', {{tags}}).setTargeting('page-type', {{page_type}});

Examples of Output from a Client's Site

  • Home Page
    • http://7x7.com/
    • No tags or sections, but identified as "homepage."
    • Example:
    •  googletag.pubads().setTargeting('Sections', []).setTargeting('Tags', []).setTargeting('page-type', ["homepage"]);
  • Post Page
  • Section Page
    • http://7x7.com/san-francisco/
    • Section is "San Francisco" which we translated to "san-francisco." No tags are set up. Section is identified as "sectionpage."
    • Example:
    • googletag.pubads().setTargeting('Sections', ["san-francisco"]).setTargeting('Tags', []).setTargeting('page-type', ["sectionpage"]);

Note: Dynamic ads in articles are not supported for Runner sites.

You're almost there! Fill out the form below and a Rebel will contact you within one business day.

x

How to Add Google Forms to a Static Page

The easiest way to add forms to your RebelMouse site is to use Google Forms, which embeds right into the code of your page. Here's a step-by-step guide.

Keep reading... Show less

Create a Winning SEO Strategy with Related Articles

One of the staples of our Entry Editor is the ability to optimize your article for search while it's still in draft mode. You can customize the SEO headline, description, and even the URL slug of each post before it's published.

Keep reading... Show less

You're almost there! Fill out the form below and a Rebel will contact you within one business day.

x