POST /api/v2/storefront/esa/{esaId}/buyer-advertiser-mappings
Creates a per-buyer routing override on a GAM-backed embedded sales agent. The buyer is keyed on operatorDomain and can be narrowed by brandHouse, brandId, or principalId. A matching mapping takes precedence over the storefront default advertiser.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
esaId | integer | Yes | Path. Embedded sales-agent connection id |
operatorDomain | string | Yes | Buyer operator domain this mapping matches |
gamAdvertiserId | string | Yes | GAM advertiser the matched buyer routes to |
brandHouse | string | null | No | Narrow the match to a brand house |
brandId | string | null | No | Narrow the match to a brand id |
principalId | string | null | No | Narrow the match to a buyer principal id |
Response
201. id is the mappingId you pass to update and delete. Unset narrowing fields come back as null.
Errors
400 VALIDATION_ERROR— missingoperatorDomainorgamAdvertiserId,esaIdis not a positive integer, or the ESA is not Google Ad Manager-backed.
Related
Buyer routing tasks
All buyer-routing operations
List buyer mappings
See existing overrides
Update buyer mapping
Edit an existing mapping
Set default advertiser
The fallback for unmatched buyers