| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
Smell Newbie


Offline Joined: Dec 07, 2005 Posts: 12
|
Posted: Tue Dec 13, 2005 3:25 am Post subject: Google Adsense X Dragonfly |
|
Hy there!
I'd been taking a look at the search in this forum, and i realized that google adsense displays a cpgnuke related content rather than your page content. Well, my account's just been accepted now and i've figured out that it's true...
So, is there already a way to fix that up?
Txs a lot!
Smell's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Red Hat/1.34/4.1.13/4.4.1/9.1.0.8
|
|
| Back to top |
|
 |
Head-e Silver Supporter


Offline Joined: Apr 20, 2004 Posts: 937
|
Posted: Tue Dec 13, 2005 3:39 am Post subject: Re: Google Adsense X Dragonfly |
|
perhaps a link to your website?
did you edit the meta.php to your own keywords and descriptions?
how much content is on the site? I had one site that had great adsense relativity and clickthrough.
Head-e please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Tue Dec 13, 2005 5:14 am Post subject: Re: Google Adsense X Dragonfly |
|
You need to edit includes/meta.php, where you can add additional module descriptions and keywords, and also edit the default settings near the bottom of the file - just make sure you use a utf-8 compliant editor with appropriate settings.
_________________ • DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Smell Newbie


Offline Joined: Dec 07, 2005 Posts: 12
|
Posted: Tue Dec 13, 2005 8:55 am Post subject: Re: Google Adsense X Dragonfly |
|
Txs for your answers brovs!
I haven't made any change in that file... now i changed every "keywords" value by using php editor 2.21. Then i uploaded to the folder includes and cleaned the cache, it didn't make any difference. Should i wait some hours maybe?
My site is this one.  You cannot see the adsense yet, i've set it up only for admins so that i can test it bofore setting online for all.
Btw txs a lot! i thought i was gonna have to get a job to afford my host... hehee
Smell's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Red Hat/1.34/4.1.13/4.4.1/9.1.0.8
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Tue Dec 13, 2005 9:15 am Post subject: Re: Google Adsense X Dragonfly |
|
what kind of adds do you want on your website ?
For example you could use the following in .htaccess
| Code:: |
RewriteCond %{HTTP_USER_AGENT} "Mediapartners-Google" [NC]
RewriteRule ^.*$ /google.txt [L] |
and put in google.txt the words where you want adds for like
| Code:: |
musical paintings software |
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Head-e Silver Supporter


Offline Joined: Apr 20, 2004 Posts: 937
|
Posted: Tue Dec 13, 2005 4:35 pm Post subject: Re: Google Adsense X Dragonfly |
|
you can also add this to the standard adsense script
google_hints = "keywords"
Head-e please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
Smell Newbie


Offline Joined: Dec 07, 2005 Posts: 12
|
Posted: Tue Dec 13, 2005 8:26 pm Post subject: Re: Google Adsense X Dragonfly |
|
Hyê!
DJMaze, i wanna add to my site anouncements like "olsen twins, mary kate olsen, ashley olsen". Then i created a file "google.txt" as you said with the content:
| Code:: |
olsen twins mary kate olsen ashley olsen
|
I sent it to my "public_html". I made those changes in the .htaccess and didn't work either...
Head-e, i did it too, still not working...
Txs again for trying fellows!
I donno if it helps, but here is the code of the block: (google_ad_client edited)
| Code:: |
<?php
if (!defined('CPG_NUKE')) { exit; }
?>
<script language="JavaScript">
<!--
google_hints = "keywords"
google_ad_client = "pub-66949996929XXXXXX";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DFF2FD";
google_color_bg = "DFF2FD";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
// -->
</script>
<?php
$content .= "<center><script language=\"JavaScript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">";
$content .= "</script></center>";
?> |
Smell's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Red Hat/1.34/4.1.13/4.4.1/9.1.0.8
|
|
| Back to top |
|
 |
Head-e Silver Supporter


Offline Joined: Apr 20, 2004 Posts: 937
|
Posted: Tue Dec 13, 2005 10:31 pm Post subject: Re: Google Adsense X Dragonfly |
|
| Code:: |
<?php
if (!defined('CPG_NUKE')) { exit; }
?>
<script language="JavaScript">
<!--
google_hints = "keywords"
google_ad_client = "pub-66949996929XXXXXX";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DFF2FD";
google_color_bg = "DFF2FD";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
google_hints = "olsen twins, mary kate olsen, ashley olsen";
// -->
</script>
<?php
$content .= "<center><script language=\"JavaScript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">";
$content .= "</script></center>";
?> |
but if all you have for content is your google ads, of course its gonna pull info from the core... Try modifying your ads into a populated forum or weblinks or downloads module.. you will see targeted results.
Head-e please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
Smell Newbie


Offline Joined: Dec 07, 2005 Posts: 12
|
Posted: Wed Dec 14, 2005 8:12 am Post subject: Re: Google Adsense X Dragonfly |
|
hehe that's tru Head-e, there's still a lack of content in my page. But i'm gonna solve that soon.
I think it's working now!  I took a look at some other fan sites that also use adsense and figured out that their metatags use names like fan pages of other stars, make-up, teen content... so what did i do? "Michael Jackson, Avril Lavigne, Hillary Duff..."  hehehe
Txs all!
Smell's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Red Hat/1.34/4.1.13/4.4.1/9.1.0.8
|
|
| Back to top |
|
 |
skoeter Silver Supporter


Offline Joined: Aug 17, 2004 Posts: 140 Location: Netherlands
|
Posted: Fri Sep 28, 2007 7:47 am Post subject: Re: Google Adsense X Dragonfly |
|
Great tips, thanx
skoeter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) server ??/MySQL 5+/PHP 5+/Dragonfly 9.1.2
|
|
| Back to top |
|
 |
dusman Dragonfly addicted


Offline Joined: Mar 17, 2006 Posts: 303 Location: Maryland
|
Posted: Fri Sep 28, 2007 1:42 pm Post subject: Re: Google Adsense X Dragonfly |
|
be advised using the google_hints is against the TOS "you cannot modify the code in any way" and google will ban your site if you use it. Make sure you read the TOS very carefully and follow it to the "T" or they will diabled your account and even take $$ back to refund back to the publishers.
The best way to get relevant ADS is your meta data and content.
_________________ -Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
dusman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
|
|
| Back to top |
|
 |
dusman Dragonfly addicted


Offline Joined: Mar 17, 2006 Posts: 303 Location: Maryland
|
Posted: Fri Sep 28, 2007 1:46 pm Post subject: Re: Google Adsense X Dragonfly |
|
DJMaze that .htaccess code is interesting, can you describe exactly what it is doing for me?
thanks
_________________ -Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
dusman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Fri Sep 28, 2007 3:21 pm Post subject: Re: Google Adsense X Dragonfly |
|
| Code:: |
RewriteCond %{HTTP_USER_AGENT} "Mediapartners-Google" [NC] |
Check if the 'user-agent' header that is send by the client contains "string".
| Code:: |
RewriteRule ^.*$ /google.txt [L] |
If so then open for all requests google.txt
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
webhax Newbie


Offline Joined: May 13, 2006 Posts: 26
|
Posted: Sat Sep 29, 2007 5:22 am Post subject: Re: Google Adsense X Dragonfly |
|
One can also use Google Ad Section Targeting to get ads relevant to your content.
For example if you publish a story through news module what you could do is add
<!-- google_ad_section_start -->
before the start of your story
and
<!-- google_ad_section_end -->
after the end of your story.
You can read more about it here...
www.google.com/adsense...swer=23168
Btw I also had a question in mind...
Is it possible to show google ad using div by text wrapping it in the first post of every thread like this webmaster has done here for example...
forums.megagames.com/f...hp?t=52770
_________________ { Oversize Sig }
webhax's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33/5.0.45/5.1.4/9.1.2.1
|
|
| Back to top |
|
 |
ma_hunter Newbie


Offline Joined: Nov 02, 2007 Posts: 22 Location: MA
|
Posted: Tue Nov 06, 2007 6:38 pm Post subject: Re: Google Adsense X Dragonfly |
|
Remember to disable the GoogleAds when you test your site. You do not want to generate new ads each time you click to see if your content is OK. What I do is something like:
if (!is_admin()) {
googleAds();
}
That way when I am logged in as an Admin, I never get the ads.
ma_hunter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache/5.0.45/9.1.2.1
|
|
| Back to top |
|
 |
|
|