Skip to content

Commit

Permalink
update doubleclick url (#4179)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSperone authored and jaiminpanchal27 committed Sep 25, 2019
1 parent 112c953 commit 74ff666
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modules/dfpAdServerVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function buildDfpVideoUrl(options) {

return buildUrl({
protocol: 'https',
host: 'pubads.g.doubleclick.net',
host: 'securepubads.g.doubleclick.net',
pathname: '/gampad/ads',
search: queryParams
});
Expand Down Expand Up @@ -184,7 +184,7 @@ export function buildAdpodVideoUrl({code, params, callback} = {}) {

const masterTag = buildUrl({
protocol: 'https',
host: 'pubads.g.doubleclick.net',
host: 'securepubads.g.doubleclick.net',
pathname: '/gampad/ads',
search: queryParams
});
Expand Down
6 changes: 3 additions & 3 deletions test/spec/modules/dfpAdServerVideo_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('The DFP video support module', function () {
}));

expect(url.protocol).to.equal('https:');
expect(url.host).to.equal('pubads.g.doubleclick.net');
expect(url.host).to.equal('securepubads.g.doubleclick.net');

const queryParams = parseQS(url.query);
expect(queryParams).to.have.property('correlator');
Expand Down Expand Up @@ -374,7 +374,7 @@ describe('The DFP video support module', function () {
url = parse(masterTag);

expect(url.protocol).to.equal('https:');
expect(url.host).to.equal('pubads.g.doubleclick.net');
expect(url.host).to.equal('securepubads.g.doubleclick.net');

const queryParams = parseQS(url.query);
expect(queryParams).to.have.property('correlator');
Expand Down Expand Up @@ -428,7 +428,7 @@ describe('The DFP video support module', function () {
}
url = parse(masterTag);
expect(url.protocol).to.equal('https:');
expect(url.host).to.equal('pubads.g.doubleclick.net');
expect(url.host).to.equal('securepubads.g.doubleclick.net');

const queryParams = parseQS(url.query);
expect(queryParams).to.have.property('correlator');
Expand Down

0 comments on commit 74ff666

Please sign in to comment.