前言介紹
- 這款 WordPress 外掛「Simple GAM」是 2017-04-18 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2020-02-17,距離現在已有 1903 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
munger41 |
外掛標籤
ad | gam | block | google | manager |
內容簡介
這是一個方便的外掛程式,可讓您輕鬆地將 Google Ad Manager(GAM)區塊加入 WP 中——包括短碼和模板功能。此外掛優化了多站點安裝,如果在單一站點安裝上有任何問題,請告訴我們。謝謝!
短碼
只需使用[simpledfp_block ad_id=xxxx],其中xxxx是在安裝外掛時創建的 DFP 廣告文章類型的 ID。
模板功能
請使用以下代碼:
if (class_exists('simplegam_main')) {
// 檢查是否安裝了外掛程式
simpledfpBlock(array('ad_id' => xxxx);
}
同時,xxxx也是您在 WordPress 管理面板中先前創建的 Simple GAM 廣告 ID。您可以像這樣檢索此ID。
我建議使用Reveal IDs plugin。
正確使用步驟
安裝外掛程式
在外掛程式的設置中填入 DFP 網絡識別符
管理面板的側欄會出現一個名為 DFP Ads 的新選單
使用它添加新的廣告,填寫必填字段:
DFP 程式碼區塊,就像在 DFP 後台中一樣
要在您的網站上顯示的區塊大小,格式為WWWxHHH(其中WWW是區塊的寬度,HHH是區塊的高度)
刷新前端,您應該會看到在您的網站上出現廣告區塊(如它們在 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.
I recommend the Reveal IDs plugin.
Steps to use correctly
Install the plugin
Fill the DFP network identifier in the settings of the plugin
A new menu DFP Ads appears in the sidebar of admin panel
Use it to Add a new ad, fill mandatory fields :
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)
Refresh you frontend, and you should see block creations (as they are defined in DFP backoffice) appear on your site.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Simple GAM」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
WP DB Backup 》WP DB Backup 是一個輕量的資料庫備份外掛,適用於任何 WordPress 網站。, 功能, , 備份、下載及排程設定。, 您可以隨時下載資料庫。, 您可以排程每日、每週...。