Closed Bug 1939529 Opened 1 year ago Closed 1 year ago

Update ShoppingProduct to use v3 Affiliates API

Categories

(Firefox Graveyard :: Shopping, task, P2)

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: fchasen, Assigned: kpatenio)

References

Details

(Whiteboard: [fidefe-RCSidebar])

Attachments

(1 obsolete file)

To separate recommendations from sponsored content in ShoppingProduct, the RECOMMENDATIONS_API need to be update to allow passing an array of types in mtc_content_type to get everything or just recommendations or ads.

Content types are:

  • organic
  • sponsored

Passing [organic, sponsored] will return the same results as the current API.

This is going require a new pref to toggle:

  • Add a new pref to compliment browser.shopping.experience2023.ads.userEnabled, maybe browser.shopping.experience2023.recommendations.userEnabled? (ads is the sponsored content pref)
  • Allow setting that pref in RemotePageAccessManager.sys.mjs
  • Add the new pref to AsyncPrefs.sys.mjs
  • Add a new listener in the actors and update adsEnabledByUserChanged to handle the new pref.
  • Pass array of content types in requestRecommendations in the child actor.
Blocks: 1939534
Assignee: fchasen → nobody
Status: ASSIGNED → NEW
Assignee: nobody → kpatenio
Attachment #9459801 - Attachment description: WIP: Bug 1939529 - Update ShoppingProduct to use v3 Affiliates API. r=#shopping-reviewers! → Bug 1939529 - Update ShoppingProduct to use v3 Affiliates API. r=#shopping-reviewers!
No longer blocks: 1916005
Attachment #9459801 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: