@@ -56,7 +56,7 @@ declare namespace GoogleAppsScript {
5656 list ( accountId : string , optionalArgs : object ) : Adsense . Schema . AdClients ;
5757 }
5858 interface AdunitsCollection {
59- Customchannels ? : Adsense . Collection . Accounts . Adunits . CustomchannelsCollection | undefined ;
59+ Customchannels : Adsense . Collection . Accounts . Adunits . CustomchannelsCollection ;
6060 // Gets the specified ad unit in the specified ad client for the specified account.
6161 get ( accountId : string , adClientId : string , adUnitId : string ) : Adsense . Schema . AdUnit ;
6262 // Get ad code for the specified ad unit.
@@ -75,7 +75,7 @@ declare namespace GoogleAppsScript {
7575 remove ( accountId : string , alertId : string ) : void ;
7676 }
7777 interface CustomchannelsCollection {
78- Adunits ? : Adsense . Collection . Accounts . Customchannels . AdunitsCollection | undefined ;
78+ Adunits : Adsense . Collection . Accounts . Customchannels . AdunitsCollection ;
7979 // Get the specified custom channel from the specified ad client for the specified account.
8080 get ( accountId : string , adClientId : string , customChannelId : string ) : Adsense . Schema . CustomChannel ;
8181 // List all custom channels in the specified ad client for the specified account.
@@ -88,7 +88,7 @@ declare namespace GoogleAppsScript {
8888 list ( accountId : string ) : Adsense . Schema . Payments ;
8989 }
9090 interface ReportsCollection {
91- Saved ? : Adsense . Collection . Accounts . Reports . SavedCollection | undefined ;
91+ Saved : Adsense . Collection . Accounts . Reports . SavedCollection ;
9292 // Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
9393 generate (
9494 accountId : string ,
@@ -160,14 +160,14 @@ declare namespace GoogleAppsScript {
160160 }
161161 }
162162 interface AccountsCollection {
163- Adclients ? : Adsense . Collection . Accounts . AdclientsCollection | undefined ;
164- Adunits ? : Adsense . Collection . Accounts . AdunitsCollection | undefined ;
165- Alerts ? : Adsense . Collection . Accounts . AlertsCollection | undefined ;
166- Customchannels ? : Adsense . Collection . Accounts . CustomchannelsCollection | undefined ;
167- Payments ? : Adsense . Collection . Accounts . PaymentsCollection | undefined ;
168- Reports ? : Adsense . Collection . Accounts . ReportsCollection | undefined ;
169- Savedadstyles ? : Adsense . Collection . Accounts . SavedadstylesCollection | undefined ;
170- Urlchannels ? : Adsense . Collection . Accounts . UrlchannelsCollection | undefined ;
163+ Adclients : Adsense . Collection . Accounts . AdclientsCollection ;
164+ Adunits : Adsense . Collection . Accounts . AdunitsCollection ;
165+ Alerts : Adsense . Collection . Accounts . AlertsCollection ;
166+ Customchannels : Adsense . Collection . Accounts . CustomchannelsCollection ;
167+ Payments : Adsense . Collection . Accounts . PaymentsCollection ;
168+ Reports : Adsense . Collection . Accounts . ReportsCollection ;
169+ Savedadstyles : Adsense . Collection . Accounts . SavedadstylesCollection ;
170+ Urlchannels : Adsense . Collection . Accounts . UrlchannelsCollection ;
171171 // Get information about the selected AdSense account.
172172 get ( accountId : string ) : Adsense . Schema . Account ;
173173 // Get information about the selected AdSense account.
@@ -184,7 +184,7 @@ declare namespace GoogleAppsScript {
184184 list ( optionalArgs : object ) : Adsense . Schema . AdClients ;
185185 }
186186 interface AdunitsCollection {
187- Customchannels ? : Adsense . Collection . Adunits . CustomchannelsCollection | undefined ;
187+ Customchannels : Adsense . Collection . Adunits . CustomchannelsCollection ;
188188 // Gets the specified ad unit in the specified ad client.
189189 get ( adClientId : string , adUnitId : string ) : Adsense . Schema . AdUnit ;
190190 // Get ad code for the specified ad unit.
@@ -203,7 +203,7 @@ declare namespace GoogleAppsScript {
203203 remove ( alertId : string ) : void ;
204204 }
205205 interface CustomchannelsCollection {
206- Adunits ? : Adsense . Collection . Customchannels . AdunitsCollection | undefined ;
206+ Adunits : Adsense . Collection . Customchannels . AdunitsCollection ;
207207 // Get the specified custom channel from the specified ad client.
208208 get ( adClientId : string , customChannelId : string ) : Adsense . Schema . CustomChannel ;
209209 // List all custom channels in the specified ad client for this AdSense account.
@@ -212,15 +212,15 @@ declare namespace GoogleAppsScript {
212212 list ( adClientId : string , optionalArgs : object ) : Adsense . Schema . CustomChannels ;
213213 }
214214 interface MetadataCollection {
215- Dimensions ? : Adsense . Collection . Metadata . DimensionsCollection | undefined ;
216- Metrics ? : Adsense . Collection . Metadata . MetricsCollection | undefined ;
215+ Dimensions : Adsense . Collection . Metadata . DimensionsCollection ;
216+ Metrics : Adsense . Collection . Metadata . MetricsCollection ;
217217 }
218218 interface PaymentsCollection {
219219 // List the payments for this AdSense account.
220220 list ( ) : Adsense . Schema . Payments ;
221221 }
222222 interface ReportsCollection {
223- Saved ? : Adsense . Collection . Reports . SavedCollection | undefined ;
223+ Saved : Adsense . Collection . Reports . SavedCollection ;
224224 // Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
225225 generate ( startDate : string , endDate : string ) : Adsense . Schema . AdsenseReportsGenerateResponse ;
226226 // Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
@@ -445,17 +445,20 @@ declare namespace GoogleAppsScript {
445445 }
446446 }
447447 interface Adsense {
448- Accounts ? : Adsense . Collection . AccountsCollection | undefined ;
449- Adclients ? : Adsense . Collection . AdclientsCollection | undefined ;
450- Adunits ? : Adsense . Collection . AdunitsCollection | undefined ;
451- Alerts ? : Adsense . Collection . AlertsCollection | undefined ;
452- Customchannels ? : Adsense . Collection . CustomchannelsCollection | undefined ;
453- Metadata ? : Adsense . Collection . MetadataCollection | undefined ;
454- Payments ? : Adsense . Collection . PaymentsCollection | undefined ;
455- Reports ? : Adsense . Collection . ReportsCollection | undefined ;
456- Savedadstyles ? : Adsense . Collection . SavedadstylesCollection | undefined ;
457- Urlchannels ? : Adsense . Collection . UrlchannelsCollection | undefined ;
448+ Accounts : Adsense . Collection . AccountsCollection ;
449+ Adclients : Adsense . Collection . AdclientsCollection ;
450+ Adunits : Adsense . Collection . AdunitsCollection ;
451+ Alerts : Adsense . Collection . AlertsCollection ;
452+ Customchannels : Adsense . Collection . CustomchannelsCollection ;
453+ Metadata : Adsense . Collection . MetadataCollection ;
454+ Payments : Adsense . Collection . PaymentsCollection ;
455+ Reports : Adsense . Collection . ReportsCollection ;
456+ Savedadstyles : Adsense . Collection . SavedadstylesCollection ;
457+ Urlchannels : Adsense . Collection . UrlchannelsCollection ;
458458 }
459459}
460460
461- declare var Adsense : GoogleAppsScript . Adsense ;
461+ /**
462+ * The `Adsense` advanced service must be enabled.
463+ */
464+ declare var Adsense : GoogleAppsScript . Adsense | undefined ;
0 commit comments