【发布时间】:2019-05-01 09:15:19
【问题描述】:
我希望获得有关如何在我的网站的 html 上添加谷歌广告的指南,但我尝试过它们没有显示。这是我到目前为止所尝试的。我预计会有广告,但什么都没有显示。
我的代码
<!DOCTYPE html>
<html>
<head>
<title>WEB DEVELOPMENT TUTORIAL</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<header>
<div class="main">
<div class="logo">
<img src="logo.jpg">
</div>
<ul>
<li class="active"><a href="#">Home</a></li>
<li><a href="dailyposted.php">DAILY BETTING TIPS</a></li>
<li><a href="megaposted.php">MEGAJACKPOT PREDICTIONS</a></li>
<li><a href="midweekposted.php">MIDWEEKJACKPOT PREDICTIONS</a></li>
<li><a href="https://www.goal.com">TRANSFER NEWS</a></li>
</ul>
</div>
<div class="title">
<h1>SURE DAILY BETTING TIPS</h1>
</div>
<div class="button">
<a href="#" class="btn">WATCH VIDEO</a>
<a href="#" class="btn">LEARN MORE</a>
</div>
//I tried to add google auto ads here. The website shows nothing even after 4 hours. please help. Is there any test ads for website please also
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-2870870041610409",
enable_page_level_ads: true
});
</script>
</header>
</body>
</html>
【问题讨论】:
标签: html google-ads-api