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

Asked Modified Viewed 2,295 times
J
Jay
J
Jay 10
  • Member, joined since
  • Contributed 170 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
asked
Member

Hi guys

I added the google ad code to my news but no ads are showing, any ideas on how to display ads in the news?

Im using v7 news not modified at all and my code is:

echo "<script type='text/javascript'><!--
            google_ad_client = 'pub-07';
            /* 728x15, created 7/12/08 */
            google_ad_slot = '1180826171';
            google_ad_width = 728;
            google_ad_height = 15;
            //-->
            </script>
            <script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
            </script>";


I also tried putting the google ad in one line still nothing is showing.

[b]echo "<script type='text/javascript'><!-- google_ad_client = 'pub-078'; google_ad_slot = '4089884548'; google_ad_width = 200; google_ad_height = 90; //--> </script> <script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'> </script>";[/b]
Edited by Jay on 13-07-2008 01:05,
0 replies

11 posts

G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Just wait. Google ads can take up to 24 hours to start showing, so just keep checking back. It can take days to match your content very well.

You (and everyone else who asks why it's not showing) would know this if you read the FAQs on google.
0 replies
J
Jay
J
Jay 10
  • Member, joined since
  • Contributed 170 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
answered
Member

Thanks Mr Google ur the google expert :)
0 replies
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
answered
Senior Member

Jay! you can use this way......

After line 136:
Add this code


$news_ads = "<table align='CENTER' width='300'><tbody><tr><td>
<script type='text/javascript'><!--
google_ad_client = 'pub-your number';
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = '468x60_as';
google_ad_type = 'text';
google_ad_channel = '';
google_color_border = 'FFFFFF';
google_color_bg = 'FFFFFF';
google_color_link = '035A8D';
google_color_url = '00AA00';
google_color_text = '000000';
//--></script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script></td></tr></tbody></table>";


After that scroll down to line 188


render_news($news_subject, $news_news.[b]$news_ads[/b], $news_info);


Good luck
Edited by afaaro on 13-07-2008 11:44,
0 replies
G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Quote

Jay wrote:
Thanks Mr Google ur the google expert :)

No problem. It's propbably showing by now..

And I'm not a real expert... :) I just read the FAQs when I sign up for stuff.
0 replies
J
Jay
J
Jay 10
  • Member, joined since
  • Contributed 170 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
answered
Member

No its not showing mate - still nothing.
0 replies
J
Jay
J
Jay 10
  • Member, joined since
  • Contributed 170 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
answered
Member

Quote

afaaro wrote:
Jay! you can use this way......

After line 136:
Add this code


$news_ads = "<table align='CENTER' width='300'><tbody><tr><td>
<script type='text/javascript'><!--
google_ad_client = 'pub-your number';
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = '468x60_as';
google_ad_type = 'text';
google_ad_channel = '';
google_color_border = 'FFFFFF';
google_color_bg = 'FFFFFF';
google_color_link = '035A8D';
google_color_url = '00AA00';
google_color_text = '000000';
//--></script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script></td></tr></tbody></table>";


After that scroll down to line 188


render_news($news_subject, $news_news.[b]$news_ads[/b], $news_info);


Good luck


Thanks I will try that code tomorrow...mahadsanid :)
0 replies
G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Quote

Jay wrote:
No its not showing mate - still nothing.

Is it not showing at all, or is there just a blank space where the ads should go, but no text? If it's the second, you'll just have to wait.
0 replies
J
Jay
J
Jay 10
  • Member, joined since
  • Contributed 170 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
answered
Member

NO space nothing at all. no changes
0 replies
G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Can you give a link to your site?
0 replies
J
Jay
J
Jay 10
  • Member, joined since
  • Contributed 170 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
answered
Member

Quote

afaaro wrote:
Jay! you can use this way......

After line 136:
Add this code


$news_ads = "<table align='CENTER' width='300'><tbody><tr><td>
<script type='text/javascript'><!--
google_ad_client = 'pub-your number';
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = '468x60_as';
google_ad_type = 'text';
google_ad_channel = '';
google_color_border = 'FFFFFF';
google_color_bg = 'FFFFFF';
google_color_link = '035A8D';
google_color_url = '00AA00';
google_color_text = '000000';
//--></script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script></td></tr></tbody></table>";


After that scroll down to line 188


render_news($news_subject, $news_news.[b]$news_ads[/b], $news_info);


Good luck


Nothing happens with this code either just repeats the news TWICE...when u go to the extended news that is.
0 replies
G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Please give a site link.
0 replies

Labels

None yet

Statistics

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

3 participants

A
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
J
J
Jay 10
  • Member, joined since
  • Contributed 170 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
G
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet