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

Update video examples to not rely on a bidder being available and willing to bid #5248

Open
dgirardi opened this issue Apr 8, 2024 · 1 comment

Comments

@dgirardi
Copy link
Contributor

dgirardi commented Apr 8, 2024

Sometimes the appnexus adapter will not bid - which is not great for example pages.

Originally posted by @dgirardi in #11247

Instead of using real bidders and test accounts, this could be done with the debugging module. To avoid generating confusion with debugging config in the example html, we could have "token" bidders set up in a separate js file; something like:

// docs.prebid.org/files/example-setup.js

pbjs.que.push(() => {
   pbjs.setConfig({
      debugging: {
          enabled: true,
          intercept: [{
              when: {
                    bidder: 'outstreamBidder',
              },
              then: {
                    vastXml: '...'
              }
          }]
      }
   })
})

then link to it and use token bidders from examples:

// ...
<script aysnc src="jsdelivr/prebid.js">
<script async src="docs.prebid.org/files/example-stetup.js">
<script>
   pbjs.addAdUnits([{
        //...
        bids: [{
         bidder: 'outstreamBidder'
        }]
   }])
</script>
@patmmccann
Copy link
Collaborator

prebid/Prebid.js#10944 (comment) has a suggestion on changing the example structure

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

No branches or pull requests

2 participants