Skip to content

Commit

Permalink
Nativo Bid Adapter - Refactored spread adapter for IE11 support (preb…
Browse files Browse the repository at this point in the history
…id#7625)

* Initial nativoBidAdapter document creation (js, md and spec)

* Fulling working prebid using nativoBidAdapter. Support for GDPR and CCPA in user syncs.

* Added defult size settings based on the largest ad unit. Added response body validation. Added consent to request url qs params.

* Changed bidder endpoint url

* Changed double quotes to single quotes.

* Reverted package-json.lock to remove modifications from PR

* Added optional bidder param 'url' so the ad server can force- match an existing placement

* Lint fix. Added space after if.

* Added new QS param to send various adUnit data to adapter endpopint

* Updated unit test for new QS param

* Added qs param to keep track of ad unit refreshes

* Updated bidMap key default value

* Updated refresh increment logic

* Refactored spread operator for IE11 support

Co-authored-by: Joshua Fledderjohn <jfledderjohn@nativo.com>
  • Loading branch information
2 people authored and Chris Pabst committed Jan 10, 2022
1 parent 952ae41 commit f58a579
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/nativoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ export const spec = {
]

if (placementIds.size > 0) {
params.unshift({ key: 'ntv_ptd', value: placementIds.toString() })
// Convert Set to Array (IE 11 Safe)
const placements = []
placementIds.forEach((value) => placements.push(value))
// Append to query string paramters
params.unshift({ key: 'ntv_ptd', value: placements.join(',') })
}

if (bidderRequest.gdprConsent) {
Expand Down

0 comments on commit f58a579

Please sign in to comment.