Professional Documents
Culture Documents
ENGLISH
CERTIFICATIONS
// GPT ad slots
var anchorSlot;
var staticSlot;
googletag.cmd.push(function() {
// Define an anchor ad slot at the top of the
viewport.
// Note: a single anchor ad slot may be
defined per page, at either the
// top or bottom of the viewport.
//anchorSlot = googletag.defineOutOfPageSlot(
// '/200894144/Test_Mysite',
googletag.enums.OutOfPageFormat.TOP_ANCHOR);
document.getElementById('status').innerText
=
'Anchor ad is initialized. Scroll page to
activate.';
}
EDIT ON
HTML Result
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1">
<title>Anchor Ad Example</title>
<script async
src="https://securepubads.g.doubleclick.net/tag/js/gpt.js">
</script>
<script>
window.googletag = window.googletag || {cmd: []};
// GPT ad slots
Resources