Finally an easy plugin to add Google Ad Manager (GAM) blocks into WP - shortcode and template function.
As of April 2026, Simple GAM is a WordPress ad plugin with 10 active installations and a 4/5 rating from 1 reviews. It has been downloaded 1.8K+ times in total. Requires WordPress 4.0+ and PHP false+. Available on WordPress.org since 2017. Last updated 6 years ago — may have compatibility concerns. Top alternative: Image Widget.
Finally an easy plugin to add Google Ad Manager (GAM) blocks into WP – shortcode and template function. It was designed to work with a multisite install, please tell me if any problem on a single site install. Thanks!
Simply use [simpledfp_block ad_id=xxxx] where xxxx is the id of your DFP ad post type, created when you installed the plugin.
Please use the following code:
if (class_exists('simplegam_main')) {
// checks the plugin is installed
simpledfpBlock(array('ad_id' => xxxx);
}
With, also xxxx being your Simple GAM Ad id, previously created in wordpress admin panel. You can retrive this ID like this.
I recommend the Reveal IDs plugin.
| WordPress | 4.0+ requiredTested up to 5.2.24 |
| PHP | false+ required |
1.3.3 – dashicon changed
1.3.2 – collapse emptu divs
1.3.1 – tested with WP 5.2
1.3.0 – key value pairs ok on multisite
1.2.1 – key value pairs ok on single site
1.2 – collapse empty divs now
1.1 – fix : checks before display prevent display…
1.0 – fix on TypeError: googletag.pubads is not a function
<…Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.