Minggu, 25 Juli 2021

How to Add Google AdSense Ads to website properly

 


How to install Google AdSense ads on Blogspot and WordPress I will make as complete as possible, so that those of you who are having trouble installing AdSense ad code on your blog can place AdSense ads as you wish.

I assume you already understand what Google AdSense is, so on this occasion I will not explain anymore what Google AdSense is.

I am also 100% sure, your Google AdSense registration has been approved and now you have an AdSense account. Or, at least you are in the 2nd review stage and told to save the Google AdSense script on the blog.

How do I know?

It's simple, because you find a complete module on how to place this Google AdSense ad by typing keywords how to save AdSense ad code, how to install AdSense ad scripts or other keywords on how to place Google AdSense ads on blogs or in posts.

Before continuing the discussion about how to install Google Adsense on a blog, we first learn how to create an AdSense ad unit.

How to create ad units for content

1. The first step, please log in to the Google AdSense dashboard

Click the My Ads tab or My Ads

On the sidebar, make sure you click on the AdSense for content ads

Click create unique ad

How to Install Google AdSense Ads on Blogspot and WordPress, Complete!

2. On the name tab, please fill in the name of the ad, on showing select the type of ad, then click Save and get code.

Next, the AdSense ad script will appear, please copy and paste it on the blog in the desired place.

Okay, the AdSense ad script code has now been created, just save it on the blog.

How to install AdSense ad code on Blogger (Blogspot) How to put AdSense ads in the blogger sidebar

How to Install Google AdSense Ads on Blogspot and WordPress, Complete!

1. Login to blogger dashboard, select layout

2. Add HTML/Javascript widgets or gadgets to the sidebar

Copy the AdSense ad script code that you created earlier

Paste in HTML/Javascript widgets/gadgets

How to save AdSense ads in blogger header

Saving AdSense ads in the blogger header is in principle the same as saving the script code in the sidebar. The difference is, you have to add an HTML/Javascript gadget in the header section. However, not all templates can add gadgets in the header section.

How to install Google AdSense script above blogger posts

First parse the AdSense ad code here.

1. Open a new tab in your browser, then log in to blogger dashboard

2. Click the template in the sidebar, then click Edit HTML

3. Search code

data:post.body

Copy the parsed ad script, then paste it just above the data:post.body code in your blog template.

4. Click Save

How to install the Google AdSense script code on the top left of blogger posts postingan

First parse the AdSense ad code here

1. Open a new tab in your browser, then log in to blogger dashboard

Click the template in the sidebar, then click Edit HTML

2. Find the code

data:post.body

3. Add the code below, just above data:post.body

<div style="float:left; margin-left:15px;margin-bottom:15px">

PUT YOUR PASSED ADVERTISING CODE HERE</div>

Replace the words PUT THE ADVERTISING CODE ALREADY PASSED HERE with the AdSense script code that has been parsed earlier.

4. Click Save

How to install the Google AdSense script code on the top right of blogger posts postingan

First parse the AdSense ad code here

1. Open a new tab in your browser, then log in to blogger dashboard

Click the template in the sidebar, then click Edit HTML

2. Find the data code: post.body

Add the code below just above the code data:post.body

<div style="float:right; margin-left:15px;margin-bottom:15px">

PUT YOUR PASSED ADVERTISING CODE HERE</div>

Replace the words PUT THE ADVERTISING CODE ALREADY PASSED HERE with the AdSense script code that has been parsed earlier.

3. Click Save

How to put Google AdSense ads under blogspot posts

1. Parse the AdSense ad code first

2. Open a new tab in your browser, then log in to blogger dashboard

Click the template on the sidebar, then 3. click Edit HTML

4.Find the data code:post.body

Copy the ad script that was parsed earlier, then paste it just below the data:post.body code in your blog template.

5. Click Save

How to save AdSense ads in the middle of blogspot posts

First parse the AdSense ad code here

1. Open a new tab in your browser,

Log in to blogger dashboard

Click the template on the sidebar

2. Click Edit HTML

3. Find the code data:post.body (use CTRL+F)

4. Replace the code data:post.body with the code:

<div expr:id='”ad1″ + data:post.id'></div>

<div style="clear:both; margin:10px 0″>

PUT YOUR PARSEED AD CODE HERE</div><div expr:id='”ads2″ + data:post.id'>

<data:post.body/>

</div>

<script type="text/javascript">

var obj0=document.getElementById("ad1<data:post.id/>");

var obj1=document.getElementById("ads2<data:post.id/>");

var s=obj1.innerHTML;

var t=s.substr(0,s.length/2);

var r=t.lastIndexOf(" ");

if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+1);}

</script>

Then replace the words PUT THE ADVERTISING CODE THAT HAVE BEEN PASSED HERE with the AdSense script code that has been parsed earlier.

4. Click Save

How to place AdSense ads on a WordPress blog

Installing Google AdSense ads on a WordPress blog with a plugin

Installing AdSense ads on a WordPress blog will be easier with the help of the Google AdSense plugin. You can place AdSense ads anywhere without having to copy the ad script. The step that must be done is to install the Google AdSense plugin.

Next, set the AdSense ad placement by doing the AdSense settings in the sidebar of your WordPress dashboard.

How to manually place Google AdSense ads on a WordPress blog

How to place AdSense ad code in header

1. Log in to the WordPress dashboard

Select Appearance/Appearance > Themes > Edit ator Editor

Click Page Head (header.php) on the right sidebar

Look for code <nav id="access"> or something similar

2. Paste the AdSense ad script code above the <nav id="access"> code. An example is something like this:

<?php endif; ?>

PASTE THE ADSENSE ADVERTISING CODE HERE <nav id="access">

<a class="nav-toggle" href="#">Navigation</a>

<?php wp_nav_menu( array( 'theme_location' => 'primary_nav' ) ); ?>

<?php get_search_form(); ?>

<div class="clear"></div>

</nav><!-- #access -->

</header><!-- #headers -->

The ad code does not need to be parsed and select the ad unit size that matches the blog header size

3. Click Save

How to put Google AdSense ad code above the article title

1. Log in to the WordPress dashboard

Select Appearance/Appearance > Themes > Edit ator Editor

Click Single Page (single.php) on the right sidebar

Look for the code below or something similar

<<?php_title_tag( 'post' ); ?> class="entry-title"><?php the_title(); ?></<?php _title_tag( 'post' ); ?>>

2. Paste the AdSense ad script code before the code above

3. Click Save

How to save AdSense ads under post titles

Before meta

1. Log in to the WordPress dashboard

Select Appearance/Appearance > Themes > Edit ator Editor

2. Click Single Page (single.php) on the right sidebar

3. Look for the code below or something similar

<<?php_title_tag( 'post' ); ?> class="entry-title"><?php the_title(); ?></<?php _title_tag( 'post' ); ?>>

4.Paste the AdSense ad script code after the code above

5.Click Save


After meta

Log in to the WordPress dashboard

Select Appearance/Appearance > Themes > Edit ator Editor

Click Single Page (single.php) on the right sidebar

Look for the code below or something similar

</aside><!-- .entry-meta -->

3. Paste the AdSense ad script code after the code above

4. Click Save

Next to meta


1. Log in to the WordPress dashboard

Select Appearance/Appearance > Themes > Edit ator Editor

2. Click Single Page (single.php) on the right sidebar

3. Look for the code below or something similar to

</aside><!-- .entry-meta -->

4. Paste the AdSense ad script code before the code above

5.Click Save

How to place an AdSense ad on the top left of a WordPress post postingan

1. Log in to the WordPress dashboard

Select Appearance/Appearance > Themes > Edit ator Editor

2.Click Single Page (single.php) on the right sidebar

3. Look for the code below or something similar to <?php the_content(); ?>

4. Add the code below just above the code <?php the_content(); ?>

<div style="float:left; margin-left:15px;margin-bottom:15px">

PASTE ADSENSE ADVERTISING CODE</div>

5. Replace the words PASTE ADSENSE ADVERTISING CODE with the AdSense script code that has been parsed earlier.

If you want to place an AdSense ad on the right side of the post, change the code float=left to float=right.

6. Click Save

How to place AdSense ads under WordPress blog posts

1. Log in to the WordPress dashboard

Select Appearance/Appearance > Themes > Edit ator Editor

2. Click Single Page (single.php) on the right sidebar

3. Look for the code below or something similar to

<?php the_content(); ?>

4.Paste the AdSense ad script code after the code above

5.Click Save

How to put AdSense ads in the sidebar of a WordPress blog

1. Log in to the WordPress dashboard

2. Select Appearance > Widget

3. Add Text widget

4. Paste the AdSense ad script code in the text widget earlier

5. Click Save

follow all the tutorials above correctly so that there are no errors, the installation method is quite complete, I'm tutorial, hopefully this article helps you in installing the adsense script.

Load comments