Skip to content

Commit

Permalink
Native images bug fixed (#2681)
Browse files Browse the repository at this point in the history
* quantumBidAdapter initial commit

* eslint errors fixed

* updating quantumBidAdapter for reviews, fixed tests to work with native

* set new prebid location for testing and some fixing

* added supportedMediaTypes

* Tests fixed

* Fixed issues with image assets. Tested with the example provided

* Size and tests fixed

* Modify tests

* hello world revert changes

* package-lock reverted

* hello world reverted CRLF/LF Conversion

* hello world reverted LF/CRLF Conversion

* hello world reverted

* hello world reverted

* hello world reverted

* removed hardcoded bid sizes

* GDPR integration

* GDPR support - change quantx_gdpr to (0,1) values accepted

* restored package-lock

* GDPR tests

* GDPR tests fixed

* Send width/height with native assets

* Fixed native images bug
  • Loading branch information
sami-elasticad authored and jsnellbaker committed Jun 6, 2018
1 parent 6fd97d6 commit ee4074e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/quantumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,19 +251,19 @@ export const spec = {
break;
case 2:
native.icon = {
url: asset['img'],
width: asset['w'],
height: asset['h']
url: asset['img']['url'],
width: asset['img']['w'],
height: asset['img']['h']
};
break;
case 3:
native.body = asset['data']['value'];
break;
case 4:
native.image = {
url: asset['img'],
width: asset['w'],
height: asset['h']
url: asset['img']['url'],
width: asset['img']['w'],
height: asset['img']['h']
};
break;
case 10:
Expand Down

0 comments on commit ee4074e

Please sign in to comment.