Skip to content

Commit

Permalink
Merge pull request #19 from freestarcapital/hotfix-zeroid-update
Browse files Browse the repository at this point in the history
Updated ZID
  • Loading branch information
aecook authored Jun 7, 2018
2 parents 5fb425d + 51ab9be commit 844fc94
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/zeroIdBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ const generateID = function () {
}

const buildRequests = function (validBidRequests, bidderRequest) {
let domain = "delivery.zeroidtech.com";
let domain = "delivery.h.switchadhub.com";
let loadID = generateID();

window.googletag = window.googletag || {};
Expand Down Expand Up @@ -406,11 +406,11 @@ const buildRequests = function (validBidRequests, bidderRequest) {

return {
method: 'POST',
url: "https://delivery.zeroidtech.com/bid", //" + domain + "/prebid",
url: "https://delivery.h.switchadhub.com/prebid", //" + domain + "/prebid",
data: JSON.stringify(request),
bidderRequest,
options: {
contentType: 'application/Json',
contentType: 'text/plain',
withCredentials: true
}
};
Expand Down Expand Up @@ -518,11 +518,10 @@ const triggerSync = function () {

window.swSyncDone = true;

let syncUri = "https://delivery.zeroidtech.com/sync";
let syncUri = "https://delivery.h.switchadhub.com/sync";

syncUri += `?consent_string=${consent_string}`;
syncUri += `&gdpr_applies=${gdpr_applies ? 1 : 0}`;
syncUri += `&ohost=delivery.zeroidtech.com`;

let swid = readCookie('__SW');
if (swid === null) {
Expand Down

0 comments on commit 844fc94

Please sign in to comment.