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): add reason parameter to report_ad per MARS /v1/t spec (#7268)
* feat(ads-client): add reason parameter to report_ad per MARS /v1/t spec
The /v1/t tracking endpoint requires a `reason` query parameter for
report interactions. Add MozAdsReportReason enum with Inappropriate,
NotInterested, and SeenTooManyTimes variants and thread it through
the full stack, appending it to the callback URL before the request.
* fix(ads-client): remove unused import and fix formatting
* test(ads-client): add record_impression, record_click, report_ad integration tests against prod
Switch integration tests from staging to production. Add tests that
request tile ads and use the returned callback URLs to verify
record_impression, record_click, and report_ad each return 200.
* feat(ads-client): bake placement_id and position into report callback URLs
Add `add_placement_info_to_report_callbacks` on `AdResponse`, mirroring
the existing `add_request_hash_to_callbacks` pattern. Called right after
it in `request_ads`, it appends `placement_id` and 0-based `position`
to each ad's report URL at parse time so `report_ad` sends all three
params required by the MARS /v1/t spec without any API change.
* chore(ads-client): cargo fmt
* test(ads-client): add integration test verifying report URL has exactly one placement_id and position
* refactor(ads-client): move report URL query param assertions into test_report_ad
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@
30
30
31
31
### Ads Client
32
32
- Added `rotation_days` parameter to `MozAdsClientBuilder` to allow embedders to configure the context ID rotation period. ([#7262](https://github.com/mozilla/application-services/pull/7262))
33
+
- Added `reason` parameter to `report_ad` to comply with the MARS `/v1/t` tracking endpoint spec. Accepted values: `inappropriate`, `not_interested`, `seen_too_many_times`.
33
34
34
35
### Logins
35
36
- **BREAKING**: Removed `time_of_last_breach` field from `LoginMeta` and `Login`. This can be derived from Remote Settings during runtime instead.
0 commit comments