barkleighpantz
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Adsense in article ads not showing upOk, thanks for your help.
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Adsense in article ads not showing upSo I switched from displaying errors to logging errors and found this one in the log.
PHP Notice: Trying to get property ‘ID’ of non-object in **/wp-content/plugins/advanced-ads/classes/display-conditions.php on line 924Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Adsense in article ads not showing upYes, I don’t see google auto ads adding in-article ads to my posts.
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Adsense in article ads not showing upI checked those and they seem to be fine. It probably is adsene not recognizing the content section being nested in multiple containers. Your plugin works great on my other newer sites. I think I just gotta rework the content structure to be more recognizable by google.
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Adsense in article ads not showing upOk done
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, true);
@ini_set(‘display_errors’, E_ALL);Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Adsense in article ads not showing upThere is not that I can see. The ads after the content are still showing up as well. My ad unit code is just this below since I already have the auto ads script in the head.
<!– SideBar –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-5346705222001552″
data-ad-slot=”3329434227″
data-ad-format=”auto”
data-full-width-responsive=”true”>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Adsense in article ads not showing upThe ad unit shortcode works in the article
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Adsense in article ads not showing upThat initially caused an error Only one ‘enable_page_level_as’, so I deleted the <head> placement then manually placed the shortcode in the article after the fourth paragraph. It added these scripts with no ads.
<script async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: “ca-pub-5346705222001552”,
enable_page_level_ads: true
});
</script><br style=”clear: both; display: block; float: none;”/>Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Adsense in article ads not showing upOk, I enabled that option and cleared all cache and see what happens over the next few days. Also is style=”height: auto !important;” injected by advanced ads or the adsense code?
Thanks