Campaign Targeting Rules

Targeting rules decide which clicks a campaign accepts, rejects or sends to a fallback, and whether conversions are rejected or held — based on geo, device, OS, ISP / carrier, connection type, day of week, hour of day, sub IDs and more.

Overview

Each rule is a set of conditions plus an action. When a click or a conversion comes in, the tracker checks it against the campaign's active rules and applies the action of the rule that catches it.

Common uses:

  • Accepting only the countries, devices or operating systems the advertiser pays for
  • Blocking an ISP, a carrier, an IP or a specific sub ID
  • Sending mobile or out-of-geo traffic to another campaign or a fallback URL instead of losing it
  • Day-parting: accepting traffic only during the advertiser's call-centre hours or on weekdays
  • Accepting only cellular traffic for carrier-billed or app-download campaigns
  • Holding conversions from a risky geo as pending for manual review

The same rules are available on Smart Links. Targeting rules are part of Advanced Targeting, included on the Scale plan and above and available as an add-on on lower plans.

How Rules Work

  • All conditions in a rule must match. Conditions inside one rule are combined with AND. To express OR — for example "Germany or Austria" — select both values in the same condition.
  • A rule with no conditions matches everything.
  • Only active rules are checked, and only for the event types where the rule has an action. A rule whose Action on Clicks is No Action is ignored for clicks.
  • With no rules, everything is accepted. A click that no rule stops is accepted too — there is no hidden "reject by default".

For clicks, each action works like this:

Action on ClicksClick matches the conditionsClick does not match
RejectRejectedCarries on to the next rule
AllowCarries on to the next ruleRejected
FallbackSent to the rule's fallback campaign or URLCarries on to the next rule
Allow is a gate, not a whitelist entry

An Allow rule rejects every click that does not match it. Two Allow rules — "Country is US" and "Country is CA" — therefore reject everything, because no click is in both countries. Put both countries in one Allow rule instead.

A rejected click is not necessarily lost: if the campaign has fallbacks set up for rejected traffic, the visitor is redirected there. The Fallback action is different — it sends matching clicks to the rule's own destination.

Creating a Targeting Rule

  1. Open the campaign's Targeting section and click New rule

    The section lists every rule with a summary of its conditions and its status. On a campaign with no rules yet, the button reads Create first rule.

  2. Name the rule and set its status

    Use a name that says what it does, for example "Block non-US mobile". Inactive rules are kept but not checked.

  3. Choose affiliate visibility

    Visible to affiliates shows the rule on the campaign page in the affiliate portal, so affiliates know the restriction before they send traffic. Hidden keeps it internal — useful for fraud blocks.

  4. Add matching conditions

    Country, Browser, Device type, ISP / Carrier and Operating system are always shown; add others from the "Add a condition" list. For each one choose Include (the value is one of those selected) or Exclude (the value is none of them), then pick the values. Leave a condition empty to ignore it.

  5. Choose the actions and save

    Set an action for clicks, conversions and impressions — or No Action for the ones the rule should not affect. For Fallback, choose a direct URL or another campaign.

Available Conditions

Values are compared case-insensitively. Text conditions (Source, Referral, IP, Aff Click ID, sub IDs, device IDs, User Agent) must match the whole value exactly; separate several values with commas.

ConditionWhat it matches
Country / Region / CityThe visitor's location, resolved from their IP address.
BrowserChrome, Safari, Firefox, in-app browsers and so on.
Device typeDesktop, mobile, tablet and other device classes.
Operating systemAndroid, iOS, Windows, macOS, Linux and others.
Device brandSamsung, Apple, Xiaomi and so on.
ISP / CarrierInternet service provider or mobile carrier, matched by its network (ASN) or name.
User languageThe browser's language setting.
Connection typeCellular / mobile data, WiFi / broadband, Corporate network or Dial-up. Read from the GeoIP2 Connection Type database, or from the connection_type link parameter. A click whose connection is unknown does not match an Include condition.
Day of weekMonday to Sunday — pick any combination.
Hour of dayOne or more hours, 00:00–00:59 to 23:00–23:59.
SourceThe source parameter on the tracking link.
ReferralThe full referring URL of the click.
IPThe visitor's IP address.
Aff Click IDThe affiliate's own click ID passed on the tracking link.
Sub Aff ID – Sub Aff ID10The affiliate's sub ID values on the tracking link.
Google ID, Android ID, iOS ID, Device IDDevice and advertising IDs passed on the link — useful for blocking or allowing test devices.
User AgentThe full user-agent string.
Day and hour use the campaign timezone

Day of week and Hour of day are evaluated in the campaign's timezone, or UTC when the campaign has none, at the moment the event arrives. On a conversion rule that means the time of the conversion, not of the click. Set the campaign timezone before you build a day-parting rule.

To block one source or sub ID without writing a rule, you can also use Blocked Sub-sources.

Rule Actions

A rule has three separate actions. Set No Action for any event the rule should not touch.

SettingOptions
Action on ClicksReject matching clicks · Allow only matching clicks · Fallback — send matching clicks to a Direct URL or another Campaign. If you set both, the campaign is used while it is live and the URL otherwise.
Action on ConversionsReject matching conversions · Pending — hold matching conversions for manual review · Approved — approve matching conversions even when the campaign or event requires manual approval. It only lifts that manual-approval hold: fraud checks, caps, lead validation and an advertiser's own rejected or pending status still apply. Like Reject and Pending, a matching Approved rule ends the conversion check, so other conversion rules are not applied to it.
Action on ImpressionsReject matching impressions, or Allow only matching impressions — the same logic as for clicks. Impression rules use this setting only, not the click action.

Several Rules on One Campaign

Rules are checked one after another and the first one that stops the click — a Reject or Fallback that matches, or an Allow that does not — decides the outcome. There is no priority setting, so build rules that do not overlap: if a click could be caught by both a Reject rule and a Fallback rule, narrow the conditions so only one of them applies.

One Allow rule per requirement. Put every accepted value of a condition in the same Allow rule.
Reject rules for exceptions. "Accept US, but not this ISP" is an Allow rule for US plus a Reject rule for the ISP.
No catch-all needed. Unmatched clicks are already accepted. A Reject rule with no conditions rejects every click.

Common Rule Examples

Accept US and Canada traffic only

ConditionCountry — Include — United States, Canada
Action on ClicksAllow

Send mobile traffic to a mobile campaign

ConditionDevice type — Include — Mobile, Tablet
Action on ClicksFallback → Campaign: your mobile campaign

Block one ISP

ConditionISP / Carrier — Include — the ISP to block
Action on ClicksReject
Affiliate visibilityHidden from affiliates

Day-parting: weekdays 09:00–18:00 only

ConditionsDay of week — Include — Monday to Friday; Hour of day — Include — 09:00 to 17:00 (nine hours selected)
Action on ClicksAllow

Clicks outside those hours are rejected, and go to the campaign's fallback if it has one.

Auto-approve a trusted affiliate on a manual-approval campaign

ConditionSub Aff ID — Include — the placement you trust
Action on ClicksNo Action
Action on ConversionsApproved

Conversions from that placement are approved straight away; everything else still waits for manual approval.

Review conversions from some countries by hand

ConditionCountry — Include — the countries to review
Action on ClicksNo Action
Action on ConversionsPending

Troubleshooting

  • Every click is rejected. Look for a Reject rule with no conditions, or several Allow rules that no single click can satisfy together.
  • A day-parting rule is off by some hours. Check the campaign timezone — without one, hours are in UTC.
  • A text condition never matches. Text values must equal the whole value; part of a referrer URL or user agent will not match.

To see which rule caught a particular click, paste its click ID into Click Lookup — the verdict links straight to the rule.

Rate this article
★ ★ ★ ★ ★
Thanks for rating!

Was this article helpful?