Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not getting proper response when sending BID to openrtb2/auction path using prebid-server for video #3960

Closed
as5550 opened this issue Oct 9, 2024 · 4 comments

Comments

@as5550
Copy link

as5550 commented Oct 9, 2024

Hi,
can ayone help me with this, i am not getting proper response when sending BID to openrtb2/auction path using prebid-server for video.
i have used the same prebid server (https://github.com/prebid/prebid-server) and hosted it to 'https://prebid.ubplayer.in'
i am using videoBidRequest as mentioned below as BID
and using axios for requesting BID on 'openrtb2/auction' path as below

code for Sending Bid request -->

    axios.post('https://prebid.ubplayer.in/openrtb2/auction', videoBidRequest, {
        headers: {
          'Content-Type': 'application/json'
        }
      })
      .then(response => {
        console.log("response", response.data);
      })
      .catch(error => {
        console.error('Error:', error);
      });

BID request used -->

let videoBidRequest = {
"id": "11798",
"site": {
"id": "site-id",
"name": "Example Video Site",
"domain": "example.com",
"cat": ["IAB7", "IAB8"],
"publisher": {
"id": "13232361",
"name": "appnexus"
}
},
"device": {
"ua": "user-agent-string",
"ip": "192.168.0.3",
"os": "windows10",
"geo": {
"lat": 37.7749,
"lon": -122.4194,
"country": "IND"
}
},
"imp": [
{
"id": "1",
"video": {
"w": 640,
"h": 480,
"mimes": ["video/mp4", "video/x-ms-wmv"],
"minduration": 5,
"maxduration": 30,
"playbackmethod": [1, 2],
"protocols": [2, 3, 5, 6],
"linearity": 1,
"startdelay": 0,
"skip": 1
},
"ext": {
"prebid": {
"bidder": {
"appnexus": {
"placementId": 13232361,
"publisherId": 11798,
"adSlot": ("div-ub-" + this.clientData?.CURRENT_CLIENT),
"bidfloor": 0.05
}
},
// "storedbidresponse": [
// {
// "bidder": "",
// "id": ""
// }
// ]
}
}
}
],
"user": {
"id": "user-1",
"buyeruid": "buyer-1"
},
"at": 1,
"tmax": 450
};

this is the response i am getting which does not contain any ad response -->

Screenshot 2024-10-09 141739

pls check and let me know what needs to be changed to resolve this

@bretg
Copy link
Contributor

bretg commented Oct 9, 2024

@as5550 - this is not enough to work with.

  1. What prebid server are you trying to hit? Are you just trying to get a "hello world" request to answer? If so, please consider using the "sample" directory https://github.com/prebid/prebid-server/tree/master/sample
  2. Why are you hand-coding the OpenRTB rather than using Prebid.js or Prebid SDK?
  3. Try adding "test":1 to the top level of this JSON to see if it gives you more info.

Here are some specific lines in your OpenRTB that are questionable:

  1. site.publisher.id: "13232361" -- this matters a lot. This ID probably has to mean something to whatever Prebid Server you're trying to hit. It happens to match the placementId you're passing in imp.ext.prebid.bidder.appnexus, so makes me think you don't actually have instructions from AppNexus to use their server.
  2. "adSlot": ("div-ub-" + this.clientData?.CURRENT_CLIENT), this is not valid JSON
  3. // "storedbidresponse": commends are not valid JSON

My guess is you're trying to spin up your own server and want to see any test response. This isn't going to happen -- there are no bidders.I know of that guarantee a test response on every request. (I think there is one, but I can't recall which) You need to rely on storedresponses as shown in the sample directory. https://github.com/prebid/prebid-server/tree/master/sample

@as5550
Copy link
Author

as5550 commented Oct 10, 2024

  1. I have hosted the open source prebid server 'https://github.com/prebid/prebid-server' on 'https://prebid.ubplayer.in/' and trying to hit 'openrtb2/auction'. Ideally it should give a response to a BID request.
  2. I already tried using prebid.js with multiple bidders, but in that case not getting response from bidders so discussed with the bidding partners and they insisted on using server side bidding using prebid server for better response. also when tried on bidders server getting response every time.
  3. adding "test":1 did gave more info thanks, although i still couldn't find that info relevant

for the OpenRTB issues that you pointed out

  1. the site.publisher.id: "13232361" is correct for appnexus, already verified this.
  2. modified the "adSlot" to hard coded adSlot id
  3. removed the comment

but even after making these changes not getting appropriate response, this prebid-server repo should give a valid response on a BID request sent to 'openrtb2/auction' if the request is valid.
I am not trying to see a test response here instead i want to use this prebid server for sending BID request from my video player which is built using videojs ima.

@bretg
Copy link
Contributor

bretg commented Oct 10, 2024

You misunderstand how Prebid Server works.

When you host your own server, there's a lot you need to do.

the site.publisher.id: "13232361" is correct for appnexus, already verified this.

Sorry, but it's not correct. 13232361 is test appnexus video placement code. It is not your publisher ID.

When you run your own Prebid Server, you need to set up your own set of accounts, or turn off accounts entirely. site.publisher.id only means anything in the context of whoever owns the server.

this prebid-server repo should give a valid response on a BID request sent to 'openrtb2/auction' if the request is valid

Not true. There are many reasons why you might not get a bid response back. As I said before, your tests need to rely on stored responses.

Please spend time with the sample configuration we've provided at https://github.com/prebid/prebid-server/tree/master/sample. It uses a stored request that chains to a stored response. When you understand how that sample works, you'll probably be able to fix the configuration of your own server.

@as5550
Copy link
Author

as5550 commented Oct 16, 2024

thanks @bretg ,
i am trying to understand how the sample works.
will try this and closing this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants