Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: generated/googleapis/lib/adsense/v1_4.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/lib/admin/reports_v1.dart ('k') | generated/googleapis/lib/adsensehost/v4_1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/adsense/v1_4.dart
diff --git a/generated/googleapis/lib/adsense/v1_4.dart b/generated/googleapis/lib/adsense/v1_4.dart
index 9b2ee7a928d00a548cad68e4f4b1f9a9df62f9ed..eed1ce3cc12859936fc6ce1572392addd468a35e 100644
--- a/generated/googleapis/lib/adsense/v1_4.dart
+++ b/generated/googleapis/lib/adsense/v1_4.dart
@@ -9,23 +9,27 @@ import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
import 'package:http/http.dart' as http;
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
- ApiRequestError, DetailedApiRequestError, Media, UploadOptions,
- ResumableUploadOptions, DownloadOptions, PartialDownloadOptions,
- ByteRange;
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
+ show
+ ApiRequestError,
+ DetailedApiRequestError,
+ Media,
+ UploadOptions,
+ ResumableUploadOptions,
+ DownloadOptions,
+ PartialDownloadOptions,
+ ByteRange;
const core.String USER_AGENT = 'dart-api-client adsense/v1.4';
-/**
- * Accesses AdSense publishers' inventory and generates performance reports.
- */
+/// Accesses AdSense publishers' inventory and generates performance reports.
class AdsenseApi {
- /** View and manage your AdSense data */
+ /// View and manage your AdSense data
static const AdsenseScope = "https://www.googleapis.com/auth/adsense";
- /** View your AdSense data */
- static const AdsenseReadonlyScope = "https://www.googleapis.com/auth/adsense.readonly";
-
+ /// View your AdSense data
+ static const AdsenseReadonlyScope =
+ "https://www.googleapis.com/auth/adsense.readonly";
final commons.ApiRequester _requester;
@@ -33,50 +37,60 @@ class AdsenseApi {
AdclientsResourceApi get adclients => new AdclientsResourceApi(_requester);
AdunitsResourceApi get adunits => new AdunitsResourceApi(_requester);
AlertsResourceApi get alerts => new AlertsResourceApi(_requester);
- CustomchannelsResourceApi get customchannels => new CustomchannelsResourceApi(_requester);
+ CustomchannelsResourceApi get customchannels =>
+ new CustomchannelsResourceApi(_requester);
MetadataResourceApi get metadata => new MetadataResourceApi(_requester);
PaymentsResourceApi get payments => new PaymentsResourceApi(_requester);
ReportsResourceApi get reports => new ReportsResourceApi(_requester);
- SavedadstylesResourceApi get savedadstyles => new SavedadstylesResourceApi(_requester);
- UrlchannelsResourceApi get urlchannels => new UrlchannelsResourceApi(_requester);
-
- AdsenseApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "adsense/v1.4/"}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ SavedadstylesResourceApi get savedadstyles =>
+ new SavedadstylesResourceApi(_requester);
+ UrlchannelsResourceApi get urlchannels =>
+ new UrlchannelsResourceApi(_requester);
+
+ AdsenseApi(http.Client client,
+ {core.String rootUrl: "https://www.googleapis.com/",
+ core.String servicePath: "adsense/v1.4/"})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class AccountsResourceApi {
final commons.ApiRequester _requester;
- AccountsAdclientsResourceApi get adclients => new AccountsAdclientsResourceApi(_requester);
- AccountsAdunitsResourceApi get adunits => new AccountsAdunitsResourceApi(_requester);
- AccountsAlertsResourceApi get alerts => new AccountsAlertsResourceApi(_requester);
- AccountsCustomchannelsResourceApi get customchannels => new AccountsCustomchannelsResourceApi(_requester);
- AccountsPaymentsResourceApi get payments => new AccountsPaymentsResourceApi(_requester);
- AccountsReportsResourceApi get reports => new AccountsReportsResourceApi(_requester);
- AccountsSavedadstylesResourceApi get savedadstyles => new AccountsSavedadstylesResourceApi(_requester);
- AccountsUrlchannelsResourceApi get urlchannels => new AccountsUrlchannelsResourceApi(_requester);
-
- AccountsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Get information about the selected AdSense account.
- *
- * Request parameters:
- *
- * [accountId] - Account to get information about.
- *
- * [tree] - Whether the tree of sub accounts should be returned.
- *
- * Completes with a [Account].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ AccountsAdclientsResourceApi get adclients =>
+ new AccountsAdclientsResourceApi(_requester);
+ AccountsAdunitsResourceApi get adunits =>
+ new AccountsAdunitsResourceApi(_requester);
+ AccountsAlertsResourceApi get alerts =>
+ new AccountsAlertsResourceApi(_requester);
+ AccountsCustomchannelsResourceApi get customchannels =>
+ new AccountsCustomchannelsResourceApi(_requester);
+ AccountsPaymentsResourceApi get payments =>
+ new AccountsPaymentsResourceApi(_requester);
+ AccountsReportsResourceApi get reports =>
+ new AccountsReportsResourceApi(_requester);
+ AccountsSavedadstylesResourceApi get savedadstyles =>
+ new AccountsSavedadstylesResourceApi(_requester);
+ AccountsUrlchannelsResourceApi get urlchannels =>
+ new AccountsUrlchannelsResourceApi(_requester);
+
+ AccountsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Get information about the selected AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account to get information about.
+ ///
+ /// [tree] - Whether the tree of sub accounts should be returned.
+ ///
+ /// Completes with a [Account].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Account> get(core.String accountId, {core.bool tree}) {
var _url = null;
var _queryParams = new core.Map();
@@ -94,37 +108,34 @@ class AccountsResourceApi {
_url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Account.fromJson(data));
}
- /**
- * List all accounts available to this AdSense account.
- *
- * Request parameters:
- *
- * [maxResults] - The maximum number of accounts to include in the response,
- * used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through accounts. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [Accounts].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// List all accounts available to this AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// [maxResults] - The maximum number of accounts to include in the response,
+ /// used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through accounts. To
+ /// retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [Accounts].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Accounts> list({core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
@@ -142,49 +153,45 @@ class AccountsResourceApi {
_url = 'accounts';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Accounts.fromJson(data));
}
-
}
-
class AccountsAdclientsResourceApi {
final commons.ApiRequester _requester;
- AccountsAdclientsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List all ad clients in the specified account.
- *
- * Request parameters:
- *
- * [accountId] - Account for which to list ad clients.
- *
- * [maxResults] - The maximum number of ad clients to include in the response,
- * used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through ad clients. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [AdClients].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<AdClients> list(core.String accountId, {core.int maxResults, core.String pageToken}) {
+ AccountsAdclientsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List all ad clients in the specified account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account for which to list ad clients.
+ ///
+ /// [maxResults] - The maximum number of ad clients to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through ad clients. To
+ /// retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [AdClients].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<AdClients> list(core.String accountId,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -202,50 +209,48 @@ class AccountsAdclientsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/adclients';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AdClients.fromJson(data));
}
-
}
-
class AccountsAdunitsResourceApi {
final commons.ApiRequester _requester;
- AccountsAdunitsCustomchannelsResourceApi get customchannels => new AccountsAdunitsCustomchannelsResourceApi(_requester);
-
- AccountsAdunitsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Gets the specified ad unit in the specified ad client for the specified
- * account.
- *
- * Request parameters:
- *
- * [accountId] - Account to which the ad client belongs.
- *
- * [adClientId] - Ad client for which to get the ad unit.
- *
- * [adUnitId] - Ad unit to retrieve.
- *
- * Completes with a [AdUnit].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<AdUnit> get(core.String accountId, core.String adClientId, core.String adUnitId) {
+ AccountsAdunitsCustomchannelsResourceApi get customchannels =>
+ new AccountsAdunitsCustomchannelsResourceApi(_requester);
+
+ AccountsAdunitsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Gets the specified ad unit in the specified ad client for the specified
+ /// account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account to which the ad client belongs.
+ ///
+ /// [adClientId] - Ad client for which to get the ad unit.
+ ///
+ /// [adUnitId] - Ad unit to retrieve.
+ ///
+ /// Completes with a [AdUnit].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<AdUnit> get(
+ core.String accountId, core.String adClientId, core.String adUnitId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -263,38 +268,41 @@ class AccountsAdunitsResourceApi {
throw new core.ArgumentError("Parameter adUnitId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Escaper.ecapeVariable('$adUnitId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/adunits/' +
+ commons.Escaper.ecapeVariable('$adUnitId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AdUnit.fromJson(data));
}
- /**
- * Get ad code for the specified ad unit.
- *
- * Request parameters:
- *
- * [accountId] - Account which contains the ad client.
- *
- * [adClientId] - Ad client with contains the ad unit.
- *
- * [adUnitId] - Ad unit to get the code for.
- *
- * Completes with a [AdCode].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<AdCode> getAdCode(core.String accountId, core.String adClientId, core.String adUnitId) {
+ /// Get ad code for the specified ad unit.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account which contains the ad client.
+ ///
+ /// [adClientId] - Ad client with contains the ad unit.
+ ///
+ /// [adUnitId] - Ad unit to get the code for.
+ ///
+ /// Completes with a [AdCode].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<AdCode> getAdCode(
+ core.String accountId, core.String adClientId, core.String adUnitId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -312,46 +320,50 @@ class AccountsAdunitsResourceApi {
throw new core.ArgumentError("Parameter adUnitId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Escaper.ecapeVariable('$adUnitId') + '/adcode';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/adunits/' +
+ commons.Escaper.ecapeVariable('$adUnitId') +
+ '/adcode';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AdCode.fromJson(data));
}
- /**
- * List all ad units in the specified ad client for the specified account.
- *
- * Request parameters:
- *
- * [accountId] - Account to which the ad client belongs.
- *
- * [adClientId] - Ad client for which to list ad units.
- *
- * [includeInactive] - Whether to include inactive ad units. Default: true.
- *
- * [maxResults] - The maximum number of ad units to include in the response,
- * used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through ad units. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [AdUnits].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<AdUnits> list(core.String accountId, core.String adClientId, {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
+ /// List all ad units in the specified ad client for the specified account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account to which the ad client belongs.
+ ///
+ /// [adClientId] - Ad client for which to list ad units.
+ ///
+ /// [includeInactive] - Whether to include inactive ad units. Default: true.
+ ///
+ /// [maxResults] - The maximum number of ad units to include in the response,
+ /// used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through ad units. To
+ /// retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [AdUnits].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<AdUnits> list(core.String accountId, core.String adClientId,
+ {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -375,55 +387,56 @@ class AccountsAdunitsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/adunits';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AdUnits.fromJson(data));
}
-
}
-
class AccountsAdunitsCustomchannelsResourceApi {
final commons.ApiRequester _requester;
- AccountsAdunitsCustomchannelsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List all custom channels which the specified ad unit belongs to.
- *
- * Request parameters:
- *
- * [accountId] - Account to which the ad client belongs.
- *
- * [adClientId] - Ad client which contains the ad unit.
- *
- * [adUnitId] - Ad unit for which to list custom channels.
- *
- * [maxResults] - The maximum number of custom channels to include in the
- * response, used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through custom channels.
- * To retrieve the next page, set this parameter to the value of
- * "nextPageToken" from the previous response.
- *
- * Completes with a [CustomChannels].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomChannels> list(core.String accountId, core.String adClientId, core.String adUnitId, {core.int maxResults, core.String pageToken}) {
+ AccountsAdunitsCustomchannelsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List all custom channels which the specified ad unit belongs to.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account to which the ad client belongs.
+ ///
+ /// [adClientId] - Ad client which contains the ad unit.
+ ///
+ /// [adUnitId] - Ad unit for which to list custom channels.
+ ///
+ /// [maxResults] - The maximum number of custom channels to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through custom channels.
+ /// To retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [CustomChannels].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomChannels> list(
+ core.String accountId, core.String adClientId, core.String adUnitId,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -447,43 +460,43 @@ class AccountsAdunitsCustomchannelsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Escaper.ecapeVariable('$adUnitId') + '/customchannels';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/adunits/' +
+ commons.Escaper.ecapeVariable('$adUnitId') +
+ '/customchannels';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomChannels.fromJson(data));
}
-
}
-
class AccountsAlertsResourceApi {
final commons.ApiRequester _requester;
- AccountsAlertsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Dismiss (delete) the specified alert from the specified publisher AdSense
- * account.
- *
- * Request parameters:
- *
- * [accountId] - Account which contains the ad unit.
- *
- * [alertId] - Alert to delete.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ AccountsAlertsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Dismiss (delete) the specified alert from the specified publisher AdSense
+ /// account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account which contains the ad unit.
+ ///
+ /// [alertId] - Alert to delete.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String accountId, core.String alertId) {
var _url = null;
var _queryParams = new core.Map();
@@ -501,37 +514,37 @@ class AccountsAlertsResourceApi {
_downloadOptions = null;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts/' + commons.Escaper.ecapeVariable('$alertId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/alerts/' +
+ commons.Escaper.ecapeVariable('$alertId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * List the alerts for the specified AdSense account.
- *
- * Request parameters:
- *
- * [accountId] - Account for which to retrieve the alerts.
- *
- * [locale] - The locale to use for translating alert messages. The account
- * locale will be used if this is not supplied. The AdSense default (English)
- * will be used if the supplied locale is invalid or unsupported.
- *
- * Completes with a [Alerts].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// List the alerts for the specified AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account for which to retrieve the alerts.
+ ///
+ /// [locale] - The locale to use for translating alert messages. The account
+ /// locale will be used if this is not supplied. The AdSense default
+ /// (English) will be used if the supplied locale is invalid or unsupported.
+ ///
+ /// Completes with a [Alerts].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Alerts> list(core.String accountId, {core.String locale}) {
var _url = null;
var _queryParams = new core.Map();
@@ -547,50 +560,48 @@ class AccountsAlertsResourceApi {
_queryParams["locale"] = [locale];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts';
+ _url =
+ 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Alerts.fromJson(data));
}
-
}
-
class AccountsCustomchannelsResourceApi {
final commons.ApiRequester _requester;
- AccountsCustomchannelsAdunitsResourceApi get adunits => new AccountsCustomchannelsAdunitsResourceApi(_requester);
-
- AccountsCustomchannelsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Get the specified custom channel from the specified ad client for the
- * specified account.
- *
- * Request parameters:
- *
- * [accountId] - Account to which the ad client belongs.
- *
- * [adClientId] - Ad client which contains the custom channel.
- *
- * [customChannelId] - Custom channel to retrieve.
- *
- * Completes with a [CustomChannel].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomChannel> get(core.String accountId, core.String adClientId, core.String customChannelId) {
+ AccountsCustomchannelsAdunitsResourceApi get adunits =>
+ new AccountsCustomchannelsAdunitsResourceApi(_requester);
+
+ AccountsCustomchannelsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Get the specified custom channel from the specified ad client for the
+ /// specified account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account to which the ad client belongs.
+ ///
+ /// [adClientId] - Ad client which contains the custom channel.
+ ///
+ /// [customChannelId] - Custom channel to retrieve.
+ ///
+ /// Completes with a [CustomChannel].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomChannel> get(core.String accountId, core.String adClientId,
+ core.String customChannelId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -608,45 +619,49 @@ class AccountsCustomchannelsResourceApi {
throw new core.ArgumentError("Parameter customChannelId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + commons.Escaper.ecapeVariable('$customChannelId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/customchannels/' +
+ commons.Escaper.ecapeVariable('$customChannelId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomChannel.fromJson(data));
}
- /**
- * List all custom channels in the specified ad client for the specified
- * account.
- *
- * Request parameters:
- *
- * [accountId] - Account to which the ad client belongs.
- *
- * [adClientId] - Ad client for which to list custom channels.
- *
- * [maxResults] - The maximum number of custom channels to include in the
- * response, used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through custom channels.
- * To retrieve the next page, set this parameter to the value of
- * "nextPageToken" from the previous response.
- *
- * Completes with a [CustomChannels].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomChannels> list(core.String accountId, core.String adClientId, {core.int maxResults, core.String pageToken}) {
+ /// List all custom channels in the specified ad client for the specified
+ /// account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account to which the ad client belongs.
+ ///
+ /// [adClientId] - Ad client for which to list custom channels.
+ ///
+ /// [maxResults] - The maximum number of custom channels to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through custom channels.
+ /// To retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [CustomChannels].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomChannels> list(
+ core.String accountId, core.String adClientId,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -667,57 +682,58 @@ class AccountsCustomchannelsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/customchannels';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomChannels.fromJson(data));
}
-
}
-
class AccountsCustomchannelsAdunitsResourceApi {
final commons.ApiRequester _requester;
- AccountsCustomchannelsAdunitsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List all ad units in the specified custom channel.
- *
- * Request parameters:
- *
- * [accountId] - Account to which the ad client belongs.
- *
- * [adClientId] - Ad client which contains the custom channel.
- *
- * [customChannelId] - Custom channel for which to list ad units.
- *
- * [includeInactive] - Whether to include inactive ad units. Default: true.
- *
- * [maxResults] - The maximum number of ad units to include in the response,
- * used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through ad units. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [AdUnits].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<AdUnits> list(core.String accountId, core.String adClientId, core.String customChannelId, {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
+ AccountsCustomchannelsAdunitsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List all ad units in the specified custom channel.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account to which the ad client belongs.
+ ///
+ /// [adClientId] - Ad client which contains the custom channel.
+ ///
+ /// [customChannelId] - Custom channel for which to list ad units.
+ ///
+ /// [includeInactive] - Whether to include inactive ad units. Default: true.
+ ///
+ /// [maxResults] - The maximum number of ad units to include in the response,
+ /// used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through ad units. To
+ /// retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [AdUnits].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<AdUnits> list(core.String accountId, core.String adClientId,
+ core.String customChannelId,
+ {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -744,42 +760,43 @@ class AccountsCustomchannelsAdunitsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + commons.Escaper.ecapeVariable('$customChannelId') + '/adunits';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/customchannels/' +
+ commons.Escaper.ecapeVariable('$customChannelId') +
+ '/adunits';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AdUnits.fromJson(data));
}
-
}
-
class AccountsPaymentsResourceApi {
final commons.ApiRequester _requester;
- AccountsPaymentsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List the payments for the specified AdSense account.
- *
- * Request parameters:
- *
- * [accountId] - Account for which to retrieve the payments.
- *
- * Completes with a [Payments].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ AccountsPaymentsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List the payments for the specified AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account for which to retrieve the payments.
+ ///
+ /// Completes with a [Payments].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Payments> list(core.String accountId) {
var _url = null;
var _queryParams = new core.Map();
@@ -792,98 +809,106 @@ class AccountsPaymentsResourceApi {
throw new core.ArgumentError("Parameter accountId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/payments';
+ _url =
+ 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/payments';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Payments.fromJson(data));
}
-
}
-
class AccountsReportsResourceApi {
final commons.ApiRequester _requester;
- AccountsReportsSavedResourceApi get saved => new AccountsReportsSavedResourceApi(_requester);
-
- AccountsReportsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * 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.
- *
- * Request parameters:
- *
- * [accountId] - Account upon which to report.
- *
- * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format,
- * inclusive.
- * Value must have pattern
- * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
- *
- * [endDate] - End of the date range to report on in "YYYY-MM-DD" format,
- * inclusive.
- * Value must have pattern
- * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
- *
- * [currency] - Optional currency to use when reporting on monetary metrics.
- * Defaults to the account's currency if not set.
- * Value must have pattern "[a-zA-Z]+".
- *
- * [dimension] - Dimensions to base the report on.
- * Value must have pattern "[a-zA-Z_]+".
- *
- * [filter] - Filters to be run on the report.
- * Value must have pattern "[a-zA-Z_]+(==|=@).+".
- *
- * [locale] - Optional locale to use for translating report output to a local
- * language. Defaults to "en_US" if not specified.
- * Value must have pattern "[a-zA-Z_]+".
- *
- * [maxResults] - The maximum number of rows of report data to return.
- * Value must be between "0" and "50000".
- *
- * [metric] - Numeric columns to include in the report.
- * Value must have pattern "[a-zA-Z_]+".
- *
- * [sort] - The name of a dimension or metric to sort the resulting report on,
- * optionally prefixed with "+" to sort ascending or "-" to sort descending.
- * If no prefix is specified, the column is sorted ascending.
- * Value must have pattern "(\+|-)?[a-zA-Z_]+".
- *
- * [startIndex] - Index of the first row of report data to return.
- * Value must be between "0" and "5000".
- *
- * [useTimezoneReporting] - Whether the report should be generated in the
- * AdSense account's local timezone. If false default PST/PDT timezone will be
- * used.
- *
- * [downloadOptions] - Options for downloading. A download can be either a
- * Metadata (default) or Media download. Partial Media downloads are possible
- * as well.
- *
- * Completes with a
- *
- * - [AdsenseReportsGenerateResponse] for Metadata downloads (see
- * [downloadOptions]).
- *
- * - [commons.Media] for Media downloads (see [downloadOptions]).
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future generate(core.String accountId, core.String startDate, core.String endDate, {core.String currency, core.List<core.String> dimension, core.List<core.String> filter, core.String locale, core.int maxResults, core.List<core.String> metric, core.List<core.String> sort, core.int startIndex, core.bool useTimezoneReporting, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) {
+ AccountsReportsSavedResourceApi get saved =>
+ new AccountsReportsSavedResourceApi(_requester);
+
+ AccountsReportsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// 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.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account upon which to report.
+ ///
+ /// [startDate] - Start of the date range to report on in "YYYY-MM-DD"
+ /// format, inclusive.
+ /// Value must have pattern
+ /// "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
+ ///
+ /// [endDate] - End of the date range to report on in "YYYY-MM-DD" format,
+ /// inclusive.
+ /// Value must have pattern
+ /// "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
+ ///
+ /// [currency] - Optional currency to use when reporting on monetary metrics.
+ /// Defaults to the account's currency if not set.
+ /// Value must have pattern "[a-zA-Z]+".
+ ///
+ /// [dimension] - Dimensions to base the report on.
+ /// Value must have pattern "[a-zA-Z_]+".
+ ///
+ /// [filter] - Filters to be run on the report.
+ /// Value must have pattern "[a-zA-Z_]+(==|=@).+".
+ ///
+ /// [locale] - Optional locale to use for translating report output to a
+ /// local language. Defaults to "en_US" if not specified.
+ /// Value must have pattern "[a-zA-Z_]+".
+ ///
+ /// [maxResults] - The maximum number of rows of report data to return.
+ /// Value must be between "0" and "50000".
+ ///
+ /// [metric] - Numeric columns to include in the report.
+ /// Value must have pattern "[a-zA-Z_]+".
+ ///
+ /// [sort] - The name of a dimension or metric to sort the resulting report
+ /// on, optionally prefixed with "+" to sort ascending or "-" to sort
+ /// descending. If no prefix is specified, the column is sorted ascending.
+ /// Value must have pattern "(\+|-)?[a-zA-Z_]+".
+ ///
+ /// [startIndex] - Index of the first row of report data to return.
+ /// Value must be between "0" and "5000".
+ ///
+ /// [useTimezoneReporting] - Whether the report should be generated in the
+ /// AdSense account's local timezone. If false default PST/PDT timezone will
+ /// be used.
+ ///
+ /// [downloadOptions] - Options for downloading. A download can be either a
+ /// Metadata (default) or Media download. Partial Media downloads are
+ /// possible as well.
+ ///
+ /// Completes with a
+ ///
+ /// - [AdsenseReportsGenerateResponse] for Metadata downloads (see
+ /// [downloadOptions]).
+ ///
+ /// - [commons.Media] for Media downloads (see [downloadOptions]).
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future generate(
+ core.String accountId, core.String startDate, core.String endDate,
+ {core.String currency,
+ core.List<core.String> dimension,
+ core.List<core.String> filter,
+ core.String locale,
+ core.int maxResults,
+ core.List<core.String> metric,
+ core.List<core.String> sort,
+ core.int startIndex,
+ core.bool useTimezoneReporting,
+ commons.DownloadOptions downloadOptions:
+ commons.DownloadOptions.Metadata}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -932,61 +957,60 @@ class AccountsReportsResourceApi {
_downloadOptions = downloadOptions;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports';
+ _url =
+ 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
if (_downloadOptions == null ||
_downloadOptions == commons.DownloadOptions.Metadata) {
- return _response.then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
+ return _response
+ .then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
} else {
return _response;
}
}
-
}
-
class AccountsReportsSavedResourceApi {
final commons.ApiRequester _requester;
- AccountsReportsSavedResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Generate an AdSense report based on the saved report ID sent in the query
- * parameters.
- *
- * Request parameters:
- *
- * [accountId] - Account to which the saved reports belong.
- *
- * [savedReportId] - The saved report to retrieve.
- *
- * [locale] - Optional locale to use for translating report output to a local
- * language. Defaults to "en_US" if not specified.
- * Value must have pattern "[a-zA-Z_]+".
- *
- * [maxResults] - The maximum number of rows of report data to return.
- * Value must be between "0" and "50000".
- *
- * [startIndex] - Index of the first row of report data to return.
- * Value must be between "0" and "5000".
- *
- * Completes with a [AdsenseReportsGenerateResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<AdsenseReportsGenerateResponse> generate(core.String accountId, core.String savedReportId, {core.String locale, core.int maxResults, core.int startIndex}) {
+ AccountsReportsSavedResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Generate an AdSense report based on the saved report ID sent in the query
+ /// parameters.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account to which the saved reports belong.
+ ///
+ /// [savedReportId] - The saved report to retrieve.
+ ///
+ /// [locale] - Optional locale to use for translating report output to a
+ /// local language. Defaults to "en_US" if not specified.
+ /// Value must have pattern "[a-zA-Z_]+".
+ ///
+ /// [maxResults] - The maximum number of rows of report data to return.
+ /// Value must be between "0" and "50000".
+ ///
+ /// [startIndex] - Index of the first row of report data to return.
+ /// Value must be between "0" and "5000".
+ ///
+ /// Completes with a [AdsenseReportsGenerateResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<AdsenseReportsGenerateResponse> generate(
+ core.String accountId, core.String savedReportId,
+ {core.String locale, core.int maxResults, core.int startIndex}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1010,42 +1034,44 @@ class AccountsReportsSavedResourceApi {
_queryParams["startIndex"] = ["${startIndex}"];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports/' + commons.Escaper.ecapeVariable('$savedReportId');
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
- }
-
- /**
- * List all saved reports in the specified AdSense account.
- *
- * Request parameters:
- *
- * [accountId] - Account to which the saved reports belong.
- *
- * [maxResults] - The maximum number of saved reports to include in the
- * response, used for paging.
- * Value must be between "0" and "100".
- *
- * [pageToken] - A continuation token, used to page through saved reports. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [SavedReports].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<SavedReports> list(core.String accountId, {core.int maxResults, core.String pageToken}) {
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/reports/' +
+ commons.Escaper.ecapeVariable('$savedReportId');
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
+ }
+
+ /// List all saved reports in the specified AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account to which the saved reports belong.
+ ///
+ /// [maxResults] - The maximum number of saved reports to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "100".
+ ///
+ /// [pageToken] - A continuation token, used to page through saved reports.
+ /// To retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [SavedReports].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<SavedReports> list(core.String accountId,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1063,45 +1089,43 @@ class AccountsReportsSavedResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports/saved';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/reports/saved';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new SavedReports.fromJson(data));
}
-
}
-
class AccountsSavedadstylesResourceApi {
final commons.ApiRequester _requester;
- AccountsSavedadstylesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List a specific saved ad style for the specified account.
- *
- * Request parameters:
- *
- * [accountId] - Account for which to get the saved ad style.
- *
- * [savedAdStyleId] - Saved ad style to retrieve.
- *
- * Completes with a [SavedAdStyle].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<SavedAdStyle> get(core.String accountId, core.String savedAdStyleId) {
+ AccountsSavedadstylesResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List a specific saved ad style for the specified account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account for which to get the saved ad style.
+ ///
+ /// [savedAdStyleId] - Saved ad style to retrieve.
+ ///
+ /// Completes with a [SavedAdStyle].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<SavedAdStyle> get(
+ core.String accountId, core.String savedAdStyleId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1116,42 +1140,43 @@ class AccountsSavedadstylesResourceApi {
throw new core.ArgumentError("Parameter savedAdStyleId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/savedadstyles/' + commons.Escaper.ecapeVariable('$savedAdStyleId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/savedadstyles/' +
+ commons.Escaper.ecapeVariable('$savedAdStyleId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new SavedAdStyle.fromJson(data));
}
- /**
- * List all saved ad styles in the specified account.
- *
- * Request parameters:
- *
- * [accountId] - Account for which to list saved ad styles.
- *
- * [maxResults] - The maximum number of saved ad styles to include in the
- * response, used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through saved ad styles.
- * To retrieve the next page, set this parameter to the value of
- * "nextPageToken" from the previous response.
- *
- * Completes with a [SavedAdStyles].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<SavedAdStyles> list(core.String accountId, {core.int maxResults, core.String pageToken}) {
+ /// List all saved ad styles in the specified account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account for which to list saved ad styles.
+ ///
+ /// [maxResults] - The maximum number of saved ad styles to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through saved ad styles.
+ /// To retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [SavedAdStyles].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<SavedAdStyles> list(core.String accountId,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1169,53 +1194,52 @@ class AccountsSavedadstylesResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/savedadstyles';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/savedadstyles';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new SavedAdStyles.fromJson(data));
}
-
}
-
class AccountsUrlchannelsResourceApi {
final commons.ApiRequester _requester;
- AccountsUrlchannelsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List all URL channels in the specified ad client for the specified account.
- *
- * Request parameters:
- *
- * [accountId] - Account to which the ad client belongs.
- *
- * [adClientId] - Ad client for which to list URL channels.
- *
- * [maxResults] - The maximum number of URL channels to include in the
- * response, used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through URL channels. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [UrlChannels].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<UrlChannels> list(core.String accountId, core.String adClientId, {core.int maxResults, core.String pageToken}) {
+ AccountsUrlchannelsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List all URL channels in the specified ad client for the specified
+ /// account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - Account to which the ad client belongs.
+ ///
+ /// [adClientId] - Ad client for which to list URL channels.
+ ///
+ /// [maxResults] - The maximum number of URL channels to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through URL channels. To
+ /// retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [UrlChannels].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<UrlChannels> list(core.String accountId, core.String adClientId,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1236,48 +1260,46 @@ class AccountsUrlchannelsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlchannels';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/urlchannels';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UrlChannels.fromJson(data));
}
-
}
-
class AdclientsResourceApi {
final commons.ApiRequester _requester;
- AdclientsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List all ad clients in this AdSense account.
- *
- * Request parameters:
- *
- * [maxResults] - The maximum number of ad clients to include in the response,
- * used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through ad clients. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [AdClients].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ AdclientsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// List all ad clients in this AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// [maxResults] - The maximum number of ad clients to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through ad clients. To
+ /// retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [AdClients].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<AdClients> list({core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
@@ -1295,44 +1317,39 @@ class AdclientsResourceApi {
_url = 'adclients';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AdClients.fromJson(data));
}
-
}
-
class AdunitsResourceApi {
final commons.ApiRequester _requester;
- AdunitsCustomchannelsResourceApi get customchannels => new AdunitsCustomchannelsResourceApi(_requester);
-
- AdunitsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Gets the specified ad unit in the specified ad client.
- *
- * Request parameters:
- *
- * [adClientId] - Ad client for which to get the ad unit.
- *
- * [adUnitId] - Ad unit to retrieve.
- *
- * Completes with a [AdUnit].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ AdunitsCustomchannelsResourceApi get customchannels =>
+ new AdunitsCustomchannelsResourceApi(_requester);
+
+ AdunitsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Gets the specified ad unit in the specified ad client.
+ ///
+ /// Request parameters:
+ ///
+ /// [adClientId] - Ad client for which to get the ad unit.
+ ///
+ /// [adUnitId] - Ad unit to retrieve.
+ ///
+ /// Completes with a [AdUnit].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<AdUnit> get(core.String adClientId, core.String adUnitId) {
var _url = null;
var _queryParams = new core.Map();
@@ -1348,35 +1365,35 @@ class AdunitsResourceApi {
throw new core.ArgumentError("Parameter adUnitId is required.");
}
- _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Escaper.ecapeVariable('$adUnitId');
+ _url = 'adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/adunits/' +
+ commons.Escaper.ecapeVariable('$adUnitId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AdUnit.fromJson(data));
}
- /**
- * Get ad code for the specified ad unit.
- *
- * Request parameters:
- *
- * [adClientId] - Ad client with contains the ad unit.
- *
- * [adUnitId] - Ad unit to get the code for.
- *
- * Completes with a [AdCode].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Get ad code for the specified ad unit.
+ ///
+ /// Request parameters:
+ ///
+ /// [adClientId] - Ad client with contains the ad unit.
+ ///
+ /// [adUnitId] - Ad unit to get the code for.
+ ///
+ /// Completes with a [AdCode].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<AdCode> getAdCode(core.String adClientId, core.String adUnitId) {
var _url = null;
var _queryParams = new core.Map();
@@ -1392,44 +1409,46 @@ class AdunitsResourceApi {
throw new core.ArgumentError("Parameter adUnitId is required.");
}
- _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Escaper.ecapeVariable('$adUnitId') + '/adcode';
+ _url = 'adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/adunits/' +
+ commons.Escaper.ecapeVariable('$adUnitId') +
+ '/adcode';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AdCode.fromJson(data));
}
- /**
- * List all ad units in the specified ad client for this AdSense account.
- *
- * Request parameters:
- *
- * [adClientId] - Ad client for which to list ad units.
- *
- * [includeInactive] - Whether to include inactive ad units. Default: true.
- *
- * [maxResults] - The maximum number of ad units to include in the response,
- * used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through ad units. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [AdUnits].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<AdUnits> list(core.String adClientId, {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
+ /// List all ad units in the specified ad client for this AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// [adClientId] - Ad client for which to list ad units.
+ ///
+ /// [includeInactive] - Whether to include inactive ad units. Default: true.
+ ///
+ /// [maxResults] - The maximum number of ad units to include in the response,
+ /// used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through ad units. To
+ /// retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [AdUnits].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<AdUnits> list(core.String adClientId,
+ {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1450,53 +1469,52 @@ class AdunitsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits';
+ _url = 'adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/adunits';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AdUnits.fromJson(data));
}
-
}
-
class AdunitsCustomchannelsResourceApi {
final commons.ApiRequester _requester;
- AdunitsCustomchannelsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List all custom channels which the specified ad unit belongs to.
- *
- * Request parameters:
- *
- * [adClientId] - Ad client which contains the ad unit.
- *
- * [adUnitId] - Ad unit for which to list custom channels.
- *
- * [maxResults] - The maximum number of custom channels to include in the
- * response, used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through custom channels.
- * To retrieve the next page, set this parameter to the value of
- * "nextPageToken" from the previous response.
- *
- * Completes with a [CustomChannels].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomChannels> list(core.String adClientId, core.String adUnitId, {core.int maxResults, core.String pageToken}) {
+ AdunitsCustomchannelsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List all custom channels which the specified ad unit belongs to.
+ ///
+ /// Request parameters:
+ ///
+ /// [adClientId] - Ad client which contains the ad unit.
+ ///
+ /// [adUnitId] - Ad unit for which to list custom channels.
+ ///
+ /// [maxResults] - The maximum number of custom channels to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through custom channels.
+ /// To retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [CustomChannels].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomChannels> list(
+ core.String adClientId, core.String adUnitId,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1517,40 +1535,39 @@ class AdunitsCustomchannelsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Escaper.ecapeVariable('$adUnitId') + '/customchannels';
+ _url = 'adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/adunits/' +
+ commons.Escaper.ecapeVariable('$adUnitId') +
+ '/customchannels';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomChannels.fromJson(data));
}
-
}
-
class AlertsResourceApi {
final commons.ApiRequester _requester;
- AlertsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Dismiss (delete) the specified alert from the publisher's AdSense account.
- *
- * Request parameters:
- *
- * [alertId] - Alert to delete.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ AlertsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Dismiss (delete) the specified alert from the publisher's AdSense
+ /// account.
+ ///
+ /// Request parameters:
+ ///
+ /// [alertId] - Alert to delete.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String alertId) {
var _url = null;
var _queryParams = new core.Map();
@@ -1567,33 +1584,30 @@ class AlertsResourceApi {
_url = 'alerts/' + commons.Escaper.ecapeVariable('$alertId');
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * List the alerts for this AdSense account.
- *
- * Request parameters:
- *
- * [locale] - The locale to use for translating alert messages. The account
- * locale will be used if this is not supplied. The AdSense default (English)
- * will be used if the supplied locale is invalid or unsupported.
- *
- * Completes with a [Alerts].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// List the alerts for this AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// [locale] - The locale to use for translating alert messages. The account
+ /// locale will be used if this is not supplied. The AdSense default
+ /// (English) will be used if the supplied locale is invalid or unsupported.
+ ///
+ /// Completes with a [Alerts].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Alerts> list({core.String locale}) {
var _url = null;
var _queryParams = new core.Map();
@@ -1608,45 +1622,41 @@ class AlertsResourceApi {
_url = 'alerts';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Alerts.fromJson(data));
}
-
}
-
class CustomchannelsResourceApi {
final commons.ApiRequester _requester;
- CustomchannelsAdunitsResourceApi get adunits => new CustomchannelsAdunitsResourceApi(_requester);
-
- CustomchannelsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Get the specified custom channel from the specified ad client.
- *
- * Request parameters:
- *
- * [adClientId] - Ad client which contains the custom channel.
- *
- * [customChannelId] - Custom channel to retrieve.
- *
- * Completes with a [CustomChannel].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomChannel> get(core.String adClientId, core.String customChannelId) {
+ CustomchannelsAdunitsResourceApi get adunits =>
+ new CustomchannelsAdunitsResourceApi(_requester);
+
+ CustomchannelsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Get the specified custom channel from the specified ad client.
+ ///
+ /// Request parameters:
+ ///
+ /// [adClientId] - Ad client which contains the custom channel.
+ ///
+ /// [customChannelId] - Custom channel to retrieve.
+ ///
+ /// Completes with a [CustomChannel].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomChannel> get(
+ core.String adClientId, core.String customChannelId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1661,43 +1671,44 @@ class CustomchannelsResourceApi {
throw new core.ArgumentError("Parameter customChannelId is required.");
}
- _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + commons.Escaper.ecapeVariable('$customChannelId');
+ _url = 'adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/customchannels/' +
+ commons.Escaper.ecapeVariable('$customChannelId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomChannel.fromJson(data));
}
- /**
- * List all custom channels in the specified ad client for this AdSense
- * account.
- *
- * Request parameters:
- *
- * [adClientId] - Ad client for which to list custom channels.
- *
- * [maxResults] - The maximum number of custom channels to include in the
- * response, used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through custom channels.
- * To retrieve the next page, set this parameter to the value of
- * "nextPageToken" from the previous response.
- *
- * Completes with a [CustomChannels].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CustomChannels> list(core.String adClientId, {core.int maxResults, core.String pageToken}) {
+ /// List all custom channels in the specified ad client for this AdSense
+ /// account.
+ ///
+ /// Request parameters:
+ ///
+ /// [adClientId] - Ad client for which to list custom channels.
+ ///
+ /// [maxResults] - The maximum number of custom channels to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through custom channels.
+ /// To retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [CustomChannels].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CustomChannels> list(core.String adClientId,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1715,55 +1726,54 @@ class CustomchannelsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels';
+ _url = 'adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/customchannels';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new CustomChannels.fromJson(data));
}
-
}
-
class CustomchannelsAdunitsResourceApi {
final commons.ApiRequester _requester;
- CustomchannelsAdunitsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List all ad units in the specified custom channel.
- *
- * Request parameters:
- *
- * [adClientId] - Ad client which contains the custom channel.
- *
- * [customChannelId] - Custom channel for which to list ad units.
- *
- * [includeInactive] - Whether to include inactive ad units. Default: true.
- *
- * [maxResults] - The maximum number of ad units to include in the response,
- * used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through ad units. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [AdUnits].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<AdUnits> list(core.String adClientId, core.String customChannelId, {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
+ CustomchannelsAdunitsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List all ad units in the specified custom channel.
+ ///
+ /// Request parameters:
+ ///
+ /// [adClientId] - Ad client which contains the custom channel.
+ ///
+ /// [customChannelId] - Custom channel for which to list ad units.
+ ///
+ /// [includeInactive] - Whether to include inactive ad units. Default: true.
+ ///
+ /// [maxResults] - The maximum number of ad units to include in the response,
+ /// used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through ad units. To
+ /// retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [AdUnits].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<AdUnits> list(
+ core.String adClientId, core.String customChannelId,
+ {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1787,51 +1797,50 @@ class CustomchannelsAdunitsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + commons.Escaper.ecapeVariable('$customChannelId') + '/adunits';
+ _url = 'adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/customchannels/' +
+ commons.Escaper.ecapeVariable('$customChannelId') +
+ '/adunits';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new AdUnits.fromJson(data));
}
-
}
-
class MetadataResourceApi {
final commons.ApiRequester _requester;
- MetadataDimensionsResourceApi get dimensions => new MetadataDimensionsResourceApi(_requester);
- MetadataMetricsResourceApi get metrics => new MetadataMetricsResourceApi(_requester);
+ MetadataDimensionsResourceApi get dimensions =>
+ new MetadataDimensionsResourceApi(_requester);
+ MetadataMetricsResourceApi get metrics =>
+ new MetadataMetricsResourceApi(_requester);
- MetadataResourceApi(commons.ApiRequester client) :
- _requester = client;
+ MetadataResourceApi(commons.ApiRequester client) : _requester = client;
}
-
class MetadataDimensionsResourceApi {
final commons.ApiRequester _requester;
- MetadataDimensionsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List the metadata for the dimensions available to this AdSense account.
- *
- * Request parameters:
- *
- * Completes with a [Metadata].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ MetadataDimensionsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List the metadata for the dimensions available to this AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// Completes with a [Metadata].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Metadata> list() {
var _url = null;
var _queryParams = new core.Map();
@@ -1840,41 +1849,34 @@ class MetadataDimensionsResourceApi {
var _downloadOptions = commons.DownloadOptions.Metadata;
var _body = null;
-
_url = 'metadata/dimensions';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Metadata.fromJson(data));
}
-
}
-
class MetadataMetricsResourceApi {
final commons.ApiRequester _requester;
- MetadataMetricsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List the metadata for the metrics available to this AdSense account.
- *
- * Request parameters:
- *
- * Completes with a [Metadata].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ MetadataMetricsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// List the metadata for the metrics available to this AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// Completes with a [Metadata].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Metadata> list() {
var _url = null;
var _queryParams = new core.Map();
@@ -1883,41 +1885,34 @@ class MetadataMetricsResourceApi {
var _downloadOptions = commons.DownloadOptions.Metadata;
var _body = null;
-
_url = 'metadata/metrics';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Metadata.fromJson(data));
}
-
}
-
class PaymentsResourceApi {
final commons.ApiRequester _requester;
- PaymentsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List the payments for this AdSense account.
- *
- * Request parameters:
- *
- * Completes with a [Payments].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ PaymentsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// List the payments for this AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// Completes with a [Payments].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Payments> list() {
var _url = null;
var _queryParams = new core.Map();
@@ -1926,99 +1921,104 @@ class PaymentsResourceApi {
var _downloadOptions = commons.DownloadOptions.Metadata;
var _body = null;
-
_url = 'payments';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Payments.fromJson(data));
}
-
}
-
class ReportsResourceApi {
final commons.ApiRequester _requester;
ReportsSavedResourceApi get saved => new ReportsSavedResourceApi(_requester);
- ReportsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * 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.
- *
- * Request parameters:
- *
- * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format,
- * inclusive.
- * Value must have pattern
- * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
- *
- * [endDate] - End of the date range to report on in "YYYY-MM-DD" format,
- * inclusive.
- * Value must have pattern
- * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
- *
- * [accountId] - Accounts upon which to report.
- *
- * [currency] - Optional currency to use when reporting on monetary metrics.
- * Defaults to the account's currency if not set.
- * Value must have pattern "[a-zA-Z]+".
- *
- * [dimension] - Dimensions to base the report on.
- * Value must have pattern "[a-zA-Z_]+".
- *
- * [filter] - Filters to be run on the report.
- * Value must have pattern "[a-zA-Z_]+(==|=@).+".
- *
- * [locale] - Optional locale to use for translating report output to a local
- * language. Defaults to "en_US" if not specified.
- * Value must have pattern "[a-zA-Z_]+".
- *
- * [maxResults] - The maximum number of rows of report data to return.
- * Value must be between "0" and "50000".
- *
- * [metric] - Numeric columns to include in the report.
- * Value must have pattern "[a-zA-Z_]+".
- *
- * [sort] - The name of a dimension or metric to sort the resulting report on,
- * optionally prefixed with "+" to sort ascending or "-" to sort descending.
- * If no prefix is specified, the column is sorted ascending.
- * Value must have pattern "(\+|-)?[a-zA-Z_]+".
- *
- * [startIndex] - Index of the first row of report data to return.
- * Value must be between "0" and "5000".
- *
- * [useTimezoneReporting] - Whether the report should be generated in the
- * AdSense account's local timezone. If false default PST/PDT timezone will be
- * used.
- *
- * [downloadOptions] - Options for downloading. A download can be either a
- * Metadata (default) or Media download. Partial Media downloads are possible
- * as well.
- *
- * Completes with a
- *
- * - [AdsenseReportsGenerateResponse] for Metadata downloads (see
- * [downloadOptions]).
- *
- * - [commons.Media] for Media downloads (see [downloadOptions]).
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future generate(core.String startDate, core.String endDate, {core.List<core.String> accountId, core.String currency, core.List<core.String> dimension, core.List<core.String> filter, core.String locale, core.int maxResults, core.List<core.String> metric, core.List<core.String> sort, core.int startIndex, core.bool useTimezoneReporting, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) {
+ ReportsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// 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.
+ ///
+ /// Request parameters:
+ ///
+ /// [startDate] - Start of the date range to report on in "YYYY-MM-DD"
+ /// format, inclusive.
+ /// Value must have pattern
+ /// "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
+ ///
+ /// [endDate] - End of the date range to report on in "YYYY-MM-DD" format,
+ /// inclusive.
+ /// Value must have pattern
+ /// "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
+ ///
+ /// [accountId] - Accounts upon which to report.
+ ///
+ /// [currency] - Optional currency to use when reporting on monetary metrics.
+ /// Defaults to the account's currency if not set.
+ /// Value must have pattern "[a-zA-Z]+".
+ ///
+ /// [dimension] - Dimensions to base the report on.
+ /// Value must have pattern "[a-zA-Z_]+".
+ ///
+ /// [filter] - Filters to be run on the report.
+ /// Value must have pattern "[a-zA-Z_]+(==|=@).+".
+ ///
+ /// [locale] - Optional locale to use for translating report output to a
+ /// local language. Defaults to "en_US" if not specified.
+ /// Value must have pattern "[a-zA-Z_]+".
+ ///
+ /// [maxResults] - The maximum number of rows of report data to return.
+ /// Value must be between "0" and "50000".
+ ///
+ /// [metric] - Numeric columns to include in the report.
+ /// Value must have pattern "[a-zA-Z_]+".
+ ///
+ /// [sort] - The name of a dimension or metric to sort the resulting report
+ /// on, optionally prefixed with "+" to sort ascending or "-" to sort
+ /// descending. If no prefix is specified, the column is sorted ascending.
+ /// Value must have pattern "(\+|-)?[a-zA-Z_]+".
+ ///
+ /// [startIndex] - Index of the first row of report data to return.
+ /// Value must be between "0" and "5000".
+ ///
+ /// [useTimezoneReporting] - Whether the report should be generated in the
+ /// AdSense account's local timezone. If false default PST/PDT timezone will
+ /// be used.
+ ///
+ /// [downloadOptions] - Options for downloading. A download can be either a
+ /// Metadata (default) or Media download. Partial Media downloads are
+ /// possible as well.
+ ///
+ /// Completes with a
+ ///
+ /// - [AdsenseReportsGenerateResponse] for Metadata downloads (see
+ /// [downloadOptions]).
+ ///
+ /// - [commons.Media] for Media downloads (see [downloadOptions]).
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future generate(core.String startDate, core.String endDate,
+ {core.List<core.String> accountId,
+ core.String currency,
+ core.List<core.String> dimension,
+ core.List<core.String> filter,
+ core.String locale,
+ core.int maxResults,
+ core.List<core.String> metric,
+ core.List<core.String> sort,
+ core.int startIndex,
+ core.bool useTimezoneReporting,
+ commons.DownloadOptions downloadOptions:
+ commons.DownloadOptions.Metadata}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2069,57 +2069,56 @@ class ReportsResourceApi {
_url = 'reports';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
if (_downloadOptions == null ||
_downloadOptions == commons.DownloadOptions.Metadata) {
- return _response.then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
+ return _response
+ .then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
} else {
return _response;
}
}
-
}
-
class ReportsSavedResourceApi {
final commons.ApiRequester _requester;
- ReportsSavedResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Generate an AdSense report based on the saved report ID sent in the query
- * parameters.
- *
- * Request parameters:
- *
- * [savedReportId] - The saved report to retrieve.
- *
- * [locale] - Optional locale to use for translating report output to a local
- * language. Defaults to "en_US" if not specified.
- * Value must have pattern "[a-zA-Z_]+".
- *
- * [maxResults] - The maximum number of rows of report data to return.
- * Value must be between "0" and "50000".
- *
- * [startIndex] - Index of the first row of report data to return.
- * Value must be between "0" and "5000".
- *
- * Completes with a [AdsenseReportsGenerateResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<AdsenseReportsGenerateResponse> generate(core.String savedReportId, {core.String locale, core.int maxResults, core.int startIndex}) {
+ ReportsSavedResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Generate an AdSense report based on the saved report ID sent in the query
+ /// parameters.
+ ///
+ /// Request parameters:
+ ///
+ /// [savedReportId] - The saved report to retrieve.
+ ///
+ /// [locale] - Optional locale to use for translating report output to a
+ /// local language. Defaults to "en_US" if not specified.
+ /// Value must have pattern "[a-zA-Z_]+".
+ ///
+ /// [maxResults] - The maximum number of rows of report data to return.
+ /// Value must be between "0" and "50000".
+ ///
+ /// [startIndex] - Index of the first row of report data to return.
+ /// Value must be between "0" and "5000".
+ ///
+ /// Completes with a [AdsenseReportsGenerateResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<AdsenseReportsGenerateResponse> generate(
+ core.String savedReportId,
+ {core.String locale,
+ core.int maxResults,
+ core.int startIndex}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2142,38 +2141,37 @@ class ReportsSavedResourceApi {
_url = 'reports/' + commons.Escaper.ecapeVariable('$savedReportId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
- }
-
- /**
- * List all saved reports in this AdSense account.
- *
- * Request parameters:
- *
- * [maxResults] - The maximum number of saved reports to include in the
- * response, used for paging.
- * Value must be between "0" and "100".
- *
- * [pageToken] - A continuation token, used to page through saved reports. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [SavedReports].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<SavedReports> list({core.int maxResults, core.String pageToken}) {
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
+ }
+
+ /// List all saved reports in this AdSense account.
+ ///
+ /// Request parameters:
+ ///
+ /// [maxResults] - The maximum number of saved reports to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "100".
+ ///
+ /// [pageToken] - A continuation token, used to page through saved reports.
+ /// To retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [SavedReports].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<SavedReports> list(
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2190,40 +2188,34 @@ class ReportsSavedResourceApi {
_url = 'reports/saved';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new SavedReports.fromJson(data));
}
-
}
-
class SavedadstylesResourceApi {
final commons.ApiRequester _requester;
- SavedadstylesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Get a specific saved ad style from the user's account.
- *
- * Request parameters:
- *
- * [savedAdStyleId] - Saved ad style to retrieve.
- *
- * Completes with a [SavedAdStyle].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ SavedadstylesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Get a specific saved ad style from the user's account.
+ ///
+ /// Request parameters:
+ ///
+ /// [savedAdStyleId] - Saved ad style to retrieve.
+ ///
+ /// Completes with a [SavedAdStyle].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<SavedAdStyle> get(core.String savedAdStyleId) {
var _url = null;
var _queryParams = new core.Map();
@@ -2238,38 +2230,36 @@ class SavedadstylesResourceApi {
_url = 'savedadstyles/' + commons.Escaper.ecapeVariable('$savedAdStyleId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new SavedAdStyle.fromJson(data));
}
- /**
- * List all saved ad styles in the user's account.
- *
- * Request parameters:
- *
- * [maxResults] - The maximum number of saved ad styles to include in the
- * response, used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through saved ad styles.
- * To retrieve the next page, set this parameter to the value of
- * "nextPageToken" from the previous response.
- *
- * Completes with a [SavedAdStyles].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<SavedAdStyles> list({core.int maxResults, core.String pageToken}) {
+ /// List all saved ad styles in the user's account.
+ ///
+ /// Request parameters:
+ ///
+ /// [maxResults] - The maximum number of saved ad styles to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through saved ad styles.
+ /// To retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [SavedAdStyles].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<SavedAdStyles> list(
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2286,49 +2276,45 @@ class SavedadstylesResourceApi {
_url = 'savedadstyles';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new SavedAdStyles.fromJson(data));
}
-
}
-
class UrlchannelsResourceApi {
final commons.ApiRequester _requester;
- UrlchannelsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List all URL channels in the specified ad client for this AdSense account.
- *
- * Request parameters:
- *
- * [adClientId] - Ad client for which to list URL channels.
- *
- * [maxResults] - The maximum number of URL channels to include in the
- * response, used for paging.
- * Value must be between "0" and "10000".
- *
- * [pageToken] - A continuation token, used to page through URL channels. To
- * retrieve the next page, set this parameter to the value of "nextPageToken"
- * from the previous response.
- *
- * Completes with a [UrlChannels].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<UrlChannels> list(core.String adClientId, {core.int maxResults, core.String pageToken}) {
+ UrlchannelsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// List all URL channels in the specified ad client for this AdSense
+ /// account.
+ ///
+ /// Request parameters:
+ ///
+ /// [adClientId] - Ad client for which to list URL channels.
+ ///
+ /// [maxResults] - The maximum number of URL channels to include in the
+ /// response, used for paging.
+ /// Value must be between "0" and "10000".
+ ///
+ /// [pageToken] - A continuation token, used to page through URL channels. To
+ /// retrieve the next page, set this parameter to the value of
+ /// "nextPageToken" from the previous response.
+ ///
+ /// Completes with a [UrlChannels].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<UrlChannels> list(core.String adClientId,
+ {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2346,35 +2332,39 @@ class UrlchannelsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlchannels';
+ _url = 'adclients/' +
+ commons.Escaper.ecapeVariable('$adClientId') +
+ '/urlchannels';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UrlChannels.fromJson(data));
}
-
}
-
-
class Account {
core.String creationTime;
- /** Unique identifier of this account. */
+
+ /// Unique identifier of this account.
core.String id;
- /** Kind of resource this is, in this case adsense#account. */
+
+ /// Kind of resource this is, in this case adsense#account.
core.String kind;
- /** Name of this account. */
+
+ /// Name of this account.
core.String name;
- /** Whether this account is premium. */
+
+ /// Whether this account is premium.
core.bool premium;
- /** Sub accounts of the this account. */
+
+ /// Sub accounts of the this account.
core.List<Account> subAccounts;
- /** AdSense timezone of this account. */
+
+ /// AdSense timezone of this account.
core.String timezone;
Account();
@@ -2396,7 +2386,9 @@ class Account {
premium = _json["premium"];
}
if (_json.containsKey("subAccounts")) {
- subAccounts = _json["subAccounts"].map((value) => new Account.fromJson(value)).toList();
+ subAccounts = _json["subAccounts"]
+ .map((value) => new Account.fromJson(value))
+ .toList();
}
if (_json.containsKey("timezone")) {
timezone = _json["timezone"];
@@ -2404,7 +2396,8 @@ class Account {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (creationTime != null) {
_json["creation_time"] = creationTime;
}
@@ -2421,7 +2414,8 @@ class Account {
_json["premium"] = premium;
}
if (subAccounts != null) {
- _json["subAccounts"] = subAccounts.map((value) => (value).toJson()).toList();
+ _json["subAccounts"] =
+ subAccounts.map((value) => (value).toJson()).toList();
}
if (timezone != null) {
_json["timezone"] = timezone;
@@ -2431,16 +2425,17 @@ class Account {
}
class Accounts {
- /** ETag of this response for caching purposes. */
+ /// ETag of this response for caching purposes.
core.String etag;
- /** The accounts returned in this list response. */
+
+ /// The accounts returned in this list response.
core.List<Account> items;
- /** Kind of list this is, in this case adsense#accounts. */
+
+ /// Kind of list this is, in this case adsense#accounts.
core.String kind;
- /**
- * Continuation token used to page through accounts. To retrieve the next page
- * of results, set the next request's "pageToken" value to this.
- */
+
+ /// Continuation token used to page through accounts. To retrieve the next
+ /// page of results, set the next request's "pageToken" value to this.
core.String nextPageToken;
Accounts();
@@ -2450,7 +2445,8 @@ class Accounts {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Account.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Account.fromJson(value)).toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -2461,7 +2457,8 @@ class Accounts {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -2479,18 +2476,20 @@ class Accounts {
}
class AdClient {
- /** Whether this ad client is opted in to ARC. */
+ /// Whether this ad client is opted in to ARC.
core.bool arcOptIn;
- /** Unique identifier of this ad client. */
+
+ /// Unique identifier of this ad client.
core.String id;
- /** Kind of resource this is, in this case adsense#adClient. */
+
+ /// Kind of resource this is, in this case adsense#adClient.
core.String kind;
- /**
- * This ad client's product code, which corresponds to the PRODUCT_CODE report
- * dimension.
- */
+
+ /// This ad client's product code, which corresponds to the PRODUCT_CODE
+ /// report dimension.
core.String productCode;
- /** Whether this ad client supports being reported on. */
+
+ /// Whether this ad client supports being reported on.
core.bool supportsReporting;
AdClient();
@@ -2514,7 +2513,8 @@ class AdClient {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (arcOptIn != null) {
_json["arcOptIn"] = arcOptIn;
}
@@ -2535,16 +2535,17 @@ class AdClient {
}
class AdClients {
- /** ETag of this response for caching purposes. */
+ /// ETag of this response for caching purposes.
core.String etag;
- /** The ad clients returned in this list response. */
+
+ /// The ad clients returned in this list response.
core.List<AdClient> items;
- /** Kind of list this is, in this case adsense#adClients. */
+
+ /// Kind of list this is, in this case adsense#adClients.
core.String kind;
- /**
- * Continuation token used to page through ad clients. To retrieve the next
- * page of results, set the next request's "pageToken" value to this.
- */
+
+ /// Continuation token used to page through ad clients. To retrieve the next
+ /// page of results, set the next request's "pageToken" value to this.
core.String nextPageToken;
AdClients();
@@ -2554,7 +2555,8 @@ class AdClients {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new AdClient.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new AdClient.fromJson(value)).toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -2565,7 +2567,8 @@ class AdClients {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -2583,9 +2586,10 @@ class AdClients {
}
class AdCode {
- /** The ad code snippet. */
+ /// The ad code snippet.
core.String adCode;
- /** Kind this is, in this case adsense#adCode. */
+
+ /// Kind this is, in this case adsense#adCode.
core.String kind;
AdCode();
@@ -2600,7 +2604,8 @@ class AdCode {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (adCode != null) {
_json["adCode"] = adCode;
}
@@ -2611,21 +2616,23 @@ class AdCode {
}
}
-/**
- * The colors which are included in the style. These are represented as six
- * hexadecimal characters, similar to HTML color codes, but without the leading
- * hash.
- */
+/// The colors which are included in the style. These are represented as six
+/// hexadecimal characters, similar to HTML color codes, but without the
+/// leading hash.
class AdStyleColors {
- /** The color of the ad background. */
+ /// The color of the ad background.
core.String background;
- /** The color of the ad border. */
+
+ /// The color of the ad border.
core.String border;
- /** The color of the ad text. */
+
+ /// The color of the ad text.
core.String text;
- /** The color of the ad title. */
+
+ /// The color of the ad title.
core.String title;
- /** The color of the ad url. */
+
+ /// The color of the ad url.
core.String url;
AdStyleColors();
@@ -2649,7 +2656,8 @@ class AdStyleColors {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (background != null) {
_json["background"] = background;
}
@@ -2669,11 +2677,12 @@ class AdStyleColors {
}
}
-/** The font which is included in the style. */
+/// The font which is included in the style.
class AdStyleFont {
- /** The family of the font. */
+ /// The family of the font.
core.String family;
- /** The size of the font. */
+
+ /// The size of the font.
core.String size;
AdStyleFont();
@@ -2688,7 +2697,8 @@ class AdStyleFont {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (family != null) {
_json["family"] = family;
}
@@ -2700,19 +2710,19 @@ class AdStyleFont {
}
class AdStyle {
- /**
- * The colors which are included in the style. These are represented as six
- * hexadecimal characters, similar to HTML color codes, but without the
- * leading hash.
- */
+ /// The colors which are included in the style. These are represented as six
+ /// hexadecimal characters, similar to HTML color codes, but without the
+ /// leading hash.
AdStyleColors colors;
- /**
- * The style of the corners in the ad (deprecated: never populated, ignored).
- */
+
+ /// The style of the corners in the ad (deprecated: never populated,
+ /// ignored).
core.String corners;
- /** The font which is included in the style. */
+
+ /// The font which is included in the style.
AdStyleFont font;
- /** Kind this is, in this case adsense#adStyle. */
+
+ /// Kind this is, in this case adsense#adStyle.
core.String kind;
AdStyle();
@@ -2733,7 +2743,8 @@ class AdStyle {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (colors != null) {
_json["colors"] = (colors).toJson();
}
@@ -2750,13 +2761,15 @@ class AdStyle {
}
}
-/** The backup option to be used in instances where no ad is available. */
+/// The backup option to be used in instances where no ad is available.
class AdUnitContentAdsSettingsBackupOption {
- /** Color to use when type is set to COLOR. */
+ /// Color to use when type is set to COLOR.
core.String color;
- /** Type of the backup option. Possible values are BLANK, COLOR and URL. */
+
+ /// Type of the backup option. Possible values are BLANK, COLOR and URL.
core.String type;
- /** URL to use when type is set to URL. */
+
+ /// URL to use when type is set to URL.
core.String url;
AdUnitContentAdsSettingsBackupOption();
@@ -2774,7 +2787,8 @@ class AdUnitContentAdsSettingsBackupOption {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (color != null) {
_json["color"] = color;
}
@@ -2788,23 +2802,24 @@ class AdUnitContentAdsSettingsBackupOption {
}
}
-/**
- * Settings specific to content ads (AFC) and highend mobile content ads (AFMC -
- * deprecated).
- */
+/// Settings specific to content ads (AFC) and highend mobile content ads (AFMC
+/// - deprecated).
class AdUnitContentAdsSettings {
- /** The backup option to be used in instances where no ad is available. */
+ /// The backup option to be used in instances where no ad is available.
AdUnitContentAdsSettingsBackupOption backupOption;
- /** Size of this ad unit. */
+
+ /// Size of this ad unit.
core.String size;
- /** Type of this ad unit. */
+
+ /// Type of this ad unit.
core.String type;
AdUnitContentAdsSettings();
AdUnitContentAdsSettings.fromJson(core.Map _json) {
if (_json.containsKey("backupOption")) {
- backupOption = new AdUnitContentAdsSettingsBackupOption.fromJson(_json["backupOption"]);
+ backupOption = new AdUnitContentAdsSettingsBackupOption.fromJson(
+ _json["backupOption"]);
}
if (_json.containsKey("size")) {
size = _json["size"];
@@ -2815,7 +2830,8 @@ class AdUnitContentAdsSettings {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (backupOption != null) {
_json["backupOption"] = (backupOption).toJson();
}
@@ -2829,18 +2845,19 @@ class AdUnitContentAdsSettings {
}
}
-/** Settings specific to feed ads (AFF) - deprecated. */
+/// Settings specific to feed ads (AFF) - deprecated.
class AdUnitFeedAdsSettings {
- /** The position of the ads relative to the feed entries. */
+ /// The position of the ads relative to the feed entries.
core.String adPosition;
- /**
- * The frequency at which ads should appear in the feed (i.e. every N
- * entries).
- */
+
+ /// The frequency at which ads should appear in the feed (i.e. every N
+ /// entries).
core.int frequency;
- /** The minimum length an entry should be in order to have attached ads. */
+
+ /// The minimum length an entry should be in order to have attached ads.
core.int minimumWordCount;
- /** The type of ads which should appear. */
+
+ /// The type of ads which should appear.
core.String type;
AdUnitFeedAdsSettings();
@@ -2861,7 +2878,8 @@ class AdUnitFeedAdsSettings {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (adPosition != null) {
_json["adPosition"] = adPosition;
}
@@ -2878,15 +2896,18 @@ class AdUnitFeedAdsSettings {
}
}
-/** Settings specific to WAP mobile content ads (AFMC) - deprecated. */
+/// Settings specific to WAP mobile content ads (AFMC) - deprecated.
class AdUnitMobileContentAdsSettings {
- /** The markup language to use for this ad unit. */
+ /// The markup language to use for this ad unit.
core.String markupLanguage;
- /** The scripting language to use for this ad unit. */
+
+ /// The scripting language to use for this ad unit.
core.String scriptingLanguage;
- /** Size of this ad unit. */
+
+ /// Size of this ad unit.
core.String size;
- /** Type of this ad unit. */
+
+ /// Type of this ad unit.
core.String type;
AdUnitMobileContentAdsSettings();
@@ -2907,7 +2928,8 @@ class AdUnitMobileContentAdsSettings {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (markupLanguage != null) {
_json["markupLanguage"] = markupLanguage;
}
@@ -2925,43 +2947,44 @@ class AdUnitMobileContentAdsSettings {
}
class AdUnit {
- /**
- * Identity code of this ad unit, not necessarily unique across ad clients.
- */
+ /// Identity code of this ad unit, not necessarily unique across ad clients.
core.String code;
- /**
- * Settings specific to content ads (AFC) and highend mobile content ads (AFMC
- * - deprecated).
- */
+
+ /// Settings specific to content ads (AFC) and highend mobile content ads
+ /// (AFMC - deprecated).
AdUnitContentAdsSettings contentAdsSettings;
- /** Custom style information specific to this ad unit. */
+
+ /// Custom style information specific to this ad unit.
AdStyle customStyle;
- /** Settings specific to feed ads (AFF) - deprecated. */
+
+ /// Settings specific to feed ads (AFF) - deprecated.
AdUnitFeedAdsSettings feedAdsSettings;
- /**
- * Unique identifier of this ad unit. This should be considered an opaque
- * identifier; it is not safe to rely on it being in any particular format.
- */
+
+ /// Unique identifier of this ad unit. This should be considered an opaque
+ /// identifier; it is not safe to rely on it being in any particular format.
core.String id;
- /** Kind of resource this is, in this case adsense#adUnit. */
+
+ /// Kind of resource this is, in this case adsense#adUnit.
core.String kind;
- /** Settings specific to WAP mobile content ads (AFMC) - deprecated. */
+
+ /// Settings specific to WAP mobile content ads (AFMC) - deprecated.
AdUnitMobileContentAdsSettings mobileContentAdsSettings;
- /** Name of this ad unit. */
+
+ /// Name of this ad unit.
core.String name;
- /** ID of the saved ad style which holds this ad unit's style information. */
+
+ /// ID of the saved ad style which holds this ad unit's style information.
core.String savedStyleId;
- /**
- * Status of this ad unit. Possible values are:
- * NEW: Indicates that the ad unit was created within the last seven days and
- * does not yet have any activity associated with it.
- *
- * ACTIVE: Indicates that there has been activity on this ad unit in the last
- * seven days.
- *
- * INACTIVE: Indicates that there has been no activity on this ad unit in the
- * last seven days.
- */
+
+ /// Status of this ad unit. Possible values are:
+ /// NEW: Indicates that the ad unit was created within the last seven days
+ /// and does not yet have any activity associated with it.
+ ///
+ /// ACTIVE: Indicates that there has been activity on this ad unit in the
+ /// last seven days.
+ ///
+ /// INACTIVE: Indicates that there has been no activity on this ad unit in
+ /// the last seven days.
core.String status;
AdUnit();
@@ -2971,13 +2994,15 @@ class AdUnit {
code = _json["code"];
}
if (_json.containsKey("contentAdsSettings")) {
- contentAdsSettings = new AdUnitContentAdsSettings.fromJson(_json["contentAdsSettings"]);
+ contentAdsSettings =
+ new AdUnitContentAdsSettings.fromJson(_json["contentAdsSettings"]);
}
if (_json.containsKey("customStyle")) {
customStyle = new AdStyle.fromJson(_json["customStyle"]);
}
if (_json.containsKey("feedAdsSettings")) {
- feedAdsSettings = new AdUnitFeedAdsSettings.fromJson(_json["feedAdsSettings"]);
+ feedAdsSettings =
+ new AdUnitFeedAdsSettings.fromJson(_json["feedAdsSettings"]);
}
if (_json.containsKey("id")) {
id = _json["id"];
@@ -2986,7 +3011,8 @@ class AdUnit {
kind = _json["kind"];
}
if (_json.containsKey("mobileContentAdsSettings")) {
- mobileContentAdsSettings = new AdUnitMobileContentAdsSettings.fromJson(_json["mobileContentAdsSettings"]);
+ mobileContentAdsSettings = new AdUnitMobileContentAdsSettings.fromJson(
+ _json["mobileContentAdsSettings"]);
}
if (_json.containsKey("name")) {
name = _json["name"];
@@ -3000,7 +3026,8 @@ class AdUnit {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (code != null) {
_json["code"] = code;
}
@@ -3036,16 +3063,17 @@ class AdUnit {
}
class AdUnits {
- /** ETag of this response for caching purposes. */
+ /// ETag of this response for caching purposes.
core.String etag;
- /** The ad units returned in this list response. */
+
+ /// The ad units returned in this list response.
core.List<AdUnit> items;
- /** Kind of list this is, in this case adsense#adUnits. */
+
+ /// Kind of list this is, in this case adsense#adUnits.
core.String kind;
- /**
- * Continuation token used to page through ad units. To retrieve the next page
- * of results, set the next request's "pageToken" value to this.
- */
+
+ /// Continuation token used to page through ad units. To retrieve the next
+ /// page of results, set the next request's "pageToken" value to this.
core.String nextPageToken;
AdUnits();
@@ -3055,7 +3083,8 @@ class AdUnits {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new AdUnit.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new AdUnit.fromJson(value)).toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -3066,7 +3095,8 @@ class AdUnits {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -3084,17 +3114,15 @@ class AdUnits {
}
class AdsenseReportsGenerateResponseHeaders {
- /**
- * The currency of this column. Only present if the header type is
- * METRIC_CURRENCY.
- */
+ /// The currency of this column. Only present if the header type is
+ /// METRIC_CURRENCY.
core.String currency;
- /** The name of the header. */
+
+ /// The name of the header.
core.String name;
- /**
- * The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or
- * METRIC_CURRENCY.
- */
+
+ /// The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or
+ /// METRIC_CURRENCY.
core.String type;
AdsenseReportsGenerateResponseHeaders();
@@ -3112,7 +3140,8 @@ class AdsenseReportsGenerateResponseHeaders {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (currency != null) {
_json["currency"] = currency;
}
@@ -3127,41 +3156,40 @@ class AdsenseReportsGenerateResponseHeaders {
}
class AdsenseReportsGenerateResponse {
- /**
- * The averages of the report. This is the same length as any other row in the
- * report; cells corresponding to dimension columns are empty.
- */
+ /// The averages of the report. This is the same length as any other row in
+ /// the report; cells corresponding to dimension columns are empty.
core.List<core.String> averages;
- /** The requested end date in yyyy-mm-dd format. */
+
+ /// The requested end date in yyyy-mm-dd format.
core.String endDate;
- /**
- * The header information of the columns requested in the report. This is a
- * list of headers; one for each dimension in the request, followed by one for
- * each metric in the request.
- */
+
+ /// The header information of the columns requested in the report. This is a
+ /// list of headers; one for each dimension in the request, followed by one
+ /// for each metric in the request.
core.List<AdsenseReportsGenerateResponseHeaders> headers;
- /** Kind this is, in this case adsense#report. */
+
+ /// Kind this is, in this case adsense#report.
core.String kind;
- /**
- * The output rows of the report. Each row is a list of cells; one for each
- * dimension in the request, followed by one for each metric in the request.
- * The dimension cells contain strings, and the metric cells contain numbers.
- */
+
+ /// The output rows of the report. Each row is a list of cells; one for each
+ /// dimension in the request, followed by one for each metric in the request.
+ /// The dimension cells contain strings, and the metric cells contain
+ /// numbers.
core.List<core.List<core.String>> rows;
- /** The requested start date in yyyy-mm-dd format. */
+
+ /// The requested start date in yyyy-mm-dd format.
core.String startDate;
- /**
- * The total number of rows matched by the report request. Fewer rows may be
- * returned in the response due to being limited by the row count requested or
- * the report row limit.
- */
+
+ /// The total number of rows matched by the report request. Fewer rows may be
+ /// returned in the response due to being limited by the row count requested
+ /// or the report row limit.
core.String totalMatchedRows;
- /**
- * The totals of the report. This is the same length as any other row in the
- * report; cells corresponding to dimension columns are empty.
- */
+
+ /// The totals of the report. This is the same length as any other row in the
+ /// report; cells corresponding to dimension columns are empty.
core.List<core.String> totals;
- /** Any warnings associated with generation of the report. */
+
+ /// Any warnings associated with generation of the report.
core.List<core.String> warnings;
AdsenseReportsGenerateResponse();
@@ -3174,7 +3202,10 @@ class AdsenseReportsGenerateResponse {
endDate = _json["endDate"];
}
if (_json.containsKey("headers")) {
- headers = _json["headers"].map((value) => new AdsenseReportsGenerateResponseHeaders.fromJson(value)).toList();
+ headers = _json["headers"]
+ .map((value) =>
+ new AdsenseReportsGenerateResponseHeaders.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -3197,7 +3228,8 @@ class AdsenseReportsGenerateResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (averages != null) {
_json["averages"] = averages;
}
@@ -3230,24 +3262,25 @@ class AdsenseReportsGenerateResponse {
}
class Alert {
- /**
- * Unique identifier of this alert. This should be considered an opaque
- * identifier; it is not safe to rely on it being in any particular format.
- */
+ /// Unique identifier of this alert. This should be considered an opaque
+ /// identifier; it is not safe to rely on it being in any particular format.
core.String id;
- /** Whether this alert can be dismissed. */
+
+ /// Whether this alert can be dismissed.
core.bool isDismissible;
- /** Kind of resource this is, in this case adsense#alert. */
+
+ /// Kind of resource this is, in this case adsense#alert.
core.String kind;
- /** The localized alert message. */
+
+ /// The localized alert message.
core.String message;
- /** Severity of this alert. Possible values: INFO, WARNING, SEVERE. */
+
+ /// Severity of this alert. Possible values: INFO, WARNING, SEVERE.
core.String severity;
- /**
- * Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3,
- * ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY,
- * GRAYLISTED_PUBLISHER, API_HOLD.
- */
+
+ /// Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3,
+ /// ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY,
+ /// GRAYLISTED_PUBLISHER, API_HOLD.
core.String type;
Alert();
@@ -3274,7 +3307,8 @@ class Alert {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -3298,9 +3332,10 @@ class Alert {
}
class Alerts {
- /** The alerts returned in this list response. */
+ /// The alerts returned in this list response.
core.List<Alert> items;
- /** Kind of list this is, in this case adsense#alerts. */
+
+ /// Kind of list this is, in this case adsense#alerts.
core.String kind;
Alerts();
@@ -3315,7 +3350,8 @@ class Alerts {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -3326,22 +3362,23 @@ class Alerts {
}
}
-/** The targeting information of this custom channel, if activated. */
+/// The targeting information of this custom channel, if activated.
class CustomChannelTargetingInfo {
- /** The name used to describe this channel externally. */
+ /// The name used to describe this channel externally.
core.String adsAppearOn;
- /** The external description of the channel. */
+
+ /// The external description of the channel.
core.String description;
- /**
- * The locations in which ads appear. (Only valid for content and mobile
- * content ads (deprecated)). Acceptable values for content ads are: TOP_LEFT,
- * TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT,
- * BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable
- * values for mobile content ads (deprecated) are: TOP, MIDDLE, BOTTOM,
- * MULTIPLE_LOCATIONS.
- */
+
+ /// The locations in which ads appear. (Only valid for content and mobile
+ /// content ads (deprecated)). Acceptable values for content ads are:
+ /// TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER,
+ /// MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT,
+ /// MULTIPLE_LOCATIONS. Acceptable values for mobile content ads (deprecated)
+ /// are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
core.String location;
- /** The language of the sites ads will be displayed on. */
+
+ /// The language of the sites ads will be displayed on.
core.String siteLanguage;
CustomChannelTargetingInfo();
@@ -3362,7 +3399,8 @@ class CustomChannelTargetingInfo {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (adsAppearOn != null) {
_json["adsAppearOn"] = adsAppearOn;
}
@@ -3380,19 +3418,21 @@ class CustomChannelTargetingInfo {
}
class CustomChannel {
- /** Code of this custom channel, not necessarily unique across ad clients. */
+ /// Code of this custom channel, not necessarily unique across ad clients.
core.String code;
- /**
- * Unique identifier of this custom channel. This should be considered an
- * opaque identifier; it is not safe to rely on it being in any particular
- * format.
- */
+
+ /// Unique identifier of this custom channel. This should be considered an
+ /// opaque identifier; it is not safe to rely on it being in any particular
+ /// format.
core.String id;
- /** Kind of resource this is, in this case adsense#customChannel. */
+
+ /// Kind of resource this is, in this case adsense#customChannel.
core.String kind;
- /** Name of this custom channel. */
+
+ /// Name of this custom channel.
core.String name;
- /** The targeting information of this custom channel, if activated. */
+
+ /// The targeting information of this custom channel, if activated.
CustomChannelTargetingInfo targetingInfo;
CustomChannel();
@@ -3411,12 +3451,14 @@ class CustomChannel {
name = _json["name"];
}
if (_json.containsKey("targetingInfo")) {
- targetingInfo = new CustomChannelTargetingInfo.fromJson(_json["targetingInfo"]);
+ targetingInfo =
+ new CustomChannelTargetingInfo.fromJson(_json["targetingInfo"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (code != null) {
_json["code"] = code;
}
@@ -3437,16 +3479,17 @@ class CustomChannel {
}
class CustomChannels {
- /** ETag of this response for caching purposes. */
+ /// ETag of this response for caching purposes.
core.String etag;
- /** The custom channels returned in this list response. */
+
+ /// The custom channels returned in this list response.
core.List<CustomChannel> items;
- /** Kind of list this is, in this case adsense#customChannels. */
+
+ /// Kind of list this is, in this case adsense#customChannels.
core.String kind;
- /**
- * Continuation token used to page through custom channels. To retrieve the
- * next page of results, set the next request's "pageToken" value to this.
- */
+
+ /// Continuation token used to page through custom channels. To retrieve the
+ /// next page of results, set the next request's "pageToken" value to this.
core.String nextPageToken;
CustomChannels();
@@ -3456,7 +3499,9 @@ class CustomChannels {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new CustomChannel.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new CustomChannel.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -3467,7 +3512,8 @@ class CustomChannels {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -3486,14 +3532,17 @@ class CustomChannels {
class Metadata {
core.List<ReportingMetadataEntry> items;
- /** Kind of list this is, in this case adsense#metadata. */
+
+ /// Kind of list this is, in this case adsense#metadata.
core.String kind;
Metadata();
Metadata.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new ReportingMetadataEntry.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new ReportingMetadataEntry.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -3501,7 +3550,8 @@ class Metadata {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -3513,18 +3563,20 @@ class Metadata {
}
class Payment {
- /** Unique identifier of this Payment. */
+ /// Unique identifier of this Payment.
core.String id;
- /** Kind of resource this is, in this case adsense#payment. */
+
+ /// Kind of resource this is, in this case adsense#payment.
core.String kind;
- /** The amount to be paid. */
+
+ /// The amount to be paid.
core.String paymentAmount;
- /** The currency code for the amount to be paid. */
+
+ /// The currency code for the amount to be paid.
core.String paymentAmountCurrencyCode;
- /**
- * The date this payment was/will be credited to the user, or none if the
- * payment threshold has not been met.
- */
+
+ /// The date this payment was/will be credited to the user, or none if the
+ /// payment threshold has not been met.
core.String paymentDate;
Payment();
@@ -3548,7 +3600,8 @@ class Payment {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -3569,19 +3622,19 @@ class Payment {
}
class Payments {
- /**
- * The list of Payments for the account. One or both of a) the account's most
- * recent payment; and b) the account's upcoming payment.
- */
+ /// The list of Payments for the account. One or both of a) the account's
+ /// most recent payment; and b) the account's upcoming payment.
core.List<Payment> items;
- /** Kind of list this is, in this case adsense#payments. */
+
+ /// Kind of list this is, in this case adsense#payments.
core.String kind;
Payments();
Payments.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Payment.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Payment.fromJson(value)).toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -3589,7 +3642,8 @@ class Payments {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -3601,42 +3655,36 @@ class Payments {
}
class ReportingMetadataEntry {
- /**
- * For metrics this is a list of dimension IDs which the metric is compatible
- * with, for dimensions it is a list of compatibility groups the dimension
- * belongs to.
- */
+ /// For metrics this is a list of dimension IDs which the metric is
+ /// compatible with, for dimensions it is a list of compatibility groups the
+ /// dimension belongs to.
core.List<core.String> compatibleDimensions;
- /**
- * The names of the metrics the dimension or metric this reporting metadata
- * entry describes is compatible with.
- */
+
+ /// The names of the metrics the dimension or metric this reporting metadata
+ /// entry describes is compatible with.
core.List<core.String> compatibleMetrics;
- /**
- * Unique identifier of this reporting metadata entry, corresponding to the
- * name of the appropriate dimension or metric.
- */
+
+ /// Unique identifier of this reporting metadata entry, corresponding to the
+ /// name of the appropriate dimension or metric.
core.String id;
- /** Kind of resource this is, in this case adsense#reportingMetadataEntry. */
+
+ /// Kind of resource this is, in this case adsense#reportingMetadataEntry.
core.String kind;
- /**
- * The names of the dimensions which the dimension or metric this reporting
- * metadata entry describes requires to also be present in order for the
- * report to be valid. Omitting these will not cause an error or warning, but
- * may result in data which cannot be correctly interpreted.
- */
+
+ /// The names of the dimensions which the dimension or metric this reporting
+ /// metadata entry describes requires to also be present in order for the
+ /// report to be valid. Omitting these will not cause an error or warning,
+ /// but may result in data which cannot be correctly interpreted.
core.List<core.String> requiredDimensions;
- /**
- * The names of the metrics which the dimension or metric this reporting
- * metadata entry describes requires to also be present in order for the
- * report to be valid. Omitting these will not cause an error or warning, but
- * may result in data which cannot be correctly interpreted.
- */
+
+ /// The names of the metrics which the dimension or metric this reporting
+ /// metadata entry describes requires to also be present in order for the
+ /// report to be valid. Omitting these will not cause an error or warning,
+ /// but may result in data which cannot be correctly interpreted.
core.List<core.String> requiredMetrics;
- /**
- * The codes of the projects supported by the dimension or metric this
- * reporting metadata entry describes.
- */
+
+ /// The codes of the projects supported by the dimension or metric this
+ /// reporting metadata entry describes.
core.List<core.String> supportedProducts;
ReportingMetadataEntry();
@@ -3666,7 +3714,8 @@ class ReportingMetadataEntry {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (compatibleDimensions != null) {
_json["compatibleDimensions"] = compatibleDimensions;
}
@@ -3693,17 +3742,18 @@ class ReportingMetadataEntry {
}
class SavedAdStyle {
- /** The AdStyle itself. */
+ /// The AdStyle itself.
AdStyle adStyle;
- /**
- * Unique identifier of this saved ad style. This should be considered an
- * opaque identifier; it is not safe to rely on it being in any particular
- * format.
- */
+
+ /// Unique identifier of this saved ad style. This should be considered an
+ /// opaque identifier; it is not safe to rely on it being in any particular
+ /// format.
core.String id;
- /** Kind of resource this is, in this case adsense#savedAdStyle. */
+
+ /// Kind of resource this is, in this case adsense#savedAdStyle.
core.String kind;
- /** The user selected name of this SavedAdStyle. */
+
+ /// The user selected name of this SavedAdStyle.
core.String name;
SavedAdStyle();
@@ -3724,7 +3774,8 @@ class SavedAdStyle {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (adStyle != null) {
_json["adStyle"] = (adStyle).toJson();
}
@@ -3742,16 +3793,17 @@ class SavedAdStyle {
}
class SavedAdStyles {
- /** ETag of this response for caching purposes. */
+ /// ETag of this response for caching purposes.
core.String etag;
- /** The saved ad styles returned in this list response. */
+
+ /// The saved ad styles returned in this list response.
core.List<SavedAdStyle> items;
- /** Kind of list this is, in this case adsense#savedAdStyles. */
+
+ /// Kind of list this is, in this case adsense#savedAdStyles.
core.String kind;
- /**
- * Continuation token used to page through ad units. To retrieve the next page
- * of results, set the next request's "pageToken" value to this.
- */
+
+ /// Continuation token used to page through ad units. To retrieve the next
+ /// page of results, set the next request's "pageToken" value to this.
core.String nextPageToken;
SavedAdStyles();
@@ -3761,7 +3813,9 @@ class SavedAdStyles {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new SavedAdStyle.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new SavedAdStyle.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -3772,7 +3826,8 @@ class SavedAdStyles {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -3790,11 +3845,13 @@ class SavedAdStyles {
}
class SavedReport {
- /** Unique identifier of this saved report. */
+ /// Unique identifier of this saved report.
core.String id;
- /** Kind of resource this is, in this case adsense#savedReport. */
+
+ /// Kind of resource this is, in this case adsense#savedReport.
core.String kind;
- /** This saved report's name. */
+
+ /// This saved report's name.
core.String name;
SavedReport();
@@ -3812,7 +3869,8 @@ class SavedReport {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -3827,16 +3885,17 @@ class SavedReport {
}
class SavedReports {
- /** ETag of this response for caching purposes. */
+ /// ETag of this response for caching purposes.
core.String etag;
- /** The saved reports returned in this list response. */
+
+ /// The saved reports returned in this list response.
core.List<SavedReport> items;
- /** Kind of list this is, in this case adsense#savedReports. */
+
+ /// Kind of list this is, in this case adsense#savedReports.
core.String kind;
- /**
- * Continuation token used to page through saved reports. To retrieve the next
- * page of results, set the next request's "pageToken" value to this.
- */
+
+ /// Continuation token used to page through saved reports. To retrieve the
+ /// next page of results, set the next request's "pageToken" value to this.
core.String nextPageToken;
SavedReports();
@@ -3846,7 +3905,9 @@ class SavedReports {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new SavedReport.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new SavedReport.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -3857,7 +3918,8 @@ class SavedReports {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
@@ -3875,17 +3937,16 @@ class SavedReports {
}
class UrlChannel {
- /**
- * Unique identifier of this URL channel. This should be considered an opaque
- * identifier; it is not safe to rely on it being in any particular format.
- */
+ /// Unique identifier of this URL channel. This should be considered an
+ /// opaque identifier; it is not safe to rely on it being in any particular
+ /// format.
core.String id;
- /** Kind of resource this is, in this case adsense#urlChannel. */
+
+ /// Kind of resource this is, in this case adsense#urlChannel.
core.String kind;
- /**
- * URL Pattern of this URL channel. Does not include "http://" or "https://".
- * Example: www.example.com/home
- */
+
+ /// URL Pattern of this URL channel. Does not include "http://" or
+ /// "https://". Example: www.example.com/home
core.String urlPattern;
UrlChannel();
@@ -3903,7 +3964,8 @@ class UrlChannel {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -3918,16 +3980,17 @@ class UrlChannel {
}
class UrlChannels {
- /** ETag of this response for caching purposes. */
+ /// ETag of this response for caching purposes.
core.String etag;
- /** The URL channels returned in this list response. */
+
+ /// The URL channels returned in this list response.
core.List<UrlChannel> items;
- /** Kind of list this is, in this case adsense#urlChannels. */
+
+ /// Kind of list this is, in this case adsense#urlChannels.
core.String kind;
- /**
- * Continuation token used to page through URL channels. To retrieve the next
- * page of results, set the next request's "pageToken" value to this.
- */
+
+ /// Continuation token used to page through URL channels. To retrieve the
+ /// next page of results, set the next request's "pageToken" value to this.
core.String nextPageToken;
UrlChannels();
@@ -3937,7 +4000,9 @@ class UrlChannels {
etag = _json["etag"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new UrlChannel.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new UrlChannel.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -3948,7 +4013,8 @@ class UrlChannels {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (etag != null) {
_json["etag"] = etag;
}
« no previous file with comments | « generated/googleapis/lib/admin/reports_v1.dart ('k') | generated/googleapis/lib/adsensehost/v4_1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698