Ads Setup Custom Code To Set Manual Ads In Blog Post

4.3/5 - (64 votes)

This post is about increasing AdSense CPC, CTR, and especially AdSense revenue or earnings In 2022.

Web beginners eagerly expect to boost AdSense CTR, CPC, and earnings. So yeah, I have covered all the topics to increase the CPC rate and your revenue using Google AdSense.

I shared my AdSense-related video on my YouTube channel follow the same procedure which I have done in my video.

HTML Code

<div class="desktopx">

        //Place your ad code here

</div>

<div class="mobilex">

       //Place your ad code here

</div>
AdSense revenue boost for blog

CSS Codes

.desktopx{
	display:block;
	
}
.mobilex{
	display:none;
}
	
@media (max-width: 768px) {
	.desktopx{
	display:none;

}
.mobilex{
	display:block;
}
}
	

Section Targeting Codes

For this, Google has provided the following HTML tags. The Google ad-serving algorithm recognizes these tags:

<!-- google_ad_section_start -->

<!-- google_ad_section_end -->

Final Words

So this is how you can add custom ads using the codes.

Do not forget to use the coupon (promo) and discount code if you are willing to purchase a WordPress theme and plugins at a very good price.

Also, let me know if you are facing any issues while setting up the ads.


One Request?

I worked hard on this post to help the blogging community. It would help me a lot if you consider sharing it on social media networks. Because Sharing Is Caring.. ♥️

Sharing Is Caring...

An aspiring MCA student formed an obsession with Blogging, SEO, Digital Marketing, and Helping Beginners To Build Amazing WordPress Websites.

17 thoughts on “Ads Setup Custom Code To Set Manual Ads In Blog Post”

  1. Sir multiplex ads me image hi show nahi ker raha he bohot kuch try kr ke dekh liya fir bhi show nahi ker raha he. Please isska soultion bataye.

    Reply
  2. Hello sir, I am Sushil I am using Astra free theme. So I am not understanding that where do I insert ads code which is mentioned in your above article in Astra free theme,
    Pl reply .Thank you.

    Reply
  3. Hello @ANAND sir,
    I’ve watched all your videos and read almost all your blog posts as well.
    And all of them are 100% helpful and are helping a newbie like me a lot.

    My question is in what scenario does WordPress or generatepress delete its code? I first saw it when there was an update.
    Now, yesterday I updated my PHP with Section Targeting Codes. Today it was deleted. All of it even google AdSense auto ads code from the Head section.

    Please do reply. Thank you.

    Reply

Leave a Comment