Routing and eligibility
A campaign’s routing_strategy decides which provider receives each lead. There are two strategies: highest_bid and priority.
Eligible providers
Section titled “Eligible providers”Before either strategy runs, Pingdex works out which of the campaign’s assigned providers are eligible. A provider is eligible when it is:
- assigned to the campaign,
- enabled, and
- compatible with the strategy: quote-capable for
highest_bid, commit-only forpriority.
If no provider is eligible, the delivery fails with no_eligible_provider. See Assigning providers.
Strategies
Section titled “Strategies”With highest_bid, Pingdex asks eligible quote-capable providers what they would pay for the lead, then sends it to the provider with the best offer.
- Pingdex requests a quote from every eligible provider at the same time.
- Each provider returns a bid, or declines, or fails to return a usable response.
- Pingdex selects the highest valid bid.
- Pingdex commits the lead to the winning provider only.
Tie-break: if two or more providers return the same highest bid, Pingdex breaks the tie using the provider UUID, so the result is deterministic rather than random.
If no provider returns a valid bid, the delivery fails with no_valid_bid. Quote outcomes are recorded as attempts, and the winning quote is marked as selected.
With priority, Pingdex sends the lead to a single provider: the first eligible one in the campaign’s provider_ids order.
- Pingdex looks at the assigned providers in order, priority 1 first.
- It skips any that are not eligible, for example because they are disabled.
- It commits the lead to the first eligible provider.
Choosing a strategy
Section titled “Choosing a strategy”| If you want to… | Use |
|---|---|
| Sell each lead to whichever buyer offers the most. | highest_bid |
| Send every lead to one preferred buyer, with others as the next in line when the preferred one is disabled or ineligible. | priority |
What routing does not do
Section titled “What routing does not do”Routing in Pingdex is intentionally simple. Campaigns do not currently have:
- caps, such as daily or per-provider limits,
- filters that send leads to providers based on payload values, or
- schedules that restrict when a provider receives leads.
If you need to stop a provider receiving leads, disable the provider. To pause everything, disable the campaign. See Campaigns.