1
taherk
Google Ads don't show up
  • 2005/10/11 14:53

  • taherk

  • Just popping in

  • Posts: 78

  • Since: 2005/6/28


Hello,

I have a strange issue with my site, That I have been trying to resolve since many days.

Whenever I put Google Ads block in any HTML pages , the Ads dont show up, but when I select the contents of the page with mouse, I see that Ad block is highlighted.

For eg:

I tried to edit weblinks_index.html , and at the very end of page I put my Google Ads code. You can see it here

http://csqa.info/modules/weblinks/

Select the text "Latest Site" all the way down and you will see that rectangular block is highlighted.

Am I missing something here?

Regards
Taher

2
taherk
Re: Google Ads don't show up
  • 2005/10/11 21:32

  • taherk

  • Just popping in

  • Posts: 78

  • Since: 2005/6/28


Anyone , please

3
JMorris
Re: Google Ads don't show up
  • 2005/10/11 23:56

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


I had a similar problem posting google ads in AMS. The quick and dirty workaround was to remove all line breaks and the HTML comment marks.

Example...

Change:
<script type="text/javascript"><!--
google_ad_client "pub-0869296573901896";
google_ad_width 468;
google_ad_height 60;
google_ad_format "468x60_as";
google_ad_type "image";
google_ad_channel ="";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script><iframe name="google_ads_frame" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-0869296573901896&amp;dt=1129075124484&amp;lmt=1129075124&amp;prev_fmts=728x90_as&amp;format=468x60_as&amp;output=html&amp;url=http%3A%2F%2Fcsqa.info%2Fmodules%2Fweblinks%2F&amp;ad_type=image&amp;ref=http%3A%2F%2Fwww.xoops.org%2Fmodules%2Fnewbb%2Fviewtopic.php%3Ftopic_id%3D42513%26forum%3D1%26post_id%3D186172&amp;cc=100&amp;u_h=768&amp;u_w=1024&amp;u_ah=740&amp;u_aw=1024&amp;u_cd=32&amp;u_tz=-240&amp;u_his=1&amp;u_java=true&amp;u_nplug=22&amp;u_nmime=92" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="60" scrolling="no" width="468"><img></iframe>


To:
<script type="text/javascript">google_ad_client "pub-0869296573901896";google_ad_width 468;google_ad_height 60;google_ad_format "468x60_as";google_ad_type "image";google_ad_channel ="";</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><iframe name="google_ads_frame" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-0869296573901896&amp;dt=1129075124484&amp;lmt=1129075124&amp;prev_fmts=728x90_as&amp;format=468x60_as&amp;output=html&amp;url=http%3A%2F%2Fcsqa.info%2Fmodules%2Fweblinks%2F&amp;ad_type=image&amp;ref=http%3A%2F%2Fwww.xoops.org%2Fmodules%2Fnewbb%2Fviewtopic.php%3Ftopic_id%3D42513%26forum%3D1%26post_id%3D186172&amp;cc=100&amp;u_h=768&amp;u_w=1024&amp;u_ah=740&amp;u_aw=1024&amp;u_cd=32&amp;u_tz=-240&amp;u_his=1&amp;u_java=true&amp;u_nplug=22&amp;u_nmime=92" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="60" scrolling="no" width="468"><img></iframe>


Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

4
brash
Re: Google Ads dont show up
  • 2005/10/12 0:23

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Different kettle of fish here I think James. The issue with AMS is that the banner areas still go through the XOOPS text sanitizer which alters the raw HTML code making it invalid for Google. Taherk seems to be placing his code directly into his module template, which is much more complex if you don't know HTMl or smarty very well/at all. Taherk, is something like I have done with my site what you are after with your Google Ads?

http://www.it-hq.org/modules/mylinks/

If so let me know as there are several templates per module you'll need to edit to do this.
IT Headquarters
Innovative IT Solutions

5
taherk
Re: Google Ads dont show up
  • 2005/10/12 2:21

  • taherk

  • Just popping in

  • Posts: 78

  • Since: 2005/6/28


First of all Thanks James and Brash for responding.

James - I did not understand the iframe part. What code goes in that.

Brash - Yes I want google ads, just like on your site. I read ur article, but I have not worked with phpAdsNew. Is there a way to do it just by using xoops

Thanks a lot

6
brash
Re: Google Ads dont show up
  • 2005/10/12 2:30

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Hi taherk,

Did you happen to read the article I just wrote on maximising your Google Ads revenue with Xoops? There are some specific examples on how to implement Google Ads into XOOPS in there.
IT Headquarters
Innovative IT Solutions

7
JMorris
Re: Google Ads dont show up
  • 2005/10/12 2:43

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Quote:
James - I did not understand the iframe part. What code goes in that.


To answer your question.... That was a direct copy and paste from your website. I did not alter the code other than to remove the HTML comments and line breaks.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

8
taherk
Re: Google Ads dont show up
  • 2005/10/13 1:08

  • taherk

  • Just popping in

  • Posts: 78

  • Since: 2005/6/28


Hi Brash,

I did your article and cloned and edited my weblinks templates. I see the google ads code in there, but it does not appear on my site.

ALso I tried to create a block as u mentioned in article with just google ads code. The block appears on front page, but it is empty, without any content.

So looks like this is some weirdo problem

-Thanks

9
brash
Re: Google Ads dont show up
  • 2005/10/13 1:38

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Did you try refreshing the page a few times? I've found that sometimes it takes Google Ads a few page refreshes before it starts delivering ads.
IT Headquarters
Innovative IT Solutions

10
taherk
Re: Google Ads dont show up
  • 2005/10/13 3:02

  • taherk

  • Just popping in

  • Posts: 78

  • Since: 2005/6/28


Yes , I even updated the weblinks Module.

Login

Who's Online

86 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 86


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits