PATCH /api/v2/storefront/esa/{esaId}/buyer-advertiser-mappings/{mappingId}
Updates an existing per-buyer routing override on a GAM-backed embedded sales agent. Send only the fields you want to change — repoint the mapping to a different advertiser, or adjust its brand or principal narrowing. The buyer key (operatorDomain) is fixed; create a new mapping to route a different buyer.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
esaId | integer | Yes | Path. Embedded sales-agent connection id |
mappingId | string | Yes | Path. Mapping id from list or create |
gamAdvertiserId | string | null | No | Repoint the mapping to a different GAM advertiser |
brandHouse | string | null | No | Update the brand-house narrowing; null clears it |
brandId | string | null | No | Update the brand-id narrowing; null clears it |
principalId | string | null | No | Update the principal narrowing; null clears it |
Response
updatedAt advances; createdAt and operatorDomain are unchanged.
Errors
400 VALIDATION_ERROR—esaIdis not a positive integer,mappingIdis empty, or the ESA is not Google Ad Manager-backed.
Related
Buyer routing tasks
All buyer-routing operations
List buyer mappings
Find the mapping id
Create buyer mapping
Route a new buyer
Delete buyer mapping
Remove this mapping