Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Rubicon Outstream: Ignoring bid: Video bid does not have required vastUrl or renderer property

Open lanceloti opened this issue 8 years ago • 5 comments

Type of issue

bug

Description

I'm testing Rubicon with outstream video context but getting this error: Invalid bid from Rubicon. Ignoring bid: Video bid does not have required vastUrl or renderer property

Steps to reproduce

Configure Rubicon as bidder in a video outstream adunit.

Test page

http://maringa.odiario.com/ads/adplayer-outstream.php?pbjs_debug=true

Expected results

Show the video ad

Actual results

An error in console

Platform details

Prebid 1.18 e 1.19

Other information

https://github.com/prebid/Prebid.js/pull/2683

screenshot_60 screenshot_61

lanceloti avatar Aug 09 '18 20:08 lanceloti

@bretg to review.

mkendall07 avatar Aug 16 '18 17:08 mkendall07

I'm trying instream context and gotting similar error on bid response. screenshot_78

lanceloti avatar Aug 27 '18 19:08 lanceloti

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 10 '18 20:09 stale[bot]

I think the instream issue should be cleared up with 1.24 and #3082.

Will check out the outstream issue... don't see why that error should be appearing.

bretg avatar Sep 13 '18 21:09 bretg

Figured it out.

Rubicon does not return a renderer. The publisher must supply a renderer in the adunit. See http://prebid.org/dev-docs/show-outstream-video-ads.html

        var adUnits = [{
            code: 'video1',
            mediaTypes: {
                video: {
                    playerSize: [640, 480],
                    context: 'outstream'
                }
            },
            renderer: {
                  url: 'RENDERER_JS_URL',
                  render: function (bid) {
                        RENDEROBJ.renderAd({  // call the function defined by the RENDERER_JS_URL
                                targetId: bid.adUnitCode,
                                adResponse: bid.adResponse,
                       });
                  }
            },
            bids: [{
                ...

If the renderer object isn't in the AdUnit, you'll see the "Video bid does not have required vastUrl or renderer property" error.

Please re-open if this doesn't resolve the issue.

bretg avatar Sep 18 '18 19:09 bretg