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 website, responsive ad units can help you to 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 menu in the process, and click Save and get code.
- Place the ad code on your website.
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 behaviour 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, then you can view the Creative sizes report.