Index: google_admanager.module
===================================================================
--- google_admanager.module	(revision 1501)
+++ google_admanager.module	(working copy)
@@ -184,7 +184,14 @@
     //add the init and service scripts the first time this is run
     if (!isset($ga_js['init'])) {
       //drupal_add_js can't load externaljs in 6, but it will in 7. this is a workaround.
-      $external_js = 'http://partner.googleadservices.com/gampad/google_service.js';
+      /* patch for https */
+      $protocol = 'http';
+      if(isset($_SERVER['HTTPS'])){
+        $protocol = 'https';
+      }
+      /* */
+      
+      $external_js = $protocol.'://partner.googleadservices.com/gampad/google_service.js';
       google_admanager_add_js('document.write(unescape("%3Cscript src=\''. $external_js . '\' type=\'text/javascript\'%3E%3C/script%3E"));', 'init');
       $id = variable_get('google_admanager_account', '');
       google_admanager_add_js('GS_googleAddAdSenseService("'. $id .'");', 'service');
