缩短发出首个广告请求时的延迟时间(从代码加载开始)
概览
发出首个广告请求所用的时间。这是指从代码开始加载到发出首个广告请求的时间间隔。
建议
此指标不代表具体问题。它应该用于帮助找出有待改进的领域并跟踪一段时间内的改进。
我们的目标是缩短第一个广告请求的发送时间。确保通过其他更具体的审核应该能对此指标产生重大影响。具体而言,以下审核可能会影响此用时:
该指标将“第一个广告请求”标识为记录到以下各项中的时间最早的请求:
媒体库 |
主机 |
路径 |
AdSense |
googleads.g.doubleclick.net |
/pagead/ads |
Google 发布商代码 |
securepubads.g.doubleclick.net |
/gampad/ads |
避免常见的 GPT 实现错误
遵循代码最佳做法,以尽可能缩短网页延迟时间
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-26。
[null,null,["最后更新时间 (UTC):2024-06-26。"],[[["This metric measures the time it takes for the first ad request to be made after the tag loads."],["Reducing this time improves ad performance, and can be achieved by addressing related audits like ad request waterfall and avoiding bottleneck requests."],["The first ad request is identified by requests made to specific hosts and paths associated with AdSense or Google Publisher Tag."],["While not indicative of a specific problem, it's a useful metric to track and improve to optimize ad loading times."]]],["The \"first ad request\" metric measures the time from tag load to the initial ad request. Reducing this time is the primary goal, and it is achievable by improving related audits. Key actions include optimizing the ad request waterfall, avoiding bottleneck requests, preventing long tasks that block ad requests, not waiting on load events, loading GPT and bids in parallel, and parallelizing bid requests. The first ad request is the earliest recorded request to specific hosts and paths for AdSense and Google Publisher Tag libraries.\n"]]