Google adsense ads.txt status cannot be not found

52 Views Asked by At

I am trying to get my Angular website approved for Google Adsense. For this, I used an ads.txt file which I have placed in the src folder inside our Angular app e.g. src/ads.txt. However, after few days the Google Adsense website is showing that the ads.txt is not found:

google ads.txt not found

When i tried to access the file a second time, the304 status is not modified:

status 304 not found

What could be causing this?

1

There are 1 best solutions below

1
AnnaK On

You should include this file into assets to make it being copied to /dist folder at the build time. Look into angular.json at the root of your project, by the path:

projects -> <app_name> -> architect -> build -> options -> assets