Ad OperationCodingGoogle Ad Manager

How to traffic Anchor Ads in Ad manager?. Inbuilt solution to the publishers.

What is Anchor Ads?

Ads which are sticking to the top or bottom of the web page. This ads are popularly known as Adhesion or Catfish ads.

Why this is popular?

Anchor ads are best in the industry to generate more revenue to the multiple publishers. Because of high viewability and engagement from the user.

Does it require developer to build code?

This anchor ads does not require any custom code development to serve via Ad manager. Google releases this code via Google publisher Tag (GPT) which allows the publisher to serve anchor ads either in top or bottom position. Publisher can use the sample code from the lab and add it to their site.

Will it work on Desktop?

No, It will support only on Mobile view.

How sample code looks like?

<script>
      window.googletag = window.googletag || {cmd: []};

      // 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);

        // Define an anchor ad slot at the bottom of the viewport.
         anchorSlot = googletag.defineOutOfPageSlot(
             '/200894144/Test_Mysite', googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR);

        // Anchor slots return null if the page or device does not support
        // anchors.
        if (anchorSlot) {
          anchorSlot
              //.setTargeting('test', 'anchor')
              .addService(googletag.pubads());

          document.getElementById('status').innerText =
            'Anchor ad is initialized. Scroll page to activate.';
        }

        // Define static ad slots.
        staticSlot = googletag.defineSlot(
              '/200894144/Test_Mysite', [300, 250], 'static-ad-1')
            .addService(googletag.pubads());

        // Enable SRA and services.
        googletag.pubads().enableSingleRequest();
        googletag.pubads().setTargeting('Type', ['adhesion']);
        googletag.enableServices();
      });
    </script>

Here is the working example for reference:

How it will serve after Coding done?

Just add “320×50” ad size on the ad unit settings in GAM which used on the above tagging. No other size will support on anchor ads. Just traffic similar like other ad unit and select 320×50. Creative automatically serve on the anchor position.

Thank You !!!!!

*The information contained in this post is for general information purposes only. The information is provided by How to traffic Anchor Ads in Ad manager?. Inbuilt solution to the publishers. and while we endeavor to keep the information up to date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services, or related graphics contained on the post for any purpose.

Enable Notifications OK No thanks