Skip to main content

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

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

60 Days of Udacity: A Bertelsmann Technology Scholarship in AI

I applied and was recently awarded the Bertelsmann Technology scholarship where a group of students take part in an Artificial Intelligence track made up of 5 parts to be completed in 3.5 months.    As part of taking the class, we have to take part in a slack channel where we post our daily studies for 60 days reflecting on what we have learned. This is a transcription of those 60 days. The public github wiki is located here https://github.com/chromilo/udacity-bertelsmann-scholarship/wiki  Day 1:  I am in p3  (Datasets) doing the xray annotation project. I have created the appen job using the "Image Categorization" template. I uploaded the xray image data and modified the CML to make the  questions specific to checking for pnemonia. Also updated the Examples section. I am still working out the usage of conditional only-if in checkboxes to determine what other smarts to include when annotators go through the page. Created one Question so far and will continue working on the ot

One of the more underappreciated AWS service

The most under-appreciated AWS service is the AWS Certificate Manager (ACM). This service provides SSL/TLS certificate for your custom domain as long as you subscribe to any ACM-integrated service like Elastic Cache or Cloudfront.  I had been using Wordpress to host my website https://aminsolutions.com for some time on a free web hosting provider. In order to provide SSL/TLS web encryption, I would have to buy a public certificate from an SSL provider and have that in front of my Wordpress content management web site. I found there were many limitations with that including installation of a public certificate on a free webhost subscription.  I would have had to start a paid web host subscription and in order to install a paid public certificate on a Wordpress website that wasn't getting a lot of hits. Regardless, it had to be secured via SSL web encryption so this is where AWS Cloudfront came in. Using AWS Cloudfront integrated with ACM, I can get a free public SSL web certificate