Advanced Ads comes with an ad type dedicated to Google AdSense. Choosing this type over the plain text type to display AdSense enables the use of many special features, including:

  • get ad units automatically from your AdSense account, no need to copy&paste code
  • supports all ad types, including display ads, link units, matched content and auto ads, fixed sizes or responsive formats
  • import of ad details from ad tags
  • optional limit to 3 AdSense ads to prevent violations of AdSense terms
  • select specific ad sizes depending on the browser width (with the Responsive add-on)

You're using WordPress and would like to get Advanced Ads for free?

Load ads from AdSense automatically

You can connect Advanced Ads to your AdSense account to load the ad units automatically.

  • Go to Advanced Ads > Settings > AdSense and click on the Connect to AdSense button.
  • Choose your AdSense account.
  • Confirm the connection by clicking on Allow.
  • Copy the code and paste it into the confirmation code option in Advanced Ads.
  • Choose, whether you also want the AdSense verification and Auto ads code implemented right away.
  • Click on Submit code

When creating a new AdSense ad in Advanced Ads now, you can choose directly from the ads in your AdSense account.

Enable verification code and Auto ads

AdSense uses the same code to verify your site and to enable the Auto ads feature.

AdSense auto ads option in WordPress

To use Auto ads you need to set them up in your AdSense account. Follow How to set up Auto ads in WordPress to do that.

Set up an AdSense ad

To set up an AdSense ad, you must first create a new ad and choose the AdSense ad type from the ad type selection shown in the following picture.

ad types with AdSense selected

Once you chose the type, you can either choose the ad units from your AdSense account if you have Advanced Ads connected to it or use the Insert a new AdSense code link to open the field where you can insert the AdSense code and click on Get Details. This will import all ad settings automatically.

Option to choose an AdSense ad unit
Choose an ad unit from your AdSense account.

 

As a third alternative, you can create AdSense ad units on the fly. Just leave the Ad Slot ID option empty and choose either Responsive or Normal as the ad type in the next step.

AdSense Ad Types

AdSense Types in Advanced Ads

AdSense has multiple ad sizes and features (content ad, link unit, matched content, InArticle) and Advanced Ads can handle all of them. You can either set the ad type when creating a new ad in your AdSense account or within Advanced Ads. You can also convert some ad units into another format with Advanced Ads (e.g. for testing). Not all combinations are possible, though. The following tables shows the available combinations.

Ad size in AdSensepossible Type in Advanced Ads
 Link Unit or Matched Content Normal, would use the type set in your AdSense account

or set the type like in AdSense (still needed for some older codes)

 Matched content with specific size (not responsive) Normal
 fixed sized or responsive content ad units Choose any type to convert this unit to it, e.g. change a fixed sized ad into a responsive one
 InArticle InArticle
 InFeed InFeed

When you don‘t know which type to choose then just import your AdSense code using the Copy&Paste existing code button.

Global AdSense settings

AdSense Account

Advanced Ads uses the same AdSense ID for each ad and therefore stores it globally. You can find and change your publisher ID in your dashboard in Advanced Ads > Settings > Google AdSense > Account ID or simply connect with your AdSense account to get it.

Where to find the Publisher ID?

If you don’t know your Publisher ID and don’t want to connect with your AdSense account then log into your AdSense account and take it from the URL in the browser.Where to find the AdSense Publisher ID in the URL

You can also find your Publisher ID under Settings > Account > Account Information.

AdSense Ad Limit

Previously, AdSense allowed you to use up to 3 display ads per page. This specific limit was removed from their terms and replaced by a flexible approach. However, we kept the AdSense ad limit setting for now.

On very complex ad setups it might happen that more than those 3 ads get loaded. To prevent this from happening accidentally, Advanced Ads can check the number of AdSense ads per page and only displays the first 3 of them. You can find the setting on Advanced Ads > Settings > Google AdSense.

adsense limit option

Please be aware that dynamic ad serving like passive cache-busting and placement tests are not working properly with this limit enabled.

What else you need to know

AMP versions

With the Responsive add-on, your AdSense ads will be automatically transformed into valid AMP formats. Learn more about our AMP features here.

No ads on 404-pages

According to the AdSense terms, ads should not be displayed on 404 error pages. Advanced Ads disables AdSense ads on these pages by default.

You can disable this behavior by defining the constant  ADVADS_ALLOW_ADSENSE_ON_404  in your wp-config.php using the following code.

define( 'ADVADS_ALLOW_ADSENSE_ON_404', true );

 Publishing Ads