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
feat(ads-client): support content categories on ad requests (AC-109) (#7390)
Add per-placement IAB content (taxonomy + category IDs) and a request-level
`flags` object plumbed through MARSClient/AdsClient. Callers opt into flags
via `MozAdsRequestOptions.flags: MozAdsRequestFlags?` (currently exposing
`contextualPlacement`), with room to grow as new flags are added. The
`flags` object is included in the cache key only when at least one flag
opts away from its default, so non-contextual callers keep their existing
cache entries.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
[Full Changelog](In progress)
4
4
5
+
## ✨ What's New ✨
6
+
7
+
### Ads Client
8
+
- Add support for IAB content categories and the `flags.contextual_placement` request flag on ad requests. Callers can attach an `iabContent` (taxonomy + category IDs) to each `MozAdsPlacementRequest`, and set `contextualPlacement: true` on `MozAdsRequestOptions` to opt the request into contextual placement on the server side (AC-109).
9
+
5
10
### Glean
6
11
- Updated to v68.0.0 ([#7438](https://github.com/mozilla/application-services/issues/7438))
|`cachePolicy`|`MozAdsRequestCachePolicy \| null`| Per-request caching policy. If `null`, uses the client's default TTL with a `CacheFirst` mode. |
257
+
|`flags`|`Object.<string, boolean>`| Request-level flags forwarded verbatim as the `flags` object on the wire. An empty object omits it. e.g. `{ contextual_placement: true }`. Defaults to `{}`. |
258
+
|`ohttp`|`boolean`| Whether to route this request through OHTTP. Defaults to `false`. |
|`cachePolicy`|`MozAdsRequestCachePolicy?`| Per-request caching policy. If `null`, uses the client's default TTL with a `CacheFirst` mode. |
231
+
|`flags`|`Map<String, Boolean>`| Request-level flags forwarded verbatim as the `flags` object on the wire. An empty map omits it. e.g. `mapOf("contextual_placement" to true)`. Defaults to `emptyMap()`. |
232
+
|`ohttp`|`Boolean`| Whether to route this request through OHTTP. Defaults to `false`. |
|`cachePolicy`|`MozAdsRequestCachePolicy?`| Per-request caching policy. If `nil`, uses the client's default TTL with a `cacheFirst` mode. |
231
+
|`flags`|`[String: Bool]`| Request-level flags forwarded verbatim as the `flags` object on the wire. An empty dictionary omits it. e.g. `["contextual_placement": true]`. Defaults to `[:]`. |
232
+
|`ohttp`|`Bool`| Whether to route this request through OHTTP. Defaults to `false`. |
0 commit comments