--- title: "Campaign Targeting" slug: "campaign-targeting" updated: 2026-04-14T03:09:07Z published: 2026-04-14T03:09:07Z canonical: "developer.upgrade.com/campaign-targeting" --- > ## Documentation Index > Fetch the complete documentation index at: https://developer.upgrade.com/llms.txt > Use this file to discover all available pages before exploring further. # Campaign Targeting ## Overview Campaign Targeting lets you deliver personalized promotional pricing to specific customer segments — such as loyalty-tier members or seasonal travelers — with minimal code. You send a campaign code in the order schema, and every `<up-from-pricing>` component on the page updates with the campaign-specific offer automatically. ## How It Works 1. **Create the campaign** in your CRM or campaign system (e.g., "August Special - Gold Membership"). 2. **Contact your Account Manager** to configure the campaign on the Flex Pay side. 3. **Send the campaign code** in the `campaigns` array of your `orderInfo` when calling `window.Uplift.Payments.load(orderInfo)`. 4. When a match is found, all `<up-from-pricing>` components on the page render with campaign-specific pricing and promotional messaging. ### Example Scenario Partner ABC wants to offer a special promotion to Gold Membership users for flights departing between August 1st and August 15th: 1. They create the campaign "August Special - Gold Membership" in their CRM. 2. Their Account Manager configures this campaign in Flex Pay. 3. When a Gold member browses the site, the partner sends the campaign code in the order schema. 4. The customer sees personalized promotional pricing on all `<up-from-pricing>` components. ## Schema Include the `campaigns` array in your `orderInfo` object. Campaigns are matched in priority order — the highest priority campaign takes precedence. ``` "campaigns": [ { "code": "ABC", "order": 1 }, { "code": "BCD", "order": null }, { "code": "CCC", "order": 2 }, { "code": "DDD", "order": null } ] ``` ### Priority Rules | `order` value | Behavior | | --- | --- | | Integer (e.g., `1`, `2`) | Explicit priority — lower number = higher priority | | `null` | Evaluated after all explicitly ordered campaigns, in array order | In the example above, the evaluation order is: `ABC` (1st) → `CCC` (2nd) → `BCD` (3rd) → `DDD` (4th). A customer can belong to **multiple campaigns simultaneously**. Flex Pay evaluates them in priority order and applies the first matching campaign — no additional logic required on your side. ## Combining with Promotional Financing Campaign Targeting works directly with `<up-from-pricing>`. When a campaign match is found and the campaign includes promotional terms (e.g., 0% APR), the component displays the corresponding badge automatically. ``` ``` If you need to suppress promo badges for a specific component, set `promo-disabled="true"`. See [Promotional Financing](https://uplift-docs.document360.io/docs/promotional-financing-v2) for details on promo codes and badge configuration. ## Reference For the full `campaigns` schema definition and additional examples, see the [Campaign Object documentation](https://uplift-docs.document360.io/docs/resource-objects#campaignobject).