A page on how to start with Google Ad Manager for a publisher.
A ad unit represents a location on a page where an ad will be shown.
Example: Two ad units representing two sidebar slot
For this getting started page, we created an ad unit just called Getting Started with a size of 300×250
The ad is shown thanks to a tag (A javascript snippet).
To get the tag for the ad unit, go to the third tab called tag, click continue until you get to the tag results
In the tag results screen, you will have:
Example of a minimal page splits by parts.
<html>
<head>
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
<script>
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/xxxxxxxxx/0', [300, 250], 'div-gpt-ad-1590311928751-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
</head>
<body>
<h1>AdManager template</h1>
<h2>The first ad below</h2>
<!-- /21796740876/0 -->
<div id='div-gpt-ad-1590311928751-0' style='width: 300px; height: 250px;'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1590311928751-0'); });
</script>
</div>
</body>
</html>
An ad is shown if there is an active order.
Even if this is a house ad, you need to create a order.
An order groups all ad by advertiser.
A line item groups:
In the order, create a new line item
Example with a line item with :
After saving the line item, ad manager shows the following message because we need to attach a creative to the line item
You can start creating a creative:
Example: the below creative:
To be able to serve an ad:
must be activated
Activation:
Opening the previously created html page admanager.html locally should be enough to show the ad.
It may take some times (a couple of minute before AdManager is internally able to serve the ad)
To diagnose ad serving (delivery) problem, ad manager provides the delivery tool that will show:
Steps:
You will see the creative, the line item, the order item and a lot of other information.
See the Delivery tool section