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

Troubleshooting DFP line items against prebid

Open veeba opened this issue 11 years ago • 18 comments

Can somebody check and help me with this: http://sport.ba/theme/Sport/te/prebid.html

I created prebid, in DFP i created line-items with range from 0.1 to 1.5. On that ad-unit I also add Network line-item (Example of 300x250) to shows if no sales.

This errorr is showing in console: Uncaught ReferenceError: require is not defined(anonymous function) @ prebid.js:6

I cannot see any console.log about bidding?

veeba avatar Dec 04 '15 15:12 veeba

The prebid.js file looks wrong to me, you need to build it by downloading this repo and executing gulp build you will have prebid build in dist/ copy that file to your site and follow the example to setup Prebid.

ialex avatar Dec 04 '15 15:12 ialex

Thanks. I fixed that - http://sport.ba/theme/Sport/te/prebid.html

veeba avatar Dec 04 '15 15:12 veeba

Thanks for helping out @ialex

Btw you can download the compiled code from the release page directly https://github.com/prebid/Prebid.js/releases/download/0.4.1/Prebid.js_0.4.1.zip

mkendall07 avatar Dec 04 '15 15:12 mkendall07

@veeba

You can add pbjs_debug=true to the query to view output from prebid.js http://sport.ba/theme/Sport/te/prebid.html?pbjs_debug=true

I see you have 1 bidder (rubicon) but no bid responses. Maybe try increasing the timeout?

mkendall07 avatar Dec 04 '15 16:12 mkendall07

Increased :)

veeba avatar Dec 04 '15 16:12 veeba

Cool, you got a bid! Now you just need to create a matching line item in DFP for that keyword target

image

mkendall07 avatar Dec 04 '15 16:12 mkendall07

How to do that?

veeba avatar Dec 04 '15 16:12 veeba

@veeba check out http://prebid.org/adops/step-by-step.html for detailed instructions

mkendall07 avatar Dec 04 '15 16:12 mkendall07

I did all of that, but with line-items 0.1, 0.2, 0.5, 0.7, 1 and 1.5

veeba avatar Dec 04 '15 16:12 veeba

probably need to create higher buckets for CPMs. The bid I received was for $3.00, so you need to create higher value line items. Also you can create a line item for CPM > x for a catch all

mkendall07 avatar Dec 04 '15 16:12 mkendall07

I created, and tested. For ex. there is 3.00 line-item, and if bid is 3.00 nothing happened (it passback ad). I expect to see real ad, why is that not happening?

veeba avatar Dec 05 '15 08:12 veeba

Can somebody help me. I created line-items but if bid is for ex. 3.00 that line-item is not called? Why?

veeba avatar Dec 07 '15 14:12 veeba

Everything on your page looks good. I think you have an issue on your DFP setup. Make sure all the line items have the proper priorities.

Also - you can also hardcode targeting to ensure your line items are being targeting correctly: googletag.defineSlot(topSlotCode, topSlotSizes, 'div-gpt-ad').setTargeting("hb_pb", "3.00").addService(googletag.pubads());

mkendall07 avatar Dec 07 '15 15:12 mkendall07

congrats @veeba your page looks like it's working now with rubicon running! Anything else we can help with?

ghost avatar Dec 07 '15 23:12 ghost

Thanks :) My next step is start prebid for Sync DFP tags :+1:

veeba avatar Dec 08 '15 08:12 veeba

@prebid @mkendall07 @ialex One more question :) Can somebody explain how can I find details "nid" and "cookiename" in Criteo, also "jstag_url", "pgid" and "unit" in OpenX. Where can I find that (from tag or somewhere from platfroms?). Thanks again

veeba avatar Dec 08 '15 14:12 veeba

Answered here: https://github.com/prebid/Prebid.js/issues/135

BartVB avatar Dec 10 '15 10:12 BartVB

Thanks @BartVB! Really appreciate the help!

ghost avatar Dec 10 '15 14:12 ghost