Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io

    Control which offerings appear in different locations of your app

    What Are Placements?

    Placements are logical locations within your app where paywalls can appear. Instead of hardcoding which offering to show in each screen, you define placements in your BillDog dashboard and control which offerings appear in each placement remotely.

    Think of placements as named slots for paywalls:

    • onboarding - First app launch experience
    • settings_screen - Upgrade prompt in settings
    • feature_gate - When user tries a locked feature
    • upgrade_reminder - Periodic prompts for free users

    Why Use Placements?

    Location-Specific Targeting

    Show different offers in different app locations. Your onboarding screen might show an aggressive annual discount, while your settings screen shows a simple monthly option.

    A/B Test Per Location

    Test different offerings for the same placement. Change what users see without updating your app code, and compare results in each paywall’s own analytics.

    Simplified Code

    Your app just calls register("onboarding") (or getOffering("onboarding") for a headless web paywall). No conditional logic needed in your codebase.

    How Placements Work

    1. Define Placements in Dashboard

    Create placements in your BillDog dashboard (Dashboard → Placements):

    Placement: "onboarding"
    Display Name: "Onboarding Screen"
    Description: "Shown during first app launch"
    
    Linked Offerings:
    - Premium Annual (Priority: 10, Default: Yes)
    - Premium Monthly (Priority: 5, Default: No)

    2. Request by Placement in Your App

    Your app code requests an offering for a specific placement:

    // iOS (async/await)
    let result = try await BillDog.shared.register(
        placement: "onboarding"
    )
    
    // iOS (callback)
    BillDog.shared.register(
        placement: "onboarding"
    ) { result in
        switch result {
        case .purchased(let productId): print("Purchased: \(productId)")
        case .dismissed: print("Dismissed")
        case .entitled: print("Already entitled")
        default: break
        }
    }
    
    // Android (suspend)
    BillDog.register(
        placementId = "onboarding",
        activity = this
    ) { result -> /* PlacementResult */ }
    
    // React Native
    import { BillDog } from '@billdog.io/react-native';
    await BillDog.register('onboarding');

    3. The Server Resolves It

    Resolution runs in a fixed order, and the first thing that decides wins. It is worth reading once, because most “why is the wrong paywall showing” questions are answered somewhere in this list rather than in the placement itself.

    1. The placement is found, or created. An identifier that does not exist is created on the spot. register() never returns a 404 for a typo — it returns an empty placement you did not mean to make. A headless web read (getOffering()) is the exception: it creates nothing and throwsPlacementNotFoundError for an unknown identifier.
    2. An active campaign on this placement decides, if one matches. Campaigns outrank the placement’s own configuration entirely. Among active campaigns the most recently created one wins — there is no campaign priority here. Date windows, quiet hours and frequency caps can rule one out, and its audiences are tried in priority order with allocation bucketing.
    3. Otherwise the placement’s default link is used — the offering flagged as default, and that offering’s primary wall. A campaign that matched as a holdout stops here deliberately and serves nothing rather than falling through.
    4. A running experiment may swap the wall for a variant, if the experiment targets that wall. An impression is recorded for control and treatment alike.
    5. Targeting rules on the paywall can still rule it out. These are attached to the paywall, not to the placement’s offering links. With no rules everyone passes; with one or more you must match a rule and fall inside its rollout percentage.

    A withheld paywall keeps a gated placement locked. On a placement withRequires access on, a deactivated or never-published wall, a holdout, or a targeting rule that was fully evaluated and excluded the caller makes the call fail with a 403, and the SDK does not unlock. An empty response still unlocks, because the feature closure treats it as “nothing to gate with”. You get one when, for example, no wall is configured, the caller matched a rule but fell outside its rollout percentage, or a rule could not be evaluated — such as one on a segment, cohort or entitlement, or on a value your register() call did not send.

    Targeting rules read what you send, not what we store

    On this endpoint a targeting condition is evaluated against the values your register() call passed in, not against the customer record. An entitlement condition compares entitlement_id from those parameters — it reads no entitlement record at all — and an attribute condition reads the attributes on that same call, not the ones you persisted earlier with a set-attributes call. So a rule meaning “skip this paywall for entitled users” matches nobody unless your app passes the value on every request. This matters especially with Organizations, where a member’s entitlement is inherited from the organization and computed into their session token rather than written to their own record — but the same limitation applies to a personal entitlement.

    Default and Priority

    A placement links to one or more offerings. Exactly one of them is served — there is no per-offering rule evaluation at this step.

    • Default is the flag that decides. Set it, and that offering is the one used whenever no campaign has already answered.
    • Priority is only a tiebreak when nothing is marked default, and the lowest number wins.

    Always set a default explicitly. The dashboard assigns priority from the order you tick offerings, giving the first one you check the highest number — while the resolver takes the lowest. With no default set, the offering you ticked last is the one your users get. There is no priority field you can edit to correct this.

    Common Placement Patterns

    Onboarding Paywall

    Placement: onboarding

    When: First launch or after tutorial

    Strategy: Show most aggressive offer (annual with discount)

    Example: "Get 50% off annual - Limited time!"

    Settings Upgrade Prompt

    Placement: settings_screen

    When: User opens settings/profile

    Strategy: Subtle, simple monthly option

    Example: "Upgrade to Pro - $9.99/month"

    Feature Gate

    Placement: feature_unlock

    When: User tries locked premium feature

    Strategy: Highlight specific feature in offer

    Example: "Unlock Advanced Editor with Pro"

    Checkout/Export

    Placement: export_flow

    When: User attempts to export/save

    Strategy: Show value of removing limits

    Example: "Export unlimited files with Pro"

    Targeting Rules and Placements

    Targeting does not happen on the placement’s offering links. Rules attach to the paywall, and they are applied after an offering has already been chosen — so a rule can remove the paywall from a response, but it cannot pick a different offering. To serve different offerings to different people from one placement, use a campaign; that is the step that can choose.

    Gating. A placement’s Requires access switch is what makes the SDK treat the response as gated. It is a property of the placement, not of the wall behind it.

    Best Practices

    • Use descriptive identifiers: onboarding, not screen1
    • Start with 3-5 key placements: Don't over-segment initially
    • Always set a default offering: Ensures graceful fallback
    • Give each placement its own paywall: reporting is per paywall, so a shared wall makes two locations indistinguishable
    • Test different offers per placement: Onboarding might need aggressive pricing, settings needs subtle
    • Use metadata for UI customization: Badge colors, highlighted features per placement

    Implementation Examples

    iOS (Swift)

    // Register a placement (async/await)
    let result = try await BillDog.shared.register(
        placement: "onboarding",
        params: ["source": "welcome_screen"]
    )
    
    switch result {
    case .entitled:
        print("User already entitled — unlock features")
    case .purchased(let productId):
        print("Purchased: \(productId)")
    case .dismissed:
        print("Paywall dismissed")
    case .restored:
        print("Purchases restored")
    case .error(let error):
        print("Error: \(error)")
    default: break
    }
    
    // Usage in different screens
    try await BillDog.shared.register(placement: "onboarding")
    try await BillDog.shared.register(placement: "settings_screen")
    try await BillDog.shared.register(placement: "feature_unlock")

    .entitled reads the customer’s own entitlements

    The result means the required entitlement was found on the SDK’s current customer, so the paywall was suppressed. Entitlements a member inherits from a BillDog Auth organization are not on that record — the organization holds a customer record of its own, and the union of personal and organization entitlements exists only in the ent claim of the member’s session token. A member whose seat the organization pays for therefore never reaches .entitled, and gets shown the paywall. PlacementResult.Entitled on Android behaves the same way. When the access decision has to include inherited entitlements, read ent from the session token rather than the placement result. See Organizations.

    Android (Kotlin)

    // Register a placement (suspend function)
    BillDog.register(
        placementId = "onboarding",
        activity = this,
        params = mapOf("source" to "welcome_screen")
    ) { result ->
        when (result) {
            is PlacementResult.Entitled ->
                Log.d("BillDog", "Already entitled")
            is PlacementResult.Purchased ->
                Log.d("BillDog", "Purchased: ${result.productId}")
            is PlacementResult.Restored ->
                Log.d("BillDog", "Restored on the paywall")
            is PlacementResult.Dismissed ->
                Log.d("BillDog", "Dismissed")
            is PlacementResult.Error ->
                Log.e("BillDog", "Error", result.exception)
        }
    }
    
    // Usage in different screens
    BillDog.register("onboarding", this) { /* handler */ }
    BillDog.register("settings_screen", this) { /* handler */ }
    BillDog.register("feature_unlock", this) { /* handler */ }

    React Native (TypeScript)

    import { PaywallView } from '@billdog.io/react-native';
    
    // Declarative — renders a paywall by identifier
    function OnboardingScreen() {
      return (
        <PaywallView
          paywallIdentifier="onboarding"
          onButtonPress={(componentId, action) => {
            console.log('Button pressed:', componentId, action);
          }}
          onDismiss={() => console.log('Dismissed')}
        />
      );
    }
    
    // Or programmatic
    import { BillDog } from '@billdog.io/react-native';
    
    const result = await BillDog.register('settings_screen');

    What can go wrong

    • An active wall with no published phone-portrait layout fails the whole call. It returns an error rather than an empty result, and the SDKs deliberately do not unlock on a failed resolve. A wall that was never published starts inactive, so it comes back as no paywall — or as a 403 on a gated placement. Publish before you point a placement at a wall.
    • A typo becomes a placement. Because unknown identifiers are created on demand, a misspelling in your app produces a real, empty placement that resolves to nothing. If a placement you never made appears in the dashboard, that is where it came from.
    • Not every endpoint answers the same way. Only the placement resolve used by register() implements the full order above. The offerings-for-placement call is campaign-only and returns nothing when no campaign matches — it will not fall back to your default.

    There is no per-placement analytics view in the dashboard today. Paywall analytics are per paywall, not per placement.

    Next Steps

    1. Create 3-5 placements in your dashboard
    2. Link offerings to each placement with priorities
    3. Set one offering as default per placement
    4. Integrate placement fetching in your app
    5. Monitor analytics to optimize per-location strategy

    Was this page helpful?

    Or rate this page:

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.