Appearance
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
| Name | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
organizationId | string | Yes | - | Unique identifier for the organization this configuration belongs to | "org_123456" |
debug | boolean | Yes | - | Enables debug mode which activates additional logging and debugging tools | false |
selectors | object | Yes | - | DOM selector configurations grouped by page context | - |
SiteConfigSchema.selectors
DOM selector configurations grouped by page context
| Name | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
search | object | Yes | - | All DOM selectors required to inject ads for sponsored search advertising. | - |
SiteConfigSchema.selectors.search
All DOM selectors required to inject ads for sponsored search advertising.
| Name | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
productGrid | object | Yes | - | - | - |
productCard | object | Yes | - | Selectors inside a product card | - |
SiteConfigSchema.selectors.search.productGrid
| Name | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
root | string | Yes | - | Container hosting the product cards | ".product-grid" |
SiteConfigSchema.selectors.search.productCard
Selectors inside a product card
| Name | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
root | string | Yes | - | Root element of a product card | ".product-card" |
title | string | Yes | - | Element displaying the product title | ".product-title" |
image | string | Yes | - | Image element inside the card | "img" |
link | string | Yes | - | Anchor element linking to the product page | "a.product-link" |
imageLink | string | No | - | 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" |
linkTemplate | string | No | - | 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]]" |
price | object | Yes | - | - | - |
SiteConfigSchema.selectors.search.productCard.price
| Name | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
selector | string | Yes | - | Element displaying the product price | ".price__regular" |
format | object | Yes | {"template":"[[price]] €","decimalSeparator":".","thousandsSeparator":"","decimalPlaces":2} | - | - |
SiteConfigSchema.selectors.search.productCard.price.format
| Name | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
template | string | Yes | "[[price]]" | Wraps the formatted price using [[price]] as placeholder. E.g. "$ [[price]]" or "[[price]] EUR". | "$ [[price]]" |
decimalSeparator | string | Yes | "." | Decimal separator character. | "," |
thousandsSeparator | string | Yes | "" | Thousands separator character. | "," |
decimalPlaces | number | Yes | 2 | Number of decimal places to display. Also determines the divisor from minor units (10^decimalPlaces). | 2 |