Ads repeating even though they have the same weight
-
Hello team!
We are having a problem with our implementation of the advanced ads.
We have a custom query that loads posts in an endpoint with infinite scroll, outside of the regular WordPress environment, to clarify, this endpoint doesn’t load the scripts from wp_head or wp_footer.
This endpoint is configured to display ads every 2 posts, and we load 15 posts when you open the page and +15 posts whenever you scroll down.
Advanced ads are displaying in the endpoint, that part is working correctly, the problem we have is that the ads are repeating themselves, the exact same ad is displayed on each request, so if you open the endpoint you see the same ad across the 15 initial posts, if you scroll down and 15 new posts are loaded you will see a different ad repeating itself across these 15 new posts.
This is the setup we have:
Type: Random ads
6 ads each with 10 Weight (same weight across all apps)Based on this, our questions are:
1. How exactly does Advanced Ads identify which ad should be displayed? Is there perhaps a javascript file that we need to add to that custom endpoint to make sure the logic works correctly?
2. Is there a parameter that can be added to the shortcode to help Advanced Ads with identifying the ad index so it can load the correct ad? e.g. [the_ad_group id=”6204″ index=”1″] so every subsequent shortcode would have the index value incremented
- The topic ‘Ads repeating even though they have the same weight’ is closed to new replies.