-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Support priority for Brave Ads #5232
Comments
@jsecretan Assigning to see if this issue is still relevant, thanks |
Blocked while deciding if this issue is still relevant |
@tmancey I noticed that if there is priority > 1 then it possible that the Ad will not be shown. Is that expected? Seems weird because when this happens, we will need to wait for another ad trigger.
|
@btlechowski This is correct, and I can go into further detail on a call later today. Thanks |
Important: When an ad is about to be shown, the new system makes a roll based on ad priority. For sanity check use: Test planAds with priority 1 - always shown
Expected: Ads with priority 2 - 50% chance to show
Expected: Ad with priority 0 - never shown
Expected: Ads with different priorities - the higher priority the sooner ad is shown
Expected: Ad priority is changed in the catalog
Expected: Catalog is updated with ad with higher priority
Expected: |
Verification passed on
Verified test plan from #5232 (comment) Verified Ads with priority 1 - always shown
Second Ad
Third Ad
Verified Round robin works:
Verified Ads with priority 2 - 50% chance to show
Ad was shown on second attempt:
Next ad shown:
Next ad shown:
Next ad shown:
Ad was not shown due to the roll:
Ad was shown on second attempt:
Verified Round robin works:
Verified Ad with priority 0 - never shown
Verified Ads with different priorities - the higher priority the sooner ad is shown
Attempt on showing 2nd ad:
2nd ad shown
3rd ad shown:
4th ad shown:
5th ad shown:
6th ad attempt:
Another 6th ad attempt:
6th ad shown:
Verified Round robin works:
Verified Ad priority is changed in the catalog
Verified Catalog is updated with ad with higher priority
Verified passed with
Per discussion with @btlechowski and @kjozwiak only checked the First Ad with priority 1 shown:
Ad title of ad shown: CCC Second Ad with priority 2 shown:
Ad title of ad shown: BBB Attempt to show 3rd ad:
Attempt to show 3rd ad:
Attempt to show 3rd ad:
Third ad with priority 3 shown:
Ad title of ad shown: AAA Prior to showing 4th ad:
Fourth Ad with priority 1 shown:
Ad title of ad shown: CCC Fifth Ad with priority 2 shown:
Ad title of ad shown: BBB Attempt to show 6th ad:
Attempt to show 6th ad:
Attempt to show 6th ad:
Attempt to show 6th ad:
Attempt to show 6th ad:
Attempt to show 6th ad:
Attempt to show 6th ad:
Attempt to show 6th ad:
Attempt to show 6th ad:
Attempt to show 6th ad:
Attempt to show 6th ad:
Attempt to show 6th ad:
Sixth ad with priority 3:
Ad title of ad shown: AAA Confirmed Round robin works and the order of ads shown was the same due to priorities Verification passed on
First Ad shown:
2nd Ad shown:
3rd Ad shown:
4th Ad shown:
2nd Ad shown:
3rd Ad shown:
4th Ad shown:
2nd Ad shown:
3rd Ad shown:
4th Ad shown
|
Description
Certain campaigns may need to be prioritized over others for a number of reasons. If certain campaigns have commitments attached to them and are underdelivering, they may need to serve over others available. This is common practice in ad trafficking.
This is dependent on the completion of #5231. On the campaign level, there is a "priority" field with a numerical value from 1-10, 1 meaning the highest priority. For the list of available ads to serve, the native ad library should sort eligible ads ascending by this value, and select by the highest priority first.
The round robin algorithm (#5945) would also change to work first within higher priority levels before going to lower priority levels.
The text was updated successfully, but these errors were encountered: