by palva12 » 30 May 2016, 16:15
Hi,
I need help from expert to implement adsense in my site.
I have the adsence script from the google as below:
=================================================================
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 728x90 -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-4383716687"
data-ad-slot="2950011"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
==============================================================
I copied the code to " themes/theme_name/views/layouts/main.php"
and inserted above the code "<div id="loading" style="display:none;"><?php echo Yii::t('common', 'Loading content...'); ?></div>"
Now my main question:
In this way i can place only one add. If i Want to place multiple adds then can i use open real advertisement module?
In advertisement module there is option to place a image and text. How i can incorporate google adsense. Where i have to do code change. Please suggest.