Connect with us

Solved: The Widget Settings in Widget With Id AdSense is Not Valid | Blogger


Solved: The Widget Settings in Widget With Id AdSense is Not Valid | Blogger

The Widget Settings In Widget With Id AdSense Is Not Valid
(Last Updated On: January 24, 2023)

Are you getting the error, “The widget settings in widget with id <b>AdSense1</b> is not valid. An internal error occurred. Please try again.” on Blogger when you try to save your theme? You’re in the right place.

Users are facing different types of errors after Legacy Blogger is updated to New Blogger. One of the frequently occurred error is, The widget settings in widget with id <b>AdSense1</b> is not valid. An internal error occurred. Please try again.

This error does not allow you to save your Blogger theme when you modify and try to save. Mostly this error comes in Emporio Blogger Theme.

What is the Cause of Error?

It is clear from the error description that your AdSense widgets in your theme are causing the error. The error comes on those blogs where Google AdSense ads are enabled.

For some reasons, because of these Google AdSense widgets Blogger does not allow you to save your theme. This error is bit confusing as well because at times despite showing this error it saves your changes, but at times it does not save your theme at all.

There are 2 cases (1) If you make a CSS change or something like that it will still show you the error, but will save your changes (2) When you add a conditional tag or insert some code in the body of the widget, this error does not allow you to save the changes.

How to Get Rid of the Error?

There is a simple solution to this error:

  1. Remove the all Google AdSense widgets from your Blogger Layout one-by-one. I have shown below, How to remove Google AdSense widgets.
  2. Modify your theme, means do whatever changes you want in your theme or the code that you want to add.
  3. Save your theme. You won’t get this error.

Once you are done with the changes in your theme completely, comeback to your Blogger Layout and add the Google AdSense widgets again.

Remember that removing your Google Adsense widget from your Blogger Layout does not disconnects you from Google AdSense Program. You can add or remove Google AdSense widgets as many times as you want.

Blogger/Blogspot latest Templates


How To Remove AdSense Widget On Blogger?

There are 2 Methods to remove the AdSense widgets on Blogger. Follow the Method 1 first, if Method 1 does not work then go for the Method 2.

Method 1: Remove From Blogger Layout

In this section, I will guide you on how to remove an AdSense widget from the Blogger Layout.

  • Open your Blogger admin dashboard and go to Layout from the sidebar.
Open your Blogger admin dashboard and go to Layout from the sidebar.
  • Click the Edit icon of the AdSense widget that you want to remove.
Click the Edit icon of the AdSense widget that you want to remove.
  • Click the “Remove” button.
Click the "Remove" button.

Method 2: Remove From Theme’s Code

In this section, I will guide you on how to remove the Google AdSense widget from your Blogger theme by removing its code. Follow this Method if Method 1 does not work.

Don’t forget to take the backup of your theme before you remove AdSense widget. In case you make a mistake, you can restore it from the backup. Read this tutorial: How To Backup & Upload Blogger Theme Step-By-Step.

  • Open your Blogger admin dashboard and go to Themes from the sidebar.
  • Click the Downward Arrow attached to CUSTOMIZE button.
go to Themes from the sidebar. Click the Downward Arrow attached to CUSTOMIZE button.
  • Click the Edit HTML option.
Click the Edit HTML option.
  • Click the “Jump to widget” icon located at top-right corner of the Blogger Theme Editor.
Click the "Jump to widget" icon located at top-right corner of the Blogger Theme Editor.
  • Choose the widget that you want to remove. Here, I have chosen the AdSense1.
Choose the widget that you want to remove. Here, I have chosen the AdSense1.

Once you click the widget, you will jump to the top line of the widget code. The widget code starts with this line:

<b:widget id='AdSense1' locked='false' title='' type='AdSense' visible='true'>

The widget code ends with this tag:

  • Now select the whole code from <b:widget id=’AdSense’…………. to  </b:widget>, as I have shown below with the arrows.
  • Press “Delete” from your keyboard.
  • Click the Save icon to update the changes.
select the whole code from <b:widget id='AdSense'............. to  </b:widget> and delete this code.

If you like this post then don’t forget to share with other people. Share your feedback in the comments section below.

Also Read

Meer Basit is the founder of Meer’s World. He’s been running the show since launching the blog back in 2018. By background he is a computer scientist. Primarily, he creates content around blogging (WordPress, Blogger, Tumblr), SEO, affiliate programs, earn-online, reviews, eCommerce, & technology. He has got years of professional experience in web programming, computer programming, databases, data warehousing, & transcription. In general, he likes traveling, gardening, creating TikToks(@iammeerbasit), watching movies, is a passionate cricketer, creative writer, and a GSD lover.



  1. Pas. Erik Viveros

    July 20, 2020 at 9:49 am

    Hola tengo el mismo problema , pero mi blog no me permite eliminar los widgets de AdSense, que puedo hacer, adicionalmente a esto, en ingresos me dice que AdSense no conoce mi blog, tampoco se que hacer.

  2. Jaiya

    August 25, 2020 at 9:23 am

    Thanks for this solution,it helped me a lot for Adsense.

    • Meer Basit

      August 25, 2020 at 8:38 pm

      You’re most welcome, Jaiya.

  3. Cheap Trimmers

    August 28, 2020 at 9:53 am

    Thanx brother for this article. You literally saved me.

  4. Anushka Bangal

    August 29, 2020 at 6:26 am

    Hi! So I tried what you said and finally the error vanished ! Update was successful, but I didn't receive the confirmation button on adsense and neither can i add adsense gadget in my layout. It says please correct the errors. What Should I do?

    • Meer Basit

      August 29, 2020 at 8:43 pm

      You said, “I didn’t receive the confirmation button on adsense”……….. I don’t understand what type of confirmation button on adSense you are talking about! Please explain.

  5. Anushka Bangal

    August 29, 2020 at 6:33 am

    Also now I cannot control how ads are shown in my blog because I cant add the adsense gadget because of the the above problem.Help!

    • Meer Basit

      August 29, 2020 at 8:45 pm

      Were Google Ads running on your blog earlier? Sometimes error comes because of minor mistake in your theme like you might be missing a colon or semi-colon at the end of a line in your theme. Check your theme thoroughly and find the line which is causing the error.

  6. Anushka Bangal

    August 29, 2020 at 3:17 pm

    The third step after pasting the ad code in html was to confirm that you pasted it.(I dont know wheter theres even a button or not but if it was successful i would have gotten to the next steps right? ) There was nothing after I pasted the code. At first there was the error which the blog is about (widget setting id not valid and all), so I did what you said. I removed the adsense gadget which was built in and then pasted the code and it was updated successfully. But after that when i added the adsense gadget in the layout, theres an error saying please remove the errors in the form.
    In my earnings there is an option control how ads are shown on your blog. Before i could select how the ads are going to look but now the option keeps turning off saying that updating your ad settings failed.
    In my adsense home page there's only " we are working on setting you up.
    I got an email from adsense saying activate your account.

  7. Anushka Bangal

    August 30, 2020 at 9:08 am

    Thanks 🙂

    • Meer Basit

      August 30, 2020 at 8:49 pm

      You’re most welcome, Anushka :).

  8. Tejendra

    August 31, 2020 at 3:44 pm

    Bro I have the same problem which anuska bangal had! I also do not have confirmation button to my Adsense homepage, It only shows " We are working on setting you up"' This usually takes a few days, but in some cases can take up to 2 weeks. We'll notify you when everything's ready. Then start earning money by placing ads.'
    How I make confirmation that I have pasted the code successfully to my Blogs HTML,
    You've mentioned that it is because of we have "" domain, so in order to activate Adsense account we need to buy a custom domain,
    So if this would be the problem, why google has not emailed me or shows this type of error?
    Please do you have any solution on this?

    • Meer Basit

      September 1, 2020 at 8:51 pm

      Don’t worry you will get email anyways from AdSense whether your blog is activated or not. For some blogs the activation process can be as quick as a day, and for others it can take several weeks. You will get the rejection reason in your email.

      Regarding the “Custom Domain” I think Google AdSense might have changed its policy and allows blogs with “.blogspot” to apply for Google AdSense, but your content matters the most for approval. Professional bloggers use Custom Domain. What is blog URL?

  9. Tejendra

    September 1, 2020 at 5:58 am
    I think you are right google will send me email for this if I get approved or not, I have sent my issue to Adsense help community and they will answer me in 24 hrs( that what they emailed me), so all I have to do is wait for their reply,
    and there is one more thing, you have mentioned above something about Robot.txt, I received a notification on this to my google search console, that I need to fix this issue, but I Ignored this because I thought It is not that much important, so can you tell me What is this robot.txt and how can I solve this problem?

    • Meer Basit

      September 1, 2020 at 8:52 pm

      There is a new update from AdSense, if I am not wrong. Regarding the “Custom Domain” I think Google AdSense might have changed its policy and allows blogs with “.blogspot” to apply for Google AdSense, but your content matters the most for approval.

      Possible solutions for your error, “please remove the errors in the form”:

      1) If your Adsense account is already active then you need to check the size of the ad unit you’re trying to add. If it doesn’t fit in to where you’re trying to add, then that error will occur. Your blog theme does not seem Google ads friendly.

      2) Or you might have done something wrong with the Robots.txt. You can revert back to your default Robots.txt

  10. Yash Vardhan

    September 3, 2020 at 6:54 am

    Getting this error The widget settings in widget with id AdSense1 is not valid. An internal error occurred. Please try again. Pls help to solve

    • Meer Basit

      September 3, 2020 at 8:55 pm

      It means that AdSense1 widget exists in your theme. You must remove all your AdSense widgets.

  11. Yash Vardhan

    September 3, 2020 at 5:37 pm


    I am unable to delete the widgets. Can you pls help me to know the process.

    • Meer Basit

      September 3, 2020 at 10:55 pm

      Please read the tutorial again, I have shown the two methods to remove AdSense widgets on Blogger.

  12. Anushka Bangal

    September 5, 2020 at 10:49 am

    I can't update my Control how ads are shown on the blog. And on my adsense it says "We are working on setting you up".

    • Meer Basit

      September 5, 2020 at 9:03 pm

      Take a screenshot and send a Feedback to Google AdSense.

  13. Bharat Thapa

    September 17, 2020 at 11:36 am

    Thx….. You solved my probes

    • Meer Basit

      September 17, 2020 at 9:04 pm

      You’re most welcome Bharat!


    September 24, 2020 at 4:55 am

    thank u bhai, very helpful post

    • Meer Basit

      September 24, 2020 at 6:01 am

      You’re most welcome, Debajyoti.

  15. Rezi Putra Kusuma

    October 5, 2020 at 10:18 am

    thanks bro

  16. Sanad Bin Erad

    October 6, 2020 at 4:29 am

    Hi Meer
    Thanks for this info
    There is some thing can you help me I have problem about mixed content please give me sout on

    • Meer Basit

      October 6, 2020 at 5:03 am

      What do you mean by “mixed content”? Would you explain, plz?

  17. Sanad Bin Erad

    October 6, 2020 at 5:34 pm

    All my blogger posts were appearing in the Google
    index on Chrome browser, but after a short time,
    nearly half of them disappeared and the other half
    appeared, but with a different search description for
    the title, and when I searched for the reason they
    told me that mixed content in html should be fixed

    I'm sorry if I caused you any inconvenience

    • Meer Basit

      October 6, 2020 at 8:06 pm

      No problem dear, you are always welcome. I think you are getting this problem because of security issues. Also when I typed your website with “www”, browser shows security warning.
      Please read this article it could solve your problem :

      Fix mixed content on your blog (

  18. Sanad Bin Erad

    October 7, 2020 at 8:47 am

    Thank you so much

    • Meer Basit

      October 7, 2020 at 2:07 am

      You’re most welcome, Sanad!

  19. Priyarao

    October 12, 2020 at 5:18 pm

    thanke you so mach for widge problam i soled my problom for 1st step

    • Meer Basit

      October 13, 2020 at 2:08 am

      You’re most welcome, Priyarao!

  20. idealthoughts

    October 17, 2020 at 4:34 pm

    nice sir its help for me

  21. Aman singh

    October 27, 2020 at 1:27 pm

    My issue: On editing the theme and saving, the changes were not reflected.

    Solution: Open the theme -> edit html -> preview theme. You will see an error. Check if it shows a widget error like this 'The widget settings in widget with ID AdSense1 aren't valid'. In this case note down the widget in the error. Click on 'Jump to widget' and go to the particular widget which you noted down. Delete the section from and for that specific widget and save.

    Thank you sir this my problem is solved

    thank you

    • Meer Basit

      October 27, 2020 at 2:10 am

      You’re most welcome, Aman.

  22. Anonymous

    November 25, 2020 at 3:49 am

    1 Question 🙂 How to Defeat From Invalid Ad Clicks at

    • Meer Basit

      November 25, 2020 at 5:11 am

      The biggest contributor to invalid ad clicks is person himself. Make sure to turn off your history and disable ads from your browser settings. Don’t watch your own ads. Avoid partnering with untrusted advertisers or affiliate networks. Don’t tell your friends and family members to watch your content.

  23. Vishal Khatri, Ph.D.

    December 2, 2020 at 7:21 pm

    Thank you brother for solving this issue. I reverted to classic version and problem disappeared but now I can not turn on adsense to my blog. This is ridiculous, google has not solved this problem even after months or almost a year now. I am seeing posts as back as from May reporting the same problem.

    • Meer Basit

      December 2, 2020 at 9:13 pm

      What is your blog URL? Were Google ads running on your blog 1 year ago or earlier?

  24. Vishal Khatri, Ph.D.

    December 3, 2020 at 5:09 pm

    No, I just started blog. URL is I ran into this issue on my very first try out. I just mean to say when I was looking a way out of this problem, I saw people reporting the same problem from almost a year now. Thank you for your help!

  25. Margo

    December 5, 2020 at 6:37 pm

    Thank you so much, I never could have figured it out myself.

    • Meer Basit

      December 5, 2020 at 8:16 pm

      You’re most welcome, Margo!

  26. AlixaProDev

    January 3, 2021 at 12:57 pm

    Thank you so much for this amazing tutorial i was really worried about it.

    • Meer Basit

      January 3, 2021 at 2:17 pm

      You’re most welcome, Alixa.

  27. AlixaProDev

    January 3, 2021 at 2:47 pm

    Brother can you please check my blog,
    will i get AdSense or not. Any suggestion. I will be happy if you suggest me any changes.

    • Meer Basit

      January 3, 2021 at 9:19 pm

      There is no problem with your blog niche it is good. You have created necessary pages as well like About US, Privacy etc. There should be at least 20 articles on your blog before you apply. It depends on AdSense whether it accepts or not, but you can apply and see what it does. You can apply more than once, so don’t worry about rejection. I will suggest you to apply when your blog brings traffic of 1000 views per day.

      I have noticed that your Featured Post is appearing on top of every page(About Us, Contact Us, Privacy etc). Featured post shouldn’t be appeared on pages, it should only appear on homepage and blog post pages. Your “Item pages” are suitable for displaying ads, but Homepage might not be suitable. There should be positions for displaying ads. You can bring more quality to your blog’s homepage design. You can search on internet as well like “How to make your theme AdSense Ready.”

  28. AlixaProDev

    January 3, 2021 at 8:47 pm

    Brother can you suggest me a free theme best for AdSense.

    • Meer Basit

      January 3, 2021 at 10:22 pm

      Sorry, I don’t recommend to use free themes!

  29. Ruqaiyah Ezzi

    January 18, 2021 at 5:54 am

    So I did exactly as you said and thank you so much everything worked. but how do I make the AdSense widgets come back? It's not showing up in my layouts ever since I took it out of the code

    • Meer Basit

      January 18, 2021 at 11:25 am

      Go to Layout… Click “Add a Gadget”…..Click “AdSense”.


    February 7, 2021 at 3:11 pm

    this helped, really. thank you so much

  31. Annu Pandey

    February 9, 2021 at 6:07 pm

    thanks a million dear

    • Meer Basit

      February 9, 2021 at 8:32 pm

      You’re most welcome, Annu!

  32. DC

    February 21, 2021 at 12:08 pm

    Oh dear, the gadget is not getting added now from the layouts section. It says, please correct the errors on this form. My domain is
    Prior to this it was not getting removed, so i used HTML widget code removal option. Now its not getting saved when I click on save post adding a adsense gadget.

    • Meer Basit

      February 21, 2021 at 1:21 pm

      One of the reasons for this error is that you are using different emails for Blogger and AdSense. You should use the same email for both Blogger and AdSense………….. The other reason could be like, your theme might not be compatible with AdSense ad code at a certain position. You can create HTML/Javascript widget on layout, Copy ad code from AdSense and Paste in HTML/Javascript widget.

  33. DC

    February 21, 2021 at 1:30 pm

    Added same code at exact same lines and got it back.

  34. Greedy hacks (By Abhishek)

    April 6, 2021 at 2:14 pm

    Thank you so much sir. It helped!!

    • Meer Basit

      April 6, 2021 at 4:36 pm

      You’re most welcome, Abhishek!

  35. King

    April 20, 2021 at 10:54 am


  36. Alex

    April 23, 2021 at 2:27 pm

    It worked, I am waiting for my confirmation now, thanks man!

  37. Shazmi

    April 23, 2021 at 7:18 pm

    Hi I can't select the text for deleting option as well as the edit option also not working for me only save change is display no remove button is there what to do now

    • Meer Basit

      April 23, 2021 at 9:41 pm

      Press the mouse button and select the text and then delete the text.

  38. AbdulRehman Amir

    April 24, 2021 at 9:11 pm

    Thanks My Problem is Solved

    • Meer Basit

      April 24, 2021 at 11:42 pm

      You’re most welcome, Adbdul Rehman.

  39. Health and Fitness

    May 17, 2021 at 2:17 am

    I face the same problem but when I paste the adsense code. Is this process helps me here

  40. Technology World

    May 20, 2021 at 9:55 am

    Thanks for your support. Its very helpful. Thank you again.

    • Meer Basit

      May 20, 2021 at 5:45 pm

      You’re most welcome, Technology World.

  41. Sampati Kumar Nirugonda

    June 2, 2021 at 1:22 pm

    Thanks Meer Brother, it's Really Works

  42. Admin

    June 22, 2021 at 6:29 am


  43. RealGuider786

    June 28, 2021 at 11:15 am

    nice article
    so much thanks dear my Adsense problem solved

    • Meer Basit

      June 28, 2021 at 7:49 pm

      You’re most welcome, RealGuider!

  44. King Mohamed

    June 29, 2021 at 6:12 pm

    Hey Meer!
    I did everything as you explained, I just was able to make some changes to my blog after removing an adsense widget, but after all I tried to add an adsense widget again, I end up receiving a message "Could not update widget. Try again".

    What should I do?

    • Meer Basit

      June 29, 2021 at 9:50 pm

      You’re missing something King! Also go through above comments you might get your solution.

  45. Best selfie pose

    July 5, 2021 at 10:13 am

    Sir, same problm as Aman’s as my so plz help me
    I tried to this but I can’t save HTML theme so please help to me

    • Meer Basit

      July 5, 2021 at 8:54 pm

      If your problem is same as Aman’s it should be resolved. Follow our guidelines carefully.

  46. Destiny

    July 28, 2021 at 2:36 pm

    Have tried what you explained, but it’s still showing: widget settings in widget with id<adsense 1 is not valid
    Please what should I do??

    • Meer Basit

      July 29, 2021 at 9:56 pm

      It should work. You must be missing something. Please try again.

  47. Victoria Marion

    July 30, 2021 at 4:05 pm

    Hello, I did what you said and I was able to finally add my code, however…when I went to ad my adsense widgets back it gave me this error message “Could not update widget. Try again.” Please help. Thank you 🙂

    • Meer Basit

      July 30, 2021 at 8:57 pm

      You have not completely removed AdSense code, that’s why it is showing you the error. Please try again. 🙂

  48. Huma

    October 17, 2021 at 12:46 pm

    Hello, your article is really helpful. can you please tell me the solution for this error?
    The widget settings in widget with id PageList2 is not valid. Page title is invalid.

    • Meer Basit

      October 17, 2021 at 3:15 pm

      The errors is caused by the “Pages” widget that you have added in the Footer. There is no problem with its code, but we have some suggestions if these work for you:
      (1) Try changing the title from “Pages” to something else and check whether it works or not.
      (2) Your template has only one “Pages” gadget, so there should have been “PageList1” instead of “PageList2”. Remove your Pages gadget and add again, it might work.
      (3) Follow the Method 1 and Method 2, as shown in this article. Instead of removing AdSense widget and widget code remove “Pages” widget.
      In your Blogger theme “PageList2” will start with this Line:
      <----b:widget id='PageList2' locked='false' title='Pages' type='PageList' version='2' visible='true'--->
      and ends with this line <---/b:widget---->

  49. Amit Kumar

    November 1, 2021 at 10:31 pm

    It helped

  50. annie

    December 1, 2021 at 11:43 pm

    thank you very much for your method, I remove the Adsense, then I can update the HTML, thank you

  51. Ndubisi Omeke

    July 7, 2022 at 2:33 pm

    Thanks for this information. It really helped me, more grease to your elbow.

    • Meer Basit

      July 7, 2022 at 5:57 pm

      That’s so sweet of you Ndubisi!

  52. seng poem

    July 19, 2022 at 2:12 pm

    Hello Meer Basit. I did by your rule it has worked for html edited but now I can’t add ads back in blog layout after removed them

    • Meer Basit

      July 19, 2022 at 5:53 pm

      Your AdSense widgets still exist in your theme. You must remove all your AdSense widgets and then add them one by one from Layout.

  53. Pete

    September 23, 2022 at 7:13 pm

    I agree with seng poem. I’ve removed Adsense1 & Adsense2 html code carefully. Saved OK. Included metatags and saved OK. Tried several options in putting back removed html, both Adsense1 & 2 at the same time as well as just Adsense1 on its own. I had to add to close the section, as that’s what the error message was telling me. However, once included, the original error message RETURNS “The widget settings in widget with id AdSense1 is not valid. An internal error occurred. Please try again.” Therefore, the html code for Adsense1 or 2 cannot be reinserted = loss of being able to include ads. If trying to include via Layout, the message informs me that the widget cannot be updated together with an internal error message notification. So, your suggested workaround solutions don’t work as at 23/09/22. ANY FURTHER SUGGESTIONS? apart from setting a new blog up? Note that I should have copied the ENTIRE html code BEFORE attempting this fix but stupidly didn’t!

    • Meer Basit

      September 23, 2022 at 7:49 pm

      It works dear, you must be doing something wrong like leaving some code in the theme which is causing the error.

  54. kp

    October 28, 2022 at 11:55 pm

    Thanks Bro

  55. shan ahmad

    December 20, 2022 at 12:22 am

    thanku my problem is solved

Leave a Reply

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

More in Blogger

To Top