You don't appear to have created a web app with google apps script ? ( I see you have put the script code into the web app URL block!). Read the following:
then create your web app, get the url for the web app (it ends in "exec") and place this in the url block.
Also, if you change your script after you publish:
1 Open the script project
2 Go to Publish
3 Deploy as Web App
4 Project version: - select New from the dropdown
5 Execute the app as: your google account address (email)
6 Who has access to the app: Anyone, even anonymous
7 Press the Update button
You have to do this EVERY TIME you change your script