您的网站尚未准备好显示广告错误

我使用的是 Communiteq(原 DiscourseHosting)及其 AdSense 插件——虽然不确定这个信息是否相关,但我还是提一下。

总之,我已在插件设置中添加了必要的发布商 ID 和广告位单元 ID 等信息,并在 AdSense 的“网站”设置中添加了我的网站和子域名。然而,我收到了以下错误,请见附图:

我是否需要将我的网站添加到 AdSense?如果是,我是否需要将他们的代码片段复制并粘贴到某个位置?请帮忙澄清一下。谢谢。

To add it to the head section, you can create a theme component. Note that the plugin is already going to load the adsbygoogle.js library for you, so once your site is verified by AdSense, you should remove this theme component!

Go to Admin > Customize > Themes > Components and click “Install”. Give it a name like “verify AdSense”.

Then click “Edit CSS/HTML”. In the Common > </head> section, paste the code that AdSense wants to see.

Click Save at the bottom.

Then go to your default theme and add the component.

Now AdSense should be able to find what it wants to see (within 48 hours according to their docs).

Once it shows your site as ready, remove the theme component and fill the plugin’s settings with your publisher ID, ad unit IDs, etc.

Thank you for your clear explanation.

I did this as you said. One concern: I have not placed it anywhere in my top-level domain — only in my subdomain. I had added that subdomain to Sites settings prior to this. It will still scan and accept that, right?

I don’t know what AdSense’s rules are about that.

Thank you again for your help.

To summarize, I inserted that theme component, and Google came back saying “Ready” and units finally appeared and it seems functional. Then, I have deleted that theme component leaving only my plugin settings in place.

However, Google did say it experienced an error crawling /new/ even though ads appear there…

Do I need to do any further configuration?

The “/new” route is only valid when logged in, so I guess you’re supposed to follow these instructions:

https://support.google.com/adsense/answer/161351?hl=en

Not sure that will actually help since the crawler user won’t see the same topic list as the current user. I wouldn’t worry about that particular page.