( params: URLSearchParams, entity?: AdEntityTarget, )
| 118 | }; |
| 119 | |
| 120 | export 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, |
no outgoing calls
no test coverage detected