Forum Moderators: martinibuster

Message Too Old, No Replies

Is there any method of showing Adsense ads.

That won't print when the rest of the page is printed...

         

MikeNoLastName

3:13 am on Dec 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That is acceptable under the Google adsense terms and conditions?

explorador

4:24 am on Dec 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



wow, at this time your # of posts is 666 lol

Is there any method of showing Adsense ads.
That won't print when the rest of the page is printed...

Yes, use a stylesheet (css) for display with one style (names whateveryouwantto "ads_web") and then use the same style on the CSS for print but with display "none"

That is acceptable under the Google adsense terms and conditions?

Haven't checked, but I think there is no problem, will have to see

MikeNoLastName

9:11 am on Dec 7, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



"wow, at this time your # of posts is 666 lol "

Nice observation, But No Way! I've been framed!
Seriously... someone must have hacked my password. I don't have that much free time in ANY universe...

"Haven't checked, but I think there is no problem, will have to see "

Does that mean YOU "will see" or you want ME to try it :-)?

netmeg

3:36 pm on Dec 7, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have a print style sheet with css that will not display the ads when the page is printed. I've had it for years and years. Never seen anything that would cause me to believe it was against TOS (and unlike most, I've actually read them) Google has, on occasion, come to my site and sent me suggestions for improvements, so they've seen the code and not complained.

Google can't *require* you to display their ads.

MikeNoLastName

7:45 pm on Dec 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I was thinking along the lines of what the foodnetwork does on their recipe pages which are intended to be printed. On the right they have a 300x250 ad (not adsense) and below it says 'advertisement will not print' and indeed when you print the page WHILE IT IS SHOWING THE AD, the ad does not print. They apparently use some sort of javascript off the page. The main problem I could envision is that Adsense won't be able to detect the page content.

IanCP

8:28 pm on Dec 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I did mine via print.css

<link rel="stylesheet" type="text/css" media="print" href="/print.css" />

Unfortunately where ads are, it prints blank space. Yes I could fix it but as usual I'm too lazy.

netmeg

8:44 pm on Dec 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I create a style in my print.css stylesheet called .noprint:

.noprint { display: none; }

Then I wrap each AdSense block (and other ad blocks) within a div with that style.

<div class="noprint">
[adsense code]
</div>

Since I have the line as described above:

<link rel="stylesheet" type="text/css" media="print" href="/print.css" />

I'm all set. No ads print, and no blank space.

MikeNoLastName

11:27 pm on Dec 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks netmeg,
That works great! I embedded the css code right in the page header as we don't normally use CSSs. Just have to remember to add the Media="print" to the declaration. It works perfect on the current PC MSIE 6 and 7, Firefox, Netscape and even AOL browser with both adsense and another iframe based affiliate service. And even works on older versions of MSIE back to 4.0 (although neither of the ads do :-), but not on Netscape 4.7.
Adsense also has no problem detecting the page content since it is right on the page.

AdSenseAdvisor

6:00 pm on Dec 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Policy-wise, you're good to go in this case as long as your code doesn't call the ad.

In other words, if your code asks us to serve an ad to a visitor on your site and then you don't show that visitor the ad, that is very bad.

ASA