URL Shortener Service

Warning: The URL Shortener API that this service enabled was
deprecated on March 30, 2018.
This advanced service can no longer be used to create new short links.
Existing links continue to function. You can continue to use the advanced
service to list and manage existing short links until March 30, 2019, when the
API will be fully shutdown. See the
Transitioning Google URL Shortener blog post
for more details.

The URL Shortener service allows you to use the
URL Shortener API in Apps Script. This API
gives users the ability to manage and report on their goo.gl
short links.

Reference

For detailed information on this service, see the
reference documentation for the URL Shortener API. Like
all advanced services in Apps Script, the URL Shortener service uses the same
objects, methods, and parameters as the public API.