=== Advanced Ads – Ad Manager & AdSense ===
Contributors: webzunft, advancedads
Tags: ads, ad manager, ad rotation, adsense, banner
Requires at least: 4.9
Tested up to: 5.8
Requires PHP: 5.6
Stable tag: 1.30.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Manage and optimize all ad types. Support for Google AdSense Auto ads, Amazon, image banners, HTML, page builder, ad widget, ad rotations, ads.txt

== Description ==

Are you looking for a simple ad manager plugin? These are the top arguments to use Advanced Ads:

* approved in publishing and ad optimization since 2009
* works with all ad types and networks, including Google AdSense, Google Ad Manager (formerly Google DoubleClick for Publishers, DFP), Amazon ads, or media.net ads
* most features to test and optimize ads
* unlimited ad units
* ads.txt support
* dedicated ad block for the block editor
* Google AdSense Partner, who implements all technical changes early and in 100% compliance with the Google AdSense policies
* the only advertising solution with *Ad Health* integration and Google AdSense violation checks
* best rated [free support](https://wordpress.org/support/plugin/advanced-ads)

This is what our users are saying about Advanced Ads:

> We use this plugin to deliver rotating ads on a community news site, and it’s great. Both feature-rich and reliable, your imagination is the limit when it comes to the product you want to create for your users. We’ve delivered over a million ad impressions since we launched less than a year ago, using a combination of sidebar, top, sticky and in-content placements — both HTML5 and images. Advanced Ads makes it easy for our small team to deliver a good experience to our users and our advertisers.
> mytown304 on wp.org

Would you like to know if there is a certain feature, what the optimized setup would be, or how to implement your client’s demands? Just [open a thread in the forum](https://wordpress.org/support/plugin/advanced-ads#new-post)!

Advanced Ads allowed us to grow from 0 to 100 MM monthly ad impressions. Benefit from our experience as a publisher and monetize your website today!

[Full Feature List](https://wpadvancedads.com/features/).

= ad management =

* create and display **unlimited** ad units
* rotate ads
* schedule ads and set start time and expiration date
* target ads by content and user groups
* inject ads into posts and pages automatically without coding

= ad types =

choose between different ad types that enable you to:

* insert ads and banners from all ad and affiliate networks (e.g., Google AdSense, Amazon, BuySellAds, Google Ad Manager (formerly Google DoubleClick for Publishers, DFP), Ezoic, media.net, Booking.com, Tradedoubler, Awin, Getyourguide, The Moneytizer, Infolinks...)
* dedicated support for all types of Google AdSense ads, including text and display ads, native ads (In-article, In-feed, matched content), Auto ads, and Auto ads for AMP
* display images and image banners
* create content-rich ads with the WordPress TinyMCE editor
* insert contextual Amazon Native Shopping Ads
* inject HTML, CSS, Javascript or PHP code
* use shortcodes within ads (to also deliver advertisements from another ad plugin like Ad Inserter, AdRotate, Quick AdSense, WP Bannerize, or the Google AdSense Plugin WP QUADS)

= display ads for WP =

* auto-inject ads via placements
* use functions to display ads in template files
* use shortcodes to place ads manually in post content
* show ads in the sidebar and in widgets
* disable all ads on specific pages
* display multiple ads (ad blocks)
* display a customizable ad label, e.g., “Advertisements” above each banner ad

= display conditions =

show ads based on conditions like:

* individual posts, pages, and other post types
* posts by category, tags, taxonomies, author, and age
* archive pages by category, tags, taxonomies
* special page types like 404, attachment and front page
* hide ads on secondary queries (e.g., posts in sidebars)
* display or hide banners within the post feed
* hide all ads from specific page types, e.g., 404 pages, feed
* hide ads from bots and web crawlers

= visitor conditions =

serve ads by conditions based on the visitor. [List of all visitor conditions](https://wpadvancedads.com/manual/visitor-conditions/)

* display or hide a banner by device: mobile and tablet or desktop
* display or hide a banner by role and for logged-in visitors
* advanced visitor conditions: previously visited URL (referrer), user capability, browser language, browser and device, URL parameters included in [Pro](https://wpadvancedads.com/add-ons/advanced-ads-pro/)
* display ads by geolocation with the [Geo Targeting add-on](https://wpadvancedads.com/add-ons/geo-targeting/)
* display ads by browser width with the [Responsive add-on](https://wpadvancedads.com/add-ons/responsive-ads/)

> **Fantastic plugin and outstanding support**
> I tried at least three other ad plugins for WordPress and ‘Advanced Ads’ is by and far the best one. Last but not least in the support. The first port of call are a number of excellent tutorials. And finally the hands on support. I don’t quite know how he does it but the speed and depth of responses are absolutely amazing.
> djsawyer on wp.org

= ad injection | placements =

Placements to insert ads in pre-defined positions in your theme and content. [List of all placements](https://wpadvancedads.com/manual/placements/)

* ads after any given paragraph, headline, image, or other HTML element
* ads at the top or bottom of the post content
* ads before closing `</head>` tag
* ads in the footer
* create [split tests and A/B testing](https://wpadvancedads.com/ab-testing-wordpress/)
* many more ad positions with [add-ons](https://wpadvancedads.com/add-ons/)
* automatic insertion of any kind of code into header or footer, not only advertising

= mobile devices =

* display ads on mobile and tablets or desktop only
* display responsive image ads
* ads for specific browser sizes only using [Responsive Ads](https://wpadvancedads.com/add-ons/responsive-ads/)
* inserting ads on AMP pages with [Responsive Ads](https://wpadvancedads.com/add-ons/responsive-ads/)

= Google AdSense =

Amazing features of the most powerful and easy Google AdSense plugin.

* unlimited Google AdSense ads banners
* pull ad units directly from your Google AdSense account
* show AdSense revenue in WP Admin
* change settings of your Google AdSense ads directly from your WordPress backend
* supports all Google AdSense ad types, including Google AdSense display ads, native ads like In-feed ads, In-article ads, matched content ads, Google AdSense Auto ads, and Google AdSense Auto ads for AMP
* change type and sizes of AdSense ads without going into your Google AdSense account
* hide Google AdSense advertisements on 404 pages by default (to comply with Google AdSense terms)
* insert Google AdSense code for verification and AdSense Auto Ads
* enable AdSense Auto ads on AMP
* easy Ad Health integration and Google AdSense violation checks
* option to remove the Google AdSense background color
* place Google AdSense In-feed ads using the also free [In-feed add-on](https://wordpress.org/plugins/advanced-ads-adsense-in-feed/)
* assistant for exact sizes of responsive Google AdSense ads with the [Responsive add-on](https://wpadvancedads.com/add-ons/responsive-ads/)
* convert Google AdSense ads into AMP ads automatically with the [Responsive add-on](https://wpadvancedads.com/add-ons/responsive-ads/)
* ads.txt generated with the correct AdSense information automatically
* works along with Google Site Kit or can replace it if you want to [control your ad placements](https://wpadvancedads.com/place-adsense-ad-unit-manually/)

https://vimeo.com/577120971

Like j4ckson185, there are thousands of happy AdSense users:

> Your app is awesome, congratulations! Google Adsense suggests using your app on its official website, it’s incredible!

= ads.txt =

* generates an ads.txt with custom content
* adds the content for AdSense to the ads.txt automatically

https://vimeo.com/577170591

= ad blocker =

* basic features to prevent ads from being removed by AdBlock and other ad blockers
* prevent ad blockers from breaking sites where plugin scripts are running
* ad blocking detection: show alternative content to ad block users with [Pro](https://wpadvancedads.com/add-ons/advanced-ads-pro/) and improve the monetization of your website

Learn more on the [plugin homepage](https://wpadvancedads.com).

Thank you for motivating us with your [positive review](https://wordpress.org/support/plugin/advanced-ads/reviews/?rate=5#new-post).

Localizations: Arabic, Chinese, Czech, Danish, Dutch, English, French, German, Hungarian, Italian, Japanese, Norwegian, Polish, Portuguese, Russian, Slovak, Spanish, Turkish, Vietnamese

> <strong>Add-Ons</strong>
>
> * all add-ons include priority email support
> * [Advanced Ads Pro](https://wpadvancedads.com/add-ons/advanced-ads-pro/) – powerful tools for ad optimizations: cache-busting, more placements, lazy loading, ad blocker module, click fraud protection, and many more
> * [Tracking](https://wpadvancedads.com/add-ons/tracking/) – track ad impressions and ad clicks with local methods or Google Analytics
> * [Responsive Ads](https://wpadvancedads.com/add-ons/responsive-ads/) – target ads to specific browser sizes and create ads for AMP
> * [Google Ad Manager Integration](https://wpadvancedads.com/add-ons/google-ad-manager/) – a quick and error-free way to load ad units from your Google Ad Manager (formerly Google DoubleClick for Publishers, DFP) account without touching any ad codes
> * [Geo Targeting](https://wpadvancedads.com/add-ons/geo-targeting/) – display ads based on the geo location of the visitor
> * [Sticky Ads](https://wpadvancedads.com/add-ons/sticky-ads/) – increase click rates with fixed, sticky, and anchor ads
> * [Fixed Widget for WordPress](https://wordpress.org/plugins/q2w3-fixed-widget/) – turn sidebar widgets into performant fixed sticky ads
> * [PopUp and Layer Ads](https://wpadvancedads.com/add-ons/popup-and-layer-ads/) – display ads and other content in layers, popups, and interstitials
> * [Selling Ads](https://wpadvancedads.com/add-ons/selling-ads/) - allows you to sell ads on your website fully automated, including payments and advertiser profiles
> * [Ad Slider](https://wpadvancedads.com/add-ons/slider/) – create a simple slider from your ads

If you have problems with Advanced Ads, please reach out to [our support](https://wordpress.org/support/plugin/advanced-ads) or open a [new topic](https://wordpress.org/support/plugin/advanced-ads/#new-topic-0) in our forums on wordpress.org
.

= Integrations =

Advanced Ads integrates with plenty of other plugins:

- MailPoet - [How to integrate Advanced Ads in MailPoet Newsletters](https://wpadvancedads.com/mailpoet-newsletters/)
- WPML – [Showing different ads per language with WPML](https://wpadvancedads.com/translating-ads-wpml/)
- WPBakery Page Builder – [Displaying Ads with WPBakery Page Builder (formerly Visual Composer)](https://wpadvancedads.com/visual-composer-ads/)
- Genesis – [Genesis Ads add-on](https://wpadvancedads.com/add-ons/genesis-ads/)
- BuddyBoss – [How to integrate ads into BuddyBoss](https://wpadvancedads.com/manual/buddyboss-ads/)
- BuddyPress – [How to add ads on BuddyPress pages](https://wpadvancedads.com/ads-on-buddypress-pages/)
- bbPress – [How to show ads on bbPress pages?](https://wpadvancedads.com/ads-in-bbpress/)
- Cookie Consent, Borlabs Cookies, Complianz, GDPR Cookie Consent, and other content manager – [How to show ads based on visitors’ consent](https://wpadvancedads.com/manual/ad-cookie-consent/)
- Paid Memberships Pro – [How to manage ads on membership sites running Paid Memberships Pro](https://wpadvancedads.com/paid-memberships-pro/)
- [IAB TCF 2.0 consent](https://wpadvancedads.com/manual/tcf-consent-wordpress/) – hide ads until users give their consent. Integrating with any CMP, Quantcast Choices, iubenda, Google Funding Choices, cookiebot, etc.

== Installation ==

How to install the plugin and get it working?

= Using The WordPress Dashboard =

1. Navigate to the 'Add New' in the plugins dashboard
2. Search for 'advanced ads'
3. Click 'Install Now'
4. Activate Advanced Ads on the Plugin dashboard

= Uploading in WordPress Dashboard =

1. Navigate to the 'Add New' in the plugins dashboard
2. Navigate to the 'Upload' area
3. Select `advanced-ads.zip` from your computer
4. Click 'Install Now'
5. Activate Advanced Ads in the Plugin dashboard

= Using FTP =

1. Download `advanced-ads.zip`
2. Extract the `advanced-ads` directory to your computer
3. Upload the `advanced-ads` directory to the `/wp-content/plugins/` directory
4. Activate Advanced Ads in the Plugin dashboard

== Frequently Asked Questions ==

= How to put ads on WordPress? =

You can use Advanced Ads to insert ads into your WordPress site without any coding.

To get started, just take a look at

* the [general first ad tutorial](https://wpadvancedads.com/manual/first-ad/)
* using [AdSense Auto ads](https://wpadvancedads.com/adsense-auto-ads-wordpress/) in WordPress
* the [AdSense overview page](https://wpadvancedads.com/adsense-ads).
* Ads not showing up? Take a look [here](https://wpadvancedads.com/manual/ads-not-showing-up).

= What about my users’ privacy and GDPR? =

The plugin comes with Privacy settings that help you gather consent from users before showing ads to them. The feature works for any ads managed with the plugin, including AdSense Auto ads.

Once you enable one of the Privacy options, Advanced Ads blocks ads that need consent until it is given. You can disable that check for individual ads as well (e.g., for image ads).
You can also deliver non-personalized AdSense ads when that is legally allowed in your area.

- [Cookie consent integration](https://wpadvancedads.com/manual/ad-cookie-consent/).
- [IAB TCF 2.0 integration](https://wpadvancedads.com/manual/tcf-consent-wordpress/).

Advanced Ads itself does neither save personal information (e.g., an IP address) in your database nor cookies in the visitor’s browser.

You can learn more about how Advanced Ads and its add-ons handles data and privacy of your visitors [on this page](https://wpadvancedads.com/manual/privacy-information-for-users/).

= Which ad networks are supported? =

Advanced Ads is compatible with all ad networks and banners from affiliate programs like Google AdSense, Chitika, Clickbank, Amazon, and also Google Ad Manager (formerly Google DoubleClick for Publishers, DFP), media.net.

You can also use it to insert additional ad network tags into header or footer of your site without coding.

AdSense has even a dedicated ad type leveling the specific options this ad network provides.

= PHP functions and shortcodes =

You can use functions and shortcodes to display ads and ad groups.

The integers in this example are the IDs of the elements.

Use these shortcodes to insert an ad or group into your post/page.

`[the_ad id="24"]`
`[the_ad_group id="5"]`

Use these functions to insert an ad or ad group into your template file.

`<?php the_ad(24); ?>`
`<?php the_ad_group(5); ?>`

In addition to directly displaying ads and groups you can define ad placements and assign either an ad or group to them.

`[the_ad_placement id="header-left"]`
`<?php the_ad_placement('header-left'); ?>`

= Is there a revenue share? =

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.

= Can I place ads directly in my theme files? =

Yes. I would add a "Manual" placement into your theme files. It would allow you to change the displayed ads or groups later without changing your code again.

= Does it work with other ad plugins? =

Yes. Advanced Ads can be combined with other ad plugins.
Just use their shortcodes in our "Rich Media" ad type to combine both features.
Works with AdRotate, Ad Inserter, Ad Injection, Quick AdSense, Quick AdSense Reloaded (WPQUADS), Simple Ads Manager, and other plugins.
Advanced Ads can be used along Google Site Kit or replace it if you need more control over your ad setup.

= Is the plugin compatible with page builders? =

Yes. It works out of the box with all site builders that allow shortcodes or widgets, like Elementor, SiteOrigin, Beaver Builder, WPBakery Page Builder (formerly Visual Composer), [Nimble Page Builder](https://wordpress.org/plugins/nimble-builder/), and others.
There is also a [free add-on to support the WPBakery Page Builder (formerly Visual Composer)](https://wordpress.org/plugins/ads-for-visual-composer/).

= Will ads show up for ad block users? =

Visitors who have any ad blocker (e.g., AdBlock Plus) enabled won’t see ads from known external sources (e.g., AdSense).
You can still monetize those spots with custom content.

Read more about ad blockers and the features Advanced Ads has to deal with them [on this page](https://wpadvancedads.com/manual/ad-blockers/).

= Does the plugin support an ads.txt? =

Google AdSense and some other networks ask you to provide an ads.txt.
Advanced Ads can create that file automatically with the correct information for AdSense, when you enable the ads.txt feature in Advanced Ads > Settings > General > ads.txt and enter your AdSense publisher ID in Advanced Ads > Settings > AdSense.

= I am a developer. Can I customize the plugin? =

Yes. You can use plenty of [hooks](https://wpadvancedads.com/codex/) to customize Advanced Ads.

== Screenshots ==

1. Placements that let you inject ads anywhere into your site without coding (7 in Advanced Ads + 14 through add-ons).
2. Support for all kinds of ad types, including dedicated AdSense type. AMP is included in the Responsive add-on.
3. Flexible ad input with the Plain Text ad type and code highlighting.
4. Align your ads within the content.
5. Dynamically change AdSense ad options in your WordPress backend.
6. Choose where to display your ads using many conditions.
7. Use various conditions to choose who should see ads (basic plugin and more in add-ons).
8. See AdSense earnings in your WP Backend
9. Track impressions and clicks (Tracking add-on).
10. Convert AdSense ads into AMP automatically (Responsive add-on)

== Changelog ==

= 1.30.5 =

- Fix: correct ad weight calculation if ad count in group is retained but ad ids change

= 1.30.4 =

- Fix: prevent overriding of ads' weight `0` in ad groups

= 1.30.3 =

- Fix: properly output HTML attributes for TCF 2.0 script tag
- Fix: centralize and normalize Ad Group weight calculation
- Fix: escape closing HTML tags for ads injected into main content which use document.write
- Fix: add CSS class for hidden elements on medium and wider screens

= 1.30.2 =

- Fix: prevent applying array functions to boolean in `Advanced_Ads_Group`
- Fix: add default weight for ads added to groups via the ad edit screen

= 1.30.1 =

- Fix: copy missing `composer/platform_check.php`

= 1.30.0 =

- Improvement: add `advanced-ads-group-taxonomy-params` filter to change ad group taxonomy parameters
- Improvement: add "Manual Placements" to the Advanced Ads block and sidebar widget
- Improvement: update Black Friday promotion
- Fix: enable `Ad Admin` and `Ad Manager` to assign ads to groups from ad edit page and quick edit view
- Fix: disable unavailable ad types on the ad edit page
- Fix: improve AdSense auto ads code warning on ad edit page
- Fix: handle AdSense report API response for accounts without earnings
- Fix: remove `amp-auto-ads` element on non-AMP URLs
- Fix: honor disabling ads settings for AMP pages
- Fix: escape placement selectors for jQuery to allow adding conditions to multibyte placement names
- Fix: ensure correct text domain for translations
- Fix: make the ad list sortable in descending order
- Fix: remove hard-coded `orderby` and `order` for posts list
- Fix: prevent updating ad weights of non-published ads
- Fix: correct Display Conditions meta box video player
- Fix: remove escaped HTML tags in new placement form
- Fix: resolve a conflict with WPML where conditions were not displayed correctly on the placement page
- Fix: move placement of the ad blocker disguise settings
