Ad code implementation
Create a responsive ad unit
Responsive ad units allow you to support a wide range of devices (i.e., computers, phones, tablets, etc.) by automatically adapting their size to fit your page layout. Regardless of which device users use to visit your site, responsive ad units can help you provide a great ad experience.
To create a new responsive ad unit, follow these steps:
- Generate the ad code.
To generate the ad code for a responsive ad unit:
- Create an ad unit in the usual way, making sure to select “Responsive” from the Ad size drop-down in the process, and click Save and get code.
- Place the ad code on your site.
Once you’ve placed your ad code, we recommend that you test your ads on different devices and screens to make sure that the responsive behavior is working correctly.
Tracking the performance of responsive ad units
You can track the performance of your responsive ad units by viewing the Ad units report on the Performance reports page. If you want to track the sizes of the ads that have been served from your responsive ad units, you can view the Creative sizes report.