Skip to content

Improve Digital Bid Adapter: Bid floor is sent in USD when possible#20

Merged
jbartek25 merged 5 commits intomasterfrom
improvedigital-bid-floor-currency-convertion
Oct 17, 2024
Merged

Improve Digital Bid Adapter: Bid floor is sent in USD when possible#20
jbartek25 merged 5 commits intomasterfrom
improvedigital-bid-floor-currency-convertion

Conversation

@lyubomirshishkov
Copy link
Collaborator

@lyubomirshishkov lyubomirshishkov commented Oct 2, 2024

Type of change

  • Updated bidder adapter

Description of change

Bid Floors are currently always sent in their original currency to Improve Digital, which is problematic in cases when the currency is not supported by the SSP. The proposed change converts all Bid Floors which are not already in USD to USD when possible. If the Bid Floor cannot be converted by Improve Digital's Bid Adapter the Bid Floor is sent as is.

Other information

Original Issue in prebid/Prebid.js - prebid#12238

* **Type:** Fix
* **Scope:** improvedigitalBidAdapter
* **Subject:** Bid floors are always converted to USD.
* **Details:**
* Adds `DEFAULT_CURRENCY` variable which is set to USD
* Adds `convertBidFloorCurrency` function which in used to convert the bid floor when both `imp.bidfloor` and `imp.bidfloorcur` are present, and `imp.bidfloorcur` is not equal to the adapter's `DEFAULT_CURRENCY`;
* **Breaks:** N/A
@lyubomirshishkov lyubomirshishkov self-assigned this Oct 2, 2024
…ed to USD;

* Removes rounding of bid floor when converting its currency to USD;
@lyubomirshishkov lyubomirshishkov changed the title Improve Digital - Bid floor is always sent in USD Improve Digital - Bid floor is sent in USD when possible Oct 2, 2024
@lyubomirshishkov lyubomirshishkov changed the title Improve Digital - Bid floor is sent in USD when possible Improve Digital Bid Adapter: Bid floor is sent in USD when possible Oct 2, 2024
@lyubomirshishkov lyubomirshishkov marked this pull request as ready for review October 2, 2024 14:45
* remove redundant checks for type and NaN from `convertBidFloorCurrency` function
@jbartek25 jbartek25 merged commit cb54dce into master Oct 17, 2024
lyubomirshishkov pushed a commit that referenced this pull request Jun 3, 2025
…ebid 10 (prebid#13194)

* collect EIDs for bid request

* add ad slot positioning to payload

* RPO-2012: Update local storage name-spacing for c_uid (#8)

* Updates c_uid namespacing to be more specific for concert

* fixes unit tests

* remove console.log

* RPO-2012: Add check for shared id (#9)

* Adds check for sharedId

* Updates cookie name

* remove trailing comma

* [RPO-3152] Enable Support for GPP Consent (#12)

* Adds gpp consent integration to concert bid adapter

* Update tests to check for gpp consent string param

* removes user sync endpoint and tests

* updates comment

* cleans up consentAllowsPpid function

* comment fix

* rename variables for clarity

* fixes conditional logic for consent allows function (#13)

* [RPO-3262] Update getUid function to check for pubcid and sharedid (#14)

* Update getUid function to check for pubcid and sharedid

* updates adapter version

* [RPO-3405] Add browserLanguage to request meta object

* ConcertBidAdapter: Add TDID (#20)

* Add tdid to meta object

* Fix null handling and add tests

* Concert Bid Adapter: Add dealId Property to Bid Responses (#22)

* adds dealid property to bid responses

* updates tests

* use first bid for tests

* adds dealid at the correct level

* [RPO-4220] Removes Access to Deprecated userId Object (#23)

* extracts eids

* cleanup

* updates tests and fixes typo

* fix type defs

* use single quotes

* remove whitespace

* bumps adapter version

* removes formatting change

---------

Co-authored-by: antoin <antoin.campbell@voxmedia.com>
Co-authored-by: Antoin <antoinfive@gmail.com>
Co-authored-by: Sam Ghitelman <sam.ghitelman@voxmedia.com>
Co-authored-by: Sam Ghitelman <SGhitelman@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

Successfully merging this pull request may close these issues.

3 participants

Comments