handle cases where the rootUrl is not pass and use the googleapis.com as default.