Category Archives: Google AdSense/ଗୁଗଲ ଆଡ଼ସେନ୍ସ

How to set up Auto ads of Adsense

Google Adsense is from Google. It allows publishers or webmasters to put up advertisements into their websites and provide opportunities for visitors to ear money. Most of these are auto-optimised for site content and from the visitor’s count.

Select the advertisement to out into your website. It is important to choice from vast list of advertisements, and chose formats for your website. There are various formats for advertisements such as text, display or mixture of both advertisements.

First one need to approve your website for Google adsense publisher account and then choose the advertisements to fit into your website. Copy and paste the advertisement code from your adsense account and then paste that code into your website.

Add that advertisement code into your website most preferably at the sidebar or just under header menu and then wait for your website to be approved. Do not remove that code and check to see from time to time whether in that area advertisements are visible or not.

Then, Google will handle the entire process, and Google will bid the place for your for advertisers and then in the process the advertisements will appear and yours website will earn revenue automatically. In the process you earn money and it will accumulate and then you can receive money after yours revenue receive the minimum paid amount.

How to set up auto ads:

Auto ads are the optimised advertisement formats, which works automatically, inside page level of websites. Page of website means that, the contents of website, where the written contents are shown. Mostly, these will show up entire contents and this works automatically.

It is important to verify your site is whether have approved Google adsense account. Some webmaster does have host partner adsense account that come through blogger or You Tube then it is a good idea to upgrade yours adsense account so that it can continue to sponsor your site.

Auto ads set-up process:

  1. Log in to your approved Adsense account or hosted Adsense account.
  2. Most probably you will reach a new Adsense account.
  3. In the sidebar go to Ads and then it will expand and click on Auto Ads.
  4. Click on Get Started.
  5. Then, choose global settings, then choose the ad formats that you want to show up on your website.
  6. Select automatically get new formats and in this way, slowly, Google will show automatically advertisements into your contents of the website.
  7. In this way, you do not need to do anything as automatically advertisements will show up inside the contents of the page.
  8. Then, it will show up codes in the place of place code on your page, and then copy the code from there.
  9. Then, in order to work that code into your website between <head> and </head> of your website.

How to add set up auto ads of Adsense into header dot php of your website:

  1. Log into cPanel hosting account. Google Adsense works nicely with self-hosted websites.
  2. Go to Files and then File Manager.
  3. Then go to wp-content and then themes.
  4. Then, select the work-in themes into work.
  5. Click that theme, and then choose header.php
  6. Double click on the icon of header.php and then it will save into local file of the computer.
  7. Then, select, header.php and then click on edit and then paste the code in between <header> and </header> and then save to save the code inside, hosting panel.

In this way, your website now installed with auto ads of adsense ads. Google says that, auto ads will show up within 10 to 20 minutes.

Related Posts:

Inserts or Adsense advertisement code after a few paragraphs

This post was most recently updated on March 25th, 2019

Advertising is part of modern day life. It comes by choice for web administrators. Sometimes, many bloggers tend not to use such advertisements for the considerable period of time. After getting certain views then they move towards it.

Showing advertising after a few paragraphs of the post:

It is the choice and wish of the webmaster. Personally, I fond of inserting advertisements on websites as it makes the website looks beautiful and the readers with ad blocking options switched off to find some superb information through these. I used the Adsense advertisements on my present site after my application to them have been successfully reviewed.

Still-to-date, though I have moderate earnings but the primary focus of these advertisements for the time beings is to find my money is WordPress hosting packages and WordPress domain packages.

Even till this day, I have been experimenting for about advertisements for placements and continue to do that till the date I got handsome results:

My first emphasis on my site is to present users with information on a variety of subjects and educate and convey to them my opinions on these subjects and I expect the advertisements that have been on the roll in it should provide some additional information so that ultimately that should present users with handsome information in addition to the article.

That is the reason why I want to place an advertisement in the article but still this day not being able to do this until I have done this. It is not just a simple idea as the standard WordPress procedure is to bring out the article from its database and loads on the web browser and to put ads inside of it remains a good amount of tactics and this procedure also changes from theme to theme.

Generally, while editing any of these files of WordPress I would prefer to go with cPanel hosting side:

This time I got the information from the internet and wish to write it down so that whenever I would change the theme of the website for sure go back to this article to know what are the procedure to insert ads inside content. WordPress server connects with its database with just single line and then inserting something in the middle of this seems a very difficult idea that is why most of the articles on this subject to the internet does not seem to work in the correct manner.

Generally, while editing any of these files of WordPress I would prefer to go with cPanel hosting side so that after review of coding if something goes wrong then I could reach out to and correct those codes immediately. Instead of theme editor of WordPress, I prefer to go from ‘file browser’ of cPanel. After logging into cPanel reached to ‘File Manager’ and open it.

  2. Then move to ‘wp-content’ and open it.
  3. wp-content
  4. Then move to ‘themes’ and open it.
  5. theme
  6. It will show you the installed theme and the default themes that installed with WordPress.
  7. Click on the installed Theme. In my case, it is the ‘grandstand’.
  8. grandstand
  9. It is important to open the activated theme that has been activated by you for your blog on word press administration segment.
  10. It would then show the PHP and other files and folders that have been inside the theme.
  11. Just scroll on to it to find out ‘single.php’ and double click on it to back up the files, in case something wrong happens while putting the code, we could upload that files and replace the wrong coded file.
  12. Then, just select ‘single.php’ and the top menu click on ‘code editor’.
  13. It would show you a ‘Code Editor’ dialogue box.
  14. Then click on ‘Edit’ and it would open ‘single.php’ on a new page of the web browser window.
  15. Go to its 62 number entry, which is ‘<?php the_content(); ?>’ or control ‘F’ while the file is open on browser and paste this code to search for this line on your theme, and then replace that with the below mentioned code.
Code starts here--------------------
$show_after_p = 2;
$content = apply_filters('the_content', $post->post_content);
if(substr_count($content, '<p>') > $show_after_p)
$contents = explode("</p>", $content);
$p_count = 1;
foreach($contents as $content)
echo $content;

if($p_count == $show_after_p)
echo "</p>";

Code ends here------------------------------------

The above code explanation:

  1. This is not a complex code.
  2. In the second line of the code,’ $show_after_p = 2’ and 2 is the advertisement to be shown after the second paragraph of the article.
  3. If you want to make it to third or fourth or so on the change that to number 3 or 4 or so on.
  4. Then move to the line where it is written as ‘ YOUR MEDIA.NET code GOES HERE’ and paste your Adsense or code there.
  5. If you have SSL site or normal site, do this in according to the code.
  6. Then after doing this copy entire code and then replace it with ‘ ’. Do remember to replace ‘ ’ with the above code.
  7. Then click on ‘Save Changes’ and you are done.

If you have followed all of these steps correctly which are the most basic ones then for sure you would be seeing advertisements on the after precise paragraphs after articles. Do open the individual article on your favourite web browser and without ad block and check it back and for sure if all the above steps have been performed correctly you would be for sure see advertisements inside the precise paragraph.

There have been many advertisement plugins which you can do it normally without wasting any of your time but still, it is better to use code instead of the plugin as this could result in faster website loading time as well as you would have excellent control over entire code here. With this as webmaster for one also learns immensely so that with due course of time with acquired accumulated knowledge one could slowly build another form of stronger management of ideas while playing with PHP, CSS and javascript codes. Also after upgrading my site to flexible SSL, I have found that the most HTTP codes are not working.

I contacted my account manager, and they responded swiftly and provided. Me with HTTPS codes but that does not work through WordPress admin and text widget function. Then, I put these codes into cPanel and all now works and in this case the ad rotating plugins would be vague and for this it is important to know the tits and bits of installing the codes into theme files so that everything should be nice and good and every control should be with your hands instead of depending too much on plugins.

Related Posts: