I’ve never had a problem in the past getting my sites approved for Adsense however with this theme I am.
Here is the Adsense message:
Valuable inventory: Under construction
As stated in our Program policies, we may not show Google ads on pages or apps where content is unnecessarily difficult or frustrating to navigate or interact with. This includes pages or apps that are under construction, not functioning, or lead to error messages.
So I checked my site anfinson.ca with the new Google Search Console URL inspection tool. It tells me my page is not mobile friendly, clickable elements are too close together and content is wider than the screen. When I look at the errors, I can see why. Some of the theme CSS files are not being loaded. My robots.txt is set to allow the crawler to read everything except my admin login page.
I’m also getting a soft 404 error on this page. http://anfinson.ca/wp-content/themes/Newspaper/
I just updated the theme to 9.5 and am running the latest version of WordPress.
Any ideas on how to fix this? Thanks!
If style sheets ‘not loading’ — that is not a theme problem but system problem.
So, good to check F12 console view for errors, to ensure content actually loading.
Also try testing with GTmetrix.com — test as single post — and see if you have any issues with your setup.
Obviously if mobile styles are not loading, then desktop version would load for mobile as the responsive CSS needs to actually be there.
Common issues are mixed content – meaning some elements load via https, some set for http; or files not actually there.
Hi simchris,
Thanks for your response. I’ve never had an SSL assigned to this domain so I don’t think mixed content would be an issue.
I fetched and rendered with Googlebot Smartphone in the old Google Search Console and it works and loads fine. Just not in the new Google Search Console. And apparently not in the eyes of Adsense.
These are the loading errors I see when using F12
Failed to load resource: the server responded with a status of 403 ()
ads:1 Failed to load resource: the server responded with a status of 403 ()
The resource http://pagead2.googlesyndication.com/pagead/js/r20190206/r20190131/show_ads_impl.js was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
ads:1 Failed to load resource: the server responded with a status of 403 ()
Funny thing is that I don’t have any ad code installed on my site. At least any that I can find!
I still don’t understand why http://anfinson.ca/wp-content/themes/Newspaper/ is creating a loading error though.
Hi,
This usually happens when the account is not yet approved and Google is not yet serving the ads – http://prntscr.com/mjzy20
– https://support.google.com/google-ads/answer/1722120
– https://support.google.com/adsense/troubleshooter/7049023
Some topics I found – https://techbegins.com/adsense-403-forbidden-error-complete-solution.html
– https://www.problogbooster.com/2015/01/adsense-403-forbidden-error-html-google-adsense-not-showing-ad-code-403-fix-solved-troubleshoot.html
This would explain the 403 errors. Somewhere you must have entered a code related to Adsense, either in the theme panel or the theme files. The theme doesn’t come with Adsense ads by default.
The mobile friendly test is somewhat inconclusive at times – http://prntscr.com/mk0272
Sometimes if the theme resources like the CSS is slow to load the result may be negative
– https://forum.tagdiv.com/topic/i-have-two-problems-in-mobile-friendly-test/
Regarding the error for the wp-content folder you could check this discussion
– https://webmasters.stackexchange.com/questions/116315/google-indexing-wordpress-wp-content-directories-and-all-internal-files
Thanks
Hi Simion,
Thanks for the reply.
That post talking about fixing the 403 error doesn’t mention anything about deleting Adsense code from your site files. Will that work?
If that will work, how do I do that? I’ve already gone through the theme panel and theme files to try and delete all of it but I can’t find anything else. Will deleting the theme clean off my server then re-uploading it work? If not, where else can I look to delete the Adsense code?
Thanks!
The theme panel settings will be saved in the database, including any code entered in the theme panel. This way they will not be lost after a theme update
– https://www.screencast.com/t/jImrjY3fNp