Welcome to WebmasterWorld Guest from 54.205.87.3

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Google Updates ‘Modifying Ad Code’ Policy

     
6:44 pm on May 23, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 12, 2004
posts:618
votes: 4


Going forward, we will permit publishers to make modifications to the AdSense ad code so long as those modifications do not artificially inflate ad performance or harm advertisers and otherwise comply with our Terms and Conditions and program policies. This will enable you to try a range of techniques on your site such as:

Responsive design: Enabling publishers to create a single webpage that will adapt to the device on which it’s being viewed, whether it’s a laptop, smartphone or tablet, to maximize user experience.
A/B testing: Running a test by creating multiple versions of a page, comparing user behavior to see which page is the most effective.
Setting custom channels dynamically: Tracking performance of segments of users, sections of your site, or other behavior to maximize ad and user experience.
Ad tag minification: Enabling your site pages to load faster by reducing the amount of data to be transferred.


[adsense.blogspot.com...]
6:56 pm on May 23, 2013 (gmt 0)

Senior Member from FR 

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Feb 15, 2004
posts:6717
votes: 230


There will be sighs of relief all around..nice catch levo :)

Presumably the "responsive code" that they are now allowing all countries / publishers to use will be the one we discussed here..
[webmasterworld.com...]
7:41 pm on May 23, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12928
votes: 198


Whew!

(I just sent them a long anguished email two days ago begging them to **** or get off the pot on this, not that that had anything to do with the timing, but glad they finally ****)

[edited by: netmeg at 7:52 pm (utc) on May 23, 2013]

7:51 pm on May 23, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 7, 2003
posts:4783
votes: 0


GOOD!
10:18 pm on May 23, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 7, 2003
posts:4783
votes: 0


Now they still need to clean up their act for xhtml(5) served as xml: their scripts need to stop using document.write ...
3:24 am on May 24, 2013 (gmt 0)

Full Member

10+ Year Member

joined:May 2, 2006
posts:306
votes: 0


finally, does that mean i can compress the code to save a few bytes?
2:34 pm on May 24, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12928
votes: 198


Says you can minify it. Make sure it still works though.
4:48 pm on May 24, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 12, 2004
posts:618
votes: 4


Is there a safe way to disable an ad unit with inline code? For example, if the screen size is smaller than 640px, don't show/render the unit at all. Omitting google_ad_client or google_ad_slot might work, but it doesn't feel right.
5:05 pm on May 24, 2013 (gmt 0)

Senior Member from FR 

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Feb 15, 2004
posts:6717
votes: 230


I think that would fall under "hiding ads" and thus be a "No no"..best to ask them directly in writing..
8:38 pm on May 24, 2013 (gmt 0)

Junior Member

5+ Year Member

joined:Dec 27, 2006
posts:51
votes: 0


Levo, if you look at their responsive design example they add a conditional to do what you want.

http://support.google.com/adsense/answer/1354736?hl=en&topic=1271508 [support.google.com]

[edited by: martinibuster at 7:23 pm (utc) on May 28, 2013]
[edit reason] Fixed link to make it live. [/edit]

9:13 pm on May 24, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 12, 2004
posts:618
votes: 4


Great link, but it doesn't include an example that doesn't render the ad.
10:08 pm on May 24, 2013 (gmt 0)

New User

5+ Year Member

joined:Aug 11, 2008
posts:11
votes: 2


You can use something like:

<script type="text/javascript"> 
if (document.documentElement.clientWidth >= 640) {
document.writeln('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">');
document.writeln('<\/script>');
}
</script>


instead of:

<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> 
</script>
1:31 am on May 25, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12928
votes: 198


I would ask for a clarification on that one, myself.
9:23 am on May 25, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 12, 2004
posts:618
votes: 4


It would be so much easier if they only rendered ':visible' ad units.
9:09 pm on May 25, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member sgt_kickaxe is a WebmasterWorld Top Contributor of All Time 5+ Year Member

joined:Apr 14, 2010
posts:3169
votes: 0


So how do I accomplish the following?

- Get rid of unsightly arrows next to ads and ad link units?
- Alter number of ads or shape of ads beyond the default standards?
- Apply custom css to the ad text?

The one thing I can't stomach about adsense units is their generic look, which super publishers don't need to worry about since they can customize their units, so I'm hoping one some or any of the above is possible.
9:55 pm on May 25, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12928
votes: 198


Um, not that I know of.
1:09 pm on May 28, 2013 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 12, 2004
posts:114
votes: 0


I now wonder if it's now safe to employ modifications like this ( or obfusticate) to prevent bots other than google from capturing your pub id

google_ad_client = “pub-”+”123?+”456?+”7891234567?;

There are a number of sites out there that scour the internet looking for pub-id's and then match all the websites that belong to each pub-id.

If I know your website, I can view the source, find the pub-id and search for it on Google and a list of your websites would appear.

However, if I change up the code a little so that these websites don't find pub-1234567891234567 then it will likely complicate the process of matching up websites to publisher id's.

Now when a person searches for your publisher id (let's say a new publisher id), they won't find a ton of websites providing information and will have to guess as to what websites you own and view source to verify.

Thoughts?
1:36 pm on May 28, 2013 (gmt 0)

Senior Member from FR 

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Feb 15, 2004
posts:6717
votes: 230


Could be safe..but I wouldn't do so without written specific authorisation from adsense..( I would also not hold my breath waiting for it ;)..One can indeed block the most well known "blekko"..but there are myriad others, of varying accuracy..
7:18 pm on May 28, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 31, 2006
posts:1263
votes: 17


I just implemented their sample A/B testing code yesterday... now that I'm allowed ;)

I'm testing which ad works better 336x280 or 300x250 in one prominent location.

Up next, play around with responsive code on a responsive template, I'd like to move forward with responsive so I don't have to worry about any devices in the future, make my life a little easier.
7:27 pm on May 28, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12928
votes: 198


I'm doing the responsive (to be honest, I was doing the responsive before they posted) and I *love* it.