Changelog of Advanced Ads Pro

version 2.8.1

  • open ads loaded through the Ad Server automatically in a new window to prevent loading the target page in an iframe
  • changed behavior of injection based on img tags to look for any images in the content except within tables
  • Cache busting: made possible to use html attributes that contain JSON strings
  • fixed error that happened when applying Random Paragraph placement to one-paragraph text

version 2.8

  • New: Ad Server placement to embed ads on other websites
  • New: show Post List placement on archive pages created by the AMP for WP plugin
  • made placements of type other than \”Header Code\” work with \”Thrive Theme Builder\” theme
  • shift ads from the bottom when \”repeat the position\” and \”words between ads\” settings are in use
  • marked Flash module as deprecated. New users can no longer enable it
  • removed legacy code for URL Parameter visitor conditions since it moved to display conditions in 2016
  • removed legacy code for minimum content length option from before 2016 in the main plugin settings
  • disallowed ad insertion into the header of the WP File Manager\’s admin page

version 2.7.1

  • Group Refresh feature: prevented impression tracking when it is disabled in the Tracking add-on
  • fixed Custom Position placement showing in the footer when selector does not exist
  • fixed broken link in the description of the User Agent condition

version 2.7

  • use Display and Visitor Conditions in placements
  • allow content injection based on iframe tag
  • set minimum amount of words between ads injected into the content
  • show the link to duplicate an ad only when the ad was already saved once
  • moved output of \”Custom Code\” outside the link
  • fixed clearfix option of Custom Position placement
  • fixed wide \’select\’ elements in conditions that broke the layout
  • fixed possible bug that prevented Pro settings from being saved

version 2.6.2

  • added `advanced_ads_pro_output_custom_code` filter to manipulate the Custom Code option
  • prevented returning default language in the WPML plugin when AJAX cache-busting is used
  • prevented reset of the \”Disable ads for post types\” option when saving Pro settings
  • fix \”Disable ads for post types\” option when using AJAX cache-busting
  • fixed possible PHP warning

version 2.6.1

  • fixed a minify-related bug that prevented some Custom Position placement from working

version 2.6

  • new feature: duplicate ads
  • load group name to Cache Busting code as per request by a customer
  • made possible to place Custom Position placement in relation to several elements found by selector

version 2.5.1

  • fixed \”repeat the position\” placement option

version 2.5

  • rewrite of Content Middle and Random Paragraph placements to use normal content injection, if possible
  • Content Middle and Random Paragraph placements work on AMP pages now
  • disabled Click Fraud Protection script on AMP
  • allow using Custom Code with the Background ad placement
  • prevented Custom Position placement from being shown in the footer when the target position is hidden
  • fix issue with Max. Ad Click condition not working without the Click Fraud module

version 2.4.1

  • when `the_content` filters are nested, use the outermost one to inject ads
  • removed possible HTTP request for a source map file
  • honor \”Disable ads for post types\” setting when displaying AdSense verification code & Auto ads

version 2.4

  • added central option to disable ads by post type
  • increased max. grid rows from 20 to 50
  • added compatibility with \”Catch Infinite Scroll\” plugin
  • changed the label for the option that stops ad injection into the content
  • remove Click Fraud scripts and footer codes if this module is not enabled
  • allow Post List placement in AJAX requests when options for \”Secondary Queries\” are enabled
  • stop content injection into wp_router pages when ads are disabled on secondary queries

version 2.3.3

  • show an alternative ad for ad blockers even when visitor conditions of the first ad of a group are not met
  • prevented ad injection into excerpts
  • removed unneeded script from the footer
  • made \”Display only once\” feature work with \”Custom Position\” placements without cache-busting

version 2.3.2

  • fixed a bug in \”Visitor profile\” that prevents some conditions from working
  • prevented possible conflict between cache-busting and Google Tag Manager

version 2.3.1

  • made server-based visitor conditions work when placements are not used
  • prevent breaking of ads when their titles contain quotations

version 2.3

  • cache-busting: reduce calls to AJAX by using cookies
  • compatibility with the \”Render Blocking JS\” option of the WP Fastest Cache plugin
  • prevent WP Rocket from breaking ad codes when Combine JS Files option is enabled
  • added `advanced-ads-pro-display-condition-url-string` to be able to adjust string used for the URL Parameter condition
  • prevent conflict in the group refresh feature when using floated ads
  • prevent the label of an ad for ad blocker from being shown twice
  • made background ad links work when background was delayed
  • don’t inject ads into secondary content when ads are disabled on Secondary Queries (problem caused by Similar Posts plugin)
  • fixed tracking of groups having the refresh interval enabled
  • use cache-busting for static ads that are invisible until user consent
  • made Placement Tests work with disabled Cache Busting module

version 2.2.2

  • allow content injection based on any visible text output
  • enabled cache-busting for ads that have the \”specific days\” condition
  • prevent Custom Position placement from being shown in the footer
  • made ads of type \’group\’ work correctly with the Slider add-on
  • show only one alternative ad when an ad blocker is found
  • group refresh: prevent content jumping when ads have different height
  • fixed Paid Memberships Pro visitor condition on some BuddyPress pages
  • fixed conflict with cache-busting/lazy-load in Newspaper theme
  • updated French, German, Spanish and Japanese translations

version 2.2.1

  • use ajax fallback of passive cache-busting only if enabled
  • implemented Visitor Condition for BuddyPress profile fields
  • made ad filters on the ad list page work server side
  • added Italian translation
  • made Content Middle placement find the middle more correctly

version 2.2

  • added support for user consent and Advanced Ads 1.9
  • added option to grid group allowing to control the breakdown on smaller screens
  • only inject Middle and Random Content placements to paragraphs in the main content, unless \”Disable Level Limitation\” is checked

version 2.1.4

  • changed label of LazyLoad offset option
  • fixed tracking of ads delivered with passive cache-busting

version 2.1.3

  • prevent ad injection into image caption and gallery
  • prevent injection of Content Middle placement into blockquotes
  • added distance before which to start loading ads lazily
  • import ad for adblockers during the import procedure
  • fixed Analytics tracking on multisite if an ad from a sub-blog is used
  • fixed errors caused by removed alternative ads for adblockers

version 2.1.2

  • fix for Minimum Content Injection feature

version 2.1.1

  • prevented infinity loop caused by groups with refresh interval
  • fixed html markup on AdSense edit page

version 2.1

  • added option to allow Post List placement in any loop on static pages
  • added option to repeat Content placement after every X number of paragraphs or headings
  • made possible to add custom code after ad content
  • added \’inject_placement\’ event that triggers when cache-busting injects new placement
  • optimized warning if basic Advanced Ads plugin is missing
  • use more safe method to check ad markup for validity for cache-busting
  • added filter to change durations of individual ads in refreshing groups

version 2.0.4

  • allowed to rotate ordered ads with same weight
  • fixed background ad link if Tracking is not enabled
  • fixed background ad style

version 2.0.3

  • allow up to 20 rows in grid settings
  • made compatible WP Rocket’s script defer option without \”Safe mode\” enabled
  • fixed background ad style
  • fixed issue with lazy load and \”Content\” placement
  • fixed issue with group refresh and passive cache-busting when ads have visitor conditions

version 2.0.2

  • add #debug=true to a URL in order to output cache-busting code in the JS console
  • fixed ad shortcode issue
  • fixed rare Click Fraud script issue
  • updated Spanish translation

version 2.0.1

  • fixed conflict between Ad block alternative and group refresh

version 2.0

  • implemented lazy loading
  • implemented click fraud protection
  • implemented alternative ads when an ad block is enabled
  • disabled passive cache-busting if an AA shortcode is placed inside the ad content
  • fixed group refresh option with custom position placements
  • prevent Post List ads in RSS Feeds
  • fix issue when `advanced.js` uses `defer` attribute

version 1.16.1

  • added `advanced-ads-pro-background-selector` filter to customize background selector
  • fixed a bug in passive cache-busting and visitor conditions that was introduced in the previous version

version 1.16

  • only enable group refresh feature when cache-busting is used
  • implemented display condition for paginated posts
  • disabled cache-busting on AMP pages
  • hide WPML condition if WPML is not installed
  • removed overview widget logic
  • added Japanese translation
  • fixed issue when combining multiple visitor conditions and using passive cache-busting

version 1.15.2

  • fixed issue with wrong AMP pages check
  • fixed content length calculation for non-latin texts
  • moved placement tests code into a new module

version 1.15.1

  • handle \’URL parameter\’ display condition correctly when Advanced Visitor Conditions module is disabled
  • add the \’advanced-ads-output-wrapper-after-content-group\’ filter
  • updated translation files

version 1.15

  • updated complete placement and group option handling and layout according to Advanced Ads 1.8
  • changed all condition labels from show/hide to is/is not
  • removed deprecated general minimum content length option from Pro settings – this is an option for placements only now
  • updated all translation files
  • fix reload on refresh feature (Responsive add-on)

version 1.14

  • added ad notice to Group ad type using only AJAX or no cache-busting
  • add group wrapper only if needed
  • add \”Advertisement\” label inside wrapper of the first ad when using groups
  • move empty cache-busting wrapper instead of ad/group wrapper
  • prevent conflict when Autoptimize and NextGen Gallery are used at the same time
  • clear group wrapper when \’Reload ads on resize\’ (Responsive add-on) feature is used
  • fixed url parameter condition using query strings twice
  • fixed placement tests not working when placement name consists only of numbers

version 1.13

  • implemented ad reload logic to reload ad when screen resizes and Responsive add-on is activated
  • fixed issue causing passive-cache busting and layer not to work together

version 1.12.1

  • added check post template conditions to prevent crash on sites running WP version prior to 4.7

version 1.12

  • added template display conditions for every post type (new in WP 4.7)
  • added flexbox for input fields
  • prevent critical JS errors when cache-busting script is missing
  • optimized callback for use of advanced JS file
  • fixed error message when all placements were removed

version 1.11

  • auto refresh of groups considers weight when selecting ads
  • added `advanced-ads-pro-inject-content-selector` filter to manipulate content selector
  • added `blockquote` as condition for content injection placement
  • Above Headline placement code no longer added to archive pages
  • use `ADVANCED_ADS_PRO_CUSTOM_POSITION_MOVE_INTO_HIDDEN` constant to allow injecting ads into hidden elements
  • use cache-busting fallback method for ad-group ad types, because passive cache-busting breaks conditions of sub-ads
  • updated AMP page check to work with WP AMP plugin
  • updated Spanish translation

version 1.10

  • compatibility with Advanced Ads 1.7.15
  • allow to override specific options in functions and shortcodes
  • disabled Url Parameter in Visitor Conditions – use the same Display Condition instead
  • fixed AMP ads not being injected correctly