AdSense Plugin WP QUADS - Version 1.7.1

Version Description

  • Fix: adsense ads are not shown after activation of vi because of incomplete ads.txt
Download this release

Release Info

Developer ReneHermi
Plugin Icon 128x128 AdSense Plugin WP QUADS
Version 1.7.1
Comparing to
See all releases

Code changes from version 1.7.0 to 1.7.1

includes/admin/admin-notices.php CHANGED
@@ -472,13 +472,13 @@ __('This update features vi stories from <strong>video intelligence</strong>. Th
472
  content and video advertising.<br>
473
  To begin earning, visit the WP QUADS plugin page, <a href="%1$s" target="_blank" class="quads-vi-welcome-black" style="text-decoration: none;border-bottom:3px solid yellow;font-weight: bold;color:white;">sign up</a> to vi stories and <a href="%2$s" class="quads-vi-welcome-black" style="text-decoration: none;border-bottom:3px solid yellow;font-weight: bold;color:white;">place the ad live now!</a> Read the <a href="%3$s" target="_blank">FAQ</a>.
474
  <p style="font-size:10px;">By clicking <strong>sign up</strong> you agree to send your current domain, email and affiliate ID to video intelligence & WP QUADS</p>', 'quick-adsense-reloaded'),
475
- 'https://www.vi.ai/publisher-registration/?aid=WP_Quads&domain='.$domain.'&email='.$mail.'&utm_source=Wordpress&utm_medium=wp%20quads&utm_campaign=white',
476
  admin_url() . 'admin.php?page=quads-settings#quads_settingsvi_header',
477
- 'https://www.vi.ai/publisherfaq/?aid=WP_Quads&utm_source=Wordpress&utm_medium=wp%20quads&utm_campaign=white'
478
  )
479
  . '</p></main>
480
- <!--<aside class="quads-banner-sidebar-first"><p><a href="https://www.vi.ai/?utm_source=Wordpress&utm_medium=wp%20quads&utm_campaign=white"><img src="' . QUADS_PLUGIN_URL . 'assets/images/vi_quads_logo.png" width="168" height="72"></a></p></aside>//-->
481
- <aside class="quads-banner-sidebar-second"><p style="text-align:center;"><a href="https://www.vi.ai/?aid=WP_Quads&utm_source=Wordpress&utm_medium=wp%20quads&utm_campaign=white"><img src="' . QUADS_PLUGIN_URL . 'assets/images/vi-logo-black.png" width="168" height="72"></a></p></aside>
482
  </div>
483
  <aside class="quads-banner-close"><div style="margin-top:5px;"><a href="'.admin_url().'admin.php?page=quads-settings&quads-action=close_vi_welcome_notice" class="quads-notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a></div></aside>
484
  </section>
472
  content and video advertising.<br>
473
  To begin earning, visit the WP QUADS plugin page, <a href="%1$s" target="_blank" class="quads-vi-welcome-black" style="text-decoration: none;border-bottom:3px solid yellow;font-weight: bold;color:white;">sign up</a> to vi stories and <a href="%2$s" class="quads-vi-welcome-black" style="text-decoration: none;border-bottom:3px solid yellow;font-weight: bold;color:white;">place the ad live now!</a> Read the <a href="%3$s" target="_blank">FAQ</a>.
474
  <p style="font-size:10px;">By clicking <strong>sign up</strong> you agree to send your current domain, email and affiliate ID to video intelligence & WP QUADS</p>', 'quick-adsense-reloaded'),
475
+ 'https://www.vi.ai/publisher-registration/?aid=WP_Quads&domain='.$domain.'&email='.$mail.'&utm_source=Wordpress&utm_medium=wp%20quads&utm_campaign=black',
476
  admin_url() . 'admin.php?page=quads-settings#quads_settingsvi_header',
477
+ 'https://www.vi.ai/publisherfaq/?aid=WP_Quads&utm_source=Wordpress&utm_medium=wp%20quads&utm_campaign=black'
478
  )
479
  . '</p></main>
480
+ <!--<aside class="quads-banner-sidebar-first"><p><a href="https://www.vi.ai/?utm_source=Wordpress&utm_medium=wp%20quads&utm_campaign=black"><img src="' . QUADS_PLUGIN_URL . 'assets/images/vi_quads_logo.png" width="168" height="72"></a></p></aside>//-->
481
+ <aside class="quads-banner-sidebar-second"><p style="text-align:center;"><a href="https://www.vi.ai/?aid=WP_Quads&utm_source=Wordpress&utm_medium=wp%20quads&utm_campaign=black"><img src="' . QUADS_PLUGIN_URL . 'assets/images/vi-logo-black.png" width="168" height="72"></a></p></aside>
482
  </div>
483
  <aside class="quads-banner-close"><div style="margin-top:5px;"><a href="'.admin_url().'admin.php?page=quads-settings&quads-action=close_vi_welcome_notice" class="quads-notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a></div></aside>
484
  </section>
includes/admin/settings/register-settings.php CHANGED
@@ -2197,6 +2197,9 @@ function quads_adsense_code_callback( $args ) {
2197
  return true;
2198
  }
2199
  }
 
 
 
2200
 
2201
  $data = !empty($quads->vi->getSettings()->data) ? (array) $quads->vi->getSettings()->data : array();
2202
 
2197
  return true;
2198
  }
2199
  }
2200
+
2201
+ $ad = new wpquads\adsense($quads_options);
2202
+ echo $ad->getPublisherID();
2203
 
2204
  $data = !empty($quads->vi->getSettings()->data) ? (array) $quads->vi->getSettings()->data : array();
2205
 
includes/vendor/google/adsense.php CHANGED
@@ -33,8 +33,8 @@ class adsense {
33
  public function getPublisherID() {
34
  // loop through all adsense g_data_ad_client fields and check if there is any adsense publisher id
35
  foreach ($this->settings['ads'] as $key => $value) {
36
- if (!empty($this->settings['ads'][$key]['g_data_ad_client'])){
37
- return $this->settings['ads'][$key]['g_data_ad_client'];
38
  }
39
  }
40
 
33
  public function getPublisherID() {
34
  // loop through all adsense g_data_ad_client fields and check if there is any adsense publisher id
35
  foreach ($this->settings['ads'] as $key => $value) {
36
+ if (!empty($value['g_data_ad_client'])){
37
+ return $value['g_data_ad_client'];
38
  }
39
  }
40
 
quick-adsense-reloaded.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Insert Google AdSense and other ad formats fully automatic into your website
7
  * Author: Rene Hermenau, WP-Staging
8
  * Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
9
- * Version: 1.7.0
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
@@ -35,7 +35,7 @@ if( !defined( 'ABSPATH' ) )
35
 
36
  // Plugin version
37
  if( !defined( 'QUADS_VERSION' ) ) {
38
- define( 'QUADS_VERSION', '1.7.0' );
39
  }
40
 
41
  // Plugin name
6
  * Description: Insert Google AdSense and other ad formats fully automatic into your website
7
  * Author: Rene Hermenau, WP-Staging
8
  * Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
9
+ * Version: 1.7.1
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
35
 
36
  // Plugin version
37
  if( !defined( 'QUADS_VERSION' ) ) {
38
+ define( 'QUADS_VERSION', '1.7.1' );
39
  }
40
 
41
  // Plugin name
readme.txt CHANGED
@@ -9,7 +9,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: adsense, ads, ad, google adsense, advertising, amp, ad injection, ad inserter, ad manager
10
  Requires at least: 3.6+
11
  Tested up to: 4.9
12
- Stable tag: 1.7.0
13
 
14
  Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
15
 
@@ -129,6 +129,9 @@ Alternative Installation:
129
 
130
  == Changelog ==
131
 
 
 
 
132
  = 1.7.0 =
133
  * New: VI Integration
134
  * New: Compatible up to WP 4.9
@@ -207,5 +210,5 @@ Complete changelog: https://wpquads.com/changelog
207
 
208
  == Upgrade Notice ==
209
 
210
- = 1.5.3 =
211
- 1.4.3 This new version brings a ton of improvements and small fixes - WP QUADS<a href="https://wordpress.org/plugins/quick-adsense-reloaded/changelog/" style="color:white;text-decoration: underline;">Complete changelog! </a>
9
  Tags: adsense, ads, ad, google adsense, advertising, amp, ad injection, ad inserter, ad manager
10
  Requires at least: 3.6+
11
  Tested up to: 4.9
12
+ Stable tag: 1.7.1
13
 
14
  Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
15
 
129
 
130
  == Changelog ==
131
 
132
+ = 1.7.1 =
133
+ * Fix: adsense ads are not shown after activation of vi because of incomplete ads.txt
134
+
135
  = 1.7.0 =
136
  * New: VI Integration
137
  * New: Compatible up to WP 4.9
210
 
211
  == Upgrade Notice ==
212
 
213
+ = 1.7.1 =
214
+ 1.7.1 New: Implementation of video ads by the SSP vi - video intelligence.