Skip to main content

Traffic Routing Rules

Rinku supports rule-based traffic routing with up to 30 custom token parameters. Rules determine which offer or path a click is sent to, based on conditions you define.

How routing works​

Traffic flows through a Rotation, which contains Rules and Paths:

Rotation
├── Rule (conditions)
│ └── Path
│ └── Offer (with weight)
└── Path (no conditions = default)
└── Offer (with weight)

Rule evaluation​

  1. Rules are checked top to bottom by position
  2. All conditions in a rule must match (AND logic)
  3. The first matching rule stops evaluation — its path is used
  4. If no rule matches, traffic goes to the default path

Available conditions​

ConditionDescription
IP addressExact match or CIDR block
Is bot?IS / IS NOT a crawler
Country, City, RegionWith autocomplete
Browser languagee.g. en, ru
BrowserChrome, Firefox, Safari, etc.
OSWindows, Android, iOS, etc.
Device nameSpecific device model
Device typemobile, desktop, tablet
Publisher ID{net_pid}
Network source{net_source}
Creative{net_creative}
Network campaign{net_campaign}
Token 1–30Any custom token value

Weighted distribution​

Within a path, you can add multiple offers with weights:

OfferWeightShare
Offer A7070%
Offer B3030%

You can also set weights at the path level to split traffic between multiple paths.

URL placeholders​

Use these placeholders in your Target URL or Postback URL — Rinku replaces them with real values on each click:

PlaceholderDescription
{click_id}Unique click identifier
{geo_country}Visitor country
{geo_city}Visitor city
{geo_region}Visitor region
{hdr_language}Browser language
{hdr_browser}Browser name
{hdr_os_name}Operating system
{hdr_device_name}Device model
{hdr_device_type}Device type
{net_pid}Publisher ID
{net_source}Network source
{net_creative}Creative ID
{net_campaign}Campaign ID
{net_external_id}External ID
{token_1} … {token_30}Custom tokens

Conversion Cap​

For each offer, you can set a Conversion Cap — a maximum number of conversions. When the limit is reached, traffic is automatically redirected to an Alternative Offer you specify.