谷歌广告可以放在旋转木马中吗?

时间:2016-02-22 20:41:01

标签: twitter-bootstrap ruby-on-rails-4 adsense

我目前正在尝试使用bootstraps轮播向Google Rails项目添加2个Google广告。第一个广告显示正常但第二个广告未显示在轮播中。

我已经测试过,当相互叠加时,广告呈现得很好。我还测试了旋转木马是否正常工作并输出简单的文本。

我是否可以假设第二个广告不会显示,因为它会在与第一个广告相同的位置呈现

HTML

<div id="carousel-signup" class="carousel slide" data-interval="false">
    <!-- Indicators -->
    <ol class="carousel-indicators carousel-indicators-numbers">
      <li data-target="#carousel-signup" data-slide-to="0" class="active">1</li>
      <li data-target="#carousel-signup" data-slide-to="1">2</li>
      <li data-target="#carousel-signup" data-slide-to="2">3</li>
      <li data-target="#carousel-signup" data-slide-to="3">4</li>
      <li data-target="#carousel-signup" data-slide-to="4">5</li>
      <li data-target="#carousel-signup" data-slide-to="5">6</li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
      <div class="item active">
        <div class="carousel-caption">
          <div class="control-label">First Name:</div>
          <div class="field-wrapper">
            <%= f.input_field :first_name, placeholder: "First name", class: "input-lg", autofocus: true, tabindex: 1 %>
            <div class="clearfix"></div>
            <a class="next btn" tabindex="2">Continue</a>
          </div>
        </div>
        <div class="adsense">
          <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
          <!-- FRT | SimplyJobs (Placement 2) -->
          <ins class="adsbygoogle"
               style="display:block"
               data-ad-client="ca-pub-123"
               data-ad-slot="123"
               data-ad-format="auto"></ins>
          <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
          </script>
        </div>
      </div>

      <div class="item">
        <div class="carousel-caption">
          <div class="control-label">Last Name:</div>
          <div class="field-wrapper">
            <%= f.input_field :last_name, placeholder: "Last name", class: "input-lg", tabindex: 3 %>
            <div class="clearfix"></div>
            <a class="next btn" tabindex="4">Continue</a>
          </div>
        </div>
        <div class="adsense">
          <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
          <!-- FRT | SimplyJobs (Placement 2) -->
          <ins class="adsbygoogle"
               style="display:block"
               data-ad-client="ca-pub-123"
               data-ad-slot="123"
               data-ad-format="auto"></ins>
          <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
          </script>
        </div>
      </div>

      <div class="item">
        <div class="carousel-caption">
          <div class="control-label">Street Address:</div>
          <div class="field-wrapper">
            <%= f.input_field :address1, placeholder: "e.g. 123 Main Street", class: "input-lg", tabindex: 5 %>
            <div class="clearfix"></div>
            <a class="next btn" tabindex="6">Continue</a>
          </div>
        </div>
      </div>

      <div class="item">
        <div class="carousel-caption">
          <div class="control-label">Zipcode:</div>
          <div class="field-wrapper">
            <%= f.input_field :postal, value: client_postal_code(resource), placeholder: "Zipcode", class: "input-lg", type: "number", tabindex: 7 %>
            <div class="clearfix"></div>
            <a class="next btn" tabindex="8">Continue</a>
          </div>
        </div>
      </div>

      <div class="item">
        <div class="carousel-caption">
          <div class="control-label">Email:</div>
          <div class="field-wrapper">
            <%= f.input_field :email, placeholder: "Email address", class: "input-lg", tabindex: 9 %>
            <div class="clearfix"></div>
            <a class="next btn" tabindex="10">Continue</a>
          </div>
        </div>
      </div>

      <div class="item">
        <div class="carousel-caption">
          <div class="control-label">Phone:</div>
          <div class="field-wrapper">
            <%= f.input_field :phone, placeholder: "Phone number", class: "input-lg", tabindex: 11 %>
            <div class="clearfix"></div>
            <p class="disclaimer">
              * By completing and submitting this form, I agree to be contacted by Simply Jobs at the email and phone (including my wireless) number provided regarding Job Openings. I understand that these calls may be generated using an autodialer and may also contain pre-recorded messages. To receive this information without providing consent, <%= link_to "skip here", "/jobs", id: "deny-consent" %>. By clicking GET STARTED &amp; APPLY, I certify that I am a U.S. Resident over the age of 18, and I agree to the <%= link_to "Privacy Policy", privacy_policy_path %> and <%= link_to "Terms & Conditions", terms_path %>.
            </p>
            <div class="clearfix"></div>
            <button class="next btn" tabindex="12">Get Started &amp; Apply</button>
          </div>
        </div>
      </div>
    </div>
  </div>

1 个答案:

答案 0 :(得分:2)

Google的Adsense服务条款不允许这样做

https://www.google.com/adsense/terms