There are a couple of plugins and themes that support infinite scroll so that your visitors can read more articles on the same page just by scrolling down.

Advanced Ads does not inject ads into this content by default, though you can change that.

Since there is no technical standard, the solution to show ads can vary. This page covers our current knowledge to show ads in AJAX-loaded content.

How to enable AJAX-loaded ads?

These are a few solutions to show ads in AJAX-loaded content.

Disable ads on secondary queries

Disable the Disable ads on secondary queries option in Advanced Ads > Settings > General > Disable Ads. If enabled, it prevents ads in content loaded using AJAX

Disable ads with secondary queries disabled
Keep the Disable ads on secondary queries option disabled.

Enable Secondary Queries

In case you are using the General Conditions in the Display Conditions on the ad edit screen then make sure to enable Secondary Queries.

Secondary queries enabled in general conditions
If using General Conditions then make sure that Secondary Queries is enabled (in blue)

 

Set Unlimited ad injection

The Unlimited ad injection setting in Advanced Ads > Settings > General > Content injection allows you to enable ads on archive pages and outside of “single pages”. Set this option to -1 or anything above 0 to enable ads in AJAX-loaded content and infinite scroll.

unlimited ad injection option

Developers, set is_singular() and in_the_loop()

Developers of AJAX-loading plugins or themes should make sure that is_singular() and in_the_loop() return true in their content. You could add something like this to your loop:

Other issues

There is still a chance that your ads are not injected into AJAX-loaded content due to an issue that could also happen to normal content. Please check this general list.

It is possible that Display and Visitor Conditions are not working for ads in AJAX-loaded content. We would like to check individual solutions. Please contact us.

Tested plugins and themes

These are plugins and themes we tested the above solutions on.

  • AJAX Load More plugin: set Unlimited ad injection to show ads

 Troubleshooting