advanced-ads
Last commit date
admin
9 years ago
classes
9 years ago
includes
9 years ago
languages
9 years ago
modules
9 years ago
public
9 years ago
vendor
9 years ago
LICENSE.txt
12 years ago
advanced-ads.php
9 years ago
composer.json
11 years ago
composer.lock
9 years ago
index.php
12 years ago
readme.txt
9 years ago
readme.txt
347 lines
| 1 | === Advanced Ads === |
| 2 | Contributors: webzunft |
| 3 | Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5RRRCEBGN3UT2 |
| 4 | Tags: ads, ad, ad inserter, ad injection, ad manager, ads manager, ad widget, adrotate, adsense, advertise, advertisements, advertising, adverts, advert, amazon, banner, banners, buysellads, chitika, clickbank, dfp, doubleclick, geotarget, geolocation, geo location, google dfp, monetization, widget |
| 5 | Requires at least: WP 4.2, PHP 5.3 |
| 6 | Tested up to: 4.8 |
| 7 | Stable tag: 1.7.25 |
| 8 | License: GPLv2 or later |
| 9 | License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 10 | |
| 11 | Manage and optimize your ads and ads performance with support for AdSense, ad injection, ad widget, and ad rotation. |
| 12 | |
| 13 | == Description == |
| 14 | |
| 15 | Advanced Ads is a simple ad manager made by a publisher for publishers. Based on my experience delivering millions of ads per month I built this advertising plugin as a powerful, but light weight solution to not only manage and insert banners in WordPress, but to test and optimize them as well. |
| 16 | |
| 17 | [Full Feature List](https://wpadvancedads.com/features/). |
| 18 | |
| 19 | = create and manage ads = |
| 20 | |
| 21 | * create a banner is as easy as creating a post |
| 22 | * group ads to create ad rotations |
| 23 | * create drafts of advertisements only visible to logged in users |
| 24 | * set a date for when to publish the ad |
| 25 | * sell ads on your website with the [Selling Ads add-on](https://wpadvancedads.com/add-ons/selling-ads/) |
| 26 | * import / export ads and settings |
| 27 | * wizard to quickly create and place simple ads |
| 28 | |
| 29 | = ad types = |
| 30 | |
| 31 | choose between different ad types that enable you to: |
| 32 | |
| 33 | * insert code for ad and affiliate networks (e.g., AdSense, Chitika, Amazon, BuySellAds, DoubleClick) |
| 34 | * dedicated support for all types of Google AdSense banners |
| 35 | * display images and image banners |
| 36 | * use shortcodes within ads (to also deliver advertisements from other ad plugins like AdRotate or Simple Ads Manager) |
| 37 | * create content rich ads with the tinymc editor |
| 38 | * use flash file advertisements including a fallback – included in [Pro](https://wpadvancedads.com/add-ons/advanced-ads-pro/) |
| 39 | * ad group to allow ads from the same group to share conditions and settings |
| 40 | |
| 41 | = display ads = |
| 42 | |
| 43 | * auto inject banner (see _ad injection_ below) |
| 44 | * display advertising in template files (with functions) |
| 45 | * display advertising in post content (with shortcodes) |
| 46 | * ad widget for sidebars and widget areas |
| 47 | * display ad groups based on customizable ad weight |
| 48 | * use placements in your theme to insert ads and ad groups in template files without coding |
| 49 | * disable all ads on individual single pages |
| 50 | * set start time and expiry date for advertising |
| 51 | * display multiple ads from a banner group (ad blocks) |
| 52 | * define the order of ads from an ad group and allow default ads |
| 53 | * display a label, e.g. “Advertisements” above each ad |
| 54 | * compatible with site builders: SiteOrigin |
| 55 | |
| 56 | = display conditions = |
| 57 | |
| 58 | show ads based on conditions like |
| 59 | |
| 60 | * individual posts, pages and other post type |
| 61 | * post type |
| 62 | * posts by category, tags, taxonomies |
| 63 | * author |
| 64 | * archive pages by category, tags, taxonomies |
| 65 | * special page types like 404, attachment and front page |
| 66 | * hide ads on secondary queries (e.g. posts in sidebars) |
| 67 | * display or hide banners within the post feed |
| 68 | |
| 69 | global conditions: |
| 70 | |
| 71 | * disable all ads in the frontend (e.g. when your ad network breaks down) |
| 72 | * disable all ads on 404 pages (e.g. recommended for AdSense) |
| 73 | * disable all ads on non-singular pages |
| 74 | * disable all ads in secondary queries |
| 75 | * disable all ads in the feed |
| 76 | * hide ads from bots and web crawlers |
| 77 | |
| 78 | = visitor conditions = |
| 79 | |
| 80 | display ads by conditions based on the visitor. [List of all visitor conditions](https://wpadvancedads.com/manual/visitor-conditions/) |
| 81 | |
| 82 | * display or hide a banner by device: mobile and tablet or desktop |
| 83 | * display or hide a banner for logged in visitors |
| 84 | * hide advertising from logged in users based on their role |
| 85 | * advanced visitor conditions: previous visited url (referrer), user capability, browser language, browser and device, url parameters included in [Pro](https://wpadvancedads.com/add-ons/advanced-ads-pro/) |
| 86 | * display ads by geo location with the [Geo Targeting add-on](https://wpadvancedads.com/add-ons/geo-targeting/) |
| 87 | * display ads by browser width with the [Responsive add-on](https://wpadvancedads.com/add-ons/responsive-ads/) |
| 88 | |
| 89 | = ad injection | placements = |
| 90 | |
| 91 | Placements to insert ads in pre-defined positions in your theme and content. [List of all placements](https://wpadvancedads.com/manual/placements/) |
| 92 | |
| 93 | * ads after any given paragraph or headline in the post content |
| 94 | * ads at the top of the post content |
| 95 | * ads at the bottom of the post content |
| 96 | * ads before closing `</head>` tag |
| 97 | * ads page footer |
| 98 | * test placements against each other with [Pro](https://wpadvancedads.com/add-ons/advanced-ads-pro/) |
| 99 | * many more ad inserters with [add-ons](https://wpadvancedads.com/add-ons/) |
| 100 | |
| 101 | = ad networks = |
| 102 | |
| 103 | The Advanced Ads ad manager is compatible with all ad networks and banners from affiliate programs like Google AdSense, Chitika, Clickbank, Amazon, and also Google DoubleClick (DFP). |
| 104 | You can also use it to insert additional ad network tags into header or footer of your site without additional coding. |
| 105 | |
| 106 | = best support for mobile devices = |
| 107 | |
| 108 | * display ads for mobile and tablets or desktop only |
| 109 | * display responsive image ads (WordPress 4.4 and later) |
| 110 | * ads for specific browser sizes only using [Responsive Ads](https://wpadvancedads.com/add-ons/responsive-ads/) |
| 111 | * insert ads on AMP pages with [Responsive Ads](https://wpadvancedads.com/add-ons/responsive-ads/) |
| 112 | |
| 113 | = Google AdSense = |
| 114 | |
| 115 | * supports all ad units, including display ads, link units, and matched content |
| 116 | * switch sizes of an ad |
| 117 | * switch between normal and responsive ads |
| 118 | * optional limit to 3 AdSense banners according to AdSense terms of service |
| 119 | * hide AdSense advertisements on 404 pages by default (to comply with AdSense terms) |
| 120 | * insert Page-Level ads code globally |
| 121 | * assistant for exact sizes of responsive ads with the [Responsive add-on](https://wpadvancedads.com/add-ons/responsive-ads/) |
| 122 | |
| 123 | = ad blocker = |
| 124 | |
| 125 | * basic features to prevent ad blocks from being removed by AdBlock and co |
| 126 | * prevent ad blockers from breaking sites where plugin scripts are running |
| 127 | |
| 128 | = based on WordPress standards = |
| 129 | |
| 130 | * integrated into WordPress using standards like custom post types, taxonomies and hooks |
| 131 | * easily customizable by any WordPress plugin developer |
| 132 | |
| 133 | Learn more on the [plugin homepage](https://wpadvancedads.com). |
| 134 | |
| 135 | Localizations: English, German, French, Spanish, Dutch, Italian, Portuguese, Vietnamese |
| 136 | |
| 137 | > <strong>Add-Ons</strong> |
| 138 | > |
| 139 | > * [Advanced Ads Pro](https://wpadvancedads.com/add-ons/advanced-ads-pro/) – powerful tools for ad optimizations: cache-busting, more placements, etc. |
| 140 | > * [Selling Ads](https://wpadvancedads.com/add-ons/selling-ads/) - allows you to sell ads on your website fully automated, including payments and advertiser profiles. |
| 141 | > * [Geo Targeting](https://wpadvancedads.com/add-ons/geo-targeting/) – display ads based on geo location of the visitor |
| 142 | > * [Tracking](https://wpadvancedads.com/add-ons/tracking/) – ad tracking and statistics |
| 143 | > * [Responsive Ads](https://wpadvancedads.com/add-ons/responsive-ads/) – create mobile ads or ads for specific browser sizes |
| 144 | > * [Sticky Ads](https://wpadvancedads.com/add-ons/sticky-ads/) – increase click rates with fixed, sticky, and anchor ads |
| 145 | > * [PopUp and Layer Ads](https://wpadvancedads.com/add-ons/popup-and-layer-ads/) – display ads and other content in layers and popups |
| 146 | > * [Slider](https://wpadvancedads.com/add-ons/slider/) – create a simple slider from your ads |
| 147 | |
| 148 | If you have problems with Advanced Ads, please reach out to [our support](https://wpadvancedads.com/support/). |
| 149 | |
| 150 | == Installation == |
| 151 | |
| 152 | How to install the plugin and get it working? |
| 153 | |
| 154 | = Using The WordPress Dashboard = |
| 155 | |
| 156 | 1. Navigate to the 'Add New' in the plugins dashboard |
| 157 | 2. Search for 'advanced ads' |
| 158 | 3. Click 'Install Now' |
| 159 | 4. Activate Advanced Ads on the Plugin dashboard |
| 160 | |
| 161 | = Uploading in WordPress Dashboard = |
| 162 | |
| 163 | 1. Navigate to the 'Add New' in the plugins dashboard |
| 164 | 2. Navigate to the 'Upload' area |
| 165 | 3. Select `advanced-ads.zip` from your computer |
| 166 | 4. Click 'Install Now' |
| 167 | 5. Activate Advanced Ads in the Plugin dashboard |
| 168 | |
| 169 | = Using FTP = |
| 170 | |
| 171 | 1. Download `advanced-ads.zip` |
| 172 | 2. Extract the `advanced-ads` directory to your computer |
| 173 | 3. Upload the `advanced-ads` directory to the `/wp-content/plugins/` directory |
| 174 | 4. Activate Advanced Ads in the Plugin dashboard |
| 175 | |
| 176 | == Displaying Ads == |
| 177 | |
| 178 | You can use functions and shortcodes to display ads and ad groups. |
| 179 | |
| 180 | The integers in this example are the IDs of the elements. |
| 181 | |
| 182 | Use these shortcode to insert an ad or ad group into your post/page. |
| 183 | |
| 184 | `[the_ad id="24"]` |
| 185 | `[the_ad_group id="5"]` |
| 186 | |
| 187 | Use these functions to insert an ad or ad group into your template file. |
| 188 | |
| 189 | `<?php the_ad(24); ?>` |
| 190 | `<?php the_ad_group(5); ?>` |
| 191 | |
| 192 | In addition to directly displaying ads and groups you can define ad placements and assign either an ad or group to them. |
| 193 | |
| 194 | `[the_ad_placement id="header-left"]` |
| 195 | `<?php the_ad_placement('header-left'); ?>` |
| 196 | |
| 197 | == Frequently Asked Questions == |
| 198 | |
| 199 | = Is there a revenue share? = |
| 200 | |
| 201 | There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way that you earn less than you would directly including the ad code in your template. |
| 202 | |
| 203 | == Screenshots == |
| 204 | |
| 205 | 1. Placements that let you inject ads anywhere into your site without coding (7 in Advanced Ads + 14 through add-ons). |
| 206 | 2. Support for all kinds of ad types, including dedicated AdSense type. AMP is included in the Responsive add-on. |
| 207 | 3. Flexible ad input with the Plain Text ad type. |
| 208 | 4. Align your ads within the content. |
| 209 | 5. Choose from various conditions where and to whom to display your ads. |
| 210 | |
| 211 | == Changelog == |
| 212 | |
| 213 | = 1.7.25 = |
| 214 | |
| 215 | * added explicit "link ads" AdSense type with normal and responsive format |
| 216 | * included link to AdSense types manual |
| 217 | * optimized bot check |
| 218 | * removed TinyMCE security features from links added to the rich media ad type to not break affiliate links |
| 219 | * fixed error appearing when image of an image ad does not exist anymore |
| 220 | * fixed wizard not going to ad parameters box automatically after selecting ad type |
| 221 | |
| 222 | = 1.7.24 = |
| 223 | |
| 224 | * fixed issue with shortcode button that caused some page builders and scripts to break |
| 225 | * fixed saving settings on multisite sub-blogs |
| 226 | * applied fix to updater class |
| 227 | * fixed basic fix function needed for Sticky ads |
| 228 | |
| 229 | = 1.7.23 = |
| 230 | |
| 231 | * fix a warning that appears when wp admin bar is missing. |
| 232 | |
| 233 | = 1.7.22 = |
| 234 | |
| 235 | * added option to also consider elements in containers for ad content injection |
| 236 | * show warning in Ad Health bar when not all ads could be injected |
| 237 | * added logic to display ad specific warnings and possible conflicts |
| 238 | * added warning to disable shortcode button or ad blocker in order to use the visual editor for posts |
| 239 | * reapplied user capabilities to create or edit ads to make sure they are never wrong |
| 240 | * added warning about left and right position not working with responsive AdSense units |
| 241 | * edited feedback form |
| 242 | * add ad/group wrapper, if needed |
| 243 | |
| 244 | = 1.7.21 = |
| 245 | |
| 246 | * fixed jumping "more terms" button in taxonomy conditions |
| 247 | * fixed advanced JavaScript for frontend picker in Pro |
| 248 | |
| 249 | = 1.7.20 = |
| 250 | |
| 251 | * updated local storage script |
| 252 | * fixed issue causing passive-cache busting and layer not to work together |
| 253 | |
| 254 | = 1.7.19 = |
| 255 | |
| 256 | * check if local storage is supported by the browser, if needed |
| 257 | * use flexbox layout for longer input fields in conditions |
| 258 | * use `advanced-ads-admin-max-terms` filter also for limit in author condition |
| 259 | * updated EDD Updater Class for add-on updates |
| 260 | * fixed error message when all placements were removed |
| 261 | * fixed adblock disguise folder not working correctly on https pages |
| 262 | |
| 263 | = 1.7.18 = |
| 264 | |
| 265 | * use the same ad block disguise settings for all sites in a multisite |
| 266 | * update to advanced.js to allow injection into hidden elements |
| 267 | * fixed group options being overridden, when filtered groups are being saved |
| 268 | * fixed missing attribute for responsive Matched Content ads |
| 269 | * fixed issue with MarketPress license check |
| 270 | |
| 271 | = 1.7.17 = |
| 272 | |
| 273 | * add `ADVANCED_ADS_DISABLE_SHORTCODE_BUTTON` constant to wp-config.php in order to remove the shortcode button from the TinyMCE interface |
| 274 | * don’t move ads into hidden elements |
| 275 | * set license key fields to readonly after updated |
| 276 | * show "reserve ad space" only for ad types where it makes sense |
| 277 | * using WordPress Filesystem to create ad block disguise folder |
| 278 | * disable page level ads on pages where all ads are disabled |
| 279 | * hide double compatibility warning with cache-busting in Advanced Ads Pro |
| 280 | * hide warning about unexcaped `&` in urls |
| 281 | |
| 282 | = 1.7.16 = |
| 283 | |
| 284 | * added helpful links when download of an add-on failed |
| 285 | * set active license key fields to readonly |
| 286 | * bundles add-on related functions into one class |
| 287 | * updated Spanish translation |
| 288 | * added Vietnamese translation |
| 289 | |
| 290 | = 1.7.15 = |
| 291 | |
| 292 | * allow Unlimited Ad Injection setting to specify the number of posts in the loop to show ads |
| 293 | * allow to override specific options in functions and shortcodes |
| 294 | * added feedback form on deactivation |
| 295 | * fixed Visitor Conditions connector being saved wrongly first |
| 296 | * fixed ads not appearing on AMP pages |
| 297 | |
| 298 | = 1.7.14 = |
| 299 | |
| 300 | * added `ADVANCED_ADS_ENABLE_REVISIONS` constant to allow revisions for ads |
| 301 | * fixed wrong output after using quick edit in the ads list |
| 302 | * fixed custom position logic to not leave critical errors when localStorage is disabled |
| 303 | * fixed update checks on every admin page impression due to W3TC object cache breaking transients |
| 304 | |
| 305 | = 1.7.13 = |
| 306 | |
| 307 | * fix for class name sensitive systems and Tracking autoloader |
| 308 | |
| 309 | = 1.7.12 = |
| 310 | |
| 311 | * better highlighting of AND and OR connectors in display and visitor conditions |
| 312 | * removed general conditions as default from display conditions |
| 313 | * highlighted video and manual links for conditions |
| 314 | * show is_home and is_front_page as the same item in ad debug mode |
| 315 | * show warning if plain ad code contains HTTP, but the website is using HTTPS |
| 316 | * added notice if add-on licenses expired to plugin page |
| 317 | * changed "mobile device" into "device" condition with better option descriptions (mobile + tablet | desktop) |
| 318 | * changed "Post Content" placement label into "Content" since it is used for all post types |
| 319 | * hide manage ads link in dashboard widget from users who can not edit ads |
| 320 | * fixed dependency issue with Tracking add-on |
| 321 | * fixed dependency issue with AJAX cache-busting |
| 322 | * fixed missing scripts for ad block disguise |
| 323 | |
| 324 | = 1.7.11 = |
| 325 | |
| 326 | * added filter to change General display conditions set |
| 327 | * set `ADVANCED_ADS_AD_DEBUG_FOR_ADMIN_ONLY` in order to allow only admins to see ad debug mode |
| 328 | * introduced `advanced-ads-output-final` filter |
| 329 | * only check once per day for add-on updates |
| 330 | * fixed one support link |
| 331 | * fixed multiple add-on update checks |
| 332 | * fixed error message when ad group is empty |
| 333 | |
| 334 | = 1.7.10 = |
| 335 | |
| 336 | * highlight ads in the frontend through the "Ad Health" options |
| 337 | * check if PHP DOM module is enabled and warn in "Ad Health" if not |
| 338 | * added DFP debug link to "Ad Health" |
| 339 | * added button to check Add-On license keys for changes |
| 340 | * extended ad debug mode with more information |
| 341 | * restructured support page to reach helper more quickly |
| 342 | * fixed header ad bug |
| 343 | |
| 344 | [Changelog Archive](http://wpadvancedads.com/codex/changelog-archive/) |
| 345 | |
| 346 | == Upgrade Notice == |
| 347 |