Home✔Naija HB SpecialHow to Add AdSense Auto Ads to Google AMP Pages in WordPress

How to Add AdSense Auto Ads to Google AMP Pages in WordPress

Published on

For AdSense publishers that use Google AMP by Automattic, after setting up auto ads and adding to your WordPress site, you must have noticed that Google ads don’t appear on the Accelerated Mobile Pages (AMP) of your site.

This could cost you thousands of dollars in earnings, if a great deal of your visitors use their mobile devices.

After receiving several requests from my readers to publish a tutorial to correct this anomaly, I have decided to do just that. This tutorial will show you how to add AdSense on AMP pages.

You can easily display ads on AMP pages using several plugins. However, many of them come at an extra cost. You don’t have to spend a dime to get this done – It’s not as difficult as you imagine.

To display ads on AMP with this guide, we will be making use of the latest innovative feature called “Auto Ads”.

The auto ads feature allows you to add a simple code to your site and after adding that code you can easily manage your ads directly from your AdSense dashboard.

Follow this guide: setup auto ads and add to WordPress

If you are very familiar with your AdSense Dashboard, you must have noticed a new feature located within Optimization>>Lab. This feature is called “AMP auto ads (text and display) – A great new way to monetize your AMP pages. Switch on this lab to place text and display ads on any AMP page that you’ve tagged with the AMP Auto ad code”.

First thing you need to do is toggle on this feature and click on get code.

AMP Auto ads – Text & display

You will be provided with an AMP code you have to add to two places on your website.

Copy and paste the AMP code in 2 places.

AdSense has a guide to add this code to your site. However, you may find this difficult to implement without proper guidance if you are not a tech savvy. This post will help you add those AMP codes to your site even if you are new to all these stuff.

Right now, customizing the AMP plugin or adding a custom code to your theme functions have not been working. So, to add auto ads, we’ll make use of a plugin created by a Google employee.

How to display auto ads in AMP

Download AMP Auto Ads plugin from github.

Install the plugin on your WordPress site manually. Read: how to install a wordpress plugin manually.

After installing the plugin, hover your mouse on plugins in your WordPress dashboard and click on plugin editor.

In the select plugin to edit section, make sure you choose “AMP Auto Ads”.

Afterwards, replace the dash just after ‘const AD_CLIENT’ with your AdSense publisher ID.

All AdSense publisher ID are of the format: ‘ca-pub-3084123456789012. To know what yours is, visit your AdSense dashboard and check the address bar of your browser.

Add AdSense Auto Ads to Google AMP

The final code in the plugin editor should look like what’s in the image below:

Add AdSense Auto Ads to Google AMP

Finally, click on ‘Update File’ to implement the changes.

Your AMP pages will begin to show ads within a few minutes; say 10 to 20 minutes.

Latest articles

Who is The Tenge Tenge Kid?

Videos of the Tenge Tenge kid have garnered hundreds of millions of views on...

List of Nigerian States with APC Governors

Discover the list of Nigerian States being governed by the All Progressives Congress (APC)...

See the Names and States of PDP Governors in Nigeria in 2023

Get to know the governors leading their states under the People's Democratic Party (PDP)...

Present Governors of All 36 States in Nigeria, Deputies & Parties (2023)

This post provides information on the present governors for all 36 states in Nigeria....

More like this

Who is The Tenge Tenge Kid?

Videos of the Tenge Tenge kid have garnered hundreds of millions of views on...

List of Nigerian States with APC Governors

Discover the list of Nigerian States being governed by the All Progressives Congress (APC)...

See the Names and States of PDP Governors in Nigeria in 2023

Get to know the governors leading their states under the People's Democratic Party (PDP)...