prebid / Prebid.js

Setup and manage header bidding advertising partners without writing code or confusing line items. Prebid.js is open source and free.
https://docs.prebid.org
Apache License 2.0
1.33k stars 2.08k forks source link

OpenX's revenues are not recorded #138

Closed salvoaranzulla closed 8 years ago

salvoaranzulla commented 8 years ago

I'm trying to use OpenX inside Prebid.js: all creativities seem to be perfect. After I have gone live, I have discovered that earnings are not recorded by my OpenX's dashboard:

screenshot 2015-12-12 09 47 14

My configuration is very easy:

screenshot 2015-12-11 04 40 58

Do you have this problem?

Thanks

BartVB commented 8 years ago

You didn't specify the 'Page ID' (pgid), according to the documentation this is a required parameter: http://prebid.org/dev-docs/bidders.html

Are you sure that you have access to the OpenX bidder interface? Apparently OpenX has a couple of different types of accounts for publishers. The 'default' account type is unable to receive individual bids on impressions.

salvoaranzulla commented 8 years ago

Hi Bart,

Yes, I have the right account. I think pgid is used to do 1 ad requests:

http://docs.openx.com/ad_server/adtagguide_structured_structure_page.html

BartVB commented 8 years ago

Ah, indeed. It looks like either the pgid or unit parameters are required.

Also check what happens in the network tab of your browsers development tools. Is a call being made to OpenX? What does OpenX respond?

salvoaranzulla commented 8 years ago

Ah, indeed. It looks like either the pgid or unit parameters are required.

Yes, it's correct: ither the pgid or ad unit id.

Is a call being made to OpenX?

Yes, sure.

What does OpenX respond?

It's the same response of OpenX Bidder.

For the moment, I have solved loading OpenX Bidder:

            var OpenXAdaptor = function OpenXAdaptor() {
                return {
                    callBids: function(p) {
                        pbjs.loadScript('//ox-d.[my-account].servedbyopenx.com/w/1.0/jstag?nc=[my-account]', function() {
                                pbjs.bidsAvailableForAdapter('openx');
                        });
                    }
                };
            };
            pbjs.registerBidAdapter(OpenXAdaptor, 'openx');

And

                        {
                            bidder: 'openx'
                        },

Thanks

ConsumedMedia1 commented 8 years ago

At Consumed Media, we had the same problem, in that OpenX doesn’t record revenue with Prebid. Our sister company, bRealtime, was able to get us working using their Biddr+ header bidding solution. Their’s is the only one that works correctly with OpenX. Let me know if you want their help.

salvoaranzulla commented 8 years ago

Hi,

I have solved loading original OpenX Bidder's script.

Heray commented 8 years ago

@salvoaranzulla mind help us understand how you solved this issue? This could benefit a lot of us. Thanks!

salvoaranzulla commented 8 years ago

@Heray I have created a "fake" adaptor:

        var OpenXAdaptor = function OpenXAdaptor() {
            return {
                callBids: function(p) {
                    pbjs.loadScript('//ox-d.[my-account].servedbyopenx.com/w/1.0/jstag?nc=[my-account]', function() {
                            pbjs.bidsAvailableForAdapter('openx');
                    });
                }
            };
        };
        pbjs.registerBidAdapter(OpenXAdaptor, 'openx');

And I have added this bidder on 1 ad unit:

                    {
                        bidder: 'openx'
                    }

In this way, you can load original OpenX Bidder script. You need to configure DFP with a different order and different line items.

protonate commented 8 years ago

Closing as the OP has resolved the issue. Thanks @salvoaranzulla for posting your solution.