Skip to content

Configuration Reference

AdStack is configured through a SiteConfig object that describes your site's DOM structure, organization details, and display preferences. This configuration is shared across all integrations.

SiteConfigSchema

Site-specific configuration used to initialize Meamo adtech stack

NameTypeRequiredDefaultDescriptionExample
organizationIdstringYes-Unique identifier for the organization this configuration belongs to"org_123456"
debugbooleanYes-Enables debug mode which activates additional logging and debugging toolsfalse
selectorsobjectYes-DOM selector configurations grouped by page context-

SiteConfigSchema.selectors

DOM selector configurations grouped by page context

NameTypeRequiredDefaultDescriptionExample
searchobjectYes-All DOM selectors required to inject ads for sponsored search advertising.-

All DOM selectors required to inject ads for sponsored search advertising.

NameTypeRequiredDefaultDescriptionExample
productGridobjectYes---
productCardobjectYes-Selectors inside a product card-
SiteConfigSchema.selectors.search.productGrid
NameTypeRequiredDefaultDescriptionExample
rootstringYes-Container hosting the product cards".product-grid"
SiteConfigSchema.selectors.search.productCard

Selectors inside a product card

NameTypeRequiredDefaultDescriptionExample
rootstringYes-Root element of a product card".product-card"
titlestringYes-Element displaying the product title".product-title"
imagestringYes-Image element inside the card"img"
linkstringYes-Anchor element linking to the product page"a.product-link"
imageLinkstringNo-Anchor element wrapping the product image. Set this when the image has a separate anchor from the title link. Falls back to link if omitted."a.card__media"
linkTemplatestringNo-URL template for the product page link. Uses [[field]] syntax referencing AdCreative fields. Falls back to the provider's default if omitted."/products/[[product_handle]]"
priceobjectYes---
SiteConfigSchema.selectors.search.productCard.price
NameTypeRequiredDefaultDescriptionExample
selectorstringYes-Element displaying the product price".price__regular"
formatobjectYes{"template":"[[price]] €","decimalSeparator":".","thousandsSeparator":"","decimalPlaces":2}--
SiteConfigSchema.selectors.search.productCard.price.format
NameTypeRequiredDefaultDescriptionExample
templatestringYes"[[price]]"Wraps the formatted price using [[price]] as placeholder. E.g. "$ [[price]]" or "[[price]] EUR"."$ [[price]]"
decimalSeparatorstringYes"."Decimal separator character.","
thousandsSeparatorstringYes""Thousands separator character.","
decimalPlacesnumberYes2Number of decimal places to display. Also determines the divisor from minor units (10^decimalPlaces).2