You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SyncCreativesRequest.assignments map has ambiguous key direction and missing weight/placement fields #1237
SyncCreativesRequest.assignments is typed as { [k: string]: string[] }. The comment says "Optional bulk assignment of creatives to packages" but does not specify whether the key is a creative ID (mapping to package IDs) or a package ID (mapping to creative IDs). These are opposite directions and an implementer reading the raw type without documentation will guess wrong roughly half the time.
Additionally, the freeform map cannot express weight or placement_ids from CreativeAssignment — critical fields for rotation management and format-specific placement. A seller that receives assignments via this field has less information than one that receives assignments via PackageRequest.creatives[].assignments.
Proposed fix
Replace the freeform map with a typed array using the existing CreativeAssignment type:
Activity
bokelley commentedon Feb 28, 2026
Resolved in #1252.