/ad-stack/:id/integration/:iid/hierarchy
Returns, for every settable field of one integration on an ad stack, which level’s value wins and which values sit above (integration default) and below it (ad units, publishers, organisations). Use it to annotate an ad stack’s integration form with “inherited from” / “overridden by” hints.
Permission: ad_stack.view. The integration must be one the caller (or, with uid, the publisher’s organisation) may use, otherwise 404 “Integration Not Found”; the Global Settings pseudo-integration is accepted too. For id > 0 the stack must exist, be non-archived and (for non-CORE callers) belong to the caller’s organisation tree, otherwise 404. id = 0 means a stack not saved yet: no stack or ad-unit values are read.
Fields: only fields the caller can set (read-only computed fields and, for non-owners, owner-only fields and approval are left out).
Without uid: the chain is stack then integration default; below aggregates every ad unit on the stack, their publishers and those publishers’ organisations that set their own value (count, value when one, values[] when 20 or fewer).
With uid: the view is that publisher’s: its own value and its organisations’ (stack organisation chain first, then the publisher’s) are single entries in below after the ad-unit aggregate, and resolved_level is what the publisher gets on this stack. The ad-unit aggregate still spans every unit on the stack.
Values keep their stored types and entity_id stays text on this endpoint. Read-only: use POST /v1/mapping/apply to change values.