• Resolved Pratham

    (@pratham2003)


    I’m using more javascript conditions to display ads.

    e.g.

    <script>
    if(someCondition) {
      document.write('<script src="https://....">\x3c/script>');
    }
    </script>

    I noticed that when I have 2 different auto placed ad blocks, which end up being rendered after the same paragraph, the AdInserter plugin kind of merges/jumbles up the javascript code of both these ad blocks.

    The output of such a problem appears somewhere as follows.

    <script>
    if(someCondition) {
    document.write('<script src="https://....">\x3c/script>');
    }
    </script>
    ');
    }
    </script>
    • This topic was modified 8 years, 6 months ago by Pratham.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Spacetime

    (@spacetime)

    Ad Inserter does not merge/jumble anything.
    It inserts the code exacly as configured.
    The only adition is wrapping div (if configured).
    You can always use No wrapping setting and the code will be inserted exacly as configured.

    Thread Starter Pratham

    (@pratham2003)

    I think the problem was with the older version of plugin, updating to V2.0.2 has fixed it.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Bug] Automatic placement.’ is closed to new replies.