Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues with Out-of-page placements in DFP

Tags:

ads

google-dfp

I'm in the process of testing my company's ad tags running through DFP, and have had some issues with the out-of-page process which some of our Publishers want to implement. I have everything working properly, but I'm wondering if I misconfigured something because a few things don't make sense to me. Here's my current setup:

I created a new Ad Unit and specified a size of 1x1 because it seems you have to specify a size, even if the ad is served out of-of-page. I then attached a placement to it.

I added a new Order and a Line-item, and then targeted the inventory to the Ad Unit I had created.

I then added a new Creative with a type of Custom, and set the target size to be Out-of-page.

After approving everything I selected the Ad Unit I wanted and hit Generate Tags. This gives me a popup with all the code I need. There is an out-of-page unit checkbox that I discovered I need to enable for this to work. What's weird is that when I check it, the resultant script and code defines two ad-slots:

googletag.defineSlot('/9999999/out-of-page_26297', [1, 1], 'div-gpt-ad-9999999-0').addService(googletag.pubads());
googletag.defineOutOfPageSlot('/9999999/out-of-page_26297', 'div-gpt-ad-9999999-0-oop').addService(googletag.pubads());

and

<!-- out-of-page_26297 -->
<div id='div-gpt-ad-9999999-0' style='width:1px; height:1px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-9999999-0'); });
</script>
</div>
<!-- out-of-page_26297 out-of-page -->
<div id='div-gpt-ad-9999999-0-oop'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-9999999-0-oop'); });
</script>
</div>

What's confusing me is that it seems like I only need the out-of-page ad slot. The 1x1 doesn't actually seem to do anything, and if I just comment out the googletag.defineSlot() call, I still register impressions correctly. I'm going to have to write up a tutorial for our Publishers, and I'd really like to avoid confusing them, and having multiple ad slots for one ad seems wrong. Is there some way to avoid this happening? Did I set something up incorrectly? Does google really need both of those placements for out-of-place, or is it a bug?

One other thing I noticed is that when I go to the Inventory tab, and select Generate Tags from the left menu, I don't get the option to select Out-of-page. It's only available when you generate tags from the individual ad placement, which is incredibly confusing.

like image 677
Mordred Avatar asked Sep 30 '22 21:09

Mordred


1 Answers

You should be all good removing the 1x1 slot you've created. The out-of-page slot is likely all you will need. I've seen publishers add a 1x1 slot in some cases where they'd want to run a wallpaper along with another out of page creative on the same pageload. In that case, they'd have one out of page targeted line item delivering the out of page creative, and a separate line targeting a 1x1 slot with the wallpaper creative.

As long as your line item in DFP is targeting the out of page size, you should be all good with getting rid of that 1x1 slot.

Anyway, I hope this helps!

like image 151
user3638776 Avatar answered Oct 04 '22 19:10

user3638776