DEV Community

dss99911
dss99911

Posted on • Originally published at dss99911.github.io

How to Integrate Auto Ads of Adsense on Jekyll

In this guide, we’ll walk through the steps to add auto ads from Adsense to your website.

Alt text{:style="width: 30%;"}

With Auto ads, the integration of Adsense becomes a breeze. There's no need to manually add ads to each page. Instead, Adsense automatically places ads in optimal locations across your site. This not only saves time but also enhances the user experience by ensuring that ads are strategically positioned.

Step 1: Create a New Site

First, you’ll need to create a new site on Adsense.

Alt text

After creating the site, copy the text from ads.txt and create a file named ads.txt at the root path of your Jekyll project. Once you’ve deployed it on the server, verify it.

Step 2: Add Auto Ads

Next, navigate to the Ads page and click the edit button.

Alt text

On this page, you can select the ads you want to display on your website.

image

After selecting your ads, click the red ‘Get code’ button.

image

Copy the script and add it to _includes/head.htmlsincehead.html`` is included on all pages. This will ensure that your ads are displayed across your entire site.

Alt text
If the status of Ads.txt is Authorized and the Approval status is Getting Ready, then you’ve done a great job. Now, all you need to do is wait for AdSense’s review to be completed. This process can take anywhere from a few days to a few weeks. So, sit back and relax while AdSense does its work.

And that’s it! You’ve successfully added auto ads from Adsense to your website. Happy monetizing!


Originally published at https://dss99911.github.io

Top comments (0)