I've been experimenting with creating multiple Web App deployments (via the Deployments dialog accessible from the
Deploy from manifest option under the
Publish menu in the Apps Script GUI) in an effort to set up distinct deployment environments. The intent is to establish a workflow that is more in line with standard software development practices.
My setup consists of three deployment environments following the standard nomenclature: development, staging and production.
Each deployment has a distinct web url (which includes a unique deployment id). Each environment accesses their own distinct configuration (think property stores with the same keys but different values per environment).
My application is set up to use Google's PubSub's API and its push model. Basically, that means setting up the web-urls (per environment) as webhook endpoints and using them to subscribe to a PubSub topic to receive notifications in response to an event. PubSub requires that all url endpoints be verified and registered (added as a domain) under the GCP project.
And therein lies the rub...previously I would use the Deploy As Web App option and follow that up with the Register in Chrome Web Store to verify ownership of the Web App's url for use with PubSub. As far as I know this is the only way to verify a GAS Web App Url (and no, none of the other verification methods listed in the search console will work; not meta tags, not embedded html files, not tag manager, or any of the other methods). My problem is that the Register in Chrome Web Store option only seems to apply to Web Apps deployed via Deploy As Web App, but deployments created via Deploy from manifest don't get that benefit and therefore cannot be verified for use with the PubSub API.
I suspect I'm going to have to create a new feature request for this on google's issue tracker, but in the off-chance someone has a solution in mind I've posted this problem here.