save_wholesale_product and read it with search and get. You can also do
the whole job in the Inventory Components Page, or describe an exact product to
your agent and let it call the same tool. This page covers both, and the field
rules for prices, formats, channels and audience declarations.
Three things called “product”
They behave differently, and only the first is yours to author:
A component is none of these. It is the raw ad-server material (ad units,
placements, targeting) you select from when authoring. You never author a
component.
Which sources hold products you can author
You author products only on a source Apostra manages for you, which means an ad-server-backed source. Pass itssourceId, as returned by
search({ "kind": "inventory_source" }), on every call. A source that does not
hold products you author refuses the write with refused: "not_our_system_of_record" and says why:
A source whose ad server is disconnected is refused with
source_disconnected.
Reconnect it first. A source still being set up upstream is refused with
source_not_provisioned. Read it with get and include: ["diagnostics"],
then retry.
Create a product
A create has noid. It needs name, channels and inventory with an
inventory.execution block. When you send pricingOptions you also send
deliveryType.
-
channelsare AdCP media channels. The tool refusesaudioandvideo, an empty list, and more distinct channels than a product can hold. The Inventory Selector asks you to choose the channels and preselects none, and Components asks for them when you edit a product that was saved with none. -
inventoryhas two parts.inventory.executionis how the ad server runs the product, and buyers never see it.inventory.publisher_propertiesis the publisher scope buyers see, as AdCP publisher selectors (publisher_domain,selection_typeand, forby_idorby_tag,property_idsorproperty_tags). Both are closed: the tool refuses a field it does not list. -
inventory.executionneeds anadapter(the source’s ad-server adapter) and carries theselectorsto sell and anyformat_bindings. A selector is aselector_type, anexternal_idand optionally anameandoptions. A format binding is aformat_option_idand optionally anadapter_config. The tool refuses a create withoutinventory.executionand itsadapterbefore it contacts the source, and names the field in the refusal. To find the selector ids, formats and publisher properties a source offers, see Browse what an ad-server source offers. -
A selector’s
optionsand a format binding’sadapter_configdepend on the ad server, so each is a list of{ "key", "value" }entries, one per setting.keyis the path to the setting: dotted names for nested objects,[n]for a list item, and["a.b"]for a name that holds a dot, a bracket or a space.valueis a string, a number, a boolean, a list of strings,nullor an empty object{}. These entries:send{ "creative_placeholders": [{ "slot_id": "leaderboard" }], "roadblocking": "as_many_as_possible" }to the source. A key listed twice, a key that is both a value and the parent of another, or a gap in a list is refused. -
getandsearchreturninventoryin the shape a save takes:executionunder the names above, eachoptionsandadapter_configas entries, andpublisher_propertiesas AdCP selectors. To change one setting, read the product, edit itsinventory, and send the wholeinventoryback. Setting names come back exactly as stored. -
A change may leave
executionout (or send it asnull) and keeps the stored one. Anexecutionit does send needs anadapterand replaces the stored block whole, so anyselectorsorformat_bindingsit leaves out are no longer on the product: send the complete block you want.publisher_propertiesis replaced whole the same way, and[]clears it. -
The older open
inventory, whereoptionsandadapter_configare objects and any other key is passed through, still works for now. Send entries instead: the open form will be removed. -
statusisdraft,activeorarchived. Adraftis hidden from buyers. The result states the status the source gave the product. Savestatus: "active"when the product is ready. -
fixed_pricecan be0. A$0fixed price is a complete price that buyers can see and book, for donated, house or added-value inventory. It is not the same as leavingfixed_priceout: an option with nofixed_priceis an auction and keeps listing with no floor and no price guidance. Afixed_pricecannot be negative. Thefixed_pricestill has to be in your settlement currency to list. A$0price makes the product visible and bookable at that price. A buyer books it with a$0budget and states the delivery owed as an impressions goal, which reaches you as the package’simpressions. -
min_spend_per_packageis AdCP’s least spend per package for a price option, in the option’s own currency. It is a number of 0 or more, and it works on a fixed or an auction option. Booking refuses a buy below it. A read returns it as a number. -
floor_priceis AdCP’s auction floor, in the option’s own currency. It is a number of 0 or more, and it belongs on an auction option: the tool refuses it beside afixed_price, because AdCP makes the two exclusive. A floor of0on acpmauction means no floor is declared. V3 sends the floor to the managed sales agent unchanged and never writes it intoprice_guidance, which AdCP keeps for the percentiles the source derives. After a write that carries a floor, the tool reads the product back. If the source kept a different floor, the call is refused with an error that names the option, the floor you sent and the floor the source kept. The write is not undone, so the product holds what the source kept, and the error says so: it names the product id, carriesdetails.outcomeofsaved_floor_unconfirmed, and setsrecoverytoterminal, which outranks itsSERVICE_UNAVAILABLEcode. Do not send the call again, which would create the product a second time. A read that cannot be made is refused the same way, never reported as saved. -
A create is validated against the source before anything is written. A
blocking finding stops the save and the result carries
saved: false,refused: "validation_failed"and the findings aserrors, each with acode, amessageand afieldwhen the source named one. Advisory findings do not block the save and come back aswarnings.
Check a create without saving it
AdddryRun: true to a create to validate it and write nothing. A valid
product returns saved: false, dryRun: true and valid: true. A change
cannot be dry-run, because a change carries only the fields you named and the
source validates complete products.
On a Google Ad Manager source, a valid dry run also returns
lineItemTargeting: the targeting every line item booked from the product
carries, exactly as Google Ad Manager will receive it. Use it to confirm a
product’s fixed targeting
before you make the product active.
Create a product in Inventory Components
Open Inventory Components to create a product without writing the call. The Page shows you the exact request before anything is saved, and both paths follow the same server contract.- Pick inventory. Choose the ad-server objects to package, such as ad units or placements from your synced inventory. If the package uses Google Ad Manager key-values for targeting, create signals from that ad-server targeting rather than putting raw key-values in the selector bundle. See GAM key-value signal targeting.
- Draft. Select components and choose Draft product from them (the button counts your selection). Any suggested matches you selected are accepted in the same step. Enter a name and an optional description, and choose the delivery options buyers can use. Each option shows practical details such as media type, dimensions and video length. Choose the publisher-property coverage the product declares from the options your ad server lists: everything sold under one publisher, specific properties, or specific tags. For a representation network, the publisher shown is the network and its represented sites are the individual properties. When exactly one option is available, the form preselects it. The Inventory Selector task offers the same form after you pick exact ad-server rows. When you start from Create product in Property Roster, the publisher requirement is already attached and only compatible delivery options are shown. Neither Page sends the selection back into chat.
- Validate. Choose Review product. This checks that the selected inventory can deliver every option before anything is saved, and surfaces field-level issues. See What validation surfaces.
- Confirm and create. Choose Create draft product only after validation
succeeds. That click saves the exact reviewed request as
draft. A draft is not visible to buyers until you activate it.
What the draft form asks for
- Formats. The form preselects formats by kind and size: a format whose size matches the selected components exactly, or a format of a medium the components declare, such as video, audio, native, or a display format without a fixed size. It never preselects a 1x1 image or display format. Review the preselection and change it before you create the product. Video formats ask for a length: 15 seconds, 30 seconds, or a custom whole number of seconds. Native in-feed lists the assets a native creative must supply: a title, an advertiser name and a landing page URL. The formats on offer are the ones your ad-server source says it supports. A format the source cannot serve is refused with an error on that format when you validate, create or save.
- Creative templates on Google Ad Manager. Google Ad Manager renders native in-feed, sponsored placement, image carousel and responsive formats through a creative template, and a product cannot be booked without the template’s ID. When you choose one of these formats on a Google Ad Manager source, the form asks for its Google Ad Manager creative template ID: the whole number Google Ad Manager shows for the template. It is required, and Review product stays disabled until it is a whole number. A 1x1 Google Ad Manager slot is a native slot, so the form preselects native in-feed for it. Other ad servers do not ask for a template.
- Channels. Choose the AdCP channels the product sells into, such as display, online video or connected TV. Buyers filter discovery by channel. The picker shows how many channels you have chosen and lists them by name. When every selected format is a display format, the form suggests display. Otherwise choose the channel yourself. See Make a product ready for proposals.
- Video placement types. When you choose a video format, the form asks where the product’s video ads play: In-stream, Accompanying content, Interstitial or Standalone, as defined under Video placement types. Tick as many as apply, or none.
- Delivery. Guaranteed or non-guaranteed.
- Pricing. The form offers only the pricing models your ad server can book, for example CPM, vCPM, CPC or flat rate for Google Ad Manager. CPM and vCPM can be sold at auction with a floor price or at a fixed rate. The other models are fixed-rate only. If your source does not report which models it accepts, the form offers CPM only and says so. Until your source answers, the pricing section shows that it is loading and you cannot review the product yet. If the source cannot be reached, the form says so and offers Try again.
- Price and currency. In this form every option needs a price: an auction
needs a floor price and a fixed option needs a rate, for a CPM auction as for
any other. (Through
save_wholesale_productacpmoption sent without afixed_priceis an auction that may carry no floor; see Prices, delivery type and formats insave_wholesale_product.) A fixed rate must be in your storefront’s settlement currency. A fixed price in any other currency never makes the product buyable. The currency field starts with your settlement currency. - Targeting buyers can set. The same section as the product editor. See Targeting buyers can set in Inventory Components.
FreeWheel products need an Ad Unit or Ad Unit Package
Choose at least one Ad Unit, Ad Unit Package, or both, to identify the FreeWheel delivery opportunities for a product. Content scope, such as a site, site group, series or video group, is a separate optional selection. Content scope alone cannot receive creatives. Inventory Components follows the selection rule returned by the connected FreeWheel source. It lists the direct ad units and packages that source makes available, so a network can work with either inventory model without a seller-specific setting. If neither type has eligible inventory, the form says so and blocks review. A failed inventory request produces a separate retryable error and also blocks review. Google Ad Manager, SpringServe and other adapters do not show or require this FreeWheel field.Edit a product in Inventory Components
In Inventory Components, Products, choose Edit to load the complete product definition before changing it. If the product cannot be loaded, the editor says so and offers Try again and Close instead of a form, and nothing about the product changes. The editor shows the channels and delivery type, the formats, the inventory selectors and placements, and every pricing option.- Channels. Choose from the AdCP channel list. A product keeps at least one
channel. Older products saved with
audioorvideoshow them as Streaming audio and Online video, the AdCP channels the source stores them as. A stored value that is not an AdCP channel is listed under the picker and stays as stored until you change the channels. After that, only the channels you choose are saved. - Formats. The same checklist as a new draft. Tick the source’s formats the product accepts, and choose a length for a video format whose length the source leaves to you. Saved formats keep everything else as saved. A saved format that the source no longer offers is listed below the checklist and stays on the product unless you remove it. On a Google Ad Manager source, a native in-feed, sponsored placement, image carousel or responsive format shows its creative template ID, which you can change. A saved format with no template ID shows a warning that it cannot be booked until you add one, and the product cannot be saved until you add the ID or remove the format. A product keeps at least one format.
- Delivery type. While a product has pricing options, the editor shows a
delivery type on each option, and the product’s own delivery type is set by
them: it is guaranteed when any option is guaranteed. The product-level choice
appears only for a product with no pricing options. A product has one delivery
type, so do not mix guaranteed and non-guaranteed options on the same
inventory; to sell it both ways, create two products. Through
save_wholesale_productyou send onedeliveryTypeon the product; see Prices, delivery type and formats insave_wholesale_product. - Pricing options. Each option is a card with the same fields as a new draft: delivery type, pricing model, fixed price or auction, the rate or floor price, and the currency. The models offered are the ones your source says it can book. If it does not say, only CPM is offered. Until the source’s pricing models have loaded, the cards are read-only and the editor will not save a pricing change. Other changes still save. A fixed price must be in your storefront’s settlement currency. Every option you change or add needs a price: a fixed option needs a rate and an auction option needs a floor. Options you do not change are saved exactly as they were, and when you change one, what the card does not show is kept, such as a minimum spend. You can add and remove options, but a product keeps at least one: with none, your source would replace every price with an auction option that has no floor. An option in a model the cards cannot show, such as CPP, is listed read-only and stays as saved unless you remove it.
- Option IDs. Your source assigns each option’s ID, so the IDs appear under Pricing options as the source reports them and are not edited. The source builds an ID from the option’s model, currency, fixed or auction pricing, and delivery type, so changing any of those gives the option a new ID. When two options share all four, the source also uses their prices to tell them apart, so changing either price changes its ID too.
- Video placement types. The same checkboxes as a new draft. Untick every box
to stop declaring them. A stored value that is not an AdCP placement type, such
as
outstream, is listed under the checkboxes and stays as stored until you change the placement types. Placement types are not offered for a product with no video format. - Inventory. The ad units and placements a product sells are listed with a Remove control. To add one, type its name or ad-server ID under Find inventory to add. The editor searches your ad-server source directly, so you do not need to load the inventory on the Components tab first. A match already on the product shows Already on this product. Each saved selector keeps its own settings, such as including child ad units. One that is not in the inventory loaded here is marked and stays unless you remove it. A product keeps at least one selector. Publisher coverage works the same way: remove a publisher, or add one of the coverage options your source offers. A product keeps at least one publisher, because a product with no coverage is hidden from buyers.
Create products from a Library sheet
This is in beta and is turned on for selected sellers first. If previewing a sheet answers that creating products from a sheet is not available for this account, it is not turned on for you yet. The Library shows the import option only when it is available to your account and you have permission to save wholesale products. The Material browse response reports this asobjects.productSheetImportAvailable. If access is turned off after you
confirmed a sheet, only products already being created are read back and
recorded; the remaining rows are not created and need a new confirmation once
access returns.
For a Google Ad Manager source, open the Library and choose Create products
from a sheet. Download its CSV template, choose the source, and upload a CSV
or Excel file with one worksheet. The Library shows every row and the source’s
validation result. One confirmation creates the passing rows as drafts; a
failure on one row does not stop the others. The file remains in the Library
with the products it created. Making the file Live alone creates no products
and changes no prices.
Use these column headers. Ad-unit IDs are the IDs from Google Ad Manager, not
names. Separate multiple IDs and display sizes with semicolons.
name, ad_unit_ids, publisher_domain, properties, formats and
channels are required. This template accepts all properties and display
sizes such as display 300x250; it reports other values as row errors.
status may be blank or draft. Leave cpm, currency and delivery_type
empty for an auction, or give a positive CPM, a three-letter currency and
guaranteed or non_guaranteed. Every created product is a draft.
An agent can send the same CSV as an inline Material with
metadata.documentType: "product_sheet" and the chosen source in
metadata.inventorySourceId. It reads the preview with get and
include: ["product_sheet_preview"]. If pending is greater than zero, call
get again with nextCursor in options.pages.product_sheet.cursor until the
preview is complete. Then read every result page using its nextCursor, and
send the returned sourceRevision
and previewToken in save_material.commitPreview after the seller confirms.
The preview expires after one hour.
If the preview stops making progress, start it again.
If the result has pending rows, repeat that same call until none remain.
Inline content is limited to 20,000 characters, roughly 150 rows of the
example above. Split larger sheets into Materials and preview and confirm each
one. Library uploads use the file upload limit instead.
Each product sheet may contain at most 500 nonempty data rows; split larger
sheets and preview and confirm each one.
If a product-sheet confirmation is interrupted while a row is being created,
resume the same confirmation so the Library can check and record its result.
Permanent deletion of the file is refused while any such row remains
unresolved; the refusal names the rows. Completed rows and rows that have not
started do not block deletion. Deleting a product sheet keeps the products it
created and their audit history.
Change a product
Pass the productid and only the fields you want to change. Every field you
omit keeps its stored value.
pricingOptionsare replaced whole. Send every price you want to keep. Any AdCP pricing model the source sells works; the rules below apply to each model alike.- A price change keeps the minimum spend per package and the auction floor the
product already has. The tool reads the stored options and carries these terms
over to the one new option with the same
pricing_modelandcurrency. Afloor_priceormin_spend_per_packageyou state on the option replaces the stored one. The floor stays only while that option is still an auction: afixed_pricereplaces it, and the minimum spend stays. - A floor that no new option carries or states is removed, and the save tells
you. For example, you can change a vCPM auction with a floor to a fixed CPM
option. The response says “Removed the auction floor of 2.5 on the vcpm USD
option.” and lists it in
droppedFloors. - A stored minimum spend with no single matching option in your list, when you
did not state
min_spend_per_packageon every option with that model and currency, refuses the change and names what would be lost. This happens, for example, when you change the currency, drop the option, or the product holds two options with the same model and currency. Keep a matching option, or state the minimum spend on each option. An option the source stores withparameters, such as a digital out-of-home flat rate, refuses every price change unless you send the parameters on the one matching option. This keeps the change from silently erasing the existing terms. - If you change prices without a
deliveryType, the tool reads the product’s stored delivery type and uses it. - A change with
idand no other field is refused as nothing to change. - A change cannot empty
channels. - The fields
includedAgeSignal,audienceEvidenceand the show and episode fields follow one rule: omit to keep, a value to replace,nullto clear. fixedTargetingchanges part by part; see Change fixed targeting.overlaySupportis kept when you omit it and replaced whole when you send it. Sendnullto make the product follow your ad server’s targeting again; see Targeting buyers are served.videoPlacementTypesis kept when you omit it, replaced whole when you send a list, and cleared by[]; see Video placement types.
Prices, delivery type and formats in save_wholesale_product
save_wholesale_product and the wholesale_product read use AdCP’s names for
prices, formats and channels, so what you save is what you read back.
Delivery type belongs to the product. AdCP puts delivery_type on the
product, not on each price. Set deliveryType (guaranteed or non_guaranteed)
once, and every price you send sells under it. A create that sends
pricingOptions must also send deliveryType. When you change a product’s
prices without naming a delivery type, Apostra reads the product’s stored
delivery type and uses it. To sell the same inventory both ways, create two
products.
The source assigns each price’s ID. You read a pricing_option_id back, and
you do not choose it. A read returns the stored options in the same form you
save them, with any other AdCP pricing field the source stored, such as
min_spend_per_package, and, for an auction option, the source’s floor_price
and price_guidance:
custom format is refused on every save, because the sales agent
cannot read one back. A format option already stored is returned as it was
stored, including one that would not pass the save’s checks today.
Publisher selectors and the Prebid declaration.
inventory.publisher_properties comes back with AdCP’s selector names
(publisher_domain, selection_type, property_ids, property_tags).
prebidIntegrationActive is returned as true or false, so you can confirm
whether the product declares the Apostra Prebid module.
Refused creates. When the source refuses a new product, each entry in
errors has a code and a message, and a field when the source named one. A
finding the source sent without a code carries INVALID_REQUEST.
Price a product in any AdCP pricing model
A price option names any pricing model AdCP defines:cpm, vcpm, cpc,
cpcv, cpv, cpp, cpa, revenue_share, flat_rate or time. The option
keeps AdCP’s names for the fields it takes: pricing_model, currency,
fixed_price, min_spend_per_package and, for supported time and DOOH flat-rate options, parameters. The tool checks each option against
AdCP’s own option for its model and names the field when one is refused.
An option with no
fixed_price is an auction. min_spend_per_package is the
option’s least spend per package, in the option’s currency. The other models
need more than these fields. Weekly time and DOOH flat_rate options can carry AdCP parameters when the managed sales agent and source both report support. cpv, cpp, cpa and revenue_share remain unavailable through this write.
floor_price instead of a fixed_price:
Weekly and DOOH prices
For a supported weekly option, sendparameters: { "time_unit": "week" } and a fixed price. Optional min_duration and max_duration count weeks. Weekly time pricing is limited to whole calendar weeks. Other time units and proration are not supported. Mock bookings are synthetic.
When your storefront’s agent composes a product from a priced source, it carries a price’s parameters into the offer unchanged, so a buyer reads the same terms you sent. A proposal shows a weekly price as, for example, fixed price: 60000 GBP per week; duration: 1-6 weeks. Time, CPV and CPP prices must carry their parameters. A time price with no time_unit (or an unknown one), or with min_duration longer than max_duration, is refused rather than completed with a guessed unit, and its product is not priced until the source is fixed. Prices with different parameters, such as weekly and monthly, are never combined into one offer.
A supported DOOH flat rate takes parameters: { "type": "dooh", "sov_percentage": 25 }, with a non-negative fixed price for the entire package. AdCP expresses share of voice as a time-weighted percentage from 0 to 100. Broadsign requires a positive fixed price and accepts share-of-voice values above 0 and at most 100; other sources keep refusing the option until they can honour it. Other DOOH guarantees are refused rather than dropped. A Demo Storefront’s mock currently refuses share-of-voice offers because it cannot enforce overlapping bookings on a product.
A source sells fewer models than AdCP defines
The tool refuses a price the source cannot sell, rather than save it and lose it. The refusal isVALIDATION_ERROR and names the option (pricingOptions[1]),
its model, the source and the reason. Nothing is written. It applies to a create,
a change and a dry run alike. Two things limit a source:
- Its ad server books only some models. Read
pricingModelsfromgetof the source withinclude: ["capabilities"](Browse an ad-server source). A source that reports none sellscpmonly.cpmis always accepted, so a call that prices only incpmmakes no extra read. For any other model the tool reads the source’s capabilities first, and a read that fails fails the call. - The managed sales agent stores and publishes only part of AdCP’s option.
It sells fixed
cpm,vcpm,cpc,cpcvandflat_rateprices and acpmauction. On a source that reports support it also accepts a fixed weeklytimeoption or a DOOH flat rate withsov_percentage. It does not carrycpa,revenue_share,cpvorcppthrough this write. It publishes acpcvorflat_rateprice only as a fixed price, and avcpmorcpcauction only with a floor or other price guidance. Give such an auction afloor_price, or keep the product’s stored auction of that model and currency in a change, whose floor and guidance carry over. Otherwise give afixed_price.
fixed_price on a
fixed option, floor_price and price_guidance on an auction, the minimum spend
as a number, and parameters when the source stored any, for example on a
digital out-of-home flat rate.
Take a product off the market, or delete it
status: "archived" stops buyers from seeing a product and is reversible. Save
status: "active" to bring the same product back.
delete: true removes the product from the source for good. The tool enforces
three conditions before it deletes:
- The product is
draftorarchived. Anactiveproduct is refused withrefused: "product_not_off_market"andnextAction: "archive_first". - You pass
confirmName, the product’s exact stored name. Read the product withget, show the operator its name, and send that name back. A wrong name is refused withname_confirmation_mismatch, and the stored name is not echoed to you. - The call carries no other field. A delete cannot also edit, and it cannot be dry-run.
action: "unchanged" with
code: "NOT_FOUND" instead of failing. Deleting does not touch the ad-server
inventory the product packaged. To sell that inventory again, create a new
product, which gets a new id.
The Components widget follows the same rule: it offers Delete only on a draft or
archived product, and asks you to archive an active product first.
Read the result
A successful save returnssaved: true with these fields:
A status of
active means the product is eligible. It does not prove buyers
can see it. Buyers read the storefront catalogue, which refreshes after the
save. Check buyer visibility with get once it has.
Find and inspect products
List a source’s products withsearch:
filter.productStatus is draft, active or archived. Each result has an
origin: ad_server for a product you author, modular_source for one a
modular source offers, and agent_source for one a third-party sales agent
publishes. You change the last two at their source.
A search without a sourceId lists the products of your ad-server and modular
sources and names the third-party sales agent sources it did not read. Pass one
of those as sourceId to list its products.
Read one product with get. It needs the sourceId:
inventory, channels,
formatOptions, pricingOptions, deliveryType and
prebidIntegrationActive. It also returns:
videoPlacementTypesandoverlaySupportSource, described under Video placement types and Targeting buyers are served;buyerVisibility, which isvisible, orhiddenwith the check that failed, such as a paused storefront, a catalogue that has not warmed, unresolved pricing, no price in a storefront currency, or a restriction to named buyer accounts;inferredChannels, a guess made from the formats, shown only when you have declared none. It is never stored; andcomposerCompleteness.missing, the facts the proposal composer still needs. The composer can pitch an active product only when it has a channel, a canonical format and a priced option with a currency and delivery type.
Read a third-party sales agent’s products
A third-party sales agent holds its own products. Apostra keeps the last copy the agent published and serves it to buyers, sosearch and get with that
source’s sourceId list it, including each product’s formatOptions and
prices. The copy is read-only: change a product in the agent, and
save_wholesale_product on this source is refused.
The result says when the copy was last fetched. If the latest fetch failed, the
products from the last good fetch are still listed and the result says the copy
may be out of date. If nothing has been fetched yet, or the agent publishes no
catalogue Apostra can read, the search names the source as one it could not
read. That is not the same as the agent having no products. A sales agent need
not report a product status, so status can be unknown. The count line says
how many products have no status and does not count them as inactive;
buyerVisibility says whether buyers can find each product. Each product comes
back with origin: "agent_source".
Seller-fixed and buyer-chosen targeting
A wholesale product is the inventory it sells, the targeting you fix on it, and the targeting a buyer may add. On a Google Ad Manager product:Fix targeting on a product
fixedTargeting holds the targeting every line item booked from the product
carries:
geo.geo_countriestakes ISO 3166-1 alpha-2 codes, AdCP’sgeo_countries. Every line item runs in these countries. A buyer who names no country gets them, and a buyer who asks for a country outside them is refused, with the allowed countries named. Only countries can be fixed today.key_valuesnames your Google Ad Manager custom-targeting keys and values by their ids, as your inventory sync holds them. Anincludeentry targets the key with any of its values; anexcludeentry targets the key with none of them. Every entry applies to every line item, together. Give each key one entry acrossincludeandexclude, listing all its values there.- A key or value your inventory sync does not hold is refused, naming it.
- A buyer’s own targeting is added on top of the fixed targeting. It can narrow a buy, never remove or widen what you fixed.
- Fixed targeting is for Google Ad Manager sources; other sources refuse it.
Change fixed targeting
A change tofixedTargeting works part by part. The parts are geo,
key_values.include and key_values.exclude.
- Omit a part to keep it. Send a part to replace it. Send it as
nullto remove it;key_values: nullremoves both lists. - A change to one part never removes another. Changing the countries or the includes keeps the exclusions you have stored.
fixedTargeting: nullremoves all of it. LeavingfixedTargetingout of a change keeps all of it.- Empty values are refused:
{}forfixedTargetingorkey_values, and[]forincludeorexclude. Onlynullremoves. - A key can be in
includeorexclude, not both. A change that adds a key to one list while your stored other list holds it is refused, naming the key. - Line items already booked pick up the product’s current fixed key-values the next time their targeting is changed.
overlaySupport is the product’s AdCP overlay_support: the targeting
dimensions a buyer may set on a package. It is a permission, not a value, and
never adds targeting to a buy. To allow no buyer geography, leave the geo
dimensions out of it. See Targeting buyers can book.
Before you make the product active, dry-run it and read lineItemTargeting,
which shows the countries, key-values and exclusions exactly as Google Ad
Manager will receive them.
What the tool does with GAM selectors
- A GAM selector’s
selector_typeisad_unitorplacement. Any other type is refused withunsupported_selector_type. A key-value is fixed targeting, not a selector type. - A selector’s
optionson GAM takes one key:include_descendantson anad_unitselector. Any other option key is refused withunknown_selector_option, naming the key. When you do not state it and the ad server says the ad unit has children, a save sets it totruefor you, and a value you send is kept as sent. See Ad units with children.
Targeting buyers can book
A product’s declared targeting, its AdCPoverlay_support, is what buyers can
set on a package for that product: dimensions such as countries, regions,
Nielsen DMA metros or a frequency cap, the metro and postal systems you list,
and any per-package limits. Set it with overlaySupport on
save_wholesale_product or in the product editor; the field rules are in
Targeting buyers can set in Inventory Components.
Buyers read it on the product, so a declaration is a promise: your fixed prices
and floors still apply to every selection you allow. Buyers see
signal_targeting_groups only on a product that offers them signals to add
(signal_targeting_allowed: true), as AdCP requires. Property signals do not
count, because Apostra manages them. A product from your Apostra-managed sales
agent offers buyers the signals your agent serves in get_signals, even when
the product lists none of its own or only property signals, so it keeps the
groups while buyers can see at least one of your signals there and is shown
without them when they can see none. To let buyers add signals to a product,
keep signal_targeting_groups in its overlaySupport.
Every media buy is checked against the declaration when the buyer saves a
draft, books, or changes targeting, including targeting the package inherits
from its campaign. This happens before the buy reaches your approval queue or
your sales agent. A package that targets a dimension the product doesn’t
declare, a metro or postal system it doesn’t list, or more values than a
per-package limit allows is refused, and nothing reaches you. The buyer sees
the refusal straight away, naming the package, the product and the targeting.
Buys already running are not re-checked; a later targeting change to one is.
A product on your managed sales agent that you haven’t narrowed publishes the
targeting your ad server can apply, and buyers are held to it as they are to a
declaration you made yourself. It follows your ad server as its support changes.
A product on any other source that declares no targeting of its own isn’t
checked this way. Your seller-wide targeting applies to it, and your sales agent
still refuses anything your ad server can’t apply.
What buyers see, and the errors they get, is in
Targeting each product offers.
Targeting buyers are served, and the ad server’s default
A product that declares nooverlaySupport follows your ad server: buyers are
offered what the ad server can apply, and that changes as the ad server’s
support does. A read says which case a product is in with overlaySupportSource:
overlaySupport always returns what you declared, so a product that follows its
ad server reads null. Sending a read back unchanged never turns the default
into a declaration of your own.
To read what buyers are served, get the product with
include: ["effectiveOverlaySupport"]:
effectiveOverlaySupport is your declaration when you made one, and otherwise
the ad server’s default, in AdCP’s overlay_support shape. It is null when
the source reports none, and for a product read from a modular source or a
third-party sales agent. It is on get only: an ad server default can be large
(a FreeWheel one is about 42 KB), so search and a plain get leave it out.
A declaration replaces the default whole, so declaring one dimension offers
buyers that one dimension and nothing else. Read effectiveOverlaySupport, edit
that declaration, and send it. To go back to the ad server’s default, send
overlaySupport: null. It removes your own declaration. A new product follows
its ad server until you declare targeting, so null on a create changes
nothing.
Targeting buyers can set in the editor
In Inventory Components the Targeting buyers can set section declares the sameoverlay_support dimensions as overlaySupport, most with their own exclude
option. The editor offers only the dimensions your ad-server source says it can
apply, and your sales agent refuses any other. In a new draft it starts with
everything your ad server can apply ticked, which is the ad server’s default. If
you change nothing, the draft declares no targeting of its own and keeps
following your ad server as its support changes. Untick anything you do not want
to sell, and add optional per-package limits. You can narrow targeting but not
clear it, so keep at least one option on. While your source’s capabilities load,
targeting waits, and if loading fails, choose Try again.
On an existing product the editor shows what buyers see now:
- Your ad server’s default. A product with no targeting of its own shows everything your ad server applies, ticked, with that label. Saving other changes leaves it following your ad server.
- Narrowing. Untick a dimension and save, and the product gets its own targeting: exactly what is ticked. It no longer changes with your ad server’s support. Ticking an option back before you save keeps the default.
- Chosen for this product. A product with its own targeting is labelled that way.
- Returning to your ad server’s default. On a product with its own targeting, choose Use the ad server’s default, then confirm. This is saved straight away, and only the product’s targeting changes. Targeting you ticked or unticked without saving is discarded, and your other unsaved edits still need Save changes. If your sales agent refuses, the editor shows its reason and the product keeps its own targeting.
- Limits. Countries, distance from a location and placement selection can carry a limit on how many values one package may target. Leave it blank for no limit.
- Metro areas, postal codes and places. These have to name the systems your source supports, such as Nielsen DMA for metro areas or US ZIP codes for postal codes. When your source reports its systems, metro areas and postal codes are offered and declared with those systems. Places need catalog versions that no source reports, so they are not offered. A declaration your source already stored is shown and kept exactly as it is.
- Details from your source. A dimension declared with details the editor cannot set, such as the countries a regions declaration covers, is shown with a note and kept exactly as stored.
- Dimensions your source cannot apply. If the product declares one, the editor lists it. It is removed when you change the targeting, because your sales agent would refuse it.
- Unchanged targeting is never re-sent, so a name or pricing edit leaves it as stored.
Video placement types
A product with video formats can declare the video placement types it delivers withvideoPlacementTypes. The values are AdCP’s four, which use the IAB Tech
Lab OpenRTB 2.6 plcmt definitions: instream, accompanying_content,
interstitial and standalone. It is seller-declared discovery metadata:
Apostra does not check it against the product’s formats.
- Omit it to keep the stored list. Send a list to replace it whole. Send
[]to clear it. Each value may appear once, and a value AdCP does not define is refused. getandsearchreturnvideoPlacementTypes, ornullwhen the product declares none.[]is the instruction to clear, not a stored value, so a read never returns it.
Sell shows and episodes
A podcast or video network sells its inventory by show and by episode. AdCP calls a show a collection and an episode an installment. Declare them on a product with four fields, each holding AdCP’s own object under AdCP’s field names:- Each field is checked against AdCP when you save, and a refusal names the field. When the product lists its shows, each episode’s show must be one of them, and an episode id can appear only once within its show.
- Omit a field to keep it, send a value to replace it whole, or send
nullto clear it.getandsearchreturn each one as stored, andnullwhen the product has none. - Buyers see the shows, the episodes and
collection_targeting_allowedon the product. A buy that names some of the shows is checked against them; see Buying some of a product’s shows. - Set
collectionTargetingAllowed: trueonly when your ad server can book some of the product’s shows on their own. No ad server that Apostra’s sales agent supports can do that today, so the source refusestrueand names your ad server. Leave itfalseand sell each show you want sold on its own as its own product. - Buyers choose among a product’s shows, not among its episodes. To sell
particular episodes, make a product for each episode, or for each run of
episodes, and list them in its
installments. - No ad-server source can hold inventory before a buy is booked yet, so the one
hold policy you can save is
{ "available": false }. A policy withavailable: trueis refused, and the refusal names the source. Buyers do not see the hold policy yet: AdCP marks it experimental, and storefronts serve products to buyers in an earlier AdCP version. What a hold covers and changes is in Sell shows, episodes and holds.
Buyer-facing AdCP compatibility
Author products with canonical delivery options. Inventory-feed payloads useformatOptions[]. The corresponding AdCP 3.1 buyer response uses
format_options[], with a stable format_option_id, a format_kind and any
format-specific params.
The storefront negotiates the response for the buyer’s AdCP version:
- AdCP 3.1 clients receive the canonical
format_options[]declarations. - AdCP 3.0 clients receive the required legacy
format_ids[]projection when the seller has published a valid mapping for the canonical option. - If a canonical option cannot be projected safely, validation fails closed. The storefront does not invent a legacy format identity.
demo and demo_disclosure in the response’s extension
metadata; Demo Storefront lists their exact fields.
Declare who a product reaches
A product can carry two optional declarations about its audience. Neither is in the Inventory Components editor yet. You set them withsave_wholesale_product,
as includedAgeSignal and audienceEvidence. A product on a modular source
cannot be written, so it carries neither.
Only state an included age signal for ages the product actually delivers. If the
age comes from a survey, a panel or a model, declare it as audience evidence
instead. The product is then not offered for a hard age request, and buyers who
only plan with age can still see the evidence.
Included age signal
A modelled basis (
inferred, or the Signal Manager methods survey_based and
assumptive) is refused with a pointer to audience evidence. user_verified and
user_provided are refused too, naming the AdCP basis to use instead. Buyers on
AdCP 3.2 see the declaration as an included signal on the product. See
Exact age targeting
for how a hard age request reads it.
Audience evidence
audienceEvidence is a list of AdCP 3.2 audience_evidence entries, sent exactly
as you want buyers to see them. Each entry’s content_digest must be the SHA-256
of its RFC 8785 canonical JSON without content_digest and attestation_refs. If
it does not match, the sales agent’s error gives the digest the entry actually
hashes to. A snapshot_id that one of your products already publishes cannot be
reused for different content. Buyers on AdCP 3.2 receive the entries on the
product as audience_evidence, exactly as you declared them. Buyers on earlier
versions never receive them, because those versions do not define the field.
Changing and clearing
On a change, omit a declaration to keep it, send a value to replace it whole, or sendnull to clear it. get returns both declarations in full. A search row
carries includedAgeSignal and an audienceEvidenceCount, and you read the
entries with get. If your sales agent does not support these declarations yet,
it refuses the save with its own error.
Make a product ready for proposals
The proposal composer can pitch an active product only when it has a channel, a canonical URL-free format, and a priced option with a currency and delivery type. Every product you create must declare itschannels: the AdCP media channels it
sells, such as display, olv, ctv and streaming_audio. Buyers filter
discovery, route proposal requests and report delivery by channel, so a product
without one is invisible to all three. Since October 8, 2026, a create without
channels is refused, and the error names the missing field. A channel code that
is not an AdCP channel is always refused. When you change an existing product,
omit channels to keep the ones it has, or send a list to replace them.
Inventory Components still accepts the legacy codes audio and video and stores
them as streaming_audio and olv. save_wholesale_product takes AdCP channels
only: it refuses audio and video, a create without channels, and a change
that sends an empty list, before anything is written.
Choosing a channel. A channel is the budget a buyer plans with, not the ad
format or the ad server that serves it. AdCP calls channels “planning
abstractions describing how buyers allocate budget.” Ask which budget a buyer
would spend on this product:
- In-app or on-site inventory of a commerce marketplace, such as a delivery or
ride-hailing app, is
retail_media, even when the creative is a banner served from Google Ad Manager. - Screens in cars, stations or venues are
dooh. - Video inside a commerce app is usually still
retail_media. Addolvonly if buyers would also plan it from an online video budget. - A publisher’s web and app banners are
display, its pre-roll and outstream video isolv, and streaming TV isctv.
display for an all-display product, as long as your storefront lists
display or lists no channels. Change the suggestion if the product sells
something else.
For a product saved before channels were required, Apostra still infers a channel
when its canonical creative format maps to exactly one composer-compatible
channel. Ambiguous formats, including common video and audio formats, remain
unclassified until you declare channels. When you read such a product with
get, channels lists only what was saved (an empty list when you declared none)
and the guess is in a separate inferredChannels field, so a guessed channel is
never mistaken for one you declared.
For Google Ad Manager, video_vast, image and html5 always need explicit
channels: each is compatible with several composer channels, so inferring one
would guess at the commercial placement. This fail-closed rule is intentional.
Pricing coverage alone is not a price the composer can quote. A positive fixed
price or platform-derived floor with its pricing-option ID, pricing model, ISO
currency, and guaranteed or non_guaranteed delivery type is quoteable. A bare
non-fixed rate without a fixed price or floor is not quoteable. The product read
reports any remaining request-independent composerCompleteness.missing facts
beside pricingStatus, so a source-reported priced status cannot hide a product
that still lacks a quoteable option. A particular RFP also needs a price in its
requested currency.
If GAM shows only the network
A connected Google Ad Manager source should expose the selector types and inventory rows that its sync can read, such as ad units, placements and custom targeting. Seeing only the GAM network, with no selectable inventory below it, is not a completed product-setup state. It does not mean you must first invent title or geography keys.- Confirm the source sync has completed and open the source’s diagnostics. See Source diagnostics.
- Check that the service account Apostra signs in with still has GAM inventory read access. See Google Ad Manager access.
- Read the source’s advertised selector capabilities, as described in Browse what an ad-server source offers. A selector type can be absent because GAM does not expose it for that network or because the integration does not support it. An advertised type with no rows is a sync or product defect.
- If the source is healthy but still exposes no inventory rows, contact Apostra with the source ID, last sync time, missing selector type and a screenshot. Do not work around it by creating unsupported targeting keys.
What validation surfaces
Validation and preview return two kinds of findings:- Blocking problems stop the product from being valid, for example a creative format your ad server does not recognize. Fix these before creating.
- Advisory warnings never block creating the product, but flag a gap worth
closing:
- A declared property was not found. You named a specific property (by id
or tag) that is not in the registry or on the publisher’s
adagents.json, usually a typo. The check skips a publisher that exposes no property list yet, so valid but unindexed inventory is not flagged. - Publisher has not authorized your agent. A declared publisher’s
adagents.jsondoes not list your storefront’s sales agent. The product still authors fine. Treat the warning as a publisher-owned authorization gap to fix before depending on that inventory. The check reads the publisher’s liveadagents.json, so a publisher that has not been crawled yet is not flagged. - Publisher format needs attention. The selected format may be missing or changed in the latest catalog, the catalog may be unavailable or stale, or its property scope may not cover the selected publisher properties. The product task adds the selected publisher format and property scope automatically so validation can flag these gaps.
- A declared property was not found. You named a specific property (by id
or tag) that is not in the registry or on the publisher’s
all coverage option, even when no
individual properties are listed yet. Specific property ids and tags appear only
when your ad server supplies them. If no coverage options are offered, the source
has not supplied any publishers. Refresh the source and check its publisher setup.
A publisher’s adagents.json status does not limit which listed coverage options
you can use to author a product.
Create or update several products at once
To add a set of products, for example from a spreadsheet of ad units, you do not approve them one by one. For a Google Ad Manager source, the Library sheet import does this in the Library. You can also ask your agent to make the first pass, for example “Set up my initial products for me” or “Here is a list of sections and ad units; bulk create products from it”. The agent inspects the source’s selector capabilities, browses representative ad-server rows, maps publisher, property and placement evidence into drafts, validates the full set, and asks you to approve the batch before it creates anything. To change a set of products, tell the agent which products to update and what to change. It maps the edits to the matching products and shows you what will change before asking for approval. For both:- One approval for the batch. You approve the full set once, not per product.
- It keeps going if one fails. If one product cannot be created or updated, the rest still are. At the end you get a per-product result showing which products succeeded and which failed, with the reason, so you can re-run just the ones that need attention.
Product status
Every product has a status:
Inventory Components and Inventory Selector create new products as
draft so you
can review them before activation. In chat, state whether you want a draft or an
active product. The confirmation shows the exact status before the write.
A get or search of a wholesale_product reports whether buyers can see it as
buyerVisibility:
visiblemeans buyer requests can reach the source, and the same product row served to buyers passed the lifecycle, pricing-coverage, product-id, bookable-price and storefront-currency checks. It describes a buyer whose request the source serves (its channels, countries and currencies) reading the public catalogue.hiddennames the failed check. For example, your storefront may be paused or the source not yet set up or eligible, the catalogue may not have warmed successfully, the product may be absent from it or past the first 200 products buyers read from one source, its pricing may be unresolved or stale, or none of its bookable prices may use a storefront currency.- A
nullstatus withcatalog_read_failedmeans the catalogue could not be read for the diagnostic. Retry the read rather than treating the live source product as visible or hidden.
GAM key-value signal targeting
GAM key-value targeting is supported through signals, not as raw product selector fields. For simple one-key mappings, browse thecustom_targeting_key and
custom_targeting_value ad-server targeting types and create a custom_key_value
signal. For composite logic, create a gam_targeting_groups signal. Groups are
OR’d together, criteria inside a group are AND’d together, and multiple values in
one criterion are OR’d by GAM for that key.
Before answering whether a source supports key-value targeting, read the source’s
signal capabilities. A GAM-backed ad-server source can advertise
mappingKinds[].mappingKind: "gam_targeting_groups" and API targeting types such
as custom_targeting_key and custom_targeting_value. If those capabilities are
present, key-value targeting is supported through signals, so validate and create
the signal.
Do not use GAM key-values as a substitute for publisher_properties. Use
key-values for source targeting where the source capabilities support it, and use
ad units, placements or declared publisher properties for the product’s inventory
and property definition.
See Ad-server signals for the gam_targeting_groups
request shape and validation flow.
Limits
- The tool needs a Seller Account.
- Use a Library sheet for bulk product creation, or create products one at a
time with
save_wholesale_product. V3 has no tool for the wholesale avails percentile-CPM feed or for searching ad-server selectors.