તમે તમારો જાહેરાત યુનિટનો કોડ મેળવો અને કૉપિ કરો તે પછી, તમારે તેને તમારા પેજના <body>
અને </body>
ટૅગની વચ્ચે પેસ્ટ કરવો જરૂરી છે. જો તમે જાહેરાતના કોડને <body>
ટૅગની બહાર પેસ્ટ કરશો, તો તે તમારી જાહેરાતોને યોગ્ય રીતે પ્રદર્શિત થતાં અટકાવશે.
જાહેરાત યુનિટના કોડ પહેલાં ઉદાહરણ માટેનું HTML પેજ ઉમેરવામાં આવ્યું છે
<head>
આ તમારા પેજનો શીર્ષ ભાગ છે.
<title>Example HTML page</title>
</head>
<body>
આ તમારા પેજનો મુખ્ય ભાગ છે.
</body>
</html>
મુખ્ય ભાગમાં ઉમેરવામાં આવેલા જાહેરાત યુનિટના કોડવાળું ઉદાહરણનું HTML પેજ
<head>
આ તમારા પેજનો ઉપરનો ભાગ છે
<title>ઉદાહરણ માટેનું HTML પેજ</title>
</head>
<body>
આ તમારા પેજનો મુખ્ય ભાગ છે.
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1234567890123456" crossorigin="anonymous"></script>
<!-- Homepage Leaderboard -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-1234567890123456"
data-ad-slot="1234567890"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</body>
</html>
HTMLનો ઉપયોગ કરીને જાહેરાતોને તમારી સાઇટ પર મૂકવી
તમારી સાઇટના અન્ય ઘટકો (છબીઓ, ફકરા વગેરે)ની જેમ જ તમે HTML ટૅગ (<div>
, <table>
વગેરે)નો ઉપયોગ કરીને તમારી Google જાહેરાતોનું સ્થાન બદલી શકો છો. ઉદાહરણ તરીકે, જો તમે તમારા જાહેરાત કોડને HTML ટૅગ <div align="center">
અને </div>
ની વચ્ચે મૂકો, તો તમારી જાહેરાતો તમારા પેજની કેન્દ્રમાં દેખાશે.
<head>
આ તમારા પેજનો ઉપરનો ભાગ છે
<title>ઉદાહરણ માટેનું HTML પેજ</title>
</head>
<body>
આ તમારા પેજનો મુખ્ય ભાગ છે.
<div align="center">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1234567890123456" crossorigin="anonymous"></script>
<!-- Homepage Leaderboard -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-1234567890123456"
data-ad-slot="1234567890"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</body>
</html>