• Resolved Vitor Argos

    (@vitorargos)


    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Henning

    (@henningaa)

    Hi vitorargos,

    Thanks for reaching out.

    How do you load your ads exactly? Are you using Advanced Ads placements or have you build a custom technique as well?

    Regarding your second questions: Unfortunately, there is no shortcode parameter to target specific ads in groups available.

    Best regards,
    Henning

    Thread Starter Vitor Argos

    (@vitorargos)

    Hi Henning,

    Thanks for your response.

    Yes, we are using the Advanced Ads placements and loading them using the shortcode.

    Is there anything specific we need to do in our queries to make sure the ads are loaded correctly?

    Any insights on how the plugin identifies which ad to load when the ad unit is set to random and the ads have the same weight could be helpful.

    I can send you a link to our endpoints in private if that helps?

    Thread Starter Vitor Argos

    (@vitorargos)

    Hello @henningaa,

    Just wanted to follow up on this.

    We really need some assistance with getting a better understanding of how the plugin applies its logic to the ad units in WP queries.

    Any directions you could provide would be greatly appreciated.

    Happy to share more details with you privately or over email.

    Thanks for your help!

    Plugin Support Henning

    (@henningaa)

    Hi vitorargos,

    I still struggle understanding your case.

    One thing to try would be allowing (uncheck) all settings at Advanced Ads > Settings > General > Disable ads and setting the “Unlimited ad injection” to -1.

    Please send also these endpoints via email referring to this thread.

    Best regards,
    Henning

    Plugin Support Henning

    (@henningaa)

    Hi vitorargos,

    Thanks for reaching out through the customer support. Since this case will also concern pro features of Advanced Ads we will continue our discussion over there.

    Best regards,
    Henning

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ads repeating even though they have the same weight’ is closed to new replies.