pabsttheater / pabstetix

Issue Tracking for pabsttheater.org
0 stars 0 forks source link

Google AdManager Ads are not placing consistently #51

Closed sarandi closed 5 years ago

sarandi commented 5 years ago

Originally documented by @sarandi in email subject Site Bugs on 20190904 at 12:50CDT

Updated slightly below:

We have many ads on our site, for both desktop and mobile. Some are using client-provided code, and others are code that we manage, but they are all placed using Google Ad Manager. These aren't placing consistently/reliably.

This is difficult to reproduce - my best success was simply reloading pages with 10+ seconds in between loads. This is mostly affecting the large homepage ad (300wx600h) in the sidebar, but possibly affecting other locations. I did a little debugging and noted that when the ad doesn't deliver, it's likely because the google scripts upon which the ad placements rely haven't loaded correctly:

image

I'm guessing this is a result of the lazy load and/or possibly the image optimization. We're hoping this can be fixed without removing the optimizations, but we'd rather have a quick fix in place sooner, so if it's possible to just remove those images/elements from being lazy-loaded/optimized, we would like to start there. This was tested on Chrome on both on desktop (macOS) and mobile (iOS and Android), and Safari on desktop and iOS. As always, please let me know if you have questions.


20190909 Update:

Priority is disabling the lazy load / image optimization features on any/all ad placements on the site. These are all placed through Google Ad Manager (GAM), which uses the javascript googletag object, as shown in the initial email documented above.

It's unclear what is causing the googletag source to not be loaded - we would like to eliminate GAM as the cause of this so we can (all) debug with more confidence - and so that the ads (hopefully) start placing reliably again.

sarandi commented 5 years ago

Updated header and ad code, seems to have fixed the issue.