Skip to content

Make visibilitychange rotation an option #214

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

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

davidfischer
Copy link
Contributor

@davidfischer davidfischer commented Oct 17, 2024

This change also disables visibilitychange rotations.

@davidfischer davidfischer requested review from a team and ericholscher October 17, 2024 19:12
@@ -457,7 +457,11 @@ const VIEWPORT_FUDGE_FACTOR = -3; // px
const MIN_VIEW_TIME_ROTATION_DURATION = 45; // seconds
const MAX_ROTATIONS = 3;

// Enable ad rotation on hash change (intra-site nav)
const HASHCHANGE_ROTATION_ENABLE = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice if we could set this in the decision API response, so we could enable it dynamically, even per publisher 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do like that idea. I'll probably skip it here but I'm going to be working on saving more ad rotation details in the server and that's a good time to work on those features.

@davidfischer davidfischer merged commit 7a8af3d into main Oct 17, 2024
4 checks passed
@davidfischer davidfischer deleted the davidfischer/visibilitychange-options branch October 17, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants