Skip to content

Commit

Permalink
better http/s support (#1010)
Browse files Browse the repository at this point in the history
updated var adServerDomain to automatically detect protocol, since dfp need

http://tpc.googlesyndication.com or https://tpc.googlesyndication.com depending on protocol
  • Loading branch information
mercuryyy authored and Matt Kendall committed Mar 20, 2017
1 parent e8ecd12 commit 8d4eb51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrationExamples/gpt/x-domain/creative.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
var urlParser = document.createElement('a');
urlParser.href = '%%PATTERN:url%%';
var publisherDomain = urlParser.protocol + '//' + urlParser.hostname;
var adServerDomain = 'https://tpc.googlesyndication.com';
var adServerDomain = urlParser.protocol + '//tpc.googlesyndication.com';

function renderAd(ev) {
var key = ev.message ? 'message' : 'data';
Expand Down

0 comments on commit 8d4eb51

Please sign in to comment.