-
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
Allow Brave Ads users to choose between 0, 1, 2, 3, 4, 5 or 10 maximum ad notification per hours #16228
Comments
Verified
Confirm users do not see ad notifications if ads per hour are set to 0 in
|
example | example |
---|---|
[878:259:0623/135810.581078:VERBOSE2:permission_rule_util.cc(23)] Ad cannot be shown as minimum wait time has not passed
[878:259:0623/135810.581174:VERBOSE1:ad_notification_serving.cc(90)] Ad notification not served: Not allowed due to permission rules
Confirm users are rewarded for seeing new-tab page sponsored images
Steps:
- launched Brave with
--enable-logging=stderr --vmodule="*/variations/*"=6,"*/bat-native-ledger/*"=6,"*/brave_rewards/*"=6,"*/bat-native-ads/*"=6,"*/bat-native-confirmations/*"=6,"*/brave_ads/*"=9,"*/brave_user_model/*"=6
- opened new tab pages until I got a sponsored image
- clicked
Start using Rewards
- checked logs & Rewards widget
- restarted
- checked Rewards widget
Confirmed I was rewarded for viewing the new-tab page sponsored image:
[9552:259:0623/112901.148094:VERBOSE3:new_tab_page_ad_event_served.cc(24)] Served new tab page ad with uuid 7bab0160-0bcc-4172-8174-d9326a80571d and creative instance id 33b91c8d-fcf7-4799-8547-c22eefdcfa2b
[9552:259:0623/112901.148283:VERBOSE3:new_tab_page_ad_event_viewed.cc(24)] Viewed new tab page ad with uuid 7bab0160-0bcc-4172-8174-d9326a80571d and creative instance id 33b91c8d-fcf7-4799-8547-c22eefdcfa2b
[9552:259:0623/112901.148648:VERBOSE1:confirmations.cc(90)] Confirming view ad for creative instance id 33b91c8d-fcf7-4799-8547-c22eefdcfa2b
[9552:259:0623/112901.206612:VERBOSE6:new_tab_page_ad_event_served.cc(32)] Successfully logged new tab page ad served event
[9552:259:0623/112901.217370:VERBOSE6:new_tab_page_ad_event_viewed.cc(32)] Successfully logged new tab page ad viewed event
[9552:259:0623/112901.305491:VERBOSE1:confirmations.cc(250)] Successfully redeemed unblinded token with confirmation id ba20996c-7a5e-4ee8-bc9c-02900140846e, creative instance id 33b91c8d-fcf7-4799-8547-c22eefdcfa2b and view
[9552:259:0623/112901.369765:VERBOSE1:confirmations.cc(273)] Added 1 unblinded payment token with an estimated redemption value of 0.01 BAT, you now have 2 unblinded payment tokens
example | example | example |
---|---|---|
Confirm users see a maximum of 10 ads per hour if ads per hour are set to 10 in brave://rewards
Steps:
- launched Brave using
--enable-logging=stderr --vmodule="*/variations/*"=6,"*/bat-native-ledger/*"=6,"*/brave_rewards/*"=6,"*/bat-native-ads/*"=6,"*/bat-native-confirmations/*"=6,"*/brave_ads/*"=9,"*/brave_user_model/*"=6 --brave-ads-staging --brave-ads-debug --rewards=staging=true,reconcile-interval=3
- opened a new-tab page
- clicked on
Start using Rewards
- loaded
brave://rewards/
- clicked on the Settings icon and chose
10 ads per hour
forMaximum number of ads displayed
example | example |
---|---|
[6403:259:0623/094312.449035:VERBOSE1:seen_ads.h(29)] All ad_notifications have been shown, so round robin
[6403:259:0623/094312.449090:VERBOSE1:client.cc(370)] Resetting seen ad_notifications
[6403:259:0623/094312.449464:VERBOSE2:exclusion_rule_util.h(26)] creativeInstanceId 6f5decfc-57cb-4a42-8523-e372c7d4adff has exceeded the frequency capping for perHour
[6403:259:0623/094312.451715:VERBOSE2:exclusion_rule_util.h(26)] campaignId d1e25388-b362-4f30-bd4b-36b8205e59e5 has exceeded the frequency capping for dailyCap
[6403:259:0623/094312.451796:VERBOSE2:exclusion_rule_util.h(26)] creativeInstanceId 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed has exceeded the frequency capping for perHour
Confirm users resume seeing ad notifications once the ads-per-hour-cap time period is reset
example | example |
---|---|
[6403:259:0623/104830.520161:VERBOSE1:eligible_ad_notifications.cc(147)] Get eligble ads for untargeted segment
[6403:259:0623/104830.525955:VERBOSE1:ad_notification_serving.cc(112)] Found 1 eligible ads
[6403:259:0623/104830.527521:VERBOSE3:ad_notification_event_served.cc(25)] Served ad notification with uuid 166a173a-70d8-43d6-9367-d610c8583734 and creative instance id 6f5decfc-57cb-4a42-8523-e372c7d4adff
[6403:259:0623/104830.527688:VERBOSE3:ad_notification_event_viewed.cc(24)] Viewed ad notification with uuid 166a173a-70d8-43d6-9367-d610c8583734 and creative instance id 6f5decfc-57cb-4a42-8523-e372c7d4adff
[6403:259:0623/104830.527960:VERBOSE1:confirmations.cc(90)] Confirming view ad for creative instance id 6f5decfc-57cb-4a42-8523-e372c7d4adff
[6403:259:0623/104830.543261:VERBOSE1:ad_notification_event_served.cc(33)] Successfully logged ad notification served event
[6403:259:0623/104830.544558:VERBOSE6:ad_notification_event_viewed.cc(32)] Successfully logged ad notification viewed event
[6403:259:0623/104830.963676:VERBOSE1:confirmations.cc(250)] Successfully redeemed unblinded token with confirmation id 1ec07781-ca1c-4aa7-96bf-e52cbff9ed91, creative instance id 6f5decfc-57cb-4a42-8523-e372c7d4adff and view
[6403:259:0623/104830.964156:VERBOSE1:confirmations.cc(273)] Added 1 unblinded payment token with an estimated redemption value of 0.01 BAT, you now have 1 unblinded payment tokens
Verification passed on OnePlus 6T with Android 10 running 1.27.107 x64 build
Confirm the default ad notification per hour is set to 5 for fresh installs
Confirm the ad notifications per hour is persisted across browser launches
Confirm users are rewarded for seeing new-tab page sponsored images
Confirm users see a maximum of 10 ads per hour if ads per hour are set to 10
|
No description provided.
The text was updated successfully, but these errors were encountered: