I am trying to write a script and use it as a Webhook listener for gmail pub/sub notifications.
Therefore, I would need to verify the domain associated with the script in domain verification in API&Services.
However, a modal asks me to verify the domain's ownership on webmaster.
I have tried to add the google-site-verification
using the following dotGet function in google apps script and can see the tag in the head:
function doGet(e) { return HtmlService.createHtmlOutputFromFile('index.html').setTitle("Hello World").addMetaTag('google-site-verification', 'verification-code'); }
However, the Webmaster verification does not go through and it shows that it found a different verification code.