-
Notifications
You must be signed in to change notification settings - Fork 753
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
Should prebid server listen to port 443 instead of 8000? #690
Comments
|
Thank you for helping me with this, @dbemiller ! Your answer to #2 makes sense. Thanks for that! But I'm still confused on how to specify the Prebid Server URL in the first item on this page: http://prebid.org/dev-docs/how-prebid-on-amp-works.html Would you know of a site that uses Prebid Server from Google AMP pages you might point me at, and I can reverse-engineer what they did to maybe figure out how to point the AMP ads in a page at the Prebid server instance I'm setting up? |
From the docs:
Note the The AMP project includes
That's where the URL comes from in the docs example. As a single publisher, you might be able to just use a custom |
I guess that's what makes me confused. What you sent looks to me more like the AMP Fast Fetch, where the bid requests go straight from the page to the ad partners and back to the page and then to DFP bypassing any need for Prebid Server. I don't get where any Prebid Server instance I set up fits into that equation. I through the flow was AMP Ad -> my Prebid Server instance -> the ad partners -> my Prebid Server instance > AMP Ad -> DFP. but what you seem to describe looks more like AMP Ad -> the ad partners -> AMP Ad -> DFP. For the prebidappnexus example you sent, doesn't the amp-ad just ask prebid.adnxs.com for bids and any Prebid Server instance I set up gets ignored? Apologies for being slow to understand how this all fits together... |
The If you are just a single publisher with your own prebid server instance, you may want to use the |
Ok, so I'm not so crazy :) By default, amp-ad DOES go to each adapter endpoint hosted at each partner's server: prebidappnexus params go to prebidadnxs.com to get it's bids, rubicon goes to prebid-server.rubiconproject.com to get its' bids, etc. But if I configure my amp-ad to be as you described, specifying a different URL for the AppNexus endpoint: If so, then how do I get my Prebid Server instance to take that one AppNexus PlacementID bid request and make requests to AppNexus and all of our other partners to get bids from everyone (everyone that supports Prebid Server that is)? Or do I maybe just include every partner we use (that Prebid Server supports, up to 5) in the rtc-config and override each url to use myprebidserver.com? |
For that, you need Stored Requests. You'll need to set up some sort of backend to save that data on your server, and then configure PBS to read from it (more env variables). Right now PBS has backends for flat text files, Postgres, and a REST endpoint... but feel free to submit a PR if you have another backend in mind. The Stored Request data should have all the Bidders & Params you need. The AMP API is something like: |
Also not that you don't want to use both As dbemiller noted, the |
OK, thanks you two! I think I'm getting it now. So to use my own instance for AMP ads via Prebid server, I think I get
The last thing that I don't understand then is: what would my tag look to use a Stored Request POST at https://myprebidserver.com/openrtb2/amp?tag_id=[my_tag_id]? |
Oh, one other potential issue, I don't believe prebid server will handle SSL certs ... usually you have the load balancer handle SSL certs and then all traffic use http behind that. if you are routing all traffic directly to your prebid instance then that could be an issue for https traffic. |
Your example above was going in the correct direction: I am just not sure on the macro support in custom URLs vs defined vendors in amp rtc. |
Cool, I think I can get started actually firing this thing up - thanks for all the help, @hhhjort and @dbemiller ! Regarding port 443: maybe an .htaccess proxy rule could route from myprebidserver.com:443 to localhost:8000...but I'm not sure if that'll pass the SSL certs through. But I'll cross that bridge when I get to it. I know tho that AMP requires HTTPS, and making a POST from HTTPS to HTTP should be a permissions violation, so I would think we'd need to stick with port 443. I'm off to try this out. Thanks again! |
Greetings,
I'm just getting started with Prebid Server, currently setting up the server itself indending it to work with our Google AMP ads, and I have some questions I'm hoping you can help me with:
Thank you!
The text was updated successfully, but these errors were encountered: