Title: FlatPM – Ad Manager, AdSense and Custom Code
Author: Mikhail Flat
Published: <strong>March 8, 2021</strong>
Last modified: January 7, 2026

---

Search plugins

![](https://ps.w.org/flatpm-wp/assets/banner-772x250.png?rev=2492061)

![](https://ps.w.org/flatpm-wp/assets/icon-256x256.png?rev=2491745)

# FlatPM – Ad Manager, AdSense and Custom Code

 By [Mikhail Flat](https://profiles.wordpress.org/flatboy/)

[Download](https://downloads.wordpress.org/plugin/flatpm-wp.3.2.3.zip)

 * [Details](https://twd.wordpress.org/plugins/flatpm-wp/#description)
 * [Reviews](https://twd.wordpress.org/plugins/flatpm-wp/#reviews)
 *  [Installation](https://twd.wordpress.org/plugins/flatpm-wp/#installation)
 * [Development](https://twd.wordpress.org/plugins/flatpm-wp/#developers)

 [Support](https://wordpress.org/support/plugin/flatpm-wp/)

## Description

**Flat PM** is an ad management plugin. You might be thinking, “why do I need it?”.
It’s simple: this is the best plugin for organizing ads at a professional level.

From 12.02.2024 completely FREE!!!

You can compare it with plugins like Advanced Ads, Ad Inserter, believe me, it’s
nothing compared to FlatPM.
 If you’re worried about front-end performance, then
the plugin code is written without using jQuery!

Flat PM has all the functionality, with the exception of GEO, completely free.

This is a new level of advertising management. You can not only create and save 
ad blocks, but also divide them into folders. Manage general settings for a folder
so that you don’t have to make changes to each individual ad block.

You can create 3 different types of AB tests.

### The plugin has the following options for displaying ads:

 * Output based on pixels or the height of the user’s screen (a completely unique
   solution that is not found in other plugins);
 * Output based on characters or percentage of your article text;
 * Output once, or with repetitions based on css selectors (you are not limited 
   by the content of your article, works without hooks on the backend, very configurable);
 * Output of pop-ups and leaving blocks on the left/bottom/right and so on, 9 positions
   in total;
 * Display ads when hovering over an element: images, text, video, and whatever 
   you want;
 * Video preroll before watching videos on YouTube, Vimeo.

The plugin does not have any restrictions, it is a fully customizable tool.

### Content targeting options:

 * Publications;
 * Publication types;
 * Categories and taxonomies;
 * The number of characters and headings in the publication;
 * The authors of the publication;
 * Types of templates and templates.

### User targeting options:

 * GEO: country or city (paid base of IP addresses is used);
 * referrer;
 * Browser;
 * Operating system;
 * ISP – Internet Service Provider;
 * Get parameter in the link address;
 * Cookies;
 * Date and time;
 * You can specify the schedule by day of the week;
 * The role of the user on the site;
 * user-agent;
 * You can block the display by ip.

### Additional options:

 * Reloading ads;
 * Fixed Widgets;
 * Laziload advertising;
 * Stylization;
 * Fine-tuning the interface of the plugin itself;
 * Export Import;
 * Output in head and footer;
 * Full compatibility with caching plugins;
 * Auto reset cache when changing ad settings.

### The plugin has been translated into English, Ukrainian and Russian languages.

In the future, translation into German, Spanish, French will be made. You can contact
us for help with translation.

### Conclusion:

Flat PM is a professional solution that has been perfected over 7 years. The code
is clean, does not create a load on the server. Ease of use in the admin panel. 
The interface is clear and structured.

## Screenshots

 * [[
 * List of all ad blocks (compact)
 * [[
 * List of all ad blocks (advanced)
 * [[
 * Adding a new ad block
 * [[
 * Based on pixels
 * [[
 * Based on selectors (iterable)
 * [[
 * Popup / Sticky side
 * [[
 * Video pre-roll
 * [[
 * Hover-roll
 * [[
 * Content targeting
 * [[
 * User targeting
 * [[
 * Header and footer inserting code
 * [[
 * Blacklist ip
 * [[
 * Main plugin settings
 * [[
 * PageSpeed Insights settings
 * [[
 * Stylization
 * [[
 * Advanced settings
 * [[
 * Prsonalization admin interface
 * [[
 * Import
 * [[
 * Export
 * [[
 * Plugin shortcodes
 * [[
 * License

## Installation

Install like any other plugin or:
 * Upload the files to the `/wp-content/plugins/
flatpm-wp` directory, or install the plugin via the WordPress plugin installation
screen in the admin panel. * Activate the plugin through the list of all plugins
on your site.

## Reviews

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

### 󠀁[Best plugin for placing ads](https://wordpress.org/support/topic/best-plugin-for-placing-ads/)󠁿

 [mygadget027](https://profiles.wordpress.org/mygadget027/) May 4, 2024

I use it to place ads, some short-time promos and even for adding some new features,
without changing the whole template. 5 stars for sure.

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

### 󠀁[Божественно!](https://wordpress.org/support/topic/%d0%b1%d0%be%d0%b6%d0%b5%d1%81%d1%82%d0%b2%d0%b5%d0%bd%d0%bd%d0%be/)󠁿

 [todayer](https://profiles.wordpress.org/todayer/) March 12, 2023

Очень крутой плагин для монетизации. Как он это делает?

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

### 󠀁[Это лучший плагин для монетизации сайтов](https://wordpress.org/support/topic/%d1%8d%d1%82%d0%be-%d0%bb%d1%83%d1%87%d1%88%d0%b8%d0%b9-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd-%d0%b4%d0%bb%d1%8f-%d0%bc%d0%be%d0%bd%d0%b5%d1%82%d0%b8%d0%b7%d0%b0%d1%86%d0%b8%d0%b8-%d1%81%d0%b0%d0%b9/)󠁿

 [stas7](https://profiles.wordpress.org/stas7/) March 2, 2023

Лучше и функциональнее плагин по монетизации не найти. Столько функционала, сколько
есть тут нет ни в одном плагине по монетизации.

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

### 󠀁[Спасибо](https://wordpress.org/support/topic/%d1%81%d0%bf%d0%b0%d1%81%d0%b8%d0%b1%d0%be-106/)󠁿

 [msrusanov](https://profiles.wordpress.org/msrusanov/) April 17, 2022

Спасибо за помощь в установке плагина. Был конфликт с амп.

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

### 󠀁[Отличный плагин! Рекомендую](https://wordpress.org/support/topic/%d0%be%d1%82%d0%bb%d0%b8%d1%87%d0%bd%d1%8b%d0%b9-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd-%d1%80%d0%b5%d0%ba%d0%be%d0%bc%d0%b5%d0%bd%d0%b4%d1%83%d1%8e-15/)󠁿

 [Aleksandr Punchenko](https://profiles.wordpress.org/noonf/) April 17, 2022

Огромное количество вариантов вывода рекламы + интуитивно понятный интерфейс. Разработчик
всегда на связи, оперативно отвечает и помогает с любым вопросом. Пользуюсь сам 
и рекомендую клиентам.

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

### 󠀁[Ужасные разработчики, то вирус то шутят](https://wordpress.org/support/topic/%d1%83%d0%b6%d0%b0%d1%81%d0%bd%d1%8b%d0%b5-%d1%80%d0%b0%d0%b7%d1%80%d0%b0%d0%b1%d0%be%d1%82%d1%87%d0%b8%d0%ba%d0%b8-%d1%82%d0%be-%d0%b2%d0%b8%d1%80%d1%83%d1%81-%d1%82%d0%be-%d1%88%d1%83%d1%82%d1%8f/)󠁿

 [usermyuser](https://profiles.wordpress.org/usermyuser/) April 15, 2022 3 replies

в 2021 году их ломанули и через плагин ломали сайты. В поддержке на просьбы реагируют
не адекватно, вместо помощи делают назло. Просил убрать мешающий рекламный баннер
внутри плагина, поставили баннер больше разрешения экрана. Неадекватные какие то
разработчики.

 [ Read all 9 reviews ](https://wordpress.org/support/plugin/flatpm-wp/reviews/)

## Contributors & Developers

“FlatPM – Ad Manager, AdSense and Custom Code” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ Mikhail Flat ](https://profiles.wordpress.org/flatboy/)

[Translate “FlatPM – Ad Manager, AdSense and Custom Code” into your language.](https://translate.wordpress.org/projects/wp-plugins/flatpm-wp)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/flatpm-wp/), check 
out the [SVN repository](https://plugins.svn.wordpress.org/flatpm-wp/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/flatpm-wp/) by [RSS](https://plugins.trac.wordpress.org/log/flatpm-wp/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

### 3.2.3

 1. Fix vulnerability.

### 3.2.2

 1. Fix GEO.

### 3.2.0

 1. Now the plugin is completely FREE!!!
 2. Fix translations.

### 3.1.17

 1. Bug fix.

### 3.1.16

 1. Global ab tests for folders. Those you can test entire swathes of advertising.
 2. Shortcode {{increment}}. Prints a number starting from 1, each call to this shortcode
    increases the value by one.
     {{increment_1}}, {{increment_2}}, etc. – it is possible
    to display several separate increments.
 3. For all popups, added the ability to confirm actions by pressing the Enter button.

### 3.1.14

 1. Added the option to close popups by clicking on the overlay.
 2. Added shortcode {{fpm-close-event}}, which displays a css class for closing popups
    and moving blocks.

### 3.1.10

 1. Fixed bug with GEO detection.
 2. Added targeting by browser color scheme.
 3. Added a special get parameter for sites with infinite loading, now you just need
    to add ?fpm-ajax for your links.
 4. In User Targeting I made smart toggles. If you start filling in fields inside, 
    the toggle will turn on automatically, and if the fields are blank, it will turn
    off.
 5. In Output options I added a checkbox to enable all record types and templates at
    once.
 6. Now the referrer is additionally taken from utm_referrer if it is present in the
    link. This will be useful for owners of Antibot, which prevents referrer detection
    due to captcha padding.
 7. Design edits in the admin area.

### 3.1.05

**Fixes:**
 1. Fixed processing of third-party shortcodes in header and footer; 
2. Fixed counting of characters in article (it’s not a perfect algorithm, some users
will still have problems) – I will rewrite everything from scratch in the near future.
This item will not be noticed by 90% of users; 3. some improvements in the admin
area (including the ability to disable the helper when editing a block); 4. Fixed
a bug with OS detection; 5. Fixed a bug with the definition of the current time 
of the user; 6. Minor edits to the interface in the admin area; 7. Moved the list
of ip for blocking from `/ip.txt` to `/wp-content/uploads/fpm/ip.html` – this will
fix compatibility with gtranslate.io; 8. Renamed macros to: Picture, Link, Slider,
Sticky in content, Sticky in sidebar, Skyscraper in sidebar (new), Interscroller(
new); 9. Fixed the definition of metric, float, top, etc. from RFCs for quick insertion;
10. Closed a super minor vulnerability in the plugin; 11. Removed the “Prohibit 
block output for Google PageSpeed robot” setting as it was outdated; 12. Fixed a
bug where the “>” symbol on the frontend was replaced with “>” in the style editor

**Improvements:**
 1. Improved output of shortcodes of advertising blocks, now everything
works without additional settings speech about `[flat_pm id="block ID"]`; 2. Added
support for ajax output of ad block shortcodes; 3. Befriended “Slider” with “Sticky
in sidebar”, personally for me this solution is better than reloading ads in the
sidebar; 4. Added functionality for “Sticky in content”: now it can be set left 
or right alignment and width, with these settings text and content will “streamline”
advertising; 5. Added support for xpath selectors (exceptions) for pixel and character
based output types; 6. Made multi-line input to search for a block by code, name
or description; 7. Improved cookie and utm-get definitions: added new syntax to 
allow multiple values for each parameter; 8. Updated translations; 9. Over the last
year, 3 users had their databases broken when moving to another server (well, what
can you do, there are crooked proggers), including some blocks in FlatPM. Especially
for this purpose, I made a definition of broken blocks in the database and visualization
in the general list of blocks with the ability to delete these blocks.

**New in the plugin:**
 1. Added a new format to the “Interscroller” macros. This
format has an option “block scroll on timer”; 2. Added targeting by browser language;
3. Added ipv6 support for blocking ip addresses. The range can be specified the 
same way as with ipv4: `2a0d:5600:24:61:a0::1 - 2a0d:5600:24:61:a0::4`. If you specify
the range: ::2 – ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, all ipv6 addresses
will be blocked. 4. Moved all GEO, user role and ISP checks from the backend to 
the frotnend. Now it does not affect the backend, which in turn will reduce (actually
completely remove) the load on the server from the plugin; 5. Changed the definition
of the user’s ip, this now works through ip.php instead of admin-ajax.php. This 
will significantly reduce the load on the server. 6. Especially for the paranoid,
added an option to the plugin to not scorch the ad weight via base64 encryption,
each block can be encrypted separately from the rest. Plus it will really add a 
kind of noindex for anything you want to hide from the robots; 7. Added a special
widget for the sidebar, so that you can easily display any block there without any
additional work on prescribing selectors or shortcodes.

### 3.0.42

Release new 3.0 version

## Meta

 *  Version **3.2.3**
 *  Last updated **3 months ago**
 *  Active installations **10,000+**
 *  WordPress version ** 5.9 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 5.6 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/flatpm-wp/)
 * Tags
 * [ad injection](https://twd.wordpress.org/plugins/tags/ad-injection/)[ad manager](https://twd.wordpress.org/plugins/tags/ad-manager/)
   [ad rotation](https://twd.wordpress.org/plugins/tags/ad-rotation/)[ads plugin](https://twd.wordpress.org/plugins/tags/ads-plugin/)
   [custom code](https://twd.wordpress.org/plugins/tags/custom-code/)
 *  [Advanced View](https://twd.wordpress.org/plugins/flatpm-wp/advanced/)

## Ratings

 4.6 out of 5 stars.

 *  [  8 5-star reviews     ](https://wordpress.org/support/plugin/flatpm-wp/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/flatpm-wp/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/flatpm-wp/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/flatpm-wp/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/flatpm-wp/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/flatpm-wp/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/flatpm-wp/reviews/)

## Contributors

 *   [ Mikhail Flat ](https://profiles.wordpress.org/flatboy/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/flatpm-wp/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://mehanoid.pro/flat-pm/)