Skip to content

Surface winning-bid economics on the original (GAM) API - #1

Open
yevhenii-audienzz wants to merge 1 commit into
prebid:mainfrom
yevhenii-audienzz:feature/original-api-winning-bid-economics
Open

Surface winning-bid economics on the original (GAM) API#1
yevhenii-audienzz wants to merge 1 commit into
prebid:mainfrom
yevhenii-audienzz:feature/original-api-winning-bid-economics

Conversation

@yevhenii-audienzz

Copy link
Copy Markdown

On the original (GAM) API, Prebid today exposes only the bucketed hb_pb keyword. This adds a way to read the winning bid's exact economics.

  • BidInfo: new public read-only cpm/currency/creativeId/auctionId/adId, populated in create() from the winning bid's ORTB values.
  • AdUnit: new public fetchDemand(adObject:completionBidInfo:) overload — attaches the Prebid targeting keywords for ad serving (like the existing fetchDemand(adObject:completion:)) AND returns the full BidInfo instead of only the ResultCode. baseFetchDemand already produced the BidInfo; the existing public wrapper just discarded it.

Purely additive; no existing API changed.

On the original (GAM) API, Prebid today exposes only the bucketed hb_pb
keyword. This adds a way to read the winning bid's exact economics.

- BidInfo: new public read-only cpm/currency/creativeId/auctionId/adId,
  populated in create() from the winning bid's ORTB values.
- AdUnit: new public fetchDemand(adObject:completionBidInfo:) overload —
  attaches the Prebid targeting keywords for ad serving (like the existing
  fetchDemand(adObject:completion:)) AND returns the full BidInfo instead
  of only the ResultCode. baseFetchDemand already produced the BidInfo;
  the existing public wrapper just discarded it.

Purely additive; no existing API changed.
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

Successfully merging this pull request may close these issues.

1 participant