You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何禁用Google Adsense可编程搜索引擎的移动端底部锚定广告?

禁用Adsense搜索页面iOS Chrome底部锚定广告的方法
  • 调整搜索代码参数:在嵌入的Google可编程搜索代码里,添加data-disableAutoCompete="true"和data-enableSearchSuggestions="false"参数,阻止自动补全和搜索建议触发的广告。示例代码:

    <script async src="https://cse.google.com/cse.js?cx=你的搜索ID"></script>
    <div class="gcse-search" data-disableAutoCompete="true" data-enableSearchSuggestions="false"></div>
    
  • 检查Adsense自定义搜索广告设置:登录Adsense后台,进入「广告」>「自定义搜索广告」,找到对应搜索引擎的配置,关闭移动设备底部相关的广告开关。

  • 用CSS强制隐藏:如果前两种方法没用,通过iOS Chrome的开发者工具定位广告元素的类名/ID,添加针对性CSS规则强制隐藏:

    @media only screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
      /* 替换成你实际找到的广告元素选择器 */
      .gsc-adBottom, div[class*="anchor-ad"] {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
      }
    }
    
  • 向Google官方反馈:如果以上都无效,在Programmable Search控制面板的「帮助与反馈」里提交问题,附上截图和设备信息,让官方排查处理。

内容的提问来源于stack exchange,提问作者Wouter

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.29 18:03:00