{"id":891,"date":"2022-08-11T10:27:43","date_gmt":"2022-08-11T10:27:43","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2022\/08\/11\/6463126-hostinger-website-builder-how-to-connect-google-adsense\/"},"modified":"2026-03-16T12:12:07","modified_gmt":"2026-03-16T12:12:07","slug":"6463126-hostinger-website-builder-how-to-connect-google-adsense","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/6463126-hostinger-website-builder-how-to-connect-google-adsense\/","title":{"rendered":"Hostinger Website Builder: How to Connect Google AdSense"},"content":{"rendered":"<p class=\"no-margin\">If you use <b>Hostinger Website Builder<\/b> and want to connect<b> Google AdSense<\/b> to your site, you&rsquo;re at the right place! In this article, you&rsquo;ll learn about the following &#128071;  <\/p><ul>\n<li>\n<p class=\"no-margin\"><b><a href=\"#h_1a048d4835\" target=\"_blank\" class=\"intercom-content-link\">Inserting the Google AdSense Code Into Your Website<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b><a href=\"#h_a731889c5d\" target=\"_blank\" class=\"intercom-content-link\">Creating Ads<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b><a href=\"#h_739ca22333\" target=\"_blank\" class=\"intercom-content-link\">Finding the Code of Your Ads<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b><a href=\"#h_c5bbe4cd52\" target=\"_blank\" class=\"intercom-content-link\">Uploading an ads.txt File to Your Website<\/a><\/b><\/p>\n<p class=\"no-margin\">\n<\/p><\/li>\n<\/ul><h2 id=\"h_1a048d4835\">Inserting the Google AdSense Code Into Your Website<\/h2><p class=\"no-margin\">Within <b>Hostinger Website Builder<\/b>, access the <b><a href=\"\/support\/6463270-website-builder-integrations\" target=\"_blank\" class=\"intercom-content-link\">integrations settings<\/a><\/b> and find the<b> Custom code <\/b>field. Insert your <b><a href=\"https:\/\/support.google.com\/adsense\/answer\/7584263\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Google AdSense code<\/a><\/b> there:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/1fed4420-2a4b-4dc9-94a7-6cbc4e98a95e.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Save the changes and <b><a href=\"\/support\/6435697-website-builder-updating-a-website\" target=\"_blank\" class=\"intercom-content-link\">update your website<\/a><\/b>. Now, it&rsquo;s time to create ads.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_a731889c5d\">Creating Ads<\/h2><p class=\"no-margin\">You can choose from two types of ads:<\/p><div class=\"intercom-interblocks-table-container\">\n<table role=\"presentation\">\n<tbody>\n<tr>\n<td style=\"background-color: #e3e7fa80\">\n<p class=\"intercom-align-center no-margin\"><b><a href=\"https:\/\/support.google.com\/adsense\/answer\/9261805\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Auto ads<\/a><\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa80\">\n<p class=\"intercom-align-center no-margin\"><b><a href=\"https:\/\/support.google.com\/adsense\/answer\/9183549\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Ad units<\/a><\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Google itself decides which ads to show and where to show them, allowing you to focus on creating quality ad content<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">You can select from a range of ad types and ad sizes and position your ads exactly where you want them to appear on your pages<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">You control all the ads with the flick of a switch<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">It&rsquo;s up to you to ensure that your ads comply with the AdSense <b><a href=\"https:\/\/support.google.com\/adsense\/answer\/48182\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">program policies<\/a><\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Auto ads work on mobile, tablet, and desktop and provide good ad coverage on your pages<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">\n<\/p><\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Google will only show Auto ads when they&rsquo;re likely to perform well and provide a good user experience<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">\n<\/p><\/td>\n<\/tr>\n<tr>\n<td>\n<h3 id=\"h_37d18657ba\" class=\"intercom-align-center\">SETUP<\/h3>\n<p class=\"no-margin\">Before you begin, make sure that your website is listed on your <b>Ads<\/b> page: <b><a href=\"https:\/\/support.google.com\/adsense\/answer\/9130038\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Add a new site to your AdSense sites list<\/a><\/b><\/p>\n<p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Follow this guide by Google AdSense: <b><a href=\"https:\/\/support.google.com\/adsense\/answer\/9261307\/#setup_auto_ads\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">How to set up Auto ads<\/a><\/b><\/p>\n<\/td>\n<td>\n<h3 id=\"h_a957f3561c\" class=\"intercom-align-center\">SETUP<\/h3>\n<p class=\"no-margin\">Follow this guide by Google AdSense: <b><a href=\"https:\/\/support.google.com\/adsense\/answer\/9183566\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Create a display ad unit<\/a><\/b><\/p>\n<p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Copy and paste the ad unit code into your website using the <b><a href=\"\/support\/6463152-website-builder-embed-code\" target=\"_blank\" class=\"intercom-content-link\">embed code element<\/a><\/b> <\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">It takes up to an hour for the ads to appear on your website. if it takes longer, check if your website has the status<b> Ready<\/b>: <b><a href=\"https:\/\/support.google.com\/adsense\/answer\/9128461\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Check the status of AdSense sites<\/a><\/b><\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_739ca22333\">Finding the Code of Your Ads<\/h2><div class=\"intercom-interblocks-table-container\">\n<table role=\"presentation\">\n<tbody>\n<tr>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"intercom-align-center no-margin\"><b><a href=\"https:\/\/support.google.com\/adsense\/answer\/9261805\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Auto ads<\/a><\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa\">\n<p class=\"intercom-align-center no-margin\"><b><a href=\"https:\/\/support.google.com\/adsense\/answer\/9183549\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Ad units<\/a><\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Follow this guide by Google AdSense: <b><a href=\"https:\/\/support.google.com\/adsense\/answer\/9274019\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">How to get and copy the code for Auto ads<\/a><\/b><\/p>\n<p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Copy the AdSense code and paste it into the<b> <a href=\"\/support\/6445594-website-builder-adding-a-custom-code-to-the-head-part-of-a-website-s-code\" target=\"_blank\" class=\"intercom-content-link\">Custom code<\/a> <\/b>field of your website&rsquo;s integrations settings<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Follow this guide by Google AdSense: <b><a href=\"https:\/\/support.google.com\/adsense\/answer\/9274019\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">How to get and copy the code for ad units<\/a><\/b><\/p>\n<p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Copy the ad unit code and paste it into your website using the <b><a href=\"\/support\/6463152-website-builder-embed-code\" target=\"_blank\" class=\"intercom-content-link\">embed code element<\/a><\/b><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_c5bbe4cd52\">Uploading an ads.txt File to Your Website<\/h2><p class=\"no-margin\">Creating your <b><a href=\"https:\/\/support.google.com\/adsense\/answer\/7532444\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">ads.txt file<\/a><\/b> allows you to control who can sell ads on your website, and it&rsquo;s a practice highly recommended by Google.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once you create the file, open your website&rsquo;s <b><a href=\"\/support\/6463270-website-builder-integrations\" target=\"_blank\" class=\"intercom-content-link\">integrations settings<\/a><\/b> and paste the file into the <b>Google AdSense <\/b>field:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/54c3e771-4642-48f7-872d-40d9aae76f2d.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Your ads.txt file should look like this, where <b><code>pub-0000000000000000<\/code><\/b> is your <b><a href=\"https:\/\/support.google.com\/adsense\/answer\/105516\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">publisher ID<\/a><\/b>: <b><code>google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0<\/code><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Finally, save the changes and <b><a href=\"\/support\/6435697-website-builder-updating-a-website\" target=\"_blank\" class=\"intercom-content-link\">update your website<\/a><\/b>.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Both your account and your website need to be approved by AdSense before ads can start showing. The status &ldquo;Getting ready&rdquo; means that your account is still under review. Google usually takes a <b>few days<\/b> to approve it,<b> <\/b>but in some cases it can take<b> 2&ndash;4 weeks<\/b> &#128161;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to connect Google AdSense using Hostinger Website Builder<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[284],"tags":[],"class_list":["post-891","post","type-post","status-publish","format-standard","hentry","category-integrations"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/6463126-hostinger-website-builder-how-to-connect-google-adsense\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/6463126-hostinger-creador-de-sitios-web-como-conectar-google-adsense\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/6463126-hostinger-createur-de-site-web-comment-connecter-google-adsense\/","default":0},{"locale":"lt-LT","link":"https:\/\/www.hostinger.com\/lt\/support\/6463126-hostinger-svetainiu-kurimo-irankis-kaip-prijungti-google-adsense\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/6463126-hostinger-criador-de-sites-como-conectar-o-google-adsense-ao-seu-site\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=891"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/891\/revisions"}],"predecessor-version":[{"id":3632,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/891\/revisions\/3632"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}