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

Amit Agarwal

Google Developer Expert, Google Cloud Champion

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.

Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

0

Awards & Titles

Digital Inspiration has won several awards since it's launch in 2004.

Google Developer Expert

Google Developer Expert

Google awarded us the Google Developer Expert award recogizing our work in Google Workspace.

ProductHunt Golden Kitty

ProductHunt Golden Kitty

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

Microsoft MVP Alumni

Microsoft MVP Alumni

Microsoft awarded us the Most Valuable Professional (MVP) title for 5 years in a row.

Google Cloud Champion

Google Cloud Champion

Google awarded us the Champion Innovator title recognizing our technical skill and expertise.

Email Newsletter

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

We will never send any spam emails. Promise.