Sign-up and activation

Connect your site to AdSense

To complete the AdSense activation process you need to connect your site to AdSense. Here's how:

  1. Sign in to your AdSense account.
  2. Copy the code on your AdSense homepage.
  3. Paste the code into the HTML of your page, between the <head> and </head> tags. Learn more about pasting ad code in our Code implementation guide.
    WordPress user? Learn how to insert ad code in your WordPress site.
    View an example HTML page with the code added

    <html>
    <head>
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-123456789",
    enable_page_level_ads: true
    });
    </script>

    This is the head of your page.
    <title>Example HTML page</title>
    </head>
    <body>
    This is the body of your page.
    </body>
    </html>

  4. (Optional) If you incorrectly entered the URL of your site when you created your AdSense account, click Edit Edit and update your URL.
  5. Leave the Show ads as soon as account is activated box checked, unless you'd prefer to switch on the ads you want to show yourself after your account is activated.
    Make sure you've placed the code on every page you want ads to appear when your site is activated.
  6. When you've finished, confirm you've pasted the code and click Done.

Show ads as soon as your account is activated

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

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

Provided you've added the code to your pages that you want to show ads on, you're all set. Google will analyze 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.

Connection issues

If we can't confirm the code is placed correctly on your site you'll see a message on your AdSense homepage. Here are some things to check to help you fix connection issues.

The code is missing or incomplete

  • Did you paste the code into the HTML of your site?
  • Did you paste the code between the <head> and </head> tags?
  • Did you paste the code into the site you used to sign up for AdSense?

Your site is unreachable

  • Did you provide the correct URL when you created your AdSense account? If you made a mistake, you can click Edit Edit and update your URL.
  • Is your site up and running? Make sure your site is published and live on the web.
  • Can AdSense access your site without a password? If your site's login protected, consider temporarily removing the login so that we can reach your site. Note that after your account has been successfully activated, you can create a crawler login to display Google ads on your login-protected pages
Was this helpful?
How can we improve it?