Hi, I need to disable ads on every post within a custom post type — is there a filter in this plugin that I can tap into for that?
I know you’re able to disable them post-by-post – but – the specific post type I am dealing with is created by a plugin and you’re not able to edit them in that way.
]]>Hey guys,
/**
* Limits usage of the Google Topics API to disallow leakage of Topics API data to other callers
*/
private function set_topics_header() {
header( 'Permissions-Policy: browsing-topics=("https://ads.adthrive.com")' );
}
This needs to be wrapped in if !headers_sent() like following:
/**
* Limits usage of the Google Topics API to disallow leakage of Topics API data to other callers
*/
private function set_topics_header() {
if ( ! headers_sent() ) {
header( 'Permissions-Policy: browsing-topics=("https://ads.adthrive.com")' );
}
}
to avoid errors in cron requests
]]>A client’s site is getting a ton of these
Failed to load resource: net::ERR_TOO_MANY_REDIRECTS
And is killing it.
]]>I’m using v2.3.1 of the plugin with v6.0.2 of WordPress. The following notice is being thrown:
Notice: Function register_rest_route was called incorrectly. The REST API route definition for adthrive-pubcid/v1/extend is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback.
]]>One of our client sites updated automatically to the new version that was just released — 2.2.0 — and it resulted in the following Syntax Error (which took the site down):
Parse error: syntax error, unexpected ')' in /srv/users/xxxxx/apps/xxxxx/public/wp-content/plugins/adthrive-ads/components/ads/class-scheduled.php on line 63
Rolling back to 2.1.1 ‘solves’ the problem.
Does anybody else have this issue?
]]>We have been using the “AdThrive Ads” on our website.
We have done some testing with our site and noticed the “AdThrive Ads” is causing the main issue for page loading speed. Our page speed score is at 18 or 19, and if we disable the plugin, we are getting an almost 80% score on the GT matrix, nearly the same in page speed insights.
As we notice, the ads script loaded by this plugin is loading other external scripts (for the ads), causing the slow DOM rendering. So can you please suggest how we can fix the page loading speed.? We hope you will release the update asap.
Looking forward to your response!!
Thank you!!
Hi guys,
I’m Bar?? from Optimocha, and I’m a speed optimization expert. (We actually spoke with Michael Bova last year about some partnership opportunity, but he never got around to make a decision I guess.) I found a way to speed up your ads’ loading process by making a small change in the JavaScript code you’re outputting via adthrive-ads/components/ads/partials/ads.php
, which helped one of our clients big time. Here’s your code:
window.adthrive = window.adthrive || {};
window.adthrive.cmd = window.adthrive.cmd || [];
window.adthrive.host = 'ads.adthrive.com';
window.adthrive.plugin = 'adthrive-ads-1.0.36';
window.adthrive.threshold = Math.floor(Math.random() * 100 + 1);
(function() {
var script = document.createElement('script');
script.async = true;
script.type = 'text/javascript';
script.src = 'https://ads.adthrive.com/sites/5458d0c6f2e448057ed3b4d2/ads.min.js?threshold=' + window.adthrive.threshold;
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(script, node);
})();
And here’s my tweaked version:
window.adthrive = window.adthrive || {};
window.adthrive.cmd = window.adthrive.cmd || [];
window.adthrive.host = 'ads.adthrive.com';
window.adthrive.plugin = 'adthrive-ads-1.0.36';
window.adthrive.threshold = Math.floor(Math.random() * 100 + 1);
function adthrive_deferred() {
var script = document.createElement('script');
script.async = true;
script.type = 'text/javascript';
script.src = 'https://ads.adthrive.com/sites/5458d0c6f2e448057ed3b4d2/ads.min.js?threshold=' + window.adthrive.threshold;
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(script, node);
}
if (window.addEventListener)
window.addEventListener('load', adthrive_deferred, false);
else if (window.attachEvent) window.attachEvent('onload', adthrive_deferred);
else window.onload = adthrive_deferred;
As you can probably understand, I’m making the ads load after the browser’s onload
event so all those ad-related assets load just a bit later than the rest of the page is loaded & mostly parsed.
I figured you might want to have this code for all your clients, so I wanted to post it. Cheers! ??
]]>Any easy way to block cookies if it’s disabled by GDPR reasons?
]]>adthrive-ads/components/ads/partials/ads.php
loads the ads.min.js
script over HTTP, which causes an insecure warning on sites with SSL. Please update the plugin to load the script over HTTPS.