How to add AdSense In-feed ads to WordPress

In online advertising, AdSense is a name that resonates with website owners and bloggers. Google AdSense offers a convenient way to monetize your website by displaying ads relevant to your content. One effective AdSense ad format is “In-feed” ads, which seamlessly blend into your site’s content. In this article, we’ll guide you through adding AdSense In-feed ads to your WordPress website. Let’s get started!


Before diving into AdSense In-feed ads, ensure you have the following:

  • A functional WordPress website.
  • Quality, original content.
  • An approved Google AdSense account.
  • Access to your website’s code or a plugin for code insertion.

Step 1: Create an AdSense Account

  • Visit the AdSense website ( and sign up for an account if you don’t already have one.
  • Follow the approval process, which includes verifying your website ownership and adhering to AdSense policies.

Step 2: Log in to Your AdSense Account

After your AdSense account is approved, log in to your AdSense account.

Read Also: How to Add a Responsive YouTube Embed for WordPress

Step 3: Generate Ad Codes for In-Feed Ads

  • In your AdSense account dashboard, click on “Ads” in the left sidebar.
  • Select “By ad unit” and then click on the “+ New ad unit” button.
  • Choose “In-feed ads” as the ad type.
  • Customize the ad format, style, and size to match your website’s design, and click “Create.”

Step 4: Copy the Ad Code

AdSense will generate a code snippet once you’ve customized your In-feed ad. Copy this code to your clipboard.

Step 5: Insert Ad Code Manually

  • You can manually insert the ad code into your WordPress website. Here’s how:
    • Log in to your WordPress admin dashboard.
    • Go to the page or post where you want to display the In-feed ad.
    • If you’re using the Classic Editor, switch to the Text mode of your editor. If you’re using the Block Editor (Gutenberg), add a Custom HTML block.
    • Paste the AdSense code into the editor.
    • Save or update your page or post.

Step 6: Use an AdSense Plugin (Optional)

If you prefer a more user-friendly approach, you can use an AdSense plugin to insert ad codes into your website. Some popular plugins include “AdSense Plugin WP QUADS” and “Ad Inserter.”

Step 7: Customize Ad Appearance

To ensure that your In-feed ads seamlessly blend into your content, customize their appearance within your AdSense account. You can experiment with different styles and layouts to match your website’s design.

Step 8: Monitor Ad Performance

Keep an eye on your In-feed ad performance in your AdSense account. Google provides detailed reports on impressions, clicks, and earnings. Use this data to optimize your ad strategy.

Step 9: Troubleshoot Issues

If you encounter issues with your In-feed ads not displaying correctly or having low click-through rates, troubleshoot by checking your code, ad placement, and design.

Step 10: Ensure Mobile Responsiveness

Confirm that your In-feed ads are mobile-friendly. Test them on various mobile devices to ensure compatibility, as mobile traffic is significant.

Step 11: Follow AdSense Policies

Always adhere to Google AdSense policies regarding ad placement, content, and prohibited content to avoid any account suspension.

Step 12: Experiment and Optimize

Don’t be afraid to experiment with different ad formats, placements, and designs to find the optimal configuration for your audience.


Incorporating AdSense In-feed ads into your WordPress website can be a lucrative move when done correctly. Balancing user experience with ad revenue is essential for long-term success. Start by creating an AdSense account, generating ad codes, and carefully placing them within your content. Monitor, optimize, and experiment to maximize your earnings.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top