简体   繁体   中英

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

I see the Apps Script API doc for calling Google CM360 API is much slimmer than the gapiREST API API doc .

Is there a way to call gapi/Google CM360 API from Apps Script Editor?

Use the Advanced Service:

The docs referring to the Advanced Service don't usually include all the methods available; that doesn't mean they are not available. All methods fromCampaign Manager 360 API v3.4 should be available to DoubleClickCampaigns Service .

How to use it:

In the Apps Script service, the names of the API resources will be typically the same as in the API, but with the first letter capitalized, and the method name will be the same as in the API.

For example, if you wanted to call accountActiveAdSummaries.get , you would do something like this (after enabling the service for your project):

DoubleClickCampaigns.AccountActiveAdSummaries.get(profileId, summaryAccountId);

Also, the autocomplete feature can be useful for checking the available methods and writing them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM