Skip to content
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

Symitri RTD module: OnBidResponse method added #12214

Merged
merged 11 commits into from
Sep 9, 2024

Conversation

mp4symitri
Copy link
Contributor

@mp4symitri mp4symitri commented Sep 9, 2024

Type of change

  • Feature

Description of change

OnBidResponse listener added. This listener listens to bid responses and if it finds a response with dealId matching to the one stored in the local storage by the RTD adapter, it will generate a pixel and append it to ad such that it gets triggered upon rendering of the ad.
Also added support for already hashed identifiers or composite identifiers (array of identifiers)

Here is the PR to prebid.github.io repository with documentation update:
prebid/prebid.github.io#5590

Other information

function onBidResponse(bidResponse, config, userConsent) {
if (bidResponse.dealId && typeof (bidResponse.dealId) != typeof (undefined)) {
let membership = dapUtils.dapGetMembershipFromLocalStorage(); // Get Membership details from Local Storage
let deals = membership.deals; // Get list of Deals the user is mapped to
Copy link
Collaborator

Choose a reason for hiding this comment

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

you may want to also check for deals that match a particular pattern

@patmmccann patmmccann changed the title OnBidResponse listener added with support for hashed and composite identifiers Symetri RTD module: OnBidResponse method added Sep 9, 2024
@patmmccann patmmccann self-assigned this Sep 9, 2024
@patmmccann patmmccann merged commit 123d8aa into prebid:master Sep 9, 2024
5 of 6 checks passed
@patmmccann patmmccann changed the title Symetri RTD module: OnBidResponse method added Symitri RTD module: OnBidResponse method added Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants