Skip to content

Commit

Permalink
Update Grid Bid Adapter (prebid#4379)
Browse files Browse the repository at this point in the history
* Added Grid Bid Adapter

* remove priceType from TheMediaGrid Bid Adapter

* Add video support in Grid Bid Adapter

* Added test parameter for video slot

* update Grid Bid Adapter to set size in response bid

* Update Grid Bid Adapter to support identical uids in parameters

* Fix typo in test file for Grid Bid Adapter

* Update The Grid Media Bidder Adapter to send refererInfo.referer as 'u' parameter in ad request

* Hotfix for referrer in Grid Bid Adapter

* Grid Bid Adapter: added wrapperType and wrappweVersion to the ad request
  • Loading branch information
TheMediaGrid authored and jsnellbaker committed Oct 25, 2019
1 parent 6c908ce commit 59a3229
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/gridBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export const spec = {
const payload = {
auids: auids.join(','),
sizes: utils.getKeys(sizeMap).join(','),
r: reqId
r: reqId,
wrapperType: 'Prebid_js',
wrapperVersion: '$prebid.version$'
};

if (bidderRequest) {
Expand Down
4 changes: 3 additions & 1 deletion test/spec/modules/gridBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ describe('TheMediaGrid Adapter', function () {
expect(payload).to.have.property('auids', '1');
expect(payload).to.have.property('sizes', '300x250,300x600');
expect(payload).to.have.property('r', '22edbae2733bf6');
expect(payload).to.have.property('wrapperType', 'Prebid_js');
expect(payload).to.have.property('wrapperVersion', '$prebid.version$');
});

it('auids must not be duplicated', function () {
it('sizes must not be duplicated', function () {
const request = spec.buildRequests(bidRequests, bidderRequest);
expect(request.data).to.be.an('string');
const payload = parseRequest(request.data);
Expand Down

0 comments on commit 59a3229

Please sign in to comment.