{"id":66950,"date":"2017-04-19T09:42:01","date_gmt":"2017-04-19T09:42:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/simple-dfp\/"},"modified":"2020-02-17T16:44:43","modified_gmt":"2020-02-17T16:44:43","slug":"simple-dfp","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/simple-dfp\/","author":13533785,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.3","stable_tag":"trunk","tested":"5.2.24","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Simple GAM","header_author":"Termel","header_description":"Finally an easy plugin to add DFP blocks into WP - shortcode and template function","assets_banners_color":"6b6967","last_updated":"2020-02-17 16:44:43","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/simple-dfp\/","header_author_uri":"https:\/\/www.termel.fr\/","rating":4,"author_block_rating":0,"active_installs":10,"downloads":1775,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"":"<p>Simple use WP backoffice upgrader<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":"1","5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1640451","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1640451","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1640451","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1640451","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Network settings"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2557,1220,31541,150,652],"plugin_category":[43],"plugin_contributors":[96923],"plugin_business_model":[],"class_list":["post-66950","plugin","type-plugin","status-publish","hentry","plugin_tags-ad","plugin_tags-block","plugin_tags-gam","plugin_tags-google","plugin_tags-manager","plugin_category-customization","plugin_contributors-munger41","plugin_committers-munger41"],"banners":{"banner":"https:\/\/ps.w.org\/simple-dfp\/assets\/banner-772x250.png?rev=1640451","banner_2x":"https:\/\/ps.w.org\/simple-dfp\/assets\/banner-1544x500.png?rev=1640451","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/simple-dfp\/assets\/icon-128x128.png?rev=1640451","icon_2x":"https:\/\/ps.w.org\/simple-dfp\/assets\/icon-256x256.png?rev=1640451","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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!<\/p>\n\n<h3>Shortcode<\/h3>\n\n<p>Simply use <code>[simpledfp_block ad_id=xxxx]<\/code> where <code>xxxx<\/code> is the id of your DFP ad post type, created when you installed the plugin.<\/p>\n\n<h3>Template function<\/h3>\n\n<p>Please use the following code:<\/p>\n\n<pre><code>if (class_exists('simplegam_main')) {\n    \/\/ checks the plugin is installed\n    simpledfpBlock(array('ad_id' =&gt; xxxx);\n}\n<\/code><\/pre>\n\n<p>With, also <code>xxxx<\/code> being your Simple GAM Ad id, previously created in wordpress admin panel. You can <a href=\"https:\/\/premium.wpmudev.org\/blog\/display-wordpress-post-page-ids\/\" title=\"Retreive ID\">retrive this ID like this.<\/a>\nI  recommend the <a href=\"https:\/\/wordpress.org\/plugins\/reveal-ids-for-wp-admin-25\/\">Reveal IDs plugin<\/a>.<\/p>\n\n<h3>Steps to use correctly<\/h3>\n\n<ol>\n<li>Install the plugin<\/li>\n<li>Fill the DFP network identifier in the settings of the plugin<\/li>\n<li>A new menu DFP Ads appears in the sidebar of admin panel<\/li>\n<li>Use it to Add a new ad, fill mandatory fields :\n\n<ul>\n<li>DFP Bloc code, as it appears in DFP backoffice<\/li>\n<li>Size of bloc to display on you site, in the format <code>WWWxHHH<\/code> (where WWW is the width of the block, and HHH the height of the block)<\/li>\n<\/ul><\/li>\n<li>Refresh you frontend, and you should see block creations (as they are defined in DFP backoffice) appear on your site.<\/li>\n<\/ol>\n\n<!--section=installation-->\n<h3>Easy<\/h3>\n\n<ol>\n<li>Search via plugins &gt; add new.<\/li>\n<li>Find the plugin listed and click activate.<\/li>\n<li>Use the shortcode or template function<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<ul>\n<li><p>1.3.3 - dashicon changed<\/p><\/li>\n<li><p>1.3.2 - collapse emptu divs<\/p><\/li>\n<li><p>1.3.1 - tested with WP 5.2<\/p><\/li>\n<li><p>1.3.0 - key value pairs ok on multisite<\/p><\/li>\n<li><p>1.2.1 - key value pairs ok on single site<\/p><\/li>\n<li><p>1.2 - collapse empty divs now<\/p><\/li>\n<li><p>1.1 - fix : checks before display prevent display...<\/p><\/li>\n<li><p>1.0 - fix on TypeError: googletag.pubads is not a function<\/p><\/li>\n<li><p>0.5 - online fixes<\/p><\/li>\n<li><p>0.4 - ready for single site<\/p><\/li>\n<li><p>0.3 - no settings menu on single site...<\/p><\/li>\n<li><p>0.2 - no settings menu on single site...<\/p><\/li>\n<li><p>0.1 - initial commit<\/p><\/li>\n<\/ul>","raw_excerpt":"Finally an easy plugin to add Google Ad Manager (GAM) blocks into WP - shortcode and template function.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/66950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=66950"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/munger41"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=66950"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=66950"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=66950"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=66950"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=66950"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=66950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}