Notification

Please make sure that you visit Your AdSense Page, where you can find personalised information about your account to help you succeed with AdSense.

Code implementation guide

Connect to AdSense and show ads on your WordPress site

Are you a WordPress user looking to monetise your site with AdSense? There are several ways to place AdSense ad code into your WordPress site.

Connecting your WordPress site

If you're new to AdSense, one of your first tasks is to connect your site to AdSense. We highly recommend that you use Site Kit for WordPress by Google. Site Kit can connect your WordPress site to your AdSense account and place the AdSense code on all your pages for you. So you can show ads automatically across your site.

What is Site Kit?

Site Kit is a free-of-charge, open-source plugin for WordPress that helps you access unified metrics and insights from Google AdSense, Google Analytics, Google Search Console and PageSpeed Insights directly from your WordPress account.

Tools for publishers (and understanding their benefits) | Sustainable Monetized Websites

How to set up Site Kit

  1. Go to your WordPress dashboard, and click Add New under the 'Plugins' menu.
  2. Search for 'Site Kit by Google', find the plug-in and click Install Now.
  3. After you've installed the plug-in, click Activate.
  4. Click Start Setup then follow the steps to set up Site Kit.
  5. After you’ve completed the setup, click Connect Service under 'AdSense'. You can find this on the Site Kit dashboard or 'Settings' tab.
  6. Follow the instructions in the plug-in. We recommend that you allow Site Kit to place the AdSense code, which will place the AdSense code for non-AMP and AMP versions of your site.
    Note: To ensure that ads serve, make sure you’ve enabled Auto ads in your AdSense account. Site Kit doesn't have permission to make changes to your AdSense account settings.

When your site is ready to show ads and has traffic, you’ll see your AdSense metrics in the 'AdSense' tab of the plug-in.

Tip: For information on how to manage other Google products with Site Kit, see the Site Kit page. If you have questions about installing, activating or configuring Site Kit, visit the Site Kit forum.

Show ads as soon as your AdSense account is activated

When you connect your WordPress site to AdSense, you can choose to show ads as soon as your AdSense account is activated and start earning money from your content right away.

If you have visitors from the European Economic Area (EEA), the UK or Switzerland, you might want to untick this option to make sure that you’re complying with Google’s EU user consent policy. You can change your settings for serving ads to users in the EEA, the UK and Switzerland after your AdSense account is approved.

Google will analyse your pages, find suitable ad placements, then automatically place the ads for you. Our system will choose the most suitable ads for your page type.

Frequently asked questions

What’s the difference between Site Kit and the AMP for WordPress plug-in?

Site Kit lets you connect your site directly to certain Google products and services, including AdSense. The AMP for WordPress plug-in lets you create an AMP version of your site built with the open source AMP framework.

Can I see AdSense metrics in the Google Analytics module in Site Kit?

If you'd like Site Kit to display AdSense metrics within the Google Analytics module, you'll need to integrate your AdSense and Analytics accounts.

I’ve set up Site Kit but I can’t see ads on my site. What should I do?

  • Make sure that you can see 'Code has been placed' in the AdSense section in Site Kit settings.
  • Check your AdSense account for any outstanding actions. For example, make sure that:
    • Your site is added on your Sites page.
    • Auto ads are enabled on your Ads page.

Are there other plug-ins I could use to connect my WordPress site to AdSense?

Here are some additional resources from partners that you may be already using:

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
1265581048934738327
true
Search Help Centre
true
true
true
true
true
157
false
false