In the previous post I covered the basic setup of Google Ad Manager display ads.

This post will be on anchor ads.

Setup Ad Unit

Create a child ad unit eg. anchor. Once again, you don’t have to specify the ad sizes.

A full id will be eg. /1234/ (where 1234 is organization id).

Publisher tag code

googletag.cmd.push(function() {
    // Anchor
    if (document.body.clientWidth <= 600) {
        googletag.defineOutOfPageSlot('/21861557160/', googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR)
    } else {
        googletag.defineOutOfPageSlot('/21861557160/', googletag.enums.OutOfPageFormat.TOP_ANCHOR)

    // Setup banner ads etc and enableServices()

The code adds on the previous code, adding to the googletag.cmd.push().

It sets up for the anchor ad units, and also handles for the viewport – mobile with bottom anchor, while tablet/dekstop has top anchor.

Setup Line Order

This part is crucial. Yet their guide did not emphasize this enough.

Unlike standard display ads, anchor ads must have line order serving to the ad unit. This is because anchor ad unit don’t serve Adsense – yup, you can’t earn from Adsense from anchor ads.

Instead, you have to run your order line item, serving your own house ads or direct inventory sales.

(Exception: If you have access to integrate networks/exchanges in Google Ad Manager, then you’re on another level.)

The steps:

  • Create Line Item with type for house or sponsorship
  • The creatives must have these traditional sizes (select 320x50, 728x90 and more)
  • In Ad Targeting, configure Inventory Format to Anchor
  • Make sure the line item status is Ready or Delivering

It may take some time for the order to be delivering the creatives.




Back to Home