prebid / prebid-universal-creative

Apache License 2.0
42 stars 67 forks source link

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

Open akshaymehta1115245 opened 1 month ago

akshaymehta1115245 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

@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:

YuriyVelichkoPI commented 1 month ago

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.