WP Simple Adsense Insertion
WP Simple Adsense Insertion

WP Simple Adsense Insertion

Tips and Tricks HQ

Use this plugin to quickly and easily insert Google Adsense to your posts, pages and sidebar by using a shortcode or calling the php function from your theme’s template file.

There are many plugins and services which can add Google Adsense to your WordPress site. However I found that even though something like Adsense Manager or Adsense Deluxe provides a lot of customizable options, it can be overwhelming and isn’t really simple enough for people who are new to WordPress.

I found that most of the time I only use two or three types of Google Adsense units in various places and posts throughout my sites.

That’s why I wrote my own Simple Adsense Insertion Plugin for WordPress, to focus on having 1-3 Google Adsense codes saved and use them where ever I want to on my site by inserting a simple shortcode text to my posts, pages and sidebar.

This plugin can also be used to automatically insert in-article ad code. If specified, the ad code is inserted after the 2nd paragraph of every posts.

It also has the ability to automatically insert adsense code at the end of every article.

You can use this plugin to store any ad code too (it doesn’t have to be just adsense code).

For information and updates, please visit the simple Google Adsense plugin page

Usage:

There are two ways you can use this plugin:

Use the shortcodes:

  • [wp_ad_camp_1]
  • [wp_ad_camp_2]
  • [wp_ad_camp_3]
  • [wp_ad_camp_4]
  • [wp_ad_camp_5]

Call the function from template files:

  • <?php echo show_ad_camp_1(); ?>
  • <?php echo show_ad_camp_2(); ?>
  • <?php echo show_ad_camp_3(); ?>
  • <?php echo show_ad_camp_4(); ?>
  • <?php echo show_ad_camp_5(); ?>
Does this plugin allow complex adsense management?

No.

Can I automatically insert adsense code at the end of every article?

Yes.

Can I automatically insert adsense inside every article?

Yes. You can automatically insert after after the 2nd paragraph of every article.

I am updating an older version of the plugin. Will it still work?

The method for displaying ads changed in version 1.2. The old style will continue to work in this version, but it highly suggested that you update all the adcode in your content to the new method.

An easy way to do this would be to install the find/replace plugin (https://wordpress.org/extend/plugins/search-and-replace/) and update all your old tags. Example: Find and replace it with [wp_ad_camp_1].

Great Support!

By Snerdey on November 15, 2023

<!-- wp:paragraph --> <p class="">Had an issue, support handled it quickly with an update. That's how all plugins should work :)</p> <!-- /wp:paragraph -->

Disabling It Breaks My Theme

By macsopinion on January 11, 2023

I need to disable the plugin to work on the site and when I do it breaks my Theme now. So I can't disable the plugin without it breaking my site! Not in a good mood right now!

can't remove from site

By webgalway on March 31, 2021

works well

Great! Working Perfect!

By ibiza69 on January 11, 2020

Hi and thanks to developers, plugin is working great!

Best Plugin

By mudassar120859 on August 29, 2019

I love to use this simple plug-in

Simple, Works, Perfect

By mchelles on October 18, 2017

I've used a lot of Advertising plugins over the past 10 years - this one is my new absolute favorite for ease of use, simplicity, and maximum control for ad placements. For most articles, the auto-insertion is perfect - for longer articles, being able to control where the ads go between paragraphs and headings using shortcodes is awesome. Thanks for a great plugin!

Works Very Well

By FDF (timt20) on April 24, 2017

Very easy to use and works well. Allowed me to place Google Adsense adverts in the Sidebars and Footer on my Enfold based site. Many thanks.

Useful

By onurdmr07 on April 4, 2017

Simple and useful

conflict with new theme

By etroka1209 on February 2, 2017

I really like this plugin and was using it for few years , no complain, but in my newest theme is in conflict and is changing my H1...header fonts to some other fonts, maybe developer will take a look at this problem and fix it , than i will change my ratings Thanks

Thumbs up!

By kaush11 on September 30, 2016

Worked perfectly for me! Great plugin. Thanks.

2.1

  • Added nonce check in the admin settings menu update action.

2.0

  • Added a new option to automatically insert adsense code at the end of every article. Thanks to Drew Glows for providing the update.

1.9

  • Ability to use in-article ad code. If specified, the ad code is inserted after the 2nd paragraph of every posts.

1.8

  • Updated the code to remove a couple of the debug mode warnings.

Older

1.7 – WordPress 4.2 compatibility
1.6 – WordPress 3.8 compatibility
1.5 – Added a 5th ad code slot
1.4 – Added a 4th ad code slot
1.3 – Added a new shortcode implementation to display the adsense ads
1.2 – Changed from displaying adcodes through content filtering to the shortcode method

  1. Unzip and Upload the folder ‘WP-Simple-Adsense-Insertion’ to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings and configure the options eg. Copy and paste the Google Adsense code that you want to use.
  4. Add the trigger text [wp_ad_camp_1] to a post or page where you want it to appear.

Reviews

4.5 out of 5 stars

  • Version: v2.1
  • Last updated: 3 months ago
  • Active installations: 5K
  • WordPress version: 5.5
  • Tested up to: 6.6.2
  • PHP version: false