Skip to content

Instantly share code, notes, and snippets.

@CaptainCodeman
Created May 2, 2017 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CaptainCodeman/28e22d33e7636c54aa3e5a73bd5ad38f to your computer and use it in GitHub Desktop.
Save CaptainCodeman/28e22d33e7636c54aa3e5a73bd5ad38f to your computer and use it in GitHub Desktop.
GPT + WebComponents Issue http://jsbin.com/biroyebuye
<!DOCTYPE html>
<html>
<head>
<title>WebComponents</title>
<base href="https://polygit.org/shadydom+webcomponents+:master/shadycss+webcomponents+:master/custom-elements+webcomponents+:master/webcomponentsjs+webcomponents+:master/components/">
<script src="webcomponentsjs/webcomponents-loader.js"></script>
<script>
window.addEventListener('WebComponentsReady', function() {
console.log('WebComponentsReady');
})
</script>
<script src="https://www.googletagservices.com/tag/js/gpt.js" async></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function() {
googletag.defineSlot('/559809888/polymer', [250, 250], 'div-gpt-ad-1493738789874-0').addService(googletag.pubads());
googletag.enableServices();
});
</script>
</head>
<body>
<div id='div-gpt-ad-1493738789874-0' style="width:250px;height:250px;">
<script>googletag.cmd.push(function() { googletag.display('div-gpt-ad-1493738789874-0'); });</script>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment