MCPcopy Create free account
hub / github.com/dailydotdev/apps / appendEntityParams

Function appendEntityParams

packages/shared/src/lib/ads.ts:120–130  ·  view source on GitHub ↗
(
  params: URLSearchParams,
  entity?: AdEntityTarget,
)

Source from the content-addressed store, hash-verified

118};
119
120export const appendEntityParams = (
121 params: URLSearchParams,
122 entity?: AdEntityTarget,
123): URLSearchParams => {
124 if (entity) {
125 params.set('entity', entity.entity);
126 params.set('entity_id', entity.id);
127 }
128
129 return params;
130};
131
132// IAB-standard consent params; the ad server promotes them to typed request
133// metadata, so names must match its extraction (gdpr, gdpr_consent,

Callers 1

fetchAdByPlacementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected