Build Ad Stack

Creating and Optimizing Responsive Ads with Google Ad Manager

min read
February 21, 2026
By
Rohan
google ad manager responsive ads
Build Ad Stack
Table of contents
TL;DR

A practical guide to setting up responsive ads in Google Ad Manager using GPT tags, breakpoints, and size mapping to deliver fast, device-optimized ad experiences that increase revenue.

  • Proper size mapping, breakpoints, and GPT configuration ensure ads render correctly across desktop, tablet, and mobile without layout shifts or UX issues.
  • Testing responsive ads on real devices and emulators helps publishers catch mismatches, missing fallback sizes, or viewport errors before they impact performance.
  • Avoiding common setup mistakes, like incorrect ad unit sizes, no fallback sizes, and outdated mappings,  improves viewability, Core Web Vitals, and long-term ad revenue.

With users accessing your content on everything from smartphones to tablets to large desktop screens, ensuring that ads look appropriate and perform well on every device is a critical aspect of any publisher’s strategy. Responsive ads are more than just a trend — they are a practical solution that allows ads to be served in sizes suitable for different screen dimensions, delivering a consistent and high-quality user experience.

However, simply enabling responsive behavior isn’t enough. You need to understand how responsive ads are set up in Google Ad Manager, how ad units and size mapping work, where to apply breakpoints, and what mistakes to avoid to achieve optimal results. When implemented correctly, responsive ads can improve user engagement and help maximize ad revenue.

Whether you’re refining an existing setup or starting from scratch, the following insights and strategies will help you navigate the process of implementing responsive ads in Google Ad Manager. Before diving in, here’s a quick refresher.

What Are Responsive Ads?

Responsive ads are designed to serve ad creatives that fit appropriately within the available space on different devices, including desktop, tablet, and mobile.

Rather than resizing a single creative, Google Ad Manager selects from predefined ad sizes that are eligible to serve in a given placement. This ensures users experience a consistent ad presentation that aligns with their device and screen size.

For example, a display placement may support larger banner sizes such as 970×250 or 728×90 on desktop screens, while serving 300×250 or 320×50 creatives on mobile devices. The creative itself does not dynamically resize; instead, Google Ad Manager delivers the most suitable size based on the available space and configuration.

The flexibility of responsive ads comes from how ad units, creatives, and size mapping are configured. Depending on the placement and layout, an ad may appear as a display banner in one context and as a native-styled unit in another, provided the appropriate creative types and sizes are defined.

How to Create Responsive Ads with Google Ad Manager

Step 1: Set Up Ad Units and Inventory

To get started, log in to your Google Ad Manager account and navigate to the Inventory section.

Responsive ads in Google Ad Manager are built around ad units, line items, and creatives. Begin by creating or selecting an ad unit where you want responsive ads to appear. When defining an ad unit, include all ad sizes that may be eligible to serve in that placement across different devices.

Your inventory setup should reflect how the placement behaves within your site layout on desktop, tablet, and mobile. The goal is to allow Google Ad Manager to select from multiple eligible sizes depending on the available space, not to scale a single creative to fit all screens.

Once ad units are created, line items can be configured to target those ad units. Each line item delivers creatives that match the eligible sizes defined in the ad unit and any applicable size mapping rules.

Step 2: Generate Google Publisher Tags (GPT)

The next step is to integrate Google Publisher Tags (GPT). GPT is a JavaScript tag that defines ad slots on your site and enables responsive behavior by selecting from predefined ad sizes.

GPT does not resize creatives. Instead, it evaluates the available viewport or container size and requests an ad size that has been explicitly defined in the ad unit and size mapping configuration.

To get started, generate GPT while setting up your ad units. A basic GPT implementation includes a head tag and a body tag.

A simple GPT head tag looks like the following:

And a sample body tag looks like this:

Note: Ensure that ad units in Google Ad Manager include all intended sizes, such as 970×250, 728×90, 300×250, and 320×50. GPT will only serve creatives that match the sizes defined in the ad unit.

Step 3: Create Ad Size Mapping

Ad size mapping is a crucial step in configuring responsive ads. It defines rules that determine which ad sizes are eligible to serve based on the user’s screen or viewport size.

Ad size mapping involves two primary functions:

  • .sizeMapping() — defines viewport breakpoints and corresponding eligible ad sizes
  • .defineSizeMapping() — applies the mapping to a specific ad slot

Here’s an example of what a size mapping snippet looks like:

In this example, [1024, 768] represents the browser viewport size, while [970, 250] represents an ad size that can be served at that breakpoint.

This means that when the browser viewport meets or exceeds 1024×768, a 970×250 creative may be served. Smaller viewports will use other mapped sizes.

Note: You can use the Google Publisher Console’s Page Request tab to view the browser viewport width and height.

Google Publisher Tags automatically detect the browser size and use the defined size mapping to select the most appropriate eligible ad size.

If you want to define a default behavior, [0,0] can be used to allow an ad size to serve for any viewport not explicitly mapped.

Set Up Breakpoints

Before implementing GPT, define breakpoints that determine how ad sizes align with different screen widths. Breakpoints help Google Ad Manager decide which ad sizes are eligible to serve in a given context.

Common breakpoints include:

  • Desktop: 1024px and above
  • Tablet: 768px to 1024px
  • Mobile: Below 768px

Assign appropriate ad sizes to each breakpoint using ad size mapping. For example:

  • Desktop: 970×250, 728×90
  • Tablet: 728×90, 300×250
  • Mobile: 320×50, 300×250

This ensures that ads are served in sizes that align with the layout, rather than attempting to resize a single creative.

Optional: Restrict Ads by Device Type

If you choose not to serve ads on certain devices, size mapping can be used to suppress delivery for specific viewport ranges.

  1. Display ads only on desktop devices - script to display ads to desktop visitors
  2. Display ads only on mobile or tablet devices - script to display ads when the user is on a mobile

After configuring size mapping, test ad delivery across multiple devices and screen sizes. Use browser developer tools or real devices to verify correct behavior and adjust mappings as needed.

Step 4: Link Size Mapping to Ad Units

Once size mapping is defined, link it to the ad slot in your GPT header tag.

A complete GPT setup that supports responsive ad delivery follows this structure:

In summary, responsive ads in Google Ad Manager rely on generating GPT, defining ad size mappings, and linking those mappings to ad units. Google Ad Manager then selects the most suitable eligible creative size based on the user’s device and available space.

Tips for Optimizing Responsive Ads

Optimizing responsive ads helps ensure a seamless user experience and strong ad performance.

  • Use standard ad sizes
    Common sizes such as 300×250, 728×90, 970×250, and 320×50 improve compatibility and fill rates.
  • Prioritize mobile layouts
    Design placements with smaller screens in mind and scale upward for larger devices.
  • Apply responsive layout techniques
    Use flexible containers and layout-aware placements so ad sizes align naturally with content.
  • Test across devices
    Validate rendering on multiple devices and screen sizes using real devices and emulators.
  • Monitor performance
    Regularly review metrics and adjust ad placement, size eligibility, and formats to improve engagement and revenue.

Common Mistakes to Avoid in Google Ad Manager Responsive Ads

Responsive ads offer clear advantages, but misconfigurations can limit their effectiveness.

  • Incorrect ad unit sizes
    Ensure ad unit sizes match the actual layout dimensions.
  • Missing fallback sizes
    Always define fallback sizes to avoid unfilled impressions.
  • Ignoring user experience
    Avoid placements that disrupt content flow.
  • Skipping testing
    Test before launch to catch layout or delivery issues.
  • Forgetting to update ad units
    Update ad units whenever site layouts change.

Prevent Layout Shift and Preserve User Experience

While responsive ads help ensure the right ad sizes are served across devices, they must also be implemented in a way that preserves layout stability. One of the most common issues with responsive ad setups is unexpected layout shift, where content moves as ads load or change size. This can negatively impact user experience, especially on mobile devices.

To avoid this, always plan your responsive ad placements with layout consistency in mind. Ad containers should reserve enough space for the largest eligible ad size defined in the ad unit and size mapping. This ensures that when an ad is rendered, it does not push surrounding content out of position.

When using ad size mapping, avoid dynamically changing the height of the ad container after the page has loaded. Instead, define container dimensions that can comfortably accommodate all eligible ad sizes for that placement. This is particularly important for placements that switch between larger desktop sizes and smaller mobile sizes.

It is also essential to test responsive ad behavior under real-world conditions. Resize browser windows, test split-screen views, and load pages on mobile devices to confirm that ads appear without causing content shifts. If layout movement occurs, review the size mapping rules and container dimensions to ensure they align correctly.

By reserving space upfront and aligning ad sizes with stable layout containers, responsive ads can deliver flexibility without disrupting the user experience. This approach helps maintain a smooth reading experience while still allowing ads to adapt across different screen sizes.

Wrapping Up: Responsive Ads for a Seamless User Experience

Responsive ads play a vital role in modern digital advertising by ensuring ads are delivered in formats suitable for different devices and screen sizes. By correctly configuring ad units, size mappings, and GPT, publishers can create a reliable and adaptable ad experience.

This approach not only improves user satisfaction but also supports stronger ad performance and long-term revenue potential. Responsive ads are not about resizing creatives — they are about delivering the right creative size in the right context.

By embracing this strategy and maintaining a well-structured inventory setup, publishers can stay adaptable and continue to provide high-quality ad experiences across an evolving device landscape.

Frequently Asked Questions

1. What is ad size mapping in Google Ad Manager?

Ad size mapping links browser viewport sizes to the ad sizes that GAM is allowed to serve. With .sizeMapping() and .defineSizeMapping(), you can assign multiple sizes for desktops, tablets, and mobile so ads always fit the available space. It prevents stretched creatives and improves responsiveness.

2. What are the best ad sizes for responsive ads?

High-performing responsive ad sizes include 300×250, 336×280, 728×90, 320×50, 160×600, and 970×250. Using IAB-standard sizes increases fill rate, enables better demand compatibility, and ensures cleaner rendering across phones, tablets, and desktop layouts.

3. How can breakpoints improve responsive ad performance?

Breakpoints let GAM serve the most suitable ad size at each screen width, improving loading behavior, reducing layout shifts, and boosting both engagement and revenue.

4. How can publishers test responsive ads across devices?

Publishers should test responsive ads using browser dev tools, device emulators, and real devices. Checking how ads load at each breakpoint helps identify misaligned sizes, missing fallback units, or scripts that cause layout shifts or delay loading, issues that affect viewability and Core Web Vitals

Meet the author

Rohan

Explore thought leadership from Rohan Sharma. Read expert insights on ad tech, monetization strategies, and industry trends from this top author.

LinkedIn

Explore other blogs in this category