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

Rubicon Bidder configuration

Open marvinferreira opened this issue 10 years ago • 2 comments

When I call Prebid and it call Rubicon GET http://ads.rubiconproject.com/header/12460.js I received a 404 from the GET call. Is it some problem with authentication? Do I need to enable Header Biddin at Rubicon?

My snippet:

                <script type='text/javascript'>
                    var googletag = googletag || {};
                    googletag.cmd = googletag.cmd || [];

                    googletag.cmd.push(function() {
                        googletag.pubads().disableInitialLoad();
                    });

                    pbjs.que.push(function() {
                            pbjs.addAdUnits(adUnits);
                            pbjs.requestBids({
                                bidsBackHandler: sendAdserverRequest
                            });
                        });

                        function sendAdserverRequest() {
                            if (pbjs.adserverRequestSent) return;
                            pbjs.adserverRequestSent = true;
                            googletag.cmd.push(function() {
                                pbjs.que.push(function() {
                                    pbjs.setTargetingForGPTAsync();
                                    googletag.pubads().refresh();
                                });
                            });
                        }

                        setTimeout(function() {
                            sendAdserverRequest();
                        }, PREBID_TIMEOUT);

                    (function() {
                        var gads = document.createElement('script');
                        gads.async = true;
                        gads.type = 'text/javascript';
                        var usessl = 'https:' == document.location.protocol;
                        gads.src = (usessl ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js';
                        var node =document.getElementsByTagName('script')[0];
                        node.parentNode.insertBefore(gads, node);
                    })();
                </script>   

Thanks!!

marvinferreira avatar Sep 20 '16 20:09 marvinferreira

@marvinferreira yes please contact Rubicon support. CC: @bretg

mkendall07 avatar Sep 20 '16 20:09 mkendall07

Thanks!!

marvinferreira avatar Sep 20 '16 20:09 marvinferreira