• Resolved sandissparkle

    (@sandissparkle)


    Hi,
    So i inserted ads with your plugin and only one is showing up. I inserted ads after paragraph 2,6. Seperated them with a comma as shown in the documentation, but the ad image is only seen after the second paragraph. When i turn Label Blocks i see that Block 1 C=1 N=2 is created and is working, but the image doesn’t show up. Can you help me with this?

    <!-- GPT AdSlot 1 for Ad unit 'responsive_unit' ### Size: [[400,250],[390,325],[340,280],[635,406],[300,250]] -->
    <div id='div-gpt-ad-1535863-1'>
      <script>
        googletag.cmd.push(function() { googletag.display('div-gpt-ad-1535863-1'); });
      </script>
    </div>
    <!-- End AdSlot 1 -->
    <!-- Start GPT Tag -->
    <script async src='https://securepubads.g.doubleclick.net/tag/js/gpt.js'></script>
    <script>
      window.googletag = window.googletag || {cmd: []};
      googletag.cmd.push(function() {
        var mapping1 = googletag.sizeMapping()
                                .addSize([700, 0], [[640, 400]])
                                .addSize([500, 0], [[440, 275]])
                                .addSize([425, 0], [[390, 325]])
                                .addSize([400, 0], [[360, 300]])
                                .addSize([0, 0], [[336, 280]])
                                .build();
    
        googletag.defineSlot('/22718203122/responsive_unit', [[440,275],[390,325],[360,300],[640,400],[336,280]], 'div-gpt-ad-1535863-1')
                 .defineSizeMapping(mapping1)
                 .addService(googletag.pubads());
    
        googletag.pubads().enableSingleRequest();
        googletag.enableServices();
      });
    </script>
    <!-- End GPT Tag -->

    The page I need help with: [log in to see the link]

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter sandissparkle

    (@sandissparkle)

    Im not quite sure what you mean? I cant find this code in my post source code?! How could i fix this so it works?

    Plugin Author Spacetime

    (@spacetime)

    You need to remove this code as it invalidates pages.
    It seems it is inserted into all posts.
    When Ad Inserter gets the content for processing this code is already there:

    63  CONTENT HOOK START [1, IN THE LOOP]
       0  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ... nk">Share on Linkedin</a>	        	    </div></body></html>*n  [714 words]
       0  INDIVIDUAL EXCEPTIONS []
       1  ---------------------------------
       0  BLOCK 1 INSERTION POSITIONS: 2, 6
       0  PROCESS SHORTCODES [ADINSERTER counter='block']
       0  SHORTCODE TEXT: "1"
       0  SHORTCODE END: 0.03 ms

    Try to disable other plugins to see the difference.

    Thread Starter sandissparkle

    (@sandissparkle)

    Thank you, everything is working now!

    Plugin Author Spacetime

    (@spacetime)

    Great 🙂

    If you like the plugin I would be grateful if you could rate it:
    https://ww.wp.xz.cn/support/plugin/ad-inserter/reviews/#new-post

    Thank you!

Viewing 4 replies - 16 through 19 (of 19 total)

The topic ‘Automatic Ad insertion not working’ is closed to new replies.