Skip to main content

Completing a Coursera Specialization for Free

Coursera provides continuing education just like Udacity and offer the full learning experience that I am accustomed to, including lesson videos, reading materials, projects, discussion forums, and graded projects which are peer-reviewed. I recently completed the Full-stack Web Development in React specialization from Coursera, all for free. It’s called a specialization because it is made up of three courses below each with their own certifications and which takes 4-6 weeks each to complete: 1. Front-End Web UI Frameworks and Tools: Bootstrap 4 2. Front-End Web Development with React 3. Server-side Development with NodeJS, Express and MongoDB I started the program in December 2021 and finished it in June 2023 however. The intent of this post is to explain how I was able to fund the entire specialization for free. In December 2021, I read on social media that Coursera allowed for one free course per year if you were a student and had an email address from a partner school. I gave my stu

Fixing ads.txt error in AdSense for your websites hosted on Blogger

We were recently approved to setup Google Adsense for a few websites. I was so ecstatic because I hadn't been able to get this going for a while due to some accounting errors. I assume there was a time duration where that token expires and am now glad to be able use this product. During the setup on our blogger sites, I ran into some technical errors pointed at fixing ads.txt otherwise it may impact ad revenue, i.e. "earnings at risk you need to fix some ads.txt file issues to avoid severe impact to your revenue". 


To summarize the steps needed to enable Google Adsense on your site, you would simply need to do the following: 

1) Create an ads.txt file in the root of your Blogger site like example.com/ads.txt by going to Settings > Moentization > Enable custom ads.txt slider; 

2) Add your publisher ID to the ads.txt file in Blogger using string "google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0" where pub-0000000000000000 is your personal publisher ID; and 

3) Grab or create your ad code in AdSense and paste inside <head> tag if by domain or inside <body> tag if by ad unit respectively. 

I was able to successfully setup one domain where DNS zone is hosted on AWS Route 53 DNS service. The other two DNS domains were hosted with secureserver.net and I was consistently getting errors asking me to fix ads.txt otherwise revenue will be skewed. This error was particularly hard to troubleshoot because making changes to ads.txt in Blogger took some time to take effect and so did DNS changes. I found that https://yourwebsite.com/ads.txt did not work for the sites hosted on secureserver.net so I had a feeling it was DNS service related because the other site where DNS zone was hosted on AWS Route 53 was able to display https://yourwebsite.com/ads.txt correctly. 

Here are the 3 things I followed to fix this ads.txt error when using custom domains in Google Blogger: 

1) Re-validate your site using Google Webmaster Central. 

Go to https://www.google.com/webmasters/verification/home?hl=en. I found that the two sites with issues displaying https://yourwebsite.com/ads.txt were missing DNS TXT records "google-site-verification=xxxx" while the other one hosted on AWS Route 53 had that record. To re-validate your site, add a property in Webmaster Central, type in your domain yourwebsite.com, and pick DNS TXT record as the method to prove ownership of the domain.

Make the DNS TXT record changes in DNS Manager at secureserver.net or whoever your DNS provider is. Wait at least 30-60 minutes for the DNS changes to propagate everywhere and then come back to Webmaster Central and click Verify. 

If you have different websites, make sure you login using the specific account prior to validating the domain using Google Webmaster Central.


2) Ensure the "redirect domain" setting is enabled in Publishing section of your blogger website.

From Blogger, go to Settings > Publishing section and disable the redirect domain slider. This setting redirects your custom domain yourwebsite.com to www.yourwebsite.com. I already had this slider setting enable but I turned it off in order to test https://yourwebsite.com/ads.txt. What I found was that I couldn't set the slider back to enabled. The reason was that it couldn't verify ownership of the domain because of the missing DNS TXT records. I must have verified domain DNS ownership a different way many years ago and that method is probably deprecated. After verifying DNS domain ownership in step #1, continue with this step to switch the "redirect domain" slider successfully gets enabled or re-enabled if you turned it off.

3) Re-test by going to https://yourwebsite.com/ads.txt. If you still get and error displaying the "google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0" string on the page, then wait 12-24 hours for the above changes to take effect. 

4) If step 3 correctly shows the string, login to AdSense and the red error bar at top asking you to fix ads.txt will no longer come up.


Comments

Popular posts from this blog

Completing a Coursera Specialization for Free

Coursera provides continuing education just like Udacity and offer the full learning experience that I am accustomed to, including lesson videos, reading materials, projects, discussion forums, and graded projects which are peer-reviewed. I recently completed the Full-stack Web Development in React specialization from Coursera, all for free. It’s called a specialization because it is made up of three courses below each with their own certifications and which takes 4-6 weeks each to complete: 1. Front-End Web UI Frameworks and Tools: Bootstrap 4 2. Front-End Web Development with React 3. Server-side Development with NodeJS, Express and MongoDB I started the program in December 2021 and finished it in June 2023 however. The intent of this post is to explain how I was able to fund the entire specialization for free. In December 2021, I read on social media that Coursera allowed for one free course per year if you were a student and had an email address from a partner school. I gave my stu

Logitech Circle 2 Security Webcam has gone Offline (SOLVED)

In November 2022, I realized that my webcam had stopped working. I took it down from above my door mount in order to troubleshoot closely. The unit would power on with a steady white lighting around the front but I was used to seeing green. When I press the button to reset it, it would reboot and start flashing different coloured lights but when I release the button, all lighting would stop.     I looked at Logitech’s support site to find out how to properly reset it. It was simply to hold the button a few seconds until lights start blinking, which is what I have been doing. I had the wired model so I plugged in the unit via USB to my Windows computer to attempt to connect to it. I had a hunch that there was a firmware update that it automatically tried to download and run, and that update caused this. I was right. A few other users on the Logitech forums reported the same symptoms I was experiencing with my Circle 2 webcam. Here was one specific post that I responded to: https://suppo

How I passed the AZ-104 Microsoft Certified: Azure Administrator Associate Exam

I had been planning to take the Microsoft Certified Solutions Architect track back when the prerequisite was AZ-303 and AZ-304. Life got in the way and now these two prerequisites have been deprecated and replaced by AZ-305. However, in order to take this exam, I needed to get through AZ-104 first. Here are resources that I used to prepare for it: * GlobalKnowledge/Skillsoft 4-day BootCamp. I have been using this training company for a while now but it has steadily just gotten worse. The trainers are outsourced and not very professional in my opinion. I do not recommend GlobalKnowledge at all. I didn’t really learn much from the lesson material but the lesson/challenge labs were very helpful. This bootcamp comes with an Azurepass subscription and a free exam voucher. I actually racked up to $90 out of the $100 credit provided on this subscription which expires in 12 days so I better delete all the resources before then to avoid incurring more. I initially booked the exam the end of Dec