Jump to content
TNG Community

Google Adsense


Renze

Recommended Posts

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

Link to comment
Share on other sites

jayat1familytree

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 -->

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 1 month later...

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>
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...