Note 1: I have not been able to get this to work where Google AutoAds is enabled.
Note 2: I thought this was previously working on a WordPress site but I was just checking that site and it's not working there now either. Despite Google's recommendation to use this script, it appears to be pretty much worthless.