prebid / prebid-server

Open-source solution for running real-time advertising auctions in the cloud.
https://prebid.org/product-suite/prebid-server/
Apache License 2.0
425 stars 720 forks source link

Rubicon cookie sync not working in local/custom prebid server #272

Closed alexmrf closed 6 years ago

alexmrf commented 6 years ago

As far as i understand, in the cookie sync phase, when prebid-server detects that the user does not have a cookie relation between rubicon and the user makes a request to a rubicon endpoint:

https://pixel.rubiconproject.com/exchange/sync.php?p=prebid

This endpoint responds with a redirect:

https://prebid.adnxs.com/pbs/v1/setuid?bidder=rubicon&uid=JBRTV4C7-14-59K4

I guess that this redirect sets the user uid in the prebid-server but instead of sending it to my local prebid-server is sending it to the one hosted by adnxs.

dbemiller commented 6 years ago

@DucChau Does Rubicon's usersync endpoint have some way to accept the PBS domain as an argument?

If so, you'll just need to overwrite the default config value. If not, Rubicon will need to make their endpoint more flexible before anything can be done in PBS.

DucChau commented 6 years ago

@alexmrf Rubicon Project supports the redirection. We require companies looking to do cookie syncing with us to register their redirect URL with us. After you register the URL we will hand you a key that you can use in the "p" parameter of the sync URL.

Example:

  1. you register http://www.foo.com/usersync with us
  2. we tell you the key is "foo"
  3. https://pixel.rubiconproject.com/exchange/sync.php?p=foo when called will set the uid and redirect to the URL you registered with us in step 1 (http://www.foo.com/usersync) with the uid

You can send an email to header-bidding@rubiconproject.com to register your redirect URL with us.

@bretg per your suggestion, we should document this step somewhere.

dbemiller commented 6 years ago

For now, how about docs/developers/bidders/rubicon.md? Or maybe just docs/bidders/rubicon.md?

Other bidders can put their own special instructions in similarly named files.

alexmrf commented 6 years ago

@DucChau Thank you very much! We will do so.

DucChau commented 6 years ago

I like docs/bidders/rubicon.md since I feel like it can be a catch all for all things exchange related...versus just developer centric notes.

bretg commented 6 years ago

Thanks @dbemiller