AdSense Manager - Version 2.2

Version Description

Download this release

Release Info

Developer mutube
Plugin Icon wp plugin AdSense Manager
Version 2.2
Comparing to
See all releases

Code changes from version 2.1 to 2.2

Files changed (2) hide show
  1. adsense-manager.php +3 -51
  2. readme.txt +29 -21
adsense-manager.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: AdSense Manager
4
  PLugin URI: http://www.mutube.com/projects/wordpress/adsense-manager/
5
  Description: Control and arrange your AdSense & Referral blocks on your Wordpress blog. With Widget and inline post support, configurable colours.
6
  Author: Martin Fitzpatrick
7
- Version: 2.1
8
  Author URI: http://www.mutube.com/
9
  */
10
 
@@ -17,7 +17,7 @@ Defaults
17
 
18
  */
19
 
20
- @define("ADSENSEM_VERSION", "2.1");
21
  @define('ADSENSEM_DIRPATH','/wp-content/plugins' . strrchr(dirname(__FILE__),'/') . "/");
22
 
23
  /*
@@ -44,19 +44,6 @@ Developer, mutube.com
44
 
45
  */
46
 
47
- @define("ADSENSEM_BE_NICE", 5); //Default level, can be changed in options
48
-
49
- //Users of WPMU can define additional "Be Nice" id's which will take a equal share of
50
- //the % defined by the user. For example, if the user specifies 5% and there
51
- //are two id's defined each will get 2.5% of the niceness.
52
- //You may also want to change the text on the options pages to reflect this (line 569).
53
- //Note that Ad & Referrals have different channels
54
-
55
- //NOTE: NEW FORMAT SINCE PREVIOUS VERSION, AS REFERRALS USE DIFFERENT CHANNELS
56
- $ADSENSEM_PUBLISHER['3287067876809234']['ad']='7935832546';
57
- $ADSENSEM_PUBLISHER['3287067876809234']['referral']='2726944614';
58
- //$ADSENSEM_PUBLISHER['adsense-id']='channel-id';
59
-
60
  /* Copyright 2006 MARTIN FITZPATRICK (email : martin.fitzpatrick@gmail.com)
61
 
62
  This program is free software; you can redistribute it and/or modify
@@ -198,34 +185,9 @@ class adsensem {
198
  } else {
199
 
200
  if($ad['product']=='code'){
201
-
202
  $code.=$ad['code'];
203
-
204
- /* Be-Nice replace in the code - only do for code for speed */
205
- if($this->benice){
206
-
207
- $code=preg_replace('/google_ad_client = "(.*)"/','google_ad_client = "pub-' . $bn_publisher . '"',$code);
208
-
209
- if(strstr($code,'google_ad_channel')!==false){
210
- /* Replace Channel if it already exists */
211
- $code=preg_replace('/google_ad_channel = "(.*)"/','google_ad_channel = "' . $bn_channel . '"',$code);
212
- } else {
213
- /* Insert the Channel if not defined in code */
214
- $code=preg_replace('/(.*)google_ad_client/','google_ad_channel = "' . $bn_channel . '";' . "\ngoogle_ad_client",$code);
215
- }
216
-
217
- }
218
- /* End Be-Nice for Code */
219
-
220
  } else {
221
-
222
- /* Be Nice by replacing settings retrieved from db */
223
- if($this->benice){
224
- $options['adsense-account']=$bn_publisher;
225
- $ad['channel']=$bn_channel;
226
- }
227
- /* End Be-Nice */
228
-
229
  $code .= '<script type="text/javascript"><!--' . "\n";
230
  $code.= 'google_ad_client = "pub-' . $options['adsense-account'] . '";' . "\n";
231
 
@@ -672,14 +634,6 @@ class adsensem {
672
 
673
  <p class="submit"><input type="submit" value="Save changes &raquo;"></p>
674
  </div>
675
- <div id="message" class="updated">
676
- <p style="text-align:justify;">
677
- <?php if($options['be-nice'] == 0){?>Please <a href="http://www.mutube.com/about/be-nice">Be Nice</a> and donate more than
678
- <?php } else { ?> Thankyou for <a href="http://www.mutube.com/about/be-nice">Being Nice</a> and continuing to donate <?php } ?>
679
- <input style="border:none;text-align:right;<?php if($options['be-nice']==0){ echo 'color:red;'; } ?>" name="adsensem-be-nice" value="<?php echo htmlspecialchars($options['be-nice'], ENT_QUOTES);?>" size="1">% of your Ad space to support development of this plugin.
680
- <?php if($options['be-nice'] == 0){?> It didn't write itself.<?php } ?>
681
- </p>
682
- </div>
683
  <input type="hidden" id="adsensem-submit" name="adsensem-submit" value="1" />
684
  </form>
685
 
@@ -1192,8 +1146,6 @@ Ads can be inserted into <strong>posts / pages</strong> using <code>&lt;!--adsen
1192
  update_option('plugin_adsensem', $options);
1193
  }
1194
 
1195
- $this->benice = (rand(1,100)<=$options['be-nice']);
1196
-
1197
  add_action('admin_menu', array(&$this,'admin_add_pages'));
1198
  add_filter('the_content', array(&$this,'filter_ads'));
1199
 
4
  PLugin URI: http://www.mutube.com/projects/wordpress/adsense-manager/
5
  Description: Control and arrange your AdSense & Referral blocks on your Wordpress blog. With Widget and inline post support, configurable colours.
6
  Author: Martin Fitzpatrick
7
+ Version: 2.2
8
  Author URI: http://www.mutube.com/
9
  */
10
 
17
 
18
  */
19
 
20
+ @define("ADSENSEM_VERSION", "2.2");
21
  @define('ADSENSEM_DIRPATH','/wp-content/plugins' . strrchr(dirname(__FILE__),'/') . "/");
22
 
23
  /*
44
 
45
  */
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  /* Copyright 2006 MARTIN FITZPATRICK (email : martin.fitzpatrick@gmail.com)
48
 
49
  This program is free software; you can redistribute it and/or modify
185
  } else {
186
 
187
  if($ad['product']=='code'){
 
188
  $code.=$ad['code'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  } else {
190
+
 
 
 
 
 
 
 
191
  $code .= '<script type="text/javascript"><!--' . "\n";
192
  $code.= 'google_ad_client = "pub-' . $options['adsense-account'] . '";' . "\n";
193
 
634
 
635
  <p class="submit"><input type="submit" value="Save changes &raquo;"></p>
636
  </div>
 
 
 
 
 
 
 
 
637
  <input type="hidden" id="adsensem-submit" name="adsensem-submit" value="1" />
638
  </form>
639
 
1146
  update_option('plugin_adsensem', $options);
1147
  }
1148
 
 
 
1149
  add_action('admin_menu', array(&$this,'admin_add_pages'));
1150
  add_filter('the_content', array(&$this,'filter_ads'));
1151
 
readme.txt CHANGED
@@ -4,42 +4,50 @@ Donate link: http://www.mutube.com/about/be-nice/
4
  Tags: adsense, ads, manage, widget, google
5
  Requires at least: 2.0.2
6
  Tested up to: 2.2
7
- Stable tag: 2.1
8
 
9
- AdSense Manager is a new Wordpress plugin for managing AdSense ads on your blog. Generates code automatically and allows positioning with Widgets. Now supports Referral ads.
10
 
11
  == Description ==
12
 
13
- Adsense Manager is a new Wordpress plugin to help manage Adsense ads on your blog. While other plugins require you to copy and paste code from the Google Adsense site, Adsense Manager generates the code automatically for you.
14
 
15
- You can modify Ads right from your Wordpress admin panel - change colours, type and size of ads with a push of a button. On Wordpress Widgets enabled blogs you can also drag the Ads around your Sidebar to position them as you like.
16
 
17
- Version 2.0 now supports:
18
  * Referral Ads (Text & Image)
19
  * Direct Code Ads (allows for non AdSense ad positioning)
20
  * Code Converter (import Google generated Ads to configurable Ad units)
21
  * Sidebar Modules (as used in the popular K2 theme)
22
- * [New extended instructions available.](http://www.mutube.com/projects/wordpress/adsense-manager/instructions)
23
 
24
- Updated to work with new Wordpress 2.2 Widgets. This may break Sidebar Module support, let me know how you get on with it. They seem pretty incompatible now Widgets are built in.
25
 
26
- == Installation ==
27
-
28
- 1. Unzip the downloaded package and upload the Adsense Manager folder into your Wordpress plugins folder
29
- 1. Log into your WordPress admin panel
30
- 1. Go to Plugins and “Activate” the plugin
31
- 1. “Adsense Manager” will now be displayed in your Options section and “Ads” appears under Manage.
32
- 1. Set your AdSense Account ID under Options &raquo; AdSense
33
- 1. Create and modify your Ad blocks under Manage &raquo; Ads
34
- 1. [Complete usage instructions are available here.](http://www.mutube.com/projects/wordpress/adsense-manager/instructions)
35
 
36
  == Frequently Asked Questions ==
37
 
38
- = Where can I get more information? =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
- [Complete usage instructions are available here.](http://www.mutube.com/projects/wordpress/adsense-manager/instructions)
41
 
42
- == Screenshots ==
43
 
44
- 1. Setting up default Ads settings
45
- 2. The Ad management panel
4
  Tags: adsense, ads, manage, widget, google
5
  Requires at least: 2.0.2
6
  Tested up to: 2.2
7
+ Stable tag: 2.2
8
 
9
+ AdSense Manager was a new Wordpress plugin for managing AdSense ads on your blog. It generated code automatically and allowed positioning with Widgets. It previously had a Be Nice feature to support development but that has been deemed in violation of unspecified Google T&Cs. As a result I now have a lifetime ban from AdSense, meaning I can no longer develop this plugin.
10
 
11
  == Description ==
12
 
13
+ AdSense Manager was a new Wordpress plugin for managing AdSense ads on your blog. It generated code automatically and allowed positioning with Widgets. It previously had a Be Nice feature to support development but that has been deemed in violation of unspecified Google T&Cs. As a result I now have a lifetime ban from AdSense, meaning I can no longer develop this plugin.
14
 
15
+ Despite specifically requesting clarification with regard to this plugin so I could code around the violation, none was forthcoming. I have assumed the ban was in relation to the Be Nice feature of AdSense Manager and removed that from the latest version.
16
 
17
+ Version 2.2 supports:
18
  * Referral Ads (Text & Image)
19
  * Direct Code Ads (allows for non AdSense ad positioning)
20
  * Code Converter (import Google generated Ads to configurable Ad units)
21
  * Sidebar Modules (as used in the popular K2 theme)
 
22
 
23
+ Unfortunately without feedback from Google I am not able to confirm that AdSense Manager itself is not in violation of the T&Cs. The ban also prevents me from discussing this with Google at all. If any users are able to get clarification on this it would be much appreciated. For more information and to contact Google see the FAQ links.
24
 
25
+ Thanks for your support which made this plugin a success. For a while.
 
 
 
 
 
 
 
 
26
 
27
  == Frequently Asked Questions ==
28
 
29
+ = Why have you been banned? =
30
+
31
+ I wish I knew. Unfortunately while Google will inform you that you have violated their T&Cs they refuse to provide information on what the violation actually is. While the ability to appeal is provided, this is worthless without knowledge of what charge is being appealed. A discussion on the WordPress forum gave a few pointers, but nothing concrete.
32
+
33
+ = What can I do? =
34
+
35
+ [Contact Google](http://www.google.com/support/adsense/bin/request.py) to show your support and get clarification on the validity of the AdSense Manager plugin. If you get an answer let me know.
36
+
37
+ = I have used AdSense Manager, will be account be banned? =
38
+
39
+ I hope not and I doubt it. I specifically asked this question in my [appeal notice](http://www.mutube.com/projects/wordpress/adsense-manager/banned#appeal-notice) but this was ignored by Google.
40
+
41
+ = What happened to my Be Nice donations? =
42
+
43
+ Google initiated this ban 2 days before I was due my first payout. While it is not possible to know what proportion of revenue was valid, at the time of suspension my account balance stood at approximately $200. All of this has now been returned to advertisers.
44
+
45
+ For the same period my hosting charges on my account for excess bandwidth charges have left me about $50 out of pocket.
46
+
47
+ = What will happen to your other plugins? =
48
 
49
+ Without the income being generated I can't justify the cost of hosting plugins on my own server. All other plugins will be moved to the Wordpress Extend site. Unfortunately this also means I will not able to provide the level of support provided up to now. I will provide additional FAQs to try and compensate for this.
50
 
51
+ = Anything else? =
52
 
53
+ Thankyour for your support during development. At it's peak AdSense Manager has received 10,000 downloads and is currently the 9th most popular Wordpress plugin. I guess we're ending on a high.