Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Google Ads

Asked Modified Viewed 1,493 times
H
hmforever
H
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Hello,

How can i show the Google ads on the block? I put their codes like this :

Quote

openside('Google'wink;
echo '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- HMF2 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7147364101810437"
data-ad-slot="6254747903"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>';
closeside();


another solution :

Quote

openside("Test"wink;
echo "<script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
<!-- HMF2 -->
<ins class='adsbygoogle'
style='display:block'
data-ad-client='ca-pub-7147364101810437'
data-ad-slot='6254747903'
data-ad-format='auto'></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>";
closeside();


and :

Quote

openside('Adver'wink;
?> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- HMF2 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7147364101810437"
data-ad-slot="6254747903"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

<?
closeside();


but still nothing works. help me please
0 replies

2 posts

R
Rudios
R
Rudios 10
  • Member, joined since
  • Contributed 145 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

Try <?php for "<?" maybe
0 replies
N
NetriX
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
answered
Senior Member

If you recently setup Google Ads you're most likely not seeing content because it takes time to propagate.

This is explained by Google when you create your first advertisement.

Your code looked fine when I glanced over it.

Here is a working example:

openside('Advertisement');
echo '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Custom left panel -->
<ins class="adsbygoogle"
     style="display:inline-block;width:192px;height:192px"
     data-ad-client="ca-pub-2127223210388669"
     data-ad-slot="8894028231"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>';
closeside();
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

N
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
R
R
Rudios 10
  • Member, joined since
  • Contributed 145 posts on the community forums.
  • Started 16 threads in the forums
H
H
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet