0

我正在尝试从 Script.google.com 中的 Google API 示例运行示例

示例代码:

function getClicks(shortUrl) {
  var url = UrlShortener.Url.get(shortUrl, {
    projection: 'ANALYTICS_CLICKS'
  });
  Logger.log('The URL received %s clicks this week.', url.analytics.week.shortUrlClicks);
}

错误:

Required parameter: shortUrl (line 2, file "Code")

我错过了什么?

4

0 回答 0