Login  Register

Re: New Ad Units

Posted by Harvey on Jun 10, 2012; 4:51pm
URL: https://support.nabble.com/New-Ad-Units-tp7580307p7580310.html

I tried the custom ad code from one of my other apps, where it seems like the change wasn't made:

<override_macro name ="show_custom_ads" parameters="format" requires="node_page,servlet" >
    <n.if.equal value1="[n.format/]" value2="small-square">  
        <then>  
            <div class="ad">
                <script type="text/javascript"><!--
                    google_ad_client = "ca-pub-XXXXXXXXXXXXXXXXXX";
                    /* Small-Square */
                    google_ad_slot = "XXXXXXX";
                    google_ad_width = 200;
                    google_ad_height = 200;
                    //-->
                </script>
                <script type="text/javascript"
                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script> 
            </div>
        </then>  
        <else>  
            <div class="ad shaded-bg-color rounded" style="padding:.5em 0">
                <script type="text/javascript"><!--
                    google_ad_client = "ca-pub-XXXXXXXXXXXXXXXXXXX";
                    /* Leaderboard */
                    google_ad_slot = "XXXXXXXXXXX";
                    google_ad_width = 728;
                    google_ad_height = 90;
                    //-->
                </script>
                <script type="text/javascript"
                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
            </div>
        </else>  
    </n.if.equal> 
</override_macro> 

For some reason the ad is now appearing within the post area:



or in cases where the person has a signature it is occuring in the signature.
HTTPS Please!