Retail media naming conventions sound like housekeeping. In practice they are the cheapest data model you will ever build. A campaign name that encodes brand, market, ad product, objective and targeting lets you group spend across Amazon, Walmart, Instacart and Criteo without a single mapping table. A name like "Q4 test new 2 (copy)" forces someone to classify it by hand, every week, for as long as it runs.
This is a working template for agency ops leads and retail media managers. It covers a field order that works across networks, the character rules to check per network, how to parse names in SQL and catch bad ones automatically, when to give up on names and use mapping tables, and how to roll a convention into accounts that already have years of history.
Why names are your cheapest data model
Every retail media report carries the campaign name. Not every report carries the things you actually want to group by: objective, funnel stage, branded vs non-branded targeting, product line, language, the agency team that owns it. Networks do not know those concepts, and when they do, they encode them differently.
A structured name moves that metadata into a field every network already returns. The payoff:
- Cross-network rollups without lookups. "Non-branded keyword spend by product line across all networks" becomes a
group byon parsed fields. - Automated QA. A name that fails to parse is a campaign someone launched without following the process, which is worth knowing the same day.
- Faster onboarding and reporting. New analysts can read an account, and reporting automation can group campaigns without manual tagging. Our client onboarding checklist has naming as an early step for this reason.
- Rules and automation. Bid and budget rules, including AI bid management agents that work within approved rules, can target "all CVR campaigns in the US" by name pattern instead of by hand-maintained lists.
Names are not a full solution (more on that below), but they cover most of what a reporting layer needs, at the cost of a written standard and some discipline.
A field order for retail media naming conventions that works across networks
The convention has to survive four networks with different structures: Amazon has campaigns and ad groups across several ad products; Walmart Connect Sponsored Search is similar; Instacart has campaigns and ad groups across sponsored product, display and video; Criteo has campaigns and line items, often across several retailers. A field order that works on all of them, at campaign level:
- Brand or client code: a short, fixed code (ACME). For agencies, this is the first thing anyone filters on.
- Market: two-letter country code (US, CA, GB, AU, AE).
- Retailer: needed where one network serves many retailers (Criteo, and Instacart when a campaign targets a specific retailer). Use a short code from your own retailer list. For Amazon and Walmart it can be the network code itself (AMZ, WMT).
- Ad product: SP, SB, SBV, SD, DSP, DISPLAY, VIDEO.
- Objective: AWR (awareness), CNS (consideration), CVR (conversion), or your own three-letter codes.
- Targeting: KW-BR (branded keywords), KW-NB (non-branded), KW-CQ (competitor), PAT (product targeting), AUD (audiences), AUTO.
- Product group: a code from your product hierarchy (SNACKS, BEV-12PK), never a free-text description.
- Language: EN, FR, AR where markets are bilingual.
- Flight or start period: 2026Q4 or 202611, for seasonal and promo campaigns.
- Free text last: anything human-friendly goes at the end, after the parsed fields, so it can never break parsing.
An example:
ACME|US|AMZ|SP|CVR|KW-NB|SNACKS|EN|2026Q4|holiday-push
ACME|US|CRT-RET01|DISPLAY|AWR|AUD|BEV-12PK|EN|202612|new-flavor
Rules that keep it parseable:
- One delimiter, used for nothing else. The pipe works well because it rarely appears in product names. Use hyphens inside a field, never the delimiter.
- Fixed positions. Field 4 is always the ad product. If a field does not apply, use a placeholder such as NA rather than skipping it.
- Uppercase codes from a published list. Free typing produces "Snacks", "SNACK" and "snacks" in the same week.
- Ad group or line item names follow the same pattern with their own fields: match type, keyword theme, bid strategy or audience.
Character limits and allowed characters per network
Each network sets its own maximum name length and its own rules on special characters, and they change. Before you finalize the template:
- Check the documented limit for campaign, ad group and line item names in each network's API reference or UI. Where a limit is not documented, test by creating a draft campaign with your longest realistic name.
- Set your own ceiling comfortably below the strictest network you use. Long names also truncate in UI tables, which hides the fields people need.
- Test the delimiter. Create a draft with pipes, hyphens and your placeholder codes, then pull it back through the API and a downloaded report. Some exports and spreadsheet tools mangle certain characters.
- Avoid characters that cause trouble downstream: commas in CSV exports, quotes, emoji, and accented characters if any system in the chain is not UTF-8 clean.
- Use other fields when the network offers them. Instacart campaigns, for example, have a memo field and a purchase order field (the purchase order is documented at up to 50 characters), both printed on invoices, that can carry billing metadata without lengthening the name.
Parsing names in SQL and catching bad ones
Parsing belongs in one staging model, so every report uses the same logic. A Snowflake-style example:
-- Example: parse campaign names into fields and flag names that break the convention.
with src as (
select network, campaign_id, campaign_name, report_date
from {{ ref('stg_retail_media__campaigns') }}
),
parsed as (
select
*,
split_part(campaign_name, '|', 1) as brand_code,
split_part(campaign_name, '|', 2) as market,
split_part(campaign_name, '|', 3) as retailer_code,
split_part(campaign_name, '|', 4) as ad_product,
split_part(campaign_name, '|', 5) as objective,
split_part(campaign_name, '|', 6) as targeting,
split_part(campaign_name, '|', 7) as product_group,
split_part(campaign_name, '|', 8) as language,
split_part(campaign_name, '|', 9) as flight
from src
)
select
p.*,
(
regexp_like(p.campaign_name, '^[A-Z0-9]{2,8}(\\|[A-Za-z0-9-]+){8}(\\|.*)?$')
and p.market in (select code from {{ ref('ref_markets') }})
and p.objective in ('AWR', 'CNS', 'CVR')
and p.targeting in (select code from {{ ref('ref_targeting') }})
) as name_is_valid
from parsed p
Then make bad names visible:
- A dbt test or alert that lists campaigns with spend in the last seven days and
name_is_valid = false, grouped by account owner. - An "Unclassified" bucket in every dashboard rollup, showing its share of spend. When it grows, people notice.
- Reference tables (
ref_markets,ref_targeting,ref_product_groups) as seeds in version control, so adding a code is a reviewed change.
When names are not enough: mapping tables
Names fail in predictable situations:
- History. Campaigns created before the convention, which you cannot or should not rename.
- Metadata that changes. Product group reassignments, budget owners, or objectives that shift mid-flight. Renaming every time loses the point-in-time view.
- Information you cannot fit. Client billing codes, test cell IDs, retailer-specific program names.
- Networks where you do not control the name. Some retailer-managed or private-market campaigns are named by the retailer.
For these, maintain a mapping table keyed on network and campaign ID, with the same fields as the naming convention plus valid-from and valid-to dates. In the model, the mapping table wins when present, and parsed name fields fill the gaps. One coalesce per field keeps it simple, and the reporting layer never needs to know which source supplied the value.
Keep the mapping table somewhere ops can edit safely (a reviewed seed file or a controlled sheet loaded on a schedule), not in someone's personal spreadsheet.
Rolling a convention out to an existing account
Most accounts already have hundreds of campaigns. A rollout that works:
- Write the standard first. One page: fields, codes, examples, owner. Get sign-off from whoever launches campaigns.
- Apply it to all new campaigns immediately. Turn on the validation alert for campaigns created after the start date.
- Classify the history with a mapping table, starting with campaigns that have spent in the last 90 days. Do not try to clean up everything.
- Rename only when it is safe. On Amazon, renaming a campaign keeps its ID and performance history, because reporting is keyed on IDs. The risk is downstream: rules, scripts or dashboards that match on name text. Check those, rename in batches, and keep the ID as your join key everywhere.
- Store names as history. Keep the name as it was on each report date (or a slowly changing dimension), so a rename does not rewrite last year's labels.
This is the same discipline behind every multi-network model we build. For BTR Media, one set of ETL pipelines feeds one data model and dashboard for Amazon, Walmart and Instacart; for Tinuiti, pipelines for five marketplaces feed one warehouse and one BI framework. Consistent classification is what makes those single views readable. The data model side is covered in retail media data unification.
The template
Copy and adapt this for your own standard:
- Delimiter: pipe (|). Hyphens allowed inside fields.
- Field 1, brand: fixed client or brand code from the brand list.
- Field 2, market: ISO two-letter country code.
- Field 3, retailer: network or retailer code from the retailer list (AMZ, WMT, ICT-RET01, CRT-RET01).
- Field 4, ad product: SP, SB, SBV, SD, DSP, DISPLAY, VIDEO.
- Field 5, objective: AWR, CNS or CVR.
- Field 6, targeting: KW-BR, KW-NB, KW-CQ, PAT, AUD or AUTO.
- Field 7, product group: code from the product hierarchy.
- Field 8, language: EN, FR, ES, AR.
- Field 9, flight: YYYYQn or YYYYMM, or NA for always-on.
- Field 10, free text: optional, never parsed.
- Ad group or line item: same first fields, then match type and theme.
- Ownership: one named owner for the standard and the reference lists.
- QA: daily validation alert on any spending campaign whose name fails to parse.
If you want the parsing, mapping and QA built into your reporting, our agency reporting automation and white-label PPC reporting work does this across retail media networks, including Walmart Connect. Book a free 30-minute ad data review through our contact page, or start with a free ad data plan.
Frequently asked questions
What should a campaign name include?
The fields you group by in reporting that the network does not give you: brand or client, market, retailer, ad product, objective, targeting type, product group, language and flight. Put them in fixed positions with one delimiter, and put any free text last so it never breaks parsing.
Can I rename Amazon campaigns without losing history?
Yes. Amazon keys campaigns and their performance on campaign IDs, so a rename keeps the history. What can break are rules, scripts and dashboards that match on name text, so check those first and always join on IDs in your warehouse.
How do I report on campaigns with inconsistent names?
Use a mapping table keyed on network and campaign ID that assigns the same fields your convention would, and let it override parsed values. Start with campaigns that spent in the last 90 days, show unclassified spend as its own bucket, and apply the convention to every new campaign from now on.