logo Ad Management System

Target ads by placement URL or referring URL

You can show an ad to visitors viewing a certain web page (placement URL) or coming from a certain web page (referring URL). You can block an ad from showing on a specific page or section. URL matching is done with a regular expression. Wildcard is supported for partial matching. For advanced matching, basic knowledge of regular expressions is required.

Example

This website has 2 main sections: Travel and Music. Here is the URL structure:

Objective: you do not want Travel ads to display in the Music section and vice versa.

Solution: Add a placement URL restriction on the Travel ads to prevent them from showing when the placement URL is one of the Music pages

The same instruction applies when you want to target ads by referring URL, which is the page where your visitors come from. Please note that referring information depends on the visitor's browser. Some browsers have settings and plugins to hide, block or modify this referring URL value.

Domain Matching

In order to restrict an ad to only display on certain domains and hostnames, you can use this special format:
DOMAIN(example.com|www.example.com)
In this example, the ad will not show if it is being served on a different site other than the two registered hostnames. Sub-domains are considered as unique hostnames.

Combining Multiple URLs

Instead of creating multiple URL restrictions, which can be time consuming, you can combine multiple URLs that share a similar pattern together. For example:
  1. Don't show to visitors viewing page http://example.com/signup/publisher
  2. Don't show to visitors viewing page http://example.com/signup/advertiser
  3. Don't show to visitors viewing page http://example.com/signup/ad-agency
  4. Don't show to visitors viewing page http://example.com/signup/ad-exchange
Since they share the same domain and path, they can be combined into one URL restriction:
  1. Don't show to visitors viewing page http://example.com/signup/(publisher|advertiser|ad-agency|ad-exchange)

Advanced Matching

Follow these instructions if you want to show this ad only on specific sections. For example: ad AdServer should only display when a visitor is browsing these 3 content sections: Marketing, B2B, or Advertising. A placement URL restriction can be created as follows:

If you would like to show only for any section with a valid numeric ID: *&SectionID=[0-9]+

The pipe sign | means any value between the parentheses. For example: (A|B|C) means A or B or C. For more technical usage, our ad serving engine uses regular expression to match the URL with your restriction.

To restrict the end of a string, add $ to the pattern. Example: http://example.com/travel$. This will only match the exact/full URL and will not match http://example.com/traveling or http://example.com/travel/. URLs with or without a trailing slash should be redirected to a consistent URL scheme.

Evaluation Priority

Learn more about the difference between Proactive Targeting vs. Passive Restriction setting.

Considerations

Example Setup

All rights reserved.