Skip to content

Commit

Permalink
Merge pull request #322 from PubMatic-OpenWrap/hookissuefix
Browse files Browse the repository at this point in the history
Hookissuefix
  • Loading branch information
pm-shashank-jain authored Mar 18, 2019
2 parents 5be60fb + 02462be commit caf15e6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
4 changes: 3 additions & 1 deletion modules/pubmaticBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ function _createNativeRequest(params) {
type: NATIVE_ASSET_IMAGE_TYPE.ICON,
w: params[key].w || params[key].width || (params[key].sizes ? params[key].sizes[0] : undefined),
h: params[key].h || params[key].height || (params[key].sizes ? params[key].sizes[1] : undefined),
ext: params[key].ext
}
};
} else {
Expand Down Expand Up @@ -442,7 +443,8 @@ function _createNativeRequest(params) {
img: {
type: NATIVE_ASSET_IMAGE_TYPE.LOGO,
w: params[key].w || params[key].width || (params[key].sizes ? params[key].sizes[0] : undefined),
h: params[key].h || params[key].height || (params[key].sizes ? params[key].sizes[1] : undefined)
h: params[key].h || params[key].height || (params[key].sizes ? params[key].sizes[1] : undefined),
ext: params[key].ext
}
};
break;
Expand Down
34 changes: 17 additions & 17 deletions src/constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,23 @@
"FORMAT": "hb_format"
},
"NATIVE_KEYS": {
"title": "hb_native_title",
"body": "hb_native_body",
"body2": "hb_native_body2",
"privacyLink": "hb_native_privacy",
"sponsoredBy": "hb_native_brand",
"image": "hb_native_image",
"icon": "hb_native_icon",
"clickUrl": "hb_native_linkurl",
"displayUrl": "hb_native_displayurl",
"cta": "hb_native_cta",
"rating": "hb_native_rating",
"address": "hb_native_address",
"downloads": "hb_native_downloads",
"likes": "hb_native_likes",
"phone": "hb_native_phone",
"price": "hb_native_price",
"salePrice": "hb_native_saleprice"
"title": "pwt_native_title",
"body": "pwt_native_body",
"body2": "pwt_native_body2",
"privacyLink": "pwt_native_privacy",
"sponsoredBy": "pwt_native_brand",
"image": "pwt_native_image",
"icon": "pwt_native_icon",
"clickUrl": "pwt_native_linkurl",
"displayUrl": "pwt_native_displayurl",
"cta": "pwt_native_cta",
"rating": "pwt_native_rating",
"address": "pwt_native_address",
"downloads": "pwt_native_downloads",
"likes": "pwt_native_likes",
"phone": "pwt_native_phone",
"price": "pwt_native_price",
"salePrice": "pwt_native_saleprice"
},
"S2S" : {
"SRC" : "s2s",
Expand Down
1 change: 1 addition & 0 deletions src/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import funHooks from 'fun-hooks';

export let hook = funHooks({
useProxy: false,
ready: funHooks.SYNC | funHooks.ASYNC | funHooks.QUEUE
});

Expand Down

0 comments on commit caf15e6

Please sign in to comment.