Compute media_buy.supported_optimization_metrics from a product
catalog. Per AdCP 3.1 (adcp#4669), this field is the array union of
every product's metric_optimization.supported_metrics.
Returns a sorted, de-duplicated array. Empty union → empty array;
callers SHOULD treat an empty result as "omit the field" (the wire
description says an absent field means "seller declares no specific
guarantees").
Stable ordering (alphabetical) so the declaration doesn't churn on
insertion order. Pure function; safe to call repeatedly.
Compute
media_buy.supported_optimization_metricsfrom a product catalog. Per AdCP 3.1 (adcp#4669), this field is the array union of every product'smetric_optimization.supported_metrics.Returns a sorted, de-duplicated array. Empty union → empty array; callers SHOULD treat an empty result as "omit the field" (the wire description says an absent field means "seller declares no specific guarantees").
Stable ordering (alphabetical) so the declaration doesn't churn on insertion order. Pure function; safe to call repeatedly.