環境:
Google blogger + adsense
異常狀況:
多年前我的 blogger有申請adsense,想賺點廣告費,一開始的確也有看到有廣告收到,但大概在兩三年前,發現收入一直沒增加,點開網站才發現通通都沒廣告了。
但在adsense上的設定都沒去調整,狀態都是正常的,也設定了自動廣告,版面上也有設定廣告的視窗。
但就是沒廣告。
解決過程:
之前上網查都沒什麼有用的解決。
後來gemini出現了,就想說問它看看,結果gemini說要在主題裡,用html編輯,插入一段語法,結果插入存檔後。
直接重新開啟網頁,裡面廣告馬上就出現了,太神奇了。
gemini的說明如下:
檢查自動化廣告的程式碼(重要!)
在 Blogger 後台,進入 「主題」(Theme) 或 「範本」 設定。
點擊 「編輯 HTML」(Edit HTML)。
請檢查在 HTML 程式碼中,
<head>標籤之後,是否存在以下格式的 AdSense 程式碼片段:HTML<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-您的發布商 ID" crossorigin="anonymous"></script>(
ca-pub-您的發布商 ID應替換為您自己的 ID)如果找不到這段程式碼, 這就是問題所在。您需要從 AdSense 後台重新取得**「自動化廣告」**的程式碼,並將其貼到 Blogger 的
<head>區塊內。
Environment:
Google Blogger + AdSense
Issue:
Many years ago, I applied for AdSense on my Blogger site to earn some ad revenue. At first, I did see ads and some earnings coming in. However, around two or three years ago, I noticed that my revenue had stopped increasing. When I opened the site, I realized that all the ads had disappeared.
I hadn’t changed any settings in AdSense; everything still showed as normal. Auto ads were enabled, and ad slots were configured on the layout.
But no ads were showing.
Troubleshooting Process:
I previously searched online but couldn’t find any helpful solutions.
Later, when Gemini came out, I decided to ask it. Gemini suggested editing the theme’s HTML and inserting a specific code snippet. After inserting the code and saving the changes…
I refreshed the site, and the ads appeared immediately. It was amazing.
In the Blogger dashboard, go to “Theme” and click “Edit HTML.”
Check whether the following AdSense code snippet exists right after the <head> tag:
(ca-pub-YourPublisherID should be replaced with your own publisher ID.)
If this code is missing, this is the root cause.
You need to go to the AdSense dashboard, retrieve the Auto Ads code again, and paste it into the <head> section of your Blogger theme.
沒有留言:
張貼留言