hi! i know my thread may be too late for u and hopefully it still helps.
i had same problem before and with the code below was issue be solved:

<?php

// test if googleadsense should show
$show_googleadsense= true;

if ($request_type == 'SSL') {
$show_googleadsense= false;
} else {
$show_googleadsense= true;
}

if ($show_googleadsense) {

****------- Your google adsense code here -------------*****

?>// eof googleadsense display control