This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sample script to be used as a webhook listener for Google Ads Leads Campaigns | |
## Setup: | |
1) Create a new script project at https://script.google.com/ and paste the script code into the editor window | |
2) Create a new scpreadsheet and paste the URL in lines #15 and #65 | |
3) in the menu above select Init function and make a first run to initialize authorization process (https://nimb.ws/WnvXJz) | |
4) publish the script as a web app through the `Publish > Deply as a web app` menu. Make sure set | |
the "Who has access to the app:" option to "Anyone, even anonymous" | |
5) use generated link as a webhook URL in Google Ads form settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name="$inputline" | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url="$inputline" |