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

Module fledgeForGpt: Document AuctionConfig fields #5128

Closed
maxime-dupuis opened this issue Feb 2, 2024 · 10 comments
Closed

Module fledgeForGpt: Document AuctionConfig fields #5128

maxime-dupuis opened this issue Feb 2, 2024 · 10 comments

Comments

@maxime-dupuis
Copy link
Contributor

Other than the addition of the bidId field, the AuctionConfig object should adhere to the requirements set forth in FLEDGE. The details of creating an AuctionConfig object are beyond the scope of this document.

FledgeForGpt module being the API between bidder adapters and GPT, I think this documentation would be improved by explicitly documenting the supported AuctionConfig fields:

  • Field name
  • Definition
  • Type and accepted values

Currently it's unclear to me

Here's a diff of the fields between the 2 documentations:
image

@laurb9
Copy link
Contributor

laurb9 commented Feb 2, 2024

The fledgeForGpt module and Prebid.js treat the auctionConfig as a blob received from adapters, to be passed to the GPT slot. It does not concern itself with any other fields than seller needed in setSlot. GPT itself moves these blobs into componentAuctions the same way. GPT published spec lags behind but their actual implementation does not.

The authority onAuctionConfig seems to be what navigator.runAdAuction supports, and the best place to look is the FLEDGE doc with more details in the WICG spec.

To me, the differences noted above show a good reason why incorporating the AuctionConfig specification in the fledgeForGpt documentation in any way other than by reference is likely to result in yet another lagging spec to foster confusion. Maybe at this time it's more beneficial to have many pointers to one authoritative spec than many copies with varying degrees of fidelity to it.

@maxime-dupuis
Copy link
Contributor Author

maxime-dupuis commented Feb 2, 2024

Thanks for confirming that the GTP spec lags, we'll follow the FLEDGE/WICG spec :)

I agree to not duplicate yet another doc and risk it getting outdated

If Prebid can guarantee the module will always be in sync with the FLEDGE doc, we can work with that

@patmmccann
Copy link
Collaborator

fwiw the right hand part of the chart is not valid for the component seller, as there are no sub-components

@bretg
Copy link
Contributor

bretg commented Feb 22, 2024

@maxime-dupuis - there's a new version of this page at #5135 - please take a look at the preview if you have a few mins to see if it addresses your concerns.

@maxime-dupuis
Copy link
Contributor Author

@maxime-dupuis - there's a new version of this page at #5135 - please take a look at the preview if you have a few mins to see if it addresses your concerns.

@bretg I do like the new structure and how you separated the PAAPI vs PAAPI for GPT doc

But to answer your question, as a bid adapter maintainer, it neither improves nor worsen my understanding about the shape of the AuctionConfig object.

image

the AuctionConfig object should adhere to the requirements set forth in PAAPI is pretty vague and doesn't link to the appropriate documentation.

Even if it did, the PAAPI doc is just a big confusing wall of text. (I don't expect Prebid to fix that, that one is on Google)

@bretg
Copy link
Contributor

bretg commented Feb 23, 2024

the shape of the AuctionConfig object

So what exactly do you mean by this @maxime-dupuis ?

If you're looking for "which fields should I specify in my auctionconfig", that's not for Prebid to decide or document.

If you're looking for "does Prebid care what fields are in the auction config", the answer is clearly no -- Prebid does not validate anything in this opaque object.

If you're looking for "does Prebid add anything to auctionconfig", I believe the answer is yes, Prebid.js adds a "bidfloor" to the auctionconfig since I see deepSetValue(cfg, 'auctionSignals.prebid.bidfloor', bidfloor); but not sure the docs are clear on this point... @dgirardi ?

@maxime-dupuis
Copy link
Contributor Author

what exactly do you mean by this

"which fields should I specify in my auctionconfig"

that's not for Prebid to decide or document

I understand and agree. I propose that Prebid should link to the external documentation

@bretg
Copy link
Contributor

bretg commented Feb 23, 2024

Cool, but link to where? The PR already has several links to https://github.com/WICG/turtledove/blob/main/FLEDGE.md -- are you suggesting that since it's such a large doc, that linking to https://github.com/WICG/turtledove/blob/main/FLEDGE.md#21-initiating-an-on-device-auction might be useful? With what text -- something like "Prebid can't tell you what fields to include in auctionconfig, but you can start by looking in this section of the PAAPI documentation."

@maxime-dupuis
Copy link
Contributor Author

Right on! That would be great

bretg added a commit to dgirardi/prebid.github.io that referenced this issue Feb 26, 2024
@bretg
Copy link
Contributor

bretg commented Feb 26, 2024

Ok, updated the PR with this note. Thanks.

@bretg bretg closed this as completed Feb 26, 2024
patmmccann pushed a commit that referenced this issue Apr 19, 2024
* Prebid.js: new PAAPI module documentation

* remove references to reuse

* feedback

* Update paapi.md

* Update paapi.md

* added auctionconfig note

from #5128

---------

Co-authored-by: bretg <bgorsline@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants