I'll explain what is my requirement in high level.
I'm having a root domain as example.com, and I'm having several subdomains (ads.example.com, document.example.com) where I hosted an application. I'm also developed an android app which I need to enable the app linking with the instance. So, as per this guide, I've created the directory and the respective JSON file inside the document root. Now I want to apply these changes to all of my subdomains, I don't want to create the directory and the respective file in each and every subdomain's document root directory. So how do I achieve this ?