You Can No Longer Place Google Ads in an IFRAME

Y
Published in: exclusive - Google AdSense

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.

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: exclusive - Google AdSense

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
A
Amit Agarwal

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. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account
G

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube