Skip to content

PubMatic Bid Adapter : send viewability percentage of slots #13092

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

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

pm-komal-kumari
Copy link
Contributor

Type of change

  • Feature

Description of change

Enhance the PubMatic bid adapter to measure and report ad viewability for both banner and video impressions using the percentInView utility.

Copy link

Tread carefully! This PR adds 3 linter warnings (possibly disabled through directives):

  • modules/pubmaticBidAdapter.js (+3 warnings)

}

// Add viewability data at the imp.ext level
imp.ext.viewability = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not put it on metrics where it belongs?

Copy link
Collaborator

@patmmccann patmmccann May 13, 2025

Choose a reason for hiding this comment

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

nevermind, putting it on metrics feels wrong, as that is for aggregate viewability, not viewability of the square at time of request... hmm, maybe we could propose a new metric?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here, we're calculating viewability on a per-slot basis, so instead of creating the metric at the impression level, we’ve included it in the ext object.

Copy link

Tread carefully! This PR adds 3 linter warnings (possibly disabled through directives):

  • libraries/percentInView/percentInView.js (+2 warnings)
  • modules/pubmaticBidAdapter.js (+1 warning)

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