将我的adsense代码发布到我的Ruby on Rails应用程序后,我收到了以下消息:
内容不足:要获得AdSense批准并在您的网站上展示相关广告,您的网页需要有足够的文字供我们的专家审核,以便我们的抓取工具能够确定你的网页是关于。
该消息还包括这些建议(我认为我遇到了第一个可能的例外,那是因为它是一个应用而不是博客):
- 您的内容应包含完整的句子和段落,而不仅仅是标题。
- 确保在申请AdSense之前完全构建并启动了您的网站 - 请勿在您的网站仍处于测试版或 “正在建设中”阶段或仅包含网站模板。
- 将广告代码放在您网站的实际网页上。它不一定是主页面,而是除了。之外的空白测试页面 AdSense广告代码不会获得批准。
- 为访问者提供清晰的导航系统,以便他们轻松找到您网站的所有部分和页面。
application.html.erb
<body>
<%= render 'layouts/header' %>
<div class="jumbotron">
<p class="text-center">
<%= yield :jumbotron %> <!-- this variable should be assigned in your controller action-->
</p>
</div>
<% flash.each do |name, msg| %>
<%= content_tag(:div, msg, class: "alert alert-info") %>
<% end %>
<div class="container-fluid">
<div class="container">
<div class="col-md-9">
<%= yield %> # includes pages/home (root route)
</div>
<div class="col-md-3">
<% if current_user.present? %>
<%= render 'layouts/sidebar' %> # includes _recommendations
<% end %>
</div>
</div>
</div>
</body>
_recommendations.html.erb
<div class="recommendations-padding">
<div class="ad">
<p>This is a test to see how the ads will fit here. This is a test to see how the ads will fit here. This is a test to see how the ads will fit here. This is a test to see how the ads will fit here. This is a test to see how the ads will fit here. This is a test to see how the ads will fit here. This is a test to see how the ads will fit here. This is a test to see how the ads will fit here.</p>
</div>
<div class="ad">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Recommendation 1 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2458646218429910"
data-ad-slot="6447006986"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="ad">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Recommendation #2 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2458646218429910"
data-ad-slot="3293344589"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="ad">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Recommendation 3 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2458646218429910"
data-ad-slot="9400473387"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
home.html.erb
<% if logged_in? %>
<% if @user.habits.committed_for_today.any? %>
<div class="page-header">
<%= link_to habits_path(@habits) do %>
<h1><b>Habits</b></h1>
<% end %>
</div>
<div class="add-padding">
<%= render partial: 'habits', locals: {habits: @habits} %>
</div>
<% end %>
<% if @user.valuations.any? %>
<div class="page-header">
<%= link_to valuations_path(@valuations) do %>
<h1><b>Values</b></h1>
<% end %>
</div>
<div class="add-padding">
<%= render @valuations %>
</div>
<% end %>
<% if @user.goals.any? %>
<div class="page-header">
<%= link_to goals_path(@goals) do %>
<h1><b>Goals</b></h1>
<% end %>
</div>
<% end %>
<div class="add-padding">
<% if @user.goals.unaccomplished.any? %>
<%= render @unaccomplished_goals %>
<% end %>
<% if @user.goals.accomplished.any? %>
<div class="gold-standard">
<%= render @accomplished_goals %>
</div>
<% end %>
</div>
<% if @user.quantifieds.any? %>
<div class="page-header">
<%= link_to quantifieds_path(@quantifieds) do %>
<h1><b>Stats</b></h1>
<% end %>
</div>
<% end %>
<div class="add-padding">
<% if @user.quantifieds.averaged.any? %>
<h2><b>Averaged</b></h2>
<%= render @averaged_quantifieds %>
<% end %>
<% if @user.quantifieds.instance.any? %>
<h2><b>Instance</b></h2>
<%= render @instance_quantifieds %>
<% end %>
</div>
您对我如何获得有关 Adsense 的批准有任何建议吗?
谢谢!
答案 0 :(得分:0)
我获准通过我的博客发布谷歌广告。一旦我获得谷歌的批准,他们就会让你在你拥有的任何网站上放置广告。得分!