Setup

Settings

Additional configuration

AdSense and AMP

Site Kit allows you to analyze the monetization performance of your site directly within the Dashboard. Site Kit gathers and displays data from your AdSense account within the dashboard along with a link to the AdSense platform, where you can view more detailed information.

Setup

To set up AdSense via Site Kit, go to Site Kit > Settings > Connect More Services > AdSense > Set up AdSense.

The connect more services options

You can also set up AdSense on the Site Kit Dashboard at Site Kit > Dashboard if your Dashboard has a Monetization section. Note that this section will be hidden if you previously selected “Maybe later” on the Dashboard prompt to set up AdSense.

The connect AdSense block in the monetization section of the dashboard

AdSense accounts vs. sites 

An AdSense account is required to use the AdSense platform and is where you can manage your overall account settings. An AdSense account must be associated with your Google account. AdSense policies only allow one account per publisher.
An AdSense site refers to a website where you wish to serve AdSense ads. Multiple sites can be added to an account. 

Choosing your account

At the beginning of the AdSense setup process, you will be prompted to grant Site Kit permission to your AdSense data. As part of that process, you will need to use the same Google account that you previously used when setting up Site Kit. You can only use one Google account per WordPress account on a site.

If you use a different Google account for managing your AdSense account, you need to first disconnect your current Google account from Site Kit and then reconnect using that account.

After selecting your Google account, the plugin will connect with your associated AdSense account. If you do not yet have an AdSense account set up with the Google account you are connected to Site Kit with, you will see the “Create your AdSense account” message. To create an account, click on the Create AdSense Account button to go to the AdSense platform and create a new account.

Create your AdSense account message

Let Site Kit place AdSense code on your site

When setting up the AdSense module, you may be asked if you would like Site Kit to insert AdSense code on your site. This will only display if you already have existing AdSense code on your site that wasn’t placed using Site Kit – for example, it was placed manually or through another WordPress plugin.

The let Site Kit place AdSense code on your site toggle

If you do allow Site Kit to insert the AdSense code, the plugin will place an auto ads code snippet on your site. This allows the AdSense network to scan and automatically place ads where they’re likely to perform well, potentially generating more ad revenue. Please note that if you do allow Site Kit to place the AdSense code, it is recommended to remove any other existing AdSense code on your site. If you don’t remove any existing AdSense code you may run into errors due to duplicate codes.

If you don’t allow Site Kit to insert ad code on your site, you can still use the Site Kit Dashboard to view data on your site’s ad performance, without the plugin inserting any ad code on your site. This means that you will need to rely on an existing AdSense code on your site. To ensure you can view the data through your Site Kit dashboard, you will need to have placed this code correctly.

Setup messages

As part of the AdSense setup improvements added in v1.77.0, released June 21, 2022, Site Kit will provide details and next steps for as part of the AdSense setup process. Each possible message is outlined below.

Looks like you need to upgrade your AdSense account

Need to upgrade your AdSense message

This message displays when your AdSense account is not signed up for the “AdSense for content” program. To use AdSense, you will need to upgrade your AdSense account by clicking on the Apply Now button. Clicking the button will direct you to the AdSense platform, where you will need to follow the provided instructions in order to sign up.

Add this site to your AdSense account

Add site to AdSense message

This message displays if your site has not been added to your AdSense account. You can add the site to your AdSense account by clicking the Add site to AdSense button. Clicking the button will direct you to the AdSense platform, where you will need to follow the provided instructions in order to add the site. 

Your account/site isn’t ready to show ads yet

Account isn’t ready to show ads message
Site isn’t ready to show ads message

This message displays if you still have some setup tasks to complete on your AdSense account or site. You can review and complete these tasks by clicking the Review AdSense Account or Review Site In AdSense buttons, as appropriate. Clicking the button will direct you to the AdSense platform, where you will need to follow the provided instructions in order to review the site. 

Your site requires a review

Your site requires a review message

This message displays when your site has not yet been approved to display ads by the AdSense team. To request a review, click the Request Review in AdSense button. Clicking the button will direct you to the AdSense platform, where you will need to follow the provided instructions in order to request a review. 

Your site is getting ready

Your site is getting ready message

This message displays when your AdSense account has been approved and is ready, but your site is still in the process of getting ready to display ads. There is no further action required at this point and you will need to wait until your site is ready to display ads. As the message states, this usually takes a few days but can take up to two weeks or longer. 

Clicking the button will direct you to the AdSense platform, where you will need to follow the provided instructions in order to review the site. 

Enable auto ads for your site

Enable auto ads for your site message

This message displays when your AdSense account and site are ready but you haven’t enabled auto ads, which is required in order for Site Kit to use AdSense to insert ads on your site. Click on the Enable Auto Ads button to enable this setting. Clicking the button will direct you to the AdSense platform, where you will need to follow the provided instructions in order to enable auto ads. 

Enable auto ads for your site message with existing AdSense code

The “Site Kit recommends enabling auto ads” variant of this message displays when Site Kit has detected existing AdSense code placed on your site and you have not enabled auto ads. Click the Enable Auto Ads button to enable this setting. As the message notes, if your AdSense setup relies on individual ad units as opposed to auto ads, you can choose to proceed without enabling auto ads. Clicking the button will direct you to the AdSense platform, where you will need to follow the provided instructions in order to enable auto ads. 

You should only proceed without auto ads if you have already manually added ad units to your site, as ads units cannot be manually added using Site Kit. 

Your AdSense account is ready to connect to Site Kit

Your AdSense account is ready to connect message

This message displays when you have an existing AdSense account that is fully configured and ready to go. Click the Configure AdSense button to complete the setup. Clicking the button will direct you to the AdSense platform, where you will need to follow the provided instructions in order to configure AdSense. 

Your site is ready to use AdSense

This message displays when you have completed setting up a new AdSense account. Click the Configure AdSense button to complete the setup. Clicking the button will direct you to the AdSense platform, where you will need to follow the provided instructions in order to configure AdSense.

Settings

AdSense settings in Site Kit can be accessed at Site Kit > Settings > Connected Services > AdSense > Edit. Note that only a small number of AdSense-related settings can be managed here within Site Kit; other AdSense settings can be managed on the AdSense platform at google.com/adsense.

Site Kit AdSense module settings page

Let Site Kit place AdSense code on your site

See the Let Site Kit place AdSense code on your site section in the Setup section above for more details.

Exclude from Ads

The Exclude from Ads options allow you to choose to hide ads from certain subsets of users who visit your site. There are two options available:

  1. All logged-in users – This option is toggled on by default and ensures that only non-logged-in visitors to your site will be served ads.
  2. Users who can write posts – This option becomes available if you disable the All logged-in users toggle. Toggling this option on excludes ads specifically for users who can write posts. With this setting, particular roles, such as subscribers, can be served ads, while other roles such as editors can be excluded.

Additional configuration

Additional AdSense configuration can be managed in the AdSense platform, where the following settings can be adjusted if you’ve allowed Site Kit to insert your AdSense code:

PHP filters

Along with the standard AdSense configurations within Site Kit, there are also two PHP filters, googlesitekit_auto_ads_opt and googlesitekit_amp_auto_ads_attributes, that can be used to modify the standard Site Kit-inserted AdSense snippet. Some examples of how to use these filters are below.  Note that these will only apply to the non-AMP version of your site. 

Disabling anchor ads  

 add_filter( 'googlesitekit_auto_ads_opt', function () {
return array( 'overlays' => '{bottom: true}' );
} ); 

Adding your own AdSense tag partner 

add_filter( 'googlesitekit_auto_ads_opt', function () {
return array(
'overlays' => '{bottom: true}',
'tag_partner' => 'my-custom-tag-partner'
);
} );

If you wish to modify the AdSense snippets for AMP URLs, you can replace the googlesitekit_auto_ads_attributes reference in the above examples with googlesitekit_amp_auto_ads_attributes.

More information on these filters can be found in the Site Kit GitHub repository

Note that these filters require the insertion of PHP code on your site. If you’re not familiar with PHP or coding, we don’t recommend making these changes without consulting a web development expert. 

AdSense and AMP

If you’re using AMP, Site Kit will insert auto ads for AMP code automatically on your AMP URLs as long as you’ve allowed the plugin to insert AdSense code on your site. There is no need to manually insert any AMP-specific ad code manually. We recommended using the official AMP plugin if you are using AMP on your WordPress site.