advanced-ads
Last commit date
admin
9 years ago
classes
9 years ago
includes
10 years ago
languages
9 years ago
modules
9 years ago
public
9 years ago
vendor
10 years ago
LICENSE.txt
12 years ago
advanced-ads.php
9 years ago
composer.json
11 years ago
composer.lock
10 years ago
index.php
12 years ago
readme.txt
9 years ago
uninstall.php
11 years ago
readme.txt
375 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.5.3 |
| 7 | Stable tag: 1.7.5 |
| 8 | License: GPLv2 or later |
| 9 | License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 10 | |
| 11 | Manage and optimize your ads as easy as creating posts. Including support for AdSense, ad injection, ad planning, 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 | * make internal notes about each ad |
| 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 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. AdSense doesn’t allow that) |
| 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 for mobile visitors |
| 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 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 | |
| 112 | = Google AdSense = |
| 113 | |
| 114 | * switch sizes of an ad |
| 115 | * switch between normal and responsive ads |
| 116 | * automatic limit to 3 AdSense banners according to AdSense terms of service (can be disabled) |
| 117 | * hide AdSense advertisements on 404 pages by default (to comply with AdSense terms) |
| 118 | * insert Page-Level ads code globally |
| 119 | * assistant for exact sizes of responsive ads with the [Responsive add-on](https://wpadvancedads.com/add-ons/responsive-ads/) |
| 120 | |
| 121 | = ad blocker = |
| 122 | |
| 123 | * basic features to prevent ad blocks from being removed by AdBlock and co |
| 124 | * prevent ad blockers from breaking sites where plugin scripts are running |
| 125 | |
| 126 | = based on WordPress standards = |
| 127 | |
| 128 | * integrated into WordPress using standards like custom post types, taxonomies and hooks |
| 129 | * easily customizable by any WordPress plugin developer |
| 130 | |
| 131 | Learn more on the [plugin homepage](https://wpadvancedads.com). |
| 132 | |
| 133 | Localizations: English, German, French, Spanish, Dutch, Italian, Portuguese |
| 134 | |
| 135 | > <strong>Add-Ons</strong> |
| 136 | > |
| 137 | > * [Advanced Ads Pro](https://wpadvancedads.com/add-ons/advanced-ads-pro/) – powerful tools for ad optimizations: cache-busting, more placements, etc. |
| 138 | > * [Geo Targeting](https://wpadvancedads.com/add-ons/geo-targeting/) – display ads based on geo location of the visitor |
| 139 | > * [Tracking](https://wpadvancedads.com/add-ons/tracking/) – ad tracking and statistics |
| 140 | > * [Responsive Ads](https://wpadvancedads.com/add-ons/responsive-ads/) – create mobile ads or ads for specific browser sizes |
| 141 | > * [Sticky Ads](https://wpadvancedads.com/sticky-ads/demo/) – increase click rates with fixed, sticky, and anchor ads |
| 142 | > * [PopUp and Layer Ads](https://wpadvancedads.com/add-ons/popup-and-layer-ads/) – display ads and other content in layers and popups |
| 143 | > * [Slider](https://wpadvancedads.com/add-ons/slider/) – create a simple slider from your ads |
| 144 | |
| 145 | == Installation == |
| 146 | |
| 147 | How to install the plugin and get it working? |
| 148 | |
| 149 | = Using The WordPress Dashboard = |
| 150 | |
| 151 | 1. Navigate to the 'Add New' in the plugins dashboard |
| 152 | 2. Search for 'advanced ads' |
| 153 | 3. Click 'Install Now' |
| 154 | 4. Activate Advanced Ads on the Plugin dashboard |
| 155 | |
| 156 | = Uploading in WordPress Dashboard = |
| 157 | |
| 158 | 1. Navigate to the 'Add New' in the plugins dashboard |
| 159 | 2. Navigate to the 'Upload' area |
| 160 | 3. Select `advanced-ads.zip` from your computer |
| 161 | 4. Click 'Install Now' |
| 162 | 5. Activate Advanced Ads in the Plugin dashboard |
| 163 | |
| 164 | = Using FTP = |
| 165 | |
| 166 | 1. Download `advanced-ads.zip` |
| 167 | 2. Extract the `advanced-ads` directory to your computer |
| 168 | 3. Upload the `advanced-ads` directory to the `/wp-content/plugins/` directory |
| 169 | 4. Activate Advanced Ads in the Plugin dashboard |
| 170 | |
| 171 | == Displaying Ads == |
| 172 | |
| 173 | You can use functions and shortcodes to display ads and ad groups. |
| 174 | |
| 175 | The integers in this example are the IDs of the elements. |
| 176 | |
| 177 | Use these shortcode to insert an ad or ad group into your post/page. |
| 178 | |
| 179 | `[the_ad id="24"]` |
| 180 | `[the_ad_group id="5"]` |
| 181 | |
| 182 | Use these functions to insert an ad or ad group into your template file. |
| 183 | |
| 184 | `<?php the_ad(24); ?>` |
| 185 | `<?php the_ad_group(5); ?>` |
| 186 | |
| 187 | In addition to directly displaying ads and groups you can define ad placements and assign either an ad or group to them. |
| 188 | |
| 189 | `[the_ad_placement id="header-left"]` |
| 190 | `<?php the_ad_placement('header-left'); ?>` |
| 191 | |
| 192 | == Frequently Asked Questions == |
| 193 | |
| 194 | = Is there a revenue share? = |
| 195 | |
| 196 | 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. |
| 197 | |
| 198 | == Screenshots == |
| 199 | |
| 200 | 1. Create an ad almost like you would create an article or page. |
| 201 | 2. Align the ad and set a margin to other elements |
| 202 | 3. Choose from various conditions where and where not to display your ad. |
| 203 | 4. Placements that let you inject ads anywhere into your site without coding (6 in Advanced Ads + 9 through add-ons) |
| 204 | |
| 205 | == Changelog == |
| 206 | |
| 207 | = 1.7.5 = |
| 208 | |
| 209 | * prepared for [Advanced Ads Pro](https://wpadvancedads.com/add-ons/advanced-ads-pro/) 1.4 with ad reloads, single request mode and placement tests |
| 210 | |
| 211 | = 1.7.4.5 = |
| 212 | |
| 213 | * extended feed cache to 48 hours |
| 214 | * updated EDD add-on updater class |
| 215 | * display possible injection errors only, when WP_DEBUG is enabled |
| 216 | * fixed content injection when duplicate ids are found in content |
| 217 | * fixed JavaScript conflict that prevented Display Conditions from working |
| 218 | |
| 219 | = 1.7.4.4 = |
| 220 | |
| 221 | * linked first-ad tutorials above ad list if less than 3 ads created yet |
| 222 | * fixed Wizard buttons not working due to JavaScript conflict |
| 223 | * fixed manual added container id not displayed for ads not added through placement |
| 224 | |
| 225 | = 1.7.4.3 = |
| 226 | |
| 227 | * changed content injection parsing from xml to html to decrease issues with broken html |
| 228 | * added check for content injection compatibility on ad edit page |
| 229 | * fixed error when ad list columns are missing |
| 230 | * fixed missing post format display condition |
| 231 | * added fix for sticky ads with timeout |
| 232 | |
| 233 | = 1.7.4.2 = |
| 234 | |
| 235 | * hide contrainer class, id and ad debug mode in Wizard |
| 236 | * fixed term query showing on every page impression |
| 237 | * fixed capabilities issue with Theia post slider |
| 238 | * fixed unnecessary admin notifications queries |
| 239 | * fixed ad title disappear when type was selected |
| 240 | * fixed ad group parameter layout |
| 241 | * fixed init hook to allow adding custom taxonomies |
| 242 | * ad meta boxes are now forced to be visible |
| 243 | * added link to advertisement label manual |
| 244 | |
| 245 | = 1.7.4.1 = |
| 246 | |
| 247 | * order ads in widgets and placements by ad title |
| 248 | * set OR as default connector in Display Conditions |
| 249 | * force OR on Display Conditions where conditions with AND never show the ad |
| 250 | |
| 251 | = 1.7.4 = |
| 252 | |
| 253 | * added Wizard to quickly create new ads, [manual](https://wpadvancedads.com/manual/wizard/) |
| 254 | * import / export feature |
| 255 | * optimized ad setting lists layout |
| 256 | * select scheduled ads for placements or in the ad widget |
| 257 | * allow wrapper class to include uppercase letters |
| 258 | * display ad image icon on ad overview page |
| 259 | * reactivate existing add-on licenses after shop upgrade |
| 260 | * don’t show ads on unrelated page types when a "show" + category display condition is set |
| 261 | * fix for using groups in some advanced placements |
| 262 | * fixed caching of dashboard widget |
| 263 | * fixed missing user capabilities after update |
| 264 | * fixed public url for ads due to possible WP bug |
| 265 | * updated Portuguese (Brazil) translation |
| 266 | |
| 267 | = 1.7.3 = |
| 268 | |
| 269 | * allow ad injection with just one click after ad was published |
| 270 | * fix for unset ad type breaks saving the ad |
| 271 | * fix for ads injected into main content which use document.write with closing tags |
| 272 | * fixed pro placements not visible when adblocker is enabled |
| 273 | * forces ad type metabox to stay open for new ads |
| 274 | |
| 275 | = 1.7.2.1 = |
| 276 | |
| 277 | * fix for missing index with newly created ads |
| 278 | |
| 279 | = 1.7.2 = |
| 280 | |
| 281 | * license settings page rewritten |
| 282 | * added Ad Group ad type |
| 283 | * added ad specific capabilities |
| 284 | * added label above ads |
| 285 | * collapse ad type meta box for existing ads |
| 286 | * added links to manual and inline videos to the meta box headline |
| 287 | * updated translation files |
| 288 | * remove hyphen from automatically created id prefix to not break ID creation |
| 289 | |
| 290 | = 1.7.1.5 = |
| 291 | |
| 292 | * hotfix: added missing file |
| 293 | |
| 294 | = 1.7.1.4 = |
| 295 | |
| 296 | * search for title or id instead of content when selecting a Specific Page Display Condition |
| 297 | * fixed double display conditions |
| 298 | * fixes notices appearing once after update |
| 299 | * fixed display condition error warning |
| 300 | * fixed content injection breaking when unescaped `</script>` was used within `document.write` |
| 301 | * added taxonomies created by Custom Post Type UI plugin to the display conditions |
| 302 | * add content placement for paragraphs without images |
| 303 | |
| 304 | = 1.7.1.3 = |
| 305 | |
| 306 | * fixed error when $wp_query is not set |
| 307 | * added French translation |
| 308 | |
| 309 | = 1.7.1.2 = |
| 310 | |
| 311 | * tested with WP 4.5 |
| 312 | * create random widget id, if not set yet |
| 313 | * allow content injection into nested paragraphs if none found at level 1 and 2 |
| 314 | * minor security update for admin ajax actions |
| 315 | * fixed home condition for some cases |
| 316 | * fixed secondary query check |
| 317 | * fixed de/activation hook |
| 318 | * fixed Spanish translation |
| 319 | * updated translation files |
| 320 | |
| 321 | = 1.7.1.1 = |
| 322 | |
| 323 | * added Feed condition to General Display Conditions |
| 324 | * trim license keys when saving |
| 325 | * reverted too strict display condition checks for taxonomies |
| 326 | * shortened debug page |
| 327 | |
| 328 | = 1.7.1 = |
| 329 | |
| 330 | * introduced AND/OR connectors for Display Conditions |
| 331 | * display conditions for some pages (archive page) are now stricter |
| 332 | * connectors for existing visitor conditions can be changed now |
| 333 | * added option to reserve ad space |
| 334 | * set ADVANCED_ADS_DISALLOW_PHP constant to prevent usage of PHP in plain ad code |
| 335 | * update ad block disguise files automatically, when Advanced Ads scripts changed after an update |
| 336 | |
| 337 | = 1.7.0.3 = |
| 338 | |
| 339 | * added debug mode for ads, see [manual](https://wpadvancedads.com/manual/ad-debug-mode/) |
| 340 | * skip check for general conditions if all are on (allows ad injection also in iframes and new wp instances) |
| 341 | * display jQuery issue notice in display conditions |
| 342 | * lifted the restriction to choose each display condition only once |
| 343 | * add notice when ad block folder needs to be rebuild |
| 344 | * hide an ad with a tag condition in posts that don’t have a tag at all |
| 345 | * prevent broken custom queries to interfere with display conditions |
| 346 | |
| 347 | = 1.7.0.2 = |
| 348 | |
| 349 | * hide ad if no term is selected for taxonomy display conditions |
| 350 | * show warning, if no items selected in display conditions |
| 351 | * fixed 500 error caused by plugins using WP_Query unsecured |
| 352 | |
| 353 | = 1.7.0.1 = |
| 354 | |
| 355 | * hotfix for missing get_current_screen issue |
| 356 | |
| 357 | = 1.7 = |
| 358 | |
| 359 | * rewritten Display Conditions interface and logic, see [manual](http://wpadvancedads.com/manual/display-conditions/) |
| 360 | * rich content ads now render oembed links |
| 361 | * added author display condition |
| 362 | * added link to Visitor Conditions manual |
| 363 | * added incompatibility warning for Q2W3 plugin |
| 364 | * home page display condition honored also on static pages |
| 365 | * single post display condition honored also on archive pages |
| 366 | * prevent ads from being loaded in wp_head when they are not a header placement |
| 367 | * optimized support form and added feedback messages |
| 368 | * fixed general secondary query setting |
| 369 | * fixes for jQuery issues and message for solutions |
| 370 | * fix error when editor role is missing |
| 371 | |
| 372 | [Changelog Archive](http://wpadvancedads.com/codex/changelog-archive/) |
| 373 | |
| 374 | == Upgrade Notice == |
| 375 |