【发布时间】:2015-07-30 11:04:01
【问题描述】:
将我的 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 的批准有任何建议吗?
谢谢!
【问题讨论】:
标签: ruby-on-rails ads adsense