Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
linenumberstrue
pbjs.setConfig({
    usersyncuserSync: {
        userIds: [{
            name: "id5Id",
            params: {
                partner: 173,            // change to the Partner Number you received from ID5
				pd: "MT1iNTBjY..."       // optional, see below for how to generate the `pd` string
            },
            storage: {
                type: "cookie",
                name: "id5id.1st",       // create a cookie with this name
                expires: 90,             // cookie lasts for 90 days
                refreshInSeconds: 8*3600 // refresh ID every 8 hours to ensure it is fresh
            }
        }],
        auctionDelay: 50                 // 50ms maximum auction delay
    }
});

...

Code Block
languagejs
linenumberstrue
pbjs.setConfig({
    usersyncuserSync: {
        userIds: [{
            name: "id5Id",
            params: {
                partner: 173,            // change to the Partner Number you received from ID5
				pd: "MT1iNTBjY..."       // optional, see above for how to generate the `pd` string
            },
            storage: {
                type: "cookie",
                name: "id5id.1st",       // create a cookie with this name
                expires: 90,             // cookie lasts for 90 days
                refreshInSeconds: 8*3600 // refresh ID every 8 hours to ensure it is fresh
            }
        }],
        auctionDelay: 50                 // 50ms maximum auction delay
    },
    consentManagement: {
        cmpApi: 'iab',
        timeout: 8000,
        allowAuctionWithoutConsent: false
    }
});

...