Skip to content

Commit

Permalink
Do not undo my featureeee
Browse files Browse the repository at this point in the history
  • Loading branch information
ym-elber committed Dec 23, 2019
1 parent b212e38 commit 0185407
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions modules/yieldmoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const BIDDER_CODE = 'yieldmo';
const CURRENCY = 'USD';
const TIME_TO_LIVE = 300;
const NET_REVENUE = true;
const SYNC_ENDPOINT = 'https://static.yieldmo.com/blank.min.html?orig=';
const SERVER_ENDPOINT = 'https://ads.yieldmo.com/exchange/prebid';
const localWindow = utils.getWindowTop();

Expand Down Expand Up @@ -89,15 +88,8 @@ export const spec = {
}
return bids;
},
getUserSync: function(syncOptions) {
if (trackingEnabled(syncOptions)) {
return [{
type: 'iframe',
url: SYNC_ENDPOINT + utils.getOrigin()
}];
} else {
return [];
}
getUserSyncs: function(syncOptions) {
return [];
}
}
registerBidder(spec);
Expand Down Expand Up @@ -145,22 +137,6 @@ function createNewBid(response) {
};
}

/**
* Detects if tracking is allowed
* @returns false if dnt or if not iframe/pixel enabled
*/
function trackingEnabled(options) {
return (isIOS() && !getDNT() && options.iframeEnabled);
}

/**
* Detects whether we're in iOS
* @returns true if in iOS
*/
function isIOS() {
return /iPhone|iPad|iPod/i.test(window.navigator.userAgent);
}

/**
* Detects whether dnt is true
* @returns true if user enabled dnt
Expand Down

0 comments on commit 0185407

Please sign in to comment.