-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize ad serving based upon local user browser activity #14045
Comments
Verification passed on
Verified test plan from https://github.com/brave/internal/issues/763 User Activity - Default values - kBrowserDidBecomeActive User Activity - Default values - kBrowserDidEnterBackground User Activity - Default values - kClosedTab User Activity - Default values - kFocusedOnExistingTab User Activity - Default values - kPlayedMedia
User Activity - Default values - kClickedReloadButton
User Activity - Default values - Threshold - reached
Ad is shown:
User Activity - Default values - Threshold - not reached
Logs show user inactive:
User Activity - Default values - Time Window
Second tab opened
User Activity - Default values - idle_time_threshold
User Activity - Custom values - kInitializedAds
User Activity - Custom values - kClickedBackOrForwardNavigationButtons
User Activity - Custom values - kClickedBookmark
User Activity - Custom values - kClickedLink
User Activity - Custom values - kClickedReloadButton
User Activity - Custom values - Threshold
the ad was shown
User Activity - Custom values - Time Window
Second tab opened
User Activity - Custom values - idle_time_threshold
User Activity - Custom values - idle_time_threshold
Verification passed on
User Activity - Default values - kBrowserDidBecomeActive
User Activity - Default values - kBrowserDidEnterBackground
User Activity - Default values - kClosedTab
User Activity - Default values - kFocusedOnExistingTab
User Activity - Default values - kOpenedNewTab
User Activity - Default values - kPlayedMedia
User Activity - Default values - kClickedReloadButton
User Activity - Default values - Threshold - reached
User Activity - Default values - Threshold - not reached
Logged #15285 User Activity - Custom values - kInitializedAds
User Activity - Custom values - kClickedBookmark
User Activity - Custom values - idle_time_threshold
Verified passed with
Verified suggested test cases from https://github.com/brave/internal/issues/763 NotesUser Activity - Default values - kBrowserDidBecomeActive User Activity - Default values - kBrowserDidEnterBackground User Activity - Default values - kClosedTab User Activity - Default values - kFocusedOnExistingTab User Activity - Default values - kOpenedNewTab User Activity - Default values - kPlayedMedia
User Activity - Default values - kClickedReloadButton User Activity - Default values - Threshold - reached
Ad is shown:
User Activity - Default values - Threshold - not reached
Logs show user inactive:
User Activity - Custom values - idle_time_threshold
User Activity - Custom values - kInitializedAds
User Activity - Custom values - kClickedBookmark
|
Verification passed on OnePlus 6T with Android 10 running 1.23.69 x64 build Verified test plan from brave/internal/#763User Activity - Default values - kInitializedAds- Verified when ads is initialized event 00 is triggered
User Activity - Default values - kBrowserDidBecomeActive- Verified when browser becomes active event 01 is triggered with value of 2 to 3
User Activity - Default values - kBrowserDidEnterBackground- Verified when browser goes to background event 02 is triggered with value of 2.5 to 3.5
User Activity - Default values - kClickedLink- Verified when a link is clicked event 06 is triggered with a valule of 4
User Activity - Default values - kClosedTab- Verified when a tab is closed event 08 is triggered
User Activity - Default values - kFocusedOnExistingTab- Verified when focus is set to an existing tab event 09 is triggered and value changes to 4.5
User Activity - Default values - kNewNavigation- Verified when a new page is navigated event 0B is triggered with score of 4
User Activity - Default values - kOpenedNewTab- Verified when a new tab is opened event 0D is triggered with a score of 6
User Activity - Default values - kPlayedMedia- Verified when a media is playing triggers event 0E
User Activity - Default values - kStoppedPlayingMedia- Verified when media stops playing event 0F is triggered
User Activity - Default values - kTabUpdated- Verified when browser opens a new tab event 11 is triggered with a score of 5
User Activity - Default values - kBrowserWindowIsActive- Verified when browser becomes active event 16 is triggered with score of 0.5
Verification passed on Samsung Tab A with Android 10 running 1.23.69 x64 build Verified test plan from brave/internal/#763 |
Optimize ad serving based upon a users’ activity by locally monitoring the following user-initiated events:
user-initiated events should be transient (in memory and never persisted), we should only store an
id
andtimestamp
and never leave the users' device.We calculate the users’ activity score from events triggered by the user within the specified
time_window
. If the score is >= thethreshold
, and the user is within the various parameters below, we can assume we have gained the users’ attention.triggers
: A list of event triggerstime_window
: The timeframe to consider if a user was activethreshold
: The threshold to exceed to be considered activeidle_time_threshold
: Minimum idle time before an ad maybe served. Defaults to15
maximum_idle_time
: Maximum idle time to consider serving an ad. Defaults to0
(infinite)should_detect_was_locked
: Whether to detect if a user is unidle straight after unlocking their device. Defaults tofalse
The above parameters should be configurable via the server to allow Brave to tweak the users' experience.
The text was updated successfully, but these errors were encountered: