Renze Posted December 1, 2017 Report Share Posted December 1, 2017 Anyone have experience with Google AdSense? Anyone have any tips where I should post the code? Is that in Getperson. php or somewhere else. Who can help? Would like to place an advertisement before Google Maps starts on the personal page Quote Link to comment Share on other sites More sharing options...
jayat1familytree Posted December 1, 2017 Report Share Posted December 1, 2017 Renze, I put mine at the start of the footer.php file. That way it appears on every page right near the bottom. <!-- Start Google Footer Ads --> <br /> <script type="text/javascript"><!-- google_ad_client = "ca-pub-8427119874764209"; /* 1ft_footer_ads */ google_ad_slot = "4548849804"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <!-- End Google Footer Ads --> Quote Link to comment Share on other sites More sharing options...
Renze Posted December 2, 2017 Author Report Share Posted December 2, 2017 Jayat1familytree, thanks for your comment. I have the code also in the footer.php. But I'd like to have these between the Family ID and the Event map (Google Maps). How do I do that? Does anyone have an idea? Quote Link to comment Share on other sites More sharing options...
Merv Posted December 2, 2017 Report Share Posted December 2, 2017 13 hours ago, Renze said: Does anyone have an idea? Hi Renze, Possibly in the getperson.php file. Quote Link to comment Share on other sites More sharing options...
Renze Posted January 3, 2018 Author Report Share Posted January 3, 2018 I have my Google AdSense code posted in footer. php. But now the banner is not loaded. What am I doing wrong now? Below the code (footer.php): <?php global $text, $tng_version, $flags; ?> <hr size="1" /> <?php $flags['basicfooter'] = true; echo tng_footer($flags); ?> <br/> <center> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Adv-02 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7113150545888704" data-ad-slot="1113007712" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </center> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.