Skip to content

ourcraig/pbjs-instl-tests

Repository files navigation

pbjs-instl-tests

This repository is for the testing of PBJS x GPT out-of-page interstitial integrations.

Instructions

Observe behaviour on the test pages below.

Note: GPT out-of-page interstitials have a frequency cap of 1 view per user per hour. To refresh the cap simply clear local storage on any test page:

localStorage.clear();

Test Pages

Renders a Prebid banner into a GPT interstitial slot using the default Prebid Universal Creative

Notes:

  • The PUC renders the banner immediately when returned from GAM, despite not being viewable
  • pbjs.triggerBilling is being used but no bid adapters seem to be using the onBidBillable event (ref)
  • The iframe containing the banner needs to be resized due to the 1x1 size of the PUC

Attempts to render a Prebid banner into a GPT interstitial slot using the Prebid Universal Creative

Notes:

  • The pubUrl in the PUC does not match the origin of the SafeFrame leading to a postMessage error preventing rendering
  • Cannot access the iframe inside the SafeFrame to resize for the 1x1 PUC due to cross-origin issues

Defers rendering of a Prebid banner into a GPT interstitial slot using a modified Prebid Universal Creative

Notes:

  • Requires an additional hb_instl:true ad-server targeting key
  • If hb_instl:true is received then render happens on GPT impressionViewable event
  • The iframe containing the banner needs to be resized due to the 1x1 size of the PUC

Attempts to defer the render a Prebid banner into a GPT interstitial slot using a modified Prebid Universal Creative

Notes:

  • Requires an additional hb_instl:true ad-server targeting key
  • If hb_instl:true is received then pubUrl is set to "*"
  • If hb_instl:true is received then render happens on GPT impressionViewable event
  • postMessage from PUC does not seem to be able to reach parent window due to GPT SafeFrame inner iframe
  • Cannot access the iframe inside the SafeFrame to resize for the 1x1 PUC due to cross-origin issues

Documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages