By using Google Apps Script ("the Service"), you consent to be bound by these terms, in addition to the Google Terms of Service ("Google ToS").
Using Google Apps Script to Create Scripts
The Service permits you to create scripts for use by end users ("Scripts"). You may also choose to include content provided or generated by you as part of your Script. Google claims no ownership over any Script. You retain copyright and any other rights, including all intellectual property rights, you hold in the Script. You are responsible for protecting and enforcing those rights and that Google has no obligation to do so on your behalf.
When developing Scripts utilizing any Google API, you must abide by the applicable terms of any Google API used in your Script (collectively, the "Google API Terms"). If there is any contradiction between what the Google Apps Script Additional Terms say and what the Google API Terms say, then the Google API Terms shall take precedence only as relates to the applicable Script, and not to any other part of the Service.
By choosing to make your Script accessible to other users, you grant Google a worldwide, royalty-free, non-exclusive, perpetual license to to reproduce the Script; to create and reproduce derivative works of the Script; to display publicly and distribute copies of the Script; to display publicly and distribute copies of derivative works of the Script to the full extent that you have made the Script available to other users. If you have chosen to make your Script accessible to other users then later choose to revoke that access, Google has no responsibility for ensuring that the users previously granted access no longer use your Script and the Google's license continues as to those users.
You are solely responsible for any Script that you create. Google is not in any way responsible for the use or misuse of your Script by any third party, including end users. By using the Service to develop and deploy a Script, you agree that Google may provide your contact information to any end user installing the Script or otherwise authorizing use of the Script.
You will use the Service only as permitted by law (including without limitation laws regarding the import or export of data or software, privacy, or local laws). You will not use the Service to encourage or promote illegal activity. You will not knowingly enable end users of your Script to violate applicable law or these terms.
You will only access (or attempt to access) the Service by the means described in the documentation. If Google assigns you developer credentials, you must use them with the Service. You will not misrepresent or mask either your identity or your Script's identity when using the Service or developer accounts.
Google may set limits on the number of requests that you can make using the Service, at its sole discretion. You agree to such limitations and will not attempt to circumvent such limitations.
Google may monitor the use of the Service to ensure quality, improve Google products and services, and verify your compliance with these terms. You will not interfere with such monitoring. Google may use any technical means to overcome such interference.
Google reserves the right to investigate any Script for compliance with these terms. Such investigations may include Google accessing and using your Script, for example to identify security issues that could affect Google or its users. You consent to any such investigation. Google may suspend access to the Service or our APIs by you or your Script without notice if we reasonably believe that you are in violation of these terms.
You agree that we may send you certain communications in connection with your use of the Service. Please review the applicable documentation for information about opting out of certain types of communication.
If you provide feedback or suggestions about the Service, then we may use such information without obligation to you.
End Users Using Scripts
End Users may use and import Scripts created by third parties, including Google. A Script is the sole responsibility of the entity that makes it available. Google makes no representations about the performance, quality, content, or continued availability of any Script.
Google does not promise that any Script will work for your purposes, or that it is free from viruses, bugs, or other defects. Scripts are provided "as is" and without warranty of any kind. Google provides no express warranties, guarantees and conditions with regard to the Scripts. To the extent permitted under applicable law, Google excludes the implied warranties and conditions of merchantability, fitness for a particular purpose, workmanlike effort, title and non-infringement.
Scripts are subject to change at any time. Using or importing any Script is at your own risk. You should only run the script if you trust the developer of the Script, as you are solely responsible for any compromise or loss of data that may result from using this Script.