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

Unable to render the test ad on hello_world.html

Open sireeshaAdmedia opened this issue 3 years ago • 4 comments

Question

I want my test ad to render on the html test page as per the documentation at http://localhost:9999/integrationExamples/gpt/hello_world.html

Description

To test my adapter, I am returning a test ad in bid response to check if the adapter can consume the object. What am I doing incorrectly ? My return object is

[{"requestId":"782332","cpm":0.56,"width":300,"height":250,"ad":"<img src="https://dummyimage.com/3x0/000150/fff.jpg&text=Admedia">","ttl":200,"creativeId":125,"netRevenue":true,"currency":"USD"}]

Steps to reproduce

Test page

Expected results

  • Render the Test ad

Actual results

  • No Ad is rendered

Platform details

Other information

hello_world_test.csv

sireeshaAdmedia avatar Aug 16 '22 03:08 sireeshaAdmedia

I think we need some more information - this is for a new adapter I assume? what do you see in the logs (with debug enabled)? could you post a minimal version of your adapter that shows the problem?

dgirardi avatar Aug 16 '22 16:08 dgirardi

Screen Shot 2022-08-15 at 10 17 12 PM

sireeshaAdmedia avatar Aug 16 '22 16:08 sireeshaAdmedia

hi @dgirardi just attached the screenshot of debug logs

sireeshaAdmedia avatar Aug 16 '22 16:08 sireeshaAdmedia

That warning means that, most likely, the bid response returned by your adapter has a requestId that does not match any of the requests' bidIds (see docs). Prebid discards your bid and the auction has no winner (and nothing is rendered).

bidId is a random identifier, so you need to echo it back from the request - using a canned response won't work.

dgirardi avatar Aug 16 '22 16:08 dgirardi

Closing this out. Let us know if there's still an open question.

bretg avatar Sep 26 '22 15:09 bretg