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

Creatives are not getting rendered via latest PUC files (banner.js,video.js) #231

Open
akshaymehta1115245 opened this issue May 23, 2024 · 3 comments

Comments

@akshaymehta1115245
Copy link

Hi Team,

We are creating our own inhouse bidding solution by hosting Prebid server inhouse for mobile apps.

We are using PUC script for rendering the creatives. The problem which we are facing here is, with creative.js we are able to fetch the creatives from Prebid cache, but with banner.js no cache is hit and creative is not rendered.

I have added the same script for top bid on GAM Creative section which on runtime chooses the banner.js or video.js based on hb_format.

Please tell me why banner.js is not working

@dgirardi
Copy link
Collaborator

banner/video/native are intended for web. there's also mobile.js and amp.js that go through the cache, and creative.js combines all into one.

I am not familiar with the mobile workflow and trying to find someone who can hopefully be more useful - but from your description I think our documentation is misleading and using hb_format only works for web.

@bretg
Copy link
Contributor

bretg commented May 28, 2024

@akshaymehta1115245 - please describe your problem in more detail.

Mobile rending is overly-complicated and not well documented. There are a number of options nowadays. Which are you using?

  1. The "original" Google Ad Manager/GMA SDK render method. With this, display ads are set up in the ad server using the regular Prebid.js 3rd party-html style described in https://docs.prebid.org/adops/gam-creative-banner-sbs.html .Video ads, including outstream, are set up in the ad server using video 'vast url' style creatives.
  2. The newer "mobile rending" approach described at https://docs.prebid.org/adops/mobile-rendering-gam-line-item-setup.html . This doesn't use the PUC.
  3. Vendor-specific render SDKs.

If you're using the original method #1, please copy details here:

  • the exact creative you have in GAM
  • a test page

@YuriyVelichkoPI
Copy link
Contributor

Hi @akshaymehta1115245!

For mobile integration, you should use the following PUC:
https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/creative.js

At least we use it in all demo examples, and it works fine for banner ads. Rendering video ads using PUC is not officially supported yet. I mean you can try to play with different versions of PUC and targeting keywords and find a working solution but Prebid doesn't have one. It will be introduced in the scope of #979.

We also should highlight the correct PUC for mobile integration in doc. It was missed in some editing iteration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Req
Development

No branches or pull requests

4 participants