Skip to content

Commit

Permalink
AIDEM Bidder Adapter: added arbitrary ext field to win notice (#9906)
Browse files Browse the repository at this point in the history
* AIDEM Bid Adapter

* Added _spec.js

* update

* Fix Navigator in _spec.js

* Removed timeout handler.

* Added publisherId as required bidder params

* moved publisherId into site publisher object

* Added wpar to environment

* Added placementId parameter

* added unit tests for the wpar environment object

* PlacementId is now a required parameter
Added optional rateLimit parameter
Added publisherId, siteId, placementId in win notice payload
Added unit tests

* Revert to optional placementId parameter
Added missing semicolons

* Extended win notice

* Added arbitrary ext field to win notice

---------

Co-authored-by: Giovanni Sollazzo <[email protected]>
Co-authored-by: darkstar <[email protected]>
Co-authored-by: AndreaC <[email protected]>
  • Loading branch information
4 people authored May 6, 2023
1 parent 386c95a commit c43a0e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/aidemBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ function getPageUrl(bidderRequest) {
function buildWinNotice(bid) {
const params = bid.params[0];
const app = deepAccess(bid, 'meta.ext.app')
const winNoticeExt = deepAccess(bid, 'meta.ext.win_notice_ext')
return {
publisherId: params.publisherId,
siteId: params.siteId,
Expand All @@ -170,7 +171,8 @@ function buildWinNotice(bid) {
responseTimestamp: bid.responseTimestamp,
mediatype: bid.mediaType,
environment: app ? 'app' : 'web',
...app
...app,
ext: winNoticeExt,
};
}

Expand Down
3 changes: 3 additions & 0 deletions test/spec/modules/aidemBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ const WIN_NOTICE_APP = {
'app_name': '{{APP_NAME}}',
'app_store_url': '{{APP_STORE_URL}}',
'inventory_source': '{{INVENTORY_SOURCE}}'
},
'win_notice_ext': {
'seatid': '{{SEAT_ID}}'
}
}
},
Expand Down

0 comments on commit c43a0e4

Please sign in to comment.