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 Clicks | Click matches the conditions | Click does not match |
|---|---|---|
| Reject | Rejected | Carries on to the next rule |
| Allow | Carries on to the next rule | Rejected |
| Fallback | Sent to the rule's fallback campaign or URL | Carries on to the next rule |
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
-
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.
-
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.
-
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.
-
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.
-
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.
| Condition | What it matches |
|---|---|
| Country / Region / City | The visitor's location, resolved from their IP address. |
| Browser | Chrome, Safari, Firefox, in-app browsers and so on. |
| Device type | Desktop, mobile, tablet and other device classes. |
| Operating system | Android, iOS, Windows, macOS, Linux and others. |
| Device brand | Samsung, Apple, Xiaomi and so on. |
| ISP / Carrier | Internet service provider or mobile carrier, matched by its network (ASN) or name. |
| User language | The browser's language setting. |
| Connection type | Cellular / 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 week | Monday to Sunday — pick any combination. |
| Hour of day | One or more hours, 00:00–00:59 to 23:00–23:59. |
| Source | The source parameter on the tracking link. |
| Referral | The full referring URL of the click. |
| IP | The visitor's IP address. |
| Aff Click ID | The affiliate's own click ID passed on the tracking link. |
| Sub Aff ID – Sub Aff ID10 | The affiliate's sub ID values on the tracking link. |
| Google ID, Android ID, iOS ID, Device ID | Device and advertising IDs passed on the link — useful for blocking or allowing test devices. |
| User Agent | The full user-agent string. |
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.
| Setting | Options |
|---|---|
| Action on Clicks | Reject 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 Conversions | Reject 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 Impressions | Reject 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.
Common Rule Examples
Accept US and Canada traffic only
| Condition | Country — Include — United States, Canada |
| Action on Clicks | Allow |
Send mobile traffic to a mobile campaign
| Condition | Device type — Include — Mobile, Tablet |
| Action on Clicks | Fallback → Campaign: your mobile campaign |
Block one ISP
| Condition | ISP / Carrier — Include — the ISP to block |
| Action on Clicks | Reject |
| Affiliate visibility | Hidden from affiliates |
Day-parting: weekdays 09:00–18:00 only
| Conditions | Day of week — Include — Monday to Friday; Hour of day — Include — 09:00 to 17:00 (nine hours selected) |
| Action on Clicks | Allow |
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
| Condition | Sub Aff ID — Include — the placement you trust |
| Action on Clicks | No Action |
| Action on Conversions | Approved |
Conversions from that placement are approved straight away; everything else still waits for manual approval.
Review conversions from some countries by hand
| Condition | Country — Include — the countries to review |
| Action on Clicks | No Action |
| Action on Conversions | Pending |
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.
Was this article helpful?
Help us improve this article. What kind of issue did you find?