Rebel Runner: 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 "Silcon Valley" is "silicon-valley"
- call this variable as {{sections}}
- Page Type: page_type (homepage, sectionpage, postpage)
- if on post page output would be "postpage"
- if on homepage output would be "homepage"
- if on sectionpage output would be "sectionpage" then section variable would 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 here). Header code must be added with the ad header code element
- ad tags placed where the ads themselves where 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 client 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
- http://7x7.com/pizzando-brings-pizza-and-oh-so-much-more-to-healdsburg-1781779770.html
- section is "wine country" which we translate to "wine-country" and the post only has one tag "healdsburg". Post is identified as a "postpage"
- Example:
-
googletag.pubads().setTargeting('Sections', ["wine-country"]).setTargeting('Tags', ["healdsburg"]).setTargeting('page-type', ["postpage"]);
- Section Page
- http://7x7.com/san-francisco/
- Section is "San Francisco" which we translate to "san-francisco", no tags are setup. Section is identified as "sectionpage"
- Example:
-
googletag.pubads().setTargeting('Sections', ["san-francisco"]).setTargeting('Tags', []).setTargeting('page-type', ["sectionpage"]);
Note: Dynamics ads in articles are not supported for Runner sites.