You Can No Longer Place Google Ads in an IFRAME

Google  silently updated their AdSense Program Policies document last week and there’s one big change in the policy now - AdSense Publishers are no longer allowed to add Google ads to their web pages using IFRAMEs.

The updated policy document says:

AdSense code may not be altered, nor may the standard behavior, targeting or delivery of ads be manipulated in any way that is not explicitly permitted by Google. This includes but is not limited to the following: clicking Google ads may not result in a new browser window being launched, nor may Google ads be placed in an IFRAME.

Google has always discouraged the use of IFRAMEs for serving AdSense ads but publishers were allowed to use them. For instance, a section of the AdSense support site still says:

Our targeting technology is not optimised to serve ads within a separate IFRAME. If you placed the AdSense code in a separate IFRAME, your site may display less targeted ads or PSAs. For better results, please implement our ad code directly into the source of your web page. Once you make these changes, it may take up to 48 hours or more before relevant ads appear.

There are AdSense publishers who use the IFRAME option to embed Google Ads in the web pages, for various reasons, but with the new policy update, that implementation now clearly violates AdSense policies.

This however [should not affect](http://The AdSense ad code should be placed within the frame containing the content you wish to target with the ads.) sites that display content using HTML frames. All you need to remember is that your AdSense ad code should be placed within the frame containing the content you wish to target with the ads.

Amit Agarwal is a web geek, solo entrepreneur and loves making things on the Internet. Google recently awarded him the Google Developer Expert and Google Cloud Champion title for his work on Google Workspace and Google Apps Script.

Awards & Recognition

Google Developer Expert

Google Developer Expert

Google awarded us the Developer Expert title recogizing our work in Workspace

ProductHunt Golden Kitty

ProductHunt Golden Kitty

Our Gmail tool won the Lifehack of the Year award at ProductHunt Golden Kitty Awards

Microsoft MVP Alumni

Microsoft MVP Alumni

Microsoft awarded us the Most Valuable Professional title for 5 years in a row

Google Cloud Champion

Google Cloud Champion

Google awarded us the Champion Innovator award for technical expertise

Want to stay up to date?
Sign up for our email newsletter.

We will never send any spam emails. Promise 🫶🏻