I'd like to add Google AdSense to my GitHub Pages website.
Problem:
AdSense scans the root page (<user>.github.io
). But I can only edit a repository page (<user>.github.io/<repo>
). So the root will always return 404
, making it non-eligible for AdSense.
Possible Solutions:
I can see 3 possible solutions:
- Use my own domain. (I know that would work, but I don't want a domain for that)
- Somehow edit my root Github page
<user>.github.io
- Setup AdSense to ignore my root and scan my sub-repo.
Question:
Is any of options 2 or 3 feasible? How?