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. Confirm you've pasted the code and click Done.

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?