Skip to main content

Udacity Front-end Developer Challenge Daily Sprint Updates

As per the Next Generation Tech Booster Challenge Program, we are asked to submit a daily progress report on slack. We just need to answer these three questions in the post: • What did I work on today? • What I will work on tomorrow? • What issues are blocking my progress? I take this logging opportunity to also report on the progress I am making with my Coursera course “Server-side Development with NodeJS, Express, and MongoDB”; and my Linux Foundation course “LFS258 Kubernetes Fundamentals”.  To help with completing above, here are some links posted by the slack moderators that I try to use to get through my workload: How to Organize your Desk like a Pro Tips on how to achieve consistency Strategies we can employ to stop Procrastination Eliminate Time Wasting Activities by Using the Eisenhower Box Warren Buffett’s “2 List” Strategy The Ivy Lee Method The 15-Minute Routine Anthony Trollope Used to Write 40+ Books The instructor for the course is Daniel and is pure entertainment.  Ther

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

Wall of Graduates from the AI Product Manager Nanodegree

The "Wall of Graduates" is a Google sites page showing a profile list of students who graduated from the Udacity AI Product Manager nanodegree. We were asked two questions to include in our profile and there are those two questions.  What obstacles (big or small!) did you face during Phase 2 & how did you overcome them?    I think the biggest was time constraint. I was also doing my Georgia Tech course in the spring and this fell on the same timeline. The other obstacle is that the course material was not technical but more for product managers. This meant a lot of time was spent networking in slack participating community-driven initiatives. I did learn Artificial Intelligence concepts but it didn't need to last from December 2020-December 2021.  How are you making use of your newfound skills?  I don't use AI at work but it has allowed me to open my eyes to possibilities. We recently implemented MS Azure Cognitive service utilizing text translation. Although not

Udacity Front-end Developer Challenge Daily Sprint Updates

As per the Next Generation Tech Booster Challenge Program, we are asked to submit a daily progress report on slack. We just need to answer these three questions in the post: • What did I work on today? • What I will work on tomorrow? • What issues are blocking my progress? I take this logging opportunity to also report on the progress I am making with my Coursera course “Server-side Development with NodeJS, Express, and MongoDB”; and my Linux Foundation course “LFS258 Kubernetes Fundamentals”.  To help with completing above, here are some links posted by the slack moderators that I try to use to get through my workload: How to Organize your Desk like a Pro Tips on how to achieve consistency Strategies we can employ to stop Procrastination Eliminate Time Wasting Activities by Using the Eisenhower Box Warren Buffett’s “2 List” Strategy The Ivy Lee Method The 15-Minute Routine Anthony Trollope Used to Write 40+ Books The instructor for the course is Daniel and is pure entertainment.  Ther