Title: Simple GAM
Author: termel
Published: <strong>2017年4月19日</strong>
Last modified: 2020年2月17日

---

プラグインを検索

![](https://ps.w.org/simple-dfp/assets/banner-772x250.png?rev=1640451)

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://ps.w.org/simple-dfp/assets/icon-256x256.png?rev=1640451)

# Simple GAM

 作者: [termel](https://profiles.wordpress.org/munger41/)

[ダウンロード](https://downloads.wordpress.org/plugin/simple-dfp.zip)

 * [詳細](https://ja.wordpress.org/plugins/simple-dfp/#description)
 * [レビュー](https://ja.wordpress.org/plugins/simple-dfp/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/simple-dfp/#installation)
 * [開発](https://ja.wordpress.org/plugins/simple-dfp/#developers)

 [サポート](https://wordpress.org/support/plugin/simple-dfp/)

## 説明

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!

### Shortcode

Simply use `[simpledfp_block ad_id=xxxx]` where `xxxx` is the id of your DFP ad 
post type, created when you installed the plugin.

### Template function

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.](https://premium.wpmudev.org/blog/display-wordpress-post-page-ids/)

I recommend the [Reveal IDs plugin](https://wordpress.org/plugins/reveal-ids-for-wp-admin-25/).

### Steps to use correctly

 1. Install the plugin
 2. Fill the DFP network identifier in the settings of the plugin
 3. A new menu DFP Ads appears in the sidebar of admin panel
 4. Use it to Add a new ad, fill mandatory fields :
 5.  * DFP Bloc code, as it appears in DFP backoffice
     * Size of bloc to display on you site, in the format `WWWxHHH` (where WWW is the
       width of the block, and HHH the height of the block)
 6. Refresh you frontend, and you should see block creations (as they are defined in
    DFP backoffice) appear on your site.

## インストール

### Easy

 1. Search via plugins > add new.
 2. Find the plugin listed and click activate.
 3. Use the shortcode or template function

## 評価

![](https://secure.gravatar.com/avatar/2c4d57c67039beceb6ae2c882f6dd6aab0accade24d2b4dd92239083c782fb5f?
s=60&d=retro&r=g)

### 󠀁[At least simple and working!](https://wordpress.org/support/topic/at-least-simple-and-working/)󠁿

 [termel](https://profiles.wordpress.org/munger41/) 2017年4月19日

Efficient to avoid complicated ad plugins : just copy paste your network code, DFP
bloc code and size, and you good to launch campaigns from DPF and manage them from
there. Good simple one!

 [ 1件のレビューをすべて表示 ](https://wordpress.org/support/plugin/simple-dfp/reviews/)

## 貢献者と開発者

Simple GAM はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献してい
ます。

貢献者

 *   [ termel ](https://profiles.wordpress.org/munger41/)

[“Simple GAM” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/simple-dfp)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/simple-dfp/)するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/simple-dfp/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/simple-dfp/)
を [RSS](https://plugins.trac.wordpress.org/log/simple-dfp/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

 * 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
 * 0.5 – online fixes
 * 0.4 – ready for single site
 * 0.3 – no settings menu on single site…
 * 0.2 – no settings menu on single site…
 * 0.1 – initial commit

## メタ

 *  バージョン **1.3.3**
 *  最終更新日 **6年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 4.0またはそれ以降 **
 *  検証済み最新バージョン: **5.2.24**
 *  言語
 * [English (US)](https://wordpress.org/plugins/simple-dfp/)
 * タグ
 * [ad](https://ja.wordpress.org/plugins/tags/ad/)[block](https://ja.wordpress.org/plugins/tags/block/)
   [gam](https://ja.wordpress.org/plugins/tags/gam/)[google](https://ja.wordpress.org/plugins/tags/google/)
   [manager](https://ja.wordpress.org/plugins/tags/manager/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/simple-dfp/advanced/)

## 評価

 5つ星中4つ星

 *  [  0 5-星レビュー     ](https://wordpress.org/support/plugin/simple-dfp/reviews/?filter=5)
 *  [  1 4-星レビュー     ](https://wordpress.org/support/plugin/simple-dfp/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/simple-dfp/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/simple-dfp/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/simple-dfp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-dfp/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/simple-dfp/reviews/)

## 貢献者

 *   [ termel ](https://profiles.wordpress.org/munger41/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/simple-dfp/)