Free White Paper: A Rebel's Guide to Building Organic Loyalty

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

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

x

How to Add Ads.txt to Your Site

What Is Ads.txt?

Ads.txt stands for "Authorized Digital Sellers," and is a simple, flexible, and secure method that publishers and distributors can use to publicly declare the companies they authorize to sell their digital inventory. The mission of the ads.txt project is straightforward: increase transparency in the programmatic advertising ecosystem. You can find more information on ads.txt here.

Keep reading... Show less