Need help?
1300 210 210
We're Australian!
#1 for domains & hosting
94% customer satisfaction
Trusted by over 1 million businesses
Expert, 24/7 customer support
90% of issues resolved within a day
Best value
We price match*
Online Support Web Hosting

Google AdSense Verification Code via theme's header.php

Most bloggers desire the same goal – to become Google AdSense approved. Aside from the fact that it is very reliable, the pay is enough to keep bloggers busy just to qualify for AdSense.

It is a general truth that AdSense has a very strict approval system. What’s not common is the fact that before they review your application, verification of ownership is required.

Unlike most websites, Google AdSense's verification requires more than an email confirmation or a mobile validation. A unique code has to be pasted on header.php of your website’s theme folder to confirm ownership.Though it appears tricky, verifying ownership is simple. You can add code via admin section or FTP. Both ways are provided below.

Important Note: To be safe, please back up original header.php file before any modification.

Add verification code in WordPress admin section

Here's a step-by-step guide to add verification code in the admin section:

  1. Register a Google AdSense account.
  2. Copy unique code given to you after signing up.
  3. Enter YourDomainName/wp-admin on a browser:

    Important Note: Replace YourDomainName with your actual website.

  4. Enter username and password, and click Log In.
  5. On the left-hand corner, click Appearance, then select Editor.
  6. On the right-hand corner, click Theme Header (header.php).
  7. Look for the header end tag which is as follows:
    </header>
  8. Before the header end tag, insert your verification code.
  9. Click Update File.

Add verification code using FTP

Here's a step-by-step guide to add verification code using FTP:

  1. Register a Google AdSense account.
  2. Copy unique code given to you after signing up.
  3. Access your FTP client, and provide the following on the necessary fields:
    Hostname ftp.yourdomain.com
    Username Hosting Username
    Password Hosting Password
    Port 21
  4. Follow the given path to open your theme folder:
    /public_html/wp-content/themes/ThemeName

    Important Note: Replace ThemeName with your current WordPress theme.

  5. Right click on header.php file, and select Edit.
  6. Look for the header end tag which is as follows:
    </header>
  7. Before the header end tag, insert your verification code.
  8. Click Save.

There is no definite time alloted for each application. It could take days up to months. You don't have to worry if you won't hear from Google within a few days.

Was this helpful? Yes No 80% of people found this helpful.
we're
online
Need Help? Chat Now