Campaigns
A campaign is the distribution boundary in Pingdex. Every lead you submit belongs to exactly one campaign, and the campaign decides three things:
- Schema: which fields a lead payload should contain and how they are validated. See Lead schema.
- Routing: how Pingdex chooses which provider receives a lead. See Routing and eligibility.
- Assigned providers: which of your providers are allowed to receive leads from this campaign. See Assigning providers.
You submit a lead by sending its campaign_id to the API. Pingdex validates the payload against the campaign schema, then routes it to one of the campaign’s providers. See Submit a lead.
Campaign settings
Section titled “Campaign settings”| Setting | Purpose |
|---|---|
name |
A label for the campaign, up to 255 characters. |
description |
Optional notes, up to 2000 characters. |
enabled |
Whether the campaign accepts leads. Defaults to false. |
routing_strategy |
Either highest_bid or priority. |
schema |
The list of fields Pingdex validates on each lead. |
provider_ids |
The providers assigned to the campaign. For priority routing, the order matters. |
Enabled and disabled campaigns
Section titled “Enabled and disabled campaigns”New campaigns are disabled by default. A disabled campaign:
- rejects ingest:
POST /api/v1/leadsfor the campaign is refused, so no new leads are accepted. - stops delivery: leads that have not yet been delivered are no longer sent to providers.
Enable a campaign when its schema is final and at least one compatible provider is assigned. You can disable it again at any time to pause both ingest and delivery.
Next steps
Section titled “Next steps”Create a campaignSet up a campaign in the dashboard or through the API.
Lead schemaDefine and validate the fields in your lead payloads.
Assigning providersChoose providers and set their priority order.
Routing and eligibilityUnderstand how Pingdex picks a provider.