Example 3rd Party Tag - Risyandi/adops-engineer GitHub Wiki
Berikut adalah script code vizury :
var pubads = googletag.pubads();
var vizInt = vizPAM.getVizInterests();
for (var i = 0; i < vizInt.length; i++) {
var accept = vizInt[i]['size'];
var adv = "adv" + vizInt[i]['size'];
var imp = "imp" + vizInt[i]['size'];
var acceptVal = vizInt[i]['int'];
if (acceptVal){
acceptVal = "true";
pubads.setTargeting(accept, acceptVal);
pubads.setTargeting(adv, vizInt[i]['adv']);
pubads.setTargeting(imp, vizInt[i]['impr']);
}
}
Script code vizury diatas tersebut di include atau disisipkan diantara invocation code google DFP
, sebagai contoh invocation code DFP yang dihasilkan oleh Google DFP adalah sebagai berikut :
script type='text/javascript'>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') +
'//www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
})();
</script>
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.defineSlot('/95250053/NAMA_INVENTORY', [300, 250], 'div-gpt-ad-1444017687551-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.pubads().collapseEmptyDivs(true);
googletag.enableServices();
<!-- Code Ads Tag Vizury -->
var vizInt = vizPAM.getVizInterests();
for (var i = 0; i < vizInt.length; i++) {
var accept = vizInt[i]['size'];
var adv = "adv" + vizInt[i]['size'];
var imp = "imp" + vizInt[i]['size'];
var acceptVal = vizInt[i]['int'];
if (acceptVal){
acceptVal = "true";
pubads.setTargeting(accept, acceptVal);
pubads.setTargeting(adv, vizInt[i]['adv']);
pubads.setTargeting(imp, vizInt[i]['impr']);
}
}
<!-- Code Ads Tag Vizury -->
});
</script>
<!-- /95250053/NAMA_INVENTORY -->
<div id='div-gpt-ad-1444017687551-0' style='height:250px; width:300px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1444017687551-0'); });
</script>
</div>
Berikut adalah script female
dari freakout native ads yang di implementasikan di kanal (Showbiz, Lifestyle, Health) dan untuk script general
dari freakout native ads di implementasikan di kanal-kanal selain (Showbiz, Lifestyle, Health).
Berikut Script freakout Female :
<script src="http://js.mtburn.com/advs-instream.js"></script>
<script type="text/javascript">MTBADVS.InStream.Default.run({"immediately":true})</script>
<div data-advs-adspot-id="NDk5OjQ4NTY" style="display:none"></div>
dan untuk implementasi nya