> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apostra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Choose how your storefront gets supply

> Choose an ad-server connection, external sales agent, linked storefront, modular source, or storefront adapter based on the systems you already operate

Your storefront draws inventory from one or more **inventory sources**. The source type depends on what you
already run and which system books and reports the buys. This page helps you pick one. Each type has its own
page for the detail.

> [!NOTE]
>
> On a Storefront account, buyers call your storefront and the agent Apostra hosts answers them. An external
> sales agent **source** is a separate AdCP agent you connected as upstream supply, and buyers never see your
> sources. On a Listing account there is no hosted agent: your own sales agent is how buyers reach you. See
> [How you sell](https://docs.apostra.com/v3/seller-how-you-sell.md).

## Decision table

Start from what you operate today.

| You already run | Pick | `executionType` |
| - | - | - |
| An ad server Apostra connects: Google Ad Manager, FreeWheel, SpringServe, AdsWizz, Broadsign or Epsilon Retail Media (CitrusAd) | **Ad-server connection** | `MANAGED_SALES_AGENT`, or a modular recipe for CitrusAd |
| Your own AdCP sales agent, or a certified partner's | **External sales agent** | `AGENT` |
| Wholesale supply from another storefront listed on Apostra | **Linked storefront** | `LINKED_STOREFRONT` |
| Inventory and execution split across files, back-office systems, or people | **Modular source** | `MODULAR_SOURCE` |
| An expert provider that Apostra routes the whole storefront through | **Storefront adapter** | A hosted adapter source, `isAdapterSource: true` |

## The five source types

### Ad-server connection

Pick this when you own an ad server Apostra connects and want to sell its inventory through your storefront.
Apostra reads the ad server's existing ad units, placements and products, and buyers transact against your
storefront. An agent starts the connection with `save_inventory_source` and only `adServer`, which opens a
form where you enter the ad server's details and credentials. Credentials never pass through chat.

* [Connecting an ad server](https://docs.apostra.com/v3/seller-connect-ad-server.md) lists the supported ad servers and how the form works.
* [Why Apostra needs access to your ad server](https://docs.apostra.com/v3/seller-ad-server-access.md) says what each one asks for and why.

### External sales agent

Pick this when you already run an AdCP sales agent, or want to sell through a certified partner's agent. You
connect an agent by its `agentId`, never by an address alone. Find agents with `search({ "kind": "agent" })`:
a row with `relationship: "own"` is an agent your organization owns, and `partner` is a partner's shared agent.
Sending `save_inventory_source` with only that `agentId` opens the connection form.

* [Connect to a partner agent](https://docs.apostra.com/v3/seller-partner-connection-form.md) covers both kinds, who may connect them and
  what the form asks for.
* [Certified, exempt and beta partner agents](https://docs.apostra.com/v3/seller-partner-agent-certification.md) explains what certification
  means for a partner's agent.
* [Reading an inventory source](https://docs.apostra.com/v3/seller-inventory-source-facts.md) shows which agent powers a source and how it
  connects.

An external sales agent source can offer products in two ways, and an agent that supports both offers both. The
connected agent declares which. **Agent-supplied** means the agent answers buyer briefs and returns complete
products. **Storefront-built** means Apostra reads the agent's raw products and components and composes the
products your buyers see. [Source diagnostics](https://docs.apostra.com/v3/seller-source-diagnostics.md#product-paths) explains how Apostra
reads each path, including the AdCP version it needs for the Storefront-built path, and how to diagnose a
source that is not working.

### Linked storefront

Pick this when another storefront listed on Apostra should supply wholesale products to yours. Your storefront
forwards buyer briefs to the partner, and the partner approves each account you open with it. Linked storefronts
are in a pilot for storefronts Apostra has enabled. Anyone else who links or activates one is refused with
`FEATURE_NOT_ENABLED`. See [Link a partner storefront](https://docs.apostra.com/v3/seller-linked-partner-sources.md) for how to link,
activate and keep a margin.

### Modular source

Pick this when your inventory and execution do not come from one compliant sales agent. A modular source is
composed from modules such as an avails feed, a booking ledger, trafficking, status sync and reporting import,
and it presents one buyer-facing surface. For example, a publisher sends a periodic avails file, confirms
bookings by hand and uploads delivery reports after the campaign ends.

A modular source books a live buy only once it has an execution (trafficking) module. Adding an ad-server
module to a modular source is a change to that source, not a reason to add a second source. Add another source
only for a distinct inventory, authorization or operating boundary. Custom modular sources are part of the
Premium and Enterprise plans.

* [Modular inventory source lifecycle](https://docs.apostra.com/v3/seller-modular-source-lifecycle.md) explains the modules, stages and avails feed.
* [Modular source Pages](https://docs.apostra.com/v3/seller-modular-source-pages.md) covers the Pages and the V3 calls that create and read one.

### Storefront adapter

A storefront adapter is a hosted integration with a supported expert provider. Apostra routes the whole
storefront through it, and Apostra sets it up. There is no `save_inventory_source` input that creates one, and
it is separate from an external AdCP sales agent, which is upstream supply behind your storefront. Its source
carries `isAdapterSource: true` and appears in the app as an ad-server connection; see
[Reading an inventory source](https://docs.apostra.com/v3/seller-inventory-source-facts.md#is-the-source-an-adapter). Which of booking,
creative and reporting an adapter automates depends on the provider.

## Still unsure?

* You operate an ad server Apostra connects and want to sell its inventory: **ad-server connection**.
* You have an AdCP sales agent, or sell through a partner's: **external sales agent**.
* You want wholesale supply from another listed storefront: **linked storefront**, if your storefront is in the pilot.
* Your supply is stitched together from feeds and manual steps: **modular source**.
* Apostra already routes your storefront through an expert provider: **storefront adapter**.

## Add a source

An agent starts each connection with `save_inventory_source`: `adServer` for an ad server, `agentId` for a sales
agent, or `name` with `feedSource` for a modular source. A person completes the credential step in the form it
opens. In the app, Seller Setup shows **Add your first inventory source** on a new storefront and a **Connect**
menu with **Ad server**, **Sales agent** and, when your plan includes it, **Modular source**. A storefront can
hold several sources, with limits that depend on whether it composes products from them; see
[One storefront agent, or inventory agents](https://docs.apostra.com/v3/seller-how-you-sell.md#one-storefront-agent-or-inventory-agents).

## Related

> [card] [Modular inventory source lifecycle](https://docs.apostra.com/v3/seller-modular-source-lifecycle.md)
>
> Compose a source from avails, booking, and reporting modules

> [card] [Source diagnostics](https://docs.apostra.com/v3/seller-source-diagnostics.md)
>
> Read a source's health and product paths

> [card] [Glossary](https://docs.apostra.com/v2/concepts/glossary.md)
>
> Ad Server vs Sales Agent, side by side


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.