Twitter bootstrap 谷歌广告可以放在旋转木马里吗?

Twitter bootstrap 谷歌广告可以放在旋转木马里吗?,twitter-bootstrap,ruby-on-rails-4,adsense,Twitter Bootstrap,Ruby On Rails 4,Adsense,我目前正在尝试使用引导转盘将2个谷歌广告添加到Rails项目中。第一个广告显示良好,但第二个广告未显示在旋转木马中 我已经测试过,当广告堆叠在一起时,效果很好。我还测试了旋转木马是否工作正常,是否输出简单文本 我认为第二个广告不会出现,因为它呈现在与第一个广告相同的位置,对吗 HTML <div id="carousel-signup" class="carousel slide" data-interval="false"> <!-- Indicators -->

我目前正在尝试使用引导转盘将2个谷歌广告添加到Rails项目中。第一个广告显示良好,但第二个广告未显示在旋转木马中

我已经测试过,当广告堆叠在一起时,效果很好。我还测试了旋转木马是否工作正常,是否输出简单文本

我认为第二个广告不会出现,因为它呈现在与第一个广告相同的位置,对吗

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
  • 2
  • 3
  • 4
  • 5
  • 6
  • 名字: 继续 (adsbygoogle=window.adsbygoogle | |[]).push({}); 姓氏: 继续 (adsbygoogle=window.adsbygoogle | |[]).push({}); 街道地址: 继续 Zipcode: 继续 电邮: 继续 电话:

    *通过填写并提交此表格,我同意通过提供的有关职位空缺的电子邮件和电话号码(包括我的无线电话)与我联系。我知道这些电话可能使用自动拨号器生成,也可能包含预先录制的信息。若要在未提供同意的情况下接收此信息。单击GET STARTED&;申请时,我证明我是年满18岁的美国居民,我同意和。

    开始&;申请
    谷歌的Adsense服务条款不允许这样做


    他们的政策允许这样做吗?我已经证实这是不可能的,而且很可能违反了政策。我可能想把这个作为一个答案,因为我相信你不是唯一一个被认为尝试这样做的人。问题实际上是在包含“item”类的第一个div中调用的“active”类。将“active”类移动到第二个carousel项目可以呈现广告,但这并不能解决问题,因为一次只能查看一个广告。在carousel之外的页面上还有其他广告吗?无论如何,你可能遇到了一些限制:每页超过3个广告块,每页超过一个“大”广告单元,以及“将广告代码嵌入过多的div标签或嵌套框架中”。