如何从 Apps 脚本编辑器调用 Google CM360 API?

How can I call Google CM360 API from Apps-script editor?

我看到 Apps 脚本 API doc for calling Google CM360 API is much slimmer than the gapi REST API API doc

有没有办法从 Apps 脚本编辑器调用 gapi/Google CM360 API?

使用高级服务:

涉及高级服务的文档通常不包括所有可用的方法;这并不意味着它们不可用。 Campaign Manager 360 API v3.4 should be available to DoubleClickCampaigns Service.

中的所有方法

使用方法:

在 Apps 脚本服务中,API 资源的名称通常与 API 中的名称相同,但首字母大写,方法名称也相同如 API.

例如,如果您想为您的项目调用 accountActiveAdSummaries.get, you would do something like this (after enabling the service

DoubleClickCampaigns.AccountActiveAdSummaries.get(profileId, summaryAccountId);

此外,autocomplete feature 可用于检查可用方法并编写它们。