Jump to content
TNG Community
Renze

Google Adsense

Recommended Posts

Renze

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

Share this post


Link to post
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 -->

 

Share this post


Link to post
Share on other sites
Renze

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?

Share this post


Link to post
Share on other sites
Merv
13 hours ago, Renze said:

Does anyone have an idea?

Hi Renze, Possibly in the getperson.php file.

Share this post


Link to post
Share on other sites
Renze

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>
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×