Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libraries/intentIqConstants/intentIqConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const GVLID = "1323";
export const VERSION = 0.33;
export const PREBID = "pbjs";
export const HOURS_24 = 86400000;
export const HOURS_72 = HOURS_24 * 3;

export const INVALID_ID = "INVALID_ID";

Expand Down
6 changes: 3 additions & 3 deletions modules/intentIqIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
EMPTY,
GVLID,
VERSION, INVALID_ID, SYNC_REFRESH_MILL, META_DATA_CONSTANT, PREBID,
HOURS_24, CH_KEYS
HOURS_72, CH_KEYS
} from '../libraries/intentIqConstants/intentIqConstants.js';
import {SYNC_KEY} from '../libraries/intentIqUtils/getSyncKey.js';
import {iiqPixelServerAddress, getIiqServerAddress} from '../libraries/intentIqUtils/intentIqConfig.js';
Expand Down Expand Up @@ -454,7 +454,7 @@ export const intentIqIdSubmodule = {
if (!shouldCallServer) {
if (!hasPartnerData && !firstPartyData.isOptedOut) {
shouldCallServer = true;
} else shouldCallServer = Date.now() > firstPartyData.sCal + HOURS_24;
} else shouldCallServer = Date.now() > firstPartyData.sCal + HOURS_72;
}

if (firstPartyData.isOptedOut) {
Expand Down Expand Up @@ -542,7 +542,7 @@ export const intentIqIdSubmodule = {
if (callbackTimeoutID) clearTimeout(callbackTimeoutID)
if ('cttl' in respJson) {
partnerData.cttl = respJson.cttl;
} else partnerData.cttl = HOURS_24;
} else partnerData.cttl = HOURS_72;

if ('tc' in respJson) {
partnerData.terminationCause = respJson.tc;
Expand Down
4 changes: 2 additions & 2 deletions test/spec/modules/intentIqIdSystem_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ describe('IntentIQ tests', function () {
expect(result).to.equal('unknown');
});

it("Should call the server for new partner if FPD has been updated by other partner, and 24 hours have not yet passed.", async () => {
it("Should call the server for new partner if FPD has been updated by other partner, and 72 hours have not yet passed.", async () => {
const allowedStorage = ['html5']
const newPartnerId = 12345
const FPD = {
Expand All @@ -773,7 +773,7 @@ describe('IntentIQ tests', function () {
expect(request.url).contain("ProfilesEngineServlet?at=39") // server was called
})

it("Should NOT call the server if FPD has been updated user Opted Out, and 24 hours have not yet passed.", async () => {
it("Should NOT call the server if FPD has been updated user Opted Out, and 72 hours have not yet passed.", async () => {
const allowedStorage = ['html5']
const newPartnerId = 12345
const FPD = {
Expand Down
Loading