| Index: generated/googleapis/lib/adsensehost/v4_1.dart
|
| diff --git a/generated/googleapis/lib/adsensehost/v4_1.dart b/generated/googleapis/lib/adsensehost/v4_1.dart
|
| index 0350ad19f835436057b49a8c043b0807b37ac008..cf9ee18a89bdbaf56f25aaa7c0033650681c929e 100644
|
| --- a/generated/googleapis/lib/adsensehost/v4_1.dart
|
| +++ b/generated/googleapis/lib/adsensehost/v4_1.dart
|
| @@ -9,59 +9,61 @@ 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;
|
| +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
|
| + show ApiRequestError, DetailedApiRequestError;
|
|
|
| const core.String USER_AGENT = 'dart-api-client adsensehost/v4.1';
|
|
|
| -/**
|
| - * Generates performance reports, generates ad codes, and provides publisher
|
| - * management capabilities for AdSense Hosts.
|
| - */
|
| +/// Generates performance reports, generates ad codes, and provides publisher
|
| +/// management capabilities for AdSense Hosts.
|
| class AdsensehostApi {
|
| - /** View and manage your AdSense host data and associated accounts */
|
| + /// View and manage your AdSense host data and associated accounts
|
| static const AdsensehostScope = "https://www.googleapis.com/auth/adsensehost";
|
|
|
| -
|
| final commons.ApiRequester _requester;
|
|
|
| AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
|
| AdclientsResourceApi get adclients => new AdclientsResourceApi(_requester);
|
| - AssociationsessionsResourceApi get associationsessions => new AssociationsessionsResourceApi(_requester);
|
| - CustomchannelsResourceApi get customchannels => new CustomchannelsResourceApi(_requester);
|
| + AssociationsessionsResourceApi get associationsessions =>
|
| + new AssociationsessionsResourceApi(_requester);
|
| + CustomchannelsResourceApi get customchannels =>
|
| + new CustomchannelsResourceApi(_requester);
|
| ReportsResourceApi get reports => new ReportsResourceApi(_requester);
|
| - UrlchannelsResourceApi get urlchannels => new UrlchannelsResourceApi(_requester);
|
| -
|
| - AdsensehostApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "adsensehost/v4.1/"}) :
|
| - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| + UrlchannelsResourceApi get urlchannels =>
|
| + new UrlchannelsResourceApi(_requester);
|
| +
|
| + AdsensehostApi(http.Client client,
|
| + {core.String rootUrl: "https://www.googleapis.com/",
|
| + core.String servicePath: "adsensehost/v4.1/"})
|
| + : _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);
|
| - AccountsReportsResourceApi get reports => new AccountsReportsResourceApi(_requester);
|
| -
|
| - AccountsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Get information about the selected associated AdSense account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [accountId] - Account to get information about.
|
| - *
|
| - * 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);
|
| + AccountsReportsResourceApi get reports =>
|
| + new AccountsReportsResourceApi(_requester);
|
| +
|
| + AccountsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Get information about the selected associated AdSense account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [accountId] - Account to get information about.
|
| + ///
|
| + /// 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) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -76,31 +78,29 @@ 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 hosted accounts associated with this AdSense account by ad client id.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [filterAdClientId] - Ad clients to list accounts for.
|
| - *
|
| - * 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 hosted accounts associated with this AdSense account by ad client
|
| + /// id.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [filterAdClientId] - Ad clients to list accounts for.
|
| + ///
|
| + /// 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.List<core.String> filterAdClientId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -116,43 +116,38 @@ 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;
|
| -
|
| - /**
|
| - * Get information about one of the ad clients in the specified publisher's
|
| - * AdSense account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [accountId] - Account which contains the ad client.
|
| - *
|
| - * [adClientId] - Ad client to get.
|
| - *
|
| - * Completes with a [AdClient].
|
| - *
|
| - * 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(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Get information about one of the ad clients in the specified publisher's
|
| + /// AdSense account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [accountId] - Account which contains the ad client.
|
| + ///
|
| + /// [adClientId] - Ad client to get.
|
| + ///
|
| + /// Completes with a [AdClient].
|
| + ///
|
| + /// 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<AdClient> get(core.String accountId, core.String adClientId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -168,42 +163,43 @@ class AccountsAdclientsResourceApi {
|
| throw new core.ArgumentError("Parameter adClientId is required.");
|
| }
|
|
|
| - _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients/' + commons.Escaper.ecapeVariable('$adClientId');
|
| + _url = 'accounts/' +
|
| + commons.Escaper.ecapeVariable('$accountId') +
|
| + '/adclients/' +
|
| + commons.Escaper.ecapeVariable('$adClientId');
|
|
|
| - 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 AdClient.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * List all hosted ad clients in the specified hosted 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}) {
|
| + /// List all hosted ad clients in the specified hosted 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;
|
| @@ -221,47 +217,45 @@ 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;
|
|
|
| - AccountsAdunitsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Delete the specified ad unit from the specified publisher AdSense account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [accountId] - Account which contains the ad unit.
|
| - *
|
| - * [adClientId] - Ad client for which to get ad unit.
|
| - *
|
| - * [adUnitId] - Ad unit to delete.
|
| - *
|
| - * 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> delete(core.String accountId, core.String adClientId, core.String adUnitId) {
|
| + AccountsAdunitsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Delete the specified ad unit from the specified publisher AdSense
|
| + /// account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [accountId] - Account which contains the ad unit.
|
| + ///
|
| + /// [adClientId] - Ad client for which to get ad unit.
|
| + ///
|
| + /// [adUnitId] - Ad unit to delete.
|
| + ///
|
| + /// 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> delete(
|
| + core.String accountId, core.String adClientId, core.String adUnitId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -279,38 +273,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,
|
| - "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) => new AdUnit.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Get the specified host ad unit in this AdSense account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [accountId] - Account which contains the ad unit.
|
| - *
|
| - * [adClientId] - Ad client for which to get ad unit.
|
| - *
|
| - * [adUnitId] - Ad unit to get.
|
| - *
|
| - * 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) {
|
| + /// Get the specified host ad unit in this AdSense account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [accountId] - Account which contains the ad unit.
|
| + ///
|
| + /// [adClientId] - Ad client for which to get ad unit.
|
| + ///
|
| + /// [adUnitId] - Ad unit to get.
|
| + ///
|
| + /// 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;
|
| @@ -328,41 +325,45 @@ 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, attaching the specified host custom
|
| - * channels.
|
| - *
|
| - * 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.
|
| - *
|
| - * [hostCustomChannelId] - Host custom channel to attach to the ad code.
|
| - *
|
| - * 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, {core.List<core.String> hostCustomChannelId}) {
|
| + /// Get ad code for the specified ad unit, attaching the specified host
|
| + /// custom channels.
|
| + ///
|
| + /// 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.
|
| + ///
|
| + /// [hostCustomChannelId] - Host custom channel to attach to the ad code.
|
| + ///
|
| + /// 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,
|
| + {core.List<core.String> hostCustomChannelId}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -383,38 +384,42 @@ class AccountsAdunitsResourceApi {
|
| _queryParams["hostCustomChannelId"] = hostCustomChannelId;
|
| }
|
|
|
| - _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));
|
| }
|
|
|
| - /**
|
| - * Insert the supplied ad unit into the specified publisher AdSense account.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [accountId] - Account which will contain the ad unit.
|
| - *
|
| - * [adClientId] - Ad client into which to insert the ad unit.
|
| - *
|
| - * 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> insert(AdUnit request, core.String accountId, core.String adClientId) {
|
| + /// Insert the supplied ad unit into the specified publisher AdSense account.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [accountId] - Account which will contain the ad unit.
|
| + ///
|
| + /// [adClientId] - Ad client into which to insert the ad unit.
|
| + ///
|
| + /// 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> insert(
|
| + AdUnit request, core.String accountId, core.String adClientId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -432,46 +437,48 @@ class AccountsAdunitsResourceApi {
|
| throw new core.ArgumentError("Parameter adClientId is required.");
|
| }
|
|
|
| - _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,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new AdUnit.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * List all ad units in the specified publisher's AdSense account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [accountId] - Account which contains the ad client.
|
| - *
|
| - * [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 publisher's AdSense account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [accountId] - Account which contains the ad client.
|
| + ///
|
| + /// [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;
|
| @@ -495,41 +502,43 @@ 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));
|
| }
|
|
|
| - /**
|
| - * Update the supplied ad unit in the specified publisher AdSense account.
|
| - * This method supports patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [accountId] - Account which contains the ad client.
|
| - *
|
| - * [adClientId] - Ad client which contains the ad unit.
|
| - *
|
| - * [adUnitId] - Ad unit to get.
|
| - *
|
| - * 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> patch(AdUnit request, core.String accountId, core.String adClientId, core.String adUnitId) {
|
| + /// Update the supplied ad unit in the specified publisher AdSense account.
|
| + /// This method supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [accountId] - Account which contains the ad client.
|
| + ///
|
| + /// [adClientId] - Ad client which contains the ad unit.
|
| + ///
|
| + /// [adUnitId] - Ad unit to get.
|
| + ///
|
| + /// 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> patch(AdUnit request, core.String accountId,
|
| + core.String adClientId, core.String adUnitId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -551,38 +560,40 @@ class AccountsAdunitsResourceApi {
|
| }
|
| _queryParams["adUnitId"] = [adUnitId];
|
|
|
| - _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'accounts/' +
|
| + commons.Escaper.ecapeVariable('$accountId') +
|
| + '/adclients/' +
|
| + commons.Escaper.ecapeVariable('$adClientId') +
|
| + '/adunits';
|
| +
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new AdUnit.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Update the supplied ad unit in the specified publisher AdSense account.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [accountId] - Account which contains the ad client.
|
| - *
|
| - * [adClientId] - Ad client which contains the ad unit.
|
| - *
|
| - * 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> update(AdUnit request, core.String accountId, core.String adClientId) {
|
| + /// Update the supplied ad unit in the specified publisher AdSense account.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [accountId] - Account which contains the ad client.
|
| + ///
|
| + /// [adClientId] - Ad client which contains the ad unit.
|
| + ///
|
| + /// 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> update(
|
| + AdUnit request, core.String accountId, core.String adClientId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -600,79 +611,85 @@ class AccountsAdunitsResourceApi {
|
| throw new core.ArgumentError("Parameter adClientId is required.");
|
| }
|
|
|
| - _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,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new AdUnit.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class AccountsReportsResourceApi {
|
| final commons.ApiRequester _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] - Hosted 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}?)".
|
| - *
|
| - * [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}?)".
|
| - *
|
| - * [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".
|
| - *
|
| - * Completes with a [Report].
|
| - *
|
| - * 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<Report> generate(core.String accountId, core.String startDate, core.String endDate, {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}) {
|
| + 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] - Hosted 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}?)".
|
| + ///
|
| + /// [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}?)".
|
| + ///
|
| + /// [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".
|
| + ///
|
| + /// Completes with a [Report].
|
| + ///
|
| + /// 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<Report> generate(
|
| + core.String accountId, core.String startDate, core.String endDate,
|
| + {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}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -713,42 +730,37 @@ class AccountsReportsResourceApi {
|
| _queryParams["startIndex"] = ["${startIndex}"];
|
| }
|
|
|
| - _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);
|
| return _response.then((data) => new Report.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class AdclientsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - AdclientsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Get information about one of the ad clients in the Host AdSense account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client to get.
|
| - *
|
| - * Completes with a [AdClient].
|
| - *
|
| - * 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;
|
| +
|
| + /// Get information about one of the ad clients in the Host AdSense account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [adClientId] - Ad client to get.
|
| + ///
|
| + /// Completes with a [AdClient].
|
| + ///
|
| + /// 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<AdClient> get(core.String adClientId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -763,37 +775,34 @@ class AdclientsResourceApi {
|
|
|
| _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId');
|
|
|
| - 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 AdClient.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * List all host 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.
|
| - */
|
| + /// List all host 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();
|
| @@ -811,48 +820,45 @@ 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 AssociationsessionsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - AssociationsessionsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Create an association session for initiating an association with an AdSense
|
| - * user.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [productCode] - Products to associate with the user.
|
| - *
|
| - * [websiteUrl] - The URL of the user's hosted website.
|
| - *
|
| - * [userLocale] - The preferred locale of the user.
|
| - *
|
| - * [websiteLocale] - The locale of the user's hosted website.
|
| - *
|
| - * Completes with a [AssociationSession].
|
| - *
|
| - * 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<AssociationSession> start(core.List<core.String> productCode, core.String websiteUrl, {core.String userLocale, core.String websiteLocale}) {
|
| + AssociationsessionsResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Create an association session for initiating an association with an
|
| + /// AdSense user.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [productCode] - Products to associate with the user.
|
| + ///
|
| + /// [websiteUrl] - The URL of the user's hosted website.
|
| + ///
|
| + /// [userLocale] - The preferred locale of the user.
|
| + ///
|
| + /// [websiteLocale] - The locale of the user's hosted website.
|
| + ///
|
| + /// Completes with a [AssociationSession].
|
| + ///
|
| + /// 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<AssociationSession> start(
|
| + core.List<core.String> productCode, core.String websiteUrl,
|
| + {core.String userLocale, core.String websiteLocale}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -877,32 +883,29 @@ class AssociationsessionsResourceApi {
|
|
|
| _url = 'associationsessions/start';
|
|
|
| - 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 AssociationSession.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Verify an association session after the association callback returns from
|
| - * AdSense signup.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [token] - The token returned to the association callback URL.
|
| - *
|
| - * Completes with a [AssociationSession].
|
| - *
|
| - * 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.
|
| - */
|
| + /// Verify an association session after the association callback returns from
|
| + /// AdSense signup.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [token] - The token returned to the association callback URL.
|
| + ///
|
| + /// Completes with a [AssociationSession].
|
| + ///
|
| + /// 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<AssociationSession> verify(core.String token) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -918,43 +921,38 @@ class AssociationsessionsResourceApi {
|
|
|
| _url = 'associationsessions/verify';
|
|
|
| - 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 AssociationSession.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class CustomchannelsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - CustomchannelsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Delete a specific custom channel from the host AdSense account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client from which to delete the custom channel.
|
| - *
|
| - * [customChannelId] - Custom channel to delete.
|
| - *
|
| - * 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> delete(core.String adClientId, core.String customChannelId) {
|
| + CustomchannelsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Delete a specific custom channel from the host AdSense account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [adClientId] - Ad client from which to delete the custom channel.
|
| + ///
|
| + /// [customChannelId] - Custom channel to delete.
|
| + ///
|
| + /// 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> delete(
|
| + core.String adClientId, core.String customChannelId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -969,36 +967,37 @@ 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,
|
| - "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) => new CustomChannel.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Get a specific custom channel from the host AdSense account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client from which to get the custom channel.
|
| - *
|
| - * [customChannelId] - Custom channel to get.
|
| - *
|
| - * 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) {
|
| + /// Get a specific custom channel from the host AdSense account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [adClientId] - Ad client from which to get the custom channel.
|
| + ///
|
| + /// [customChannelId] - Custom channel to get.
|
| + ///
|
| + /// 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;
|
| @@ -1013,36 +1012,37 @@ 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));
|
| }
|
|
|
| - /**
|
| - * Add a new custom channel to the host AdSense account.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client to which the new custom channel will be added.
|
| - *
|
| - * 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> insert(CustomChannel request, core.String adClientId) {
|
| + /// Add a new custom channel to the host AdSense account.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [adClientId] - Ad client to which the new custom channel will be added.
|
| + ///
|
| + /// 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> insert(
|
| + CustomChannel request, core.String adClientId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1057,42 +1057,42 @@ class CustomchannelsResourceApi {
|
| throw new core.ArgumentError("Parameter adClientId is required.");
|
| }
|
|
|
| - _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels';
|
| + _url = 'adclients/' +
|
| + commons.Escaper.ecapeVariable('$adClientId') +
|
| + '/customchannels';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new CustomChannel.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * List all host custom channels in 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 host custom channels in 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;
|
| @@ -1110,39 +1110,39 @@ 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));
|
| }
|
|
|
| - /**
|
| - * Update a custom channel in the host AdSense account. This method supports
|
| - * patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client in which the custom channel will be updated.
|
| - *
|
| - * [customChannelId] - Custom channel to get.
|
| - *
|
| - * 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> patch(CustomChannel request, core.String adClientId, core.String customChannelId) {
|
| + /// Update a custom channel in the host AdSense account. This method supports
|
| + /// patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [adClientId] - Ad client in which the custom channel will be updated.
|
| + ///
|
| + /// [customChannelId] - Custom channel to get.
|
| + ///
|
| + /// 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> patch(CustomChannel request,
|
| + core.String adClientId, core.String customChannelId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1161,36 +1161,36 @@ class CustomchannelsResourceApi {
|
| }
|
| _queryParams["customChannelId"] = [customChannelId];
|
|
|
| - _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels';
|
| + _url = 'adclients/' +
|
| + commons.Escaper.ecapeVariable('$adClientId') +
|
| + '/customchannels';
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new CustomChannel.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Update a custom channel in the host AdSense account.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client in which the custom channel will be updated.
|
| - *
|
| - * 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> update(CustomChannel request, core.String adClientId) {
|
| + /// Update a custom channel in the host AdSense account.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [adClientId] - Ad client in which the custom channel will be updated.
|
| + ///
|
| + /// 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> update(
|
| + CustomChannel request, core.String adClientId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1205,77 +1205,80 @@ class CustomchannelsResourceApi {
|
| throw new core.ArgumentError("Parameter adClientId is required.");
|
| }
|
|
|
| - _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels';
|
| + _url = 'adclients/' +
|
| + commons.Escaper.ecapeVariable('$adClientId') +
|
| + '/customchannels';
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new CustomChannel.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ReportsResourceApi {
|
| final commons.ApiRequester _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}?)".
|
| - *
|
| - * [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}?)".
|
| - *
|
| - * [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".
|
| - *
|
| - * Completes with a [Report].
|
| - *
|
| - * 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<Report> generate(core.String startDate, core.String endDate, {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}) {
|
| + 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}?)".
|
| + ///
|
| + /// [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}?)".
|
| + ///
|
| + /// [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".
|
| + ///
|
| + /// Completes with a [Report].
|
| + ///
|
| + /// 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<Report> generate(core.String startDate, core.String endDate,
|
| + {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}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1315,43 +1318,38 @@ 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);
|
| return _response.then((data) => new Report.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class UrlchannelsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - UrlchannelsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Delete a URL channel from the host AdSense account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client from which to delete the URL channel.
|
| - *
|
| - * [urlChannelId] - URL channel to delete.
|
| - *
|
| - * Completes with a [UrlChannel].
|
| - *
|
| - * 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<UrlChannel> delete(core.String adClientId, core.String urlChannelId) {
|
| + UrlchannelsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Delete a URL channel from the host AdSense account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [adClientId] - Ad client from which to delete the URL channel.
|
| + ///
|
| + /// [urlChannelId] - URL channel to delete.
|
| + ///
|
| + /// Completes with a [UrlChannel].
|
| + ///
|
| + /// 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<UrlChannel> delete(
|
| + core.String adClientId, core.String urlChannelId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1366,35 +1364,35 @@ class UrlchannelsResourceApi {
|
| throw new core.ArgumentError("Parameter urlChannelId is required.");
|
| }
|
|
|
| - _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlchannels/' + commons.Escaper.ecapeVariable('$urlChannelId');
|
| + _url = 'adclients/' +
|
| + commons.Escaper.ecapeVariable('$adClientId') +
|
| + '/urlchannels/' +
|
| + commons.Escaper.ecapeVariable('$urlChannelId');
|
|
|
| - 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) => new UrlChannel.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Add a new URL channel to the host AdSense account.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client to which the new URL channel will be added.
|
| - *
|
| - * Completes with a [UrlChannel].
|
| - *
|
| - * 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.
|
| - */
|
| + /// Add a new URL channel to the host AdSense account.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [adClientId] - Ad client to which the new URL channel will be added.
|
| + ///
|
| + /// Completes with a [UrlChannel].
|
| + ///
|
| + /// 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<UrlChannel> insert(UrlChannel request, core.String adClientId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1410,42 +1408,42 @@ class UrlchannelsResourceApi {
|
| throw new core.ArgumentError("Parameter adClientId is required.");
|
| }
|
|
|
| - _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlchannels';
|
| + _url = 'adclients/' +
|
| + commons.Escaper.ecapeVariable('$adClientId') +
|
| + '/urlchannels';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new UrlChannel.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * List all host URL channels in the host 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}) {
|
| + /// List all host URL channels in the host 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;
|
| @@ -1463,30 +1461,31 @@ 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 {
|
| - /** Unique identifier of this account. */
|
| + /// Unique identifier of this account.
|
| core.String id;
|
| - /** Kind of resource this is, in this case adsensehost#account. */
|
| +
|
| + /// Kind of resource this is, in this case adsensehost#account.
|
| core.String kind;
|
| - /** Name of this account. */
|
| +
|
| + /// Name of this account.
|
| core.String name;
|
| - /** Approval status of this account. One of: PENDING, APPROVED, DISABLED. */
|
| +
|
| + /// Approval status of this account. One of: PENDING, APPROVED, DISABLED.
|
| core.String status;
|
|
|
| Account();
|
| @@ -1507,7 +1506,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 (id != null) {
|
| _json["id"] = id;
|
| }
|
| @@ -1525,11 +1525,13 @@ 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 adsensehost#accounts. */
|
| +
|
| + /// Kind of list this is, in this case adsensehost#accounts.
|
| core.String kind;
|
|
|
| Accounts();
|
| @@ -1539,7 +1541,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"];
|
| @@ -1547,7 +1550,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;
|
| }
|
| @@ -1562,18 +1566,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 adsensehost#adClient. */
|
| +
|
| + /// Kind of resource this is, in this case adsensehost#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();
|
| @@ -1597,7 +1603,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;
|
| }
|
| @@ -1618,16 +1625,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 adsensehost#adClients. */
|
| +
|
| + /// Kind of list this is, in this case adsensehost#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();
|
| @@ -1637,7 +1645,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"];
|
| @@ -1648,7 +1657,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;
|
| }
|
| @@ -1666,9 +1676,10 @@ class AdClients {
|
| }
|
|
|
| class AdCode {
|
| - /** The ad code snippet. */
|
| + /// The ad code snippet.
|
| core.String adCode;
|
| - /** Kind this is, in this case adsensehost#adCode. */
|
| +
|
| + /// Kind this is, in this case adsensehost#adCode.
|
| core.String kind;
|
|
|
| AdCode();
|
| @@ -1683,7 +1694,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;
|
| }
|
| @@ -1694,20 +1706,22 @@ class AdCode {
|
| }
|
| }
|
|
|
| -/**
|
| - * The colors included in the style. These are represented as six hexadecimal
|
| - * characters, similar to HTML color codes, but without the leading hash.
|
| - */
|
| +/// The colors 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();
|
| @@ -1731,7 +1745,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;
|
| }
|
| @@ -1751,17 +1766,14 @@ 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. Possible values are: ACCOUNT_DEFAULT_FAMILY,
|
| - * ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
|
| - */
|
| + /// The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY,
|
| + /// ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
|
| core.String family;
|
| - /**
|
| - * The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE,
|
| - * ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
|
| - */
|
| +
|
| + /// The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE,
|
| + /// ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
|
| core.String size;
|
|
|
| AdStyleFont();
|
| @@ -1776,7 +1788,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;
|
| }
|
| @@ -1788,18 +1801,19 @@ class AdStyleFont {
|
| }
|
|
|
| class AdStyle {
|
| - /**
|
| - * The colors included in the style. These are represented as six hexadecimal
|
| - * characters, similar to HTML color codes, but without the leading hash.
|
| - */
|
| + /// The colors 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 adsensehost#adStyle. */
|
| +
|
| + /// Kind this is, in this case adsensehost#adStyle.
|
| core.String kind;
|
|
|
| AdStyle();
|
| @@ -1820,7 +1834,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();
|
| }
|
| @@ -1837,17 +1852,17 @@ 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. These are represented as six
|
| - * hexadecimal characters, similar to HTML color codes, but without the
|
| - * leading hash.
|
| - */
|
| + /// Color to use when type is set to COLOR. These are represented as six
|
| + /// hexadecimal characters, similar to HTML color codes, but without the
|
| + /// leading hash.
|
| 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();
|
| @@ -1865,7 +1880,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;
|
| }
|
| @@ -1879,27 +1895,25 @@ 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 values are in the form SIZE_{width}_{height}.
|
| - */
|
| +
|
| + /// Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
|
| core.String size;
|
| - /**
|
| - * Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
|
| - */
|
| +
|
| + /// Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and
|
| + /// LINK.
|
| 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"];
|
| @@ -1910,7 +1924,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();
|
| }
|
| @@ -1924,15 +1939,18 @@ class AdUnitContentAdsSettings {
|
| }
|
| }
|
|
|
| -/** 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();
|
| @@ -1953,7 +1971,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;
|
| }
|
| @@ -1971,39 +1990,38 @@ 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;
|
| - /**
|
| - * 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 adsensehost#adUnit. */
|
| +
|
| + /// Kind of resource this is, in this case adsensehost#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;
|
| - /**
|
| - * 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();
|
| @@ -2013,7 +2031,8 @@ 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"]);
|
| @@ -2025,7 +2044,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"];
|
| @@ -2036,7 +2056,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;
|
| }
|
| @@ -2066,16 +2087,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 adsensehost#adUnits. */
|
| +
|
| + /// Kind of list this is, in this case adsensehost#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();
|
| @@ -2085,7 +2107,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"];
|
| @@ -2096,7 +2119,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;
|
| }
|
| @@ -2114,38 +2138,36 @@ class AdUnits {
|
| }
|
|
|
| class AssociationSession {
|
| - /**
|
| - * Hosted account id of the associated publisher after association. Present if
|
| - * status is ACCEPTED.
|
| - */
|
| + /// Hosted account id of the associated publisher after association. Present
|
| + /// if status is ACCEPTED.
|
| core.String accountId;
|
| - /** Unique identifier of this association session. */
|
| +
|
| + /// Unique identifier of this association session.
|
| core.String id;
|
| - /** Kind of resource this is, in this case adsensehost#associationSession. */
|
| +
|
| + /// Kind of resource this is, in this case adsensehost#associationSession.
|
| core.String kind;
|
| - /**
|
| - * The products to associate with the user. Options: AFC, AFG, AFV, AFS
|
| - * (deprecated), AFMC (deprecated)
|
| - */
|
| +
|
| + /// The products to associate with the user. Options: AFC, AFG, AFV, AFS
|
| + /// (deprecated), AFMC (deprecated)
|
| core.List<core.String> productCodes;
|
| - /**
|
| - * Redirect URL of this association session. Used to redirect users into the
|
| - * AdSense association flow.
|
| - */
|
| +
|
| + /// Redirect URL of this association session. Used to redirect users into the
|
| + /// AdSense association flow.
|
| core.String redirectUrl;
|
| - /**
|
| - * Status of the completed association, available once the association
|
| - * callback token has been verified. One of ACCEPTED, REJECTED, or ERROR.
|
| - */
|
| +
|
| + /// Status of the completed association, available once the association
|
| + /// callback token has been verified. One of ACCEPTED, REJECTED, or ERROR.
|
| core.String status;
|
| - /**
|
| - * The preferred locale of the user themselves when going through the AdSense
|
| - * association flow.
|
| - */
|
| +
|
| + /// The preferred locale of the user themselves when going through the
|
| + /// AdSense association flow.
|
| core.String userLocale;
|
| - /** The locale of the user's hosted website. */
|
| +
|
| + /// The locale of the user's hosted website.
|
| core.String websiteLocale;
|
| - /** The URL of the user's hosted website. */
|
| +
|
| + /// The URL of the user's hosted website.
|
| core.String websiteUrl;
|
|
|
| AssociationSession();
|
| @@ -2181,7 +2203,8 @@ class AssociationSession {
|
| }
|
|
|
| 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 (accountId != null) {
|
| _json["accountId"] = accountId;
|
| }
|
| @@ -2214,17 +2237,18 @@ class AssociationSession {
|
| }
|
|
|
| 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 adsensehost#customChannel. */
|
| +
|
| + /// Kind of resource this is, in this case adsensehost#customChannel.
|
| core.String kind;
|
| - /** Name of this custom channel. */
|
| +
|
| + /// Name of this custom channel.
|
| core.String name;
|
|
|
| CustomChannel();
|
| @@ -2245,7 +2269,8 @@ class CustomChannel {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -2263,16 +2288,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 adsensehost#customChannels. */
|
| +
|
| + /// Kind of list this is, in this case adsensehost#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();
|
| @@ -2282,7 +2308,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"];
|
| @@ -2293,7 +2321,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;
|
| }
|
| @@ -2311,17 +2340,15 @@ class CustomChannels {
|
| }
|
|
|
| class ReportHeaders {
|
| - /**
|
| - * 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;
|
|
|
| ReportHeaders();
|
| @@ -2339,7 +2366,8 @@ class ReportHeaders {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -2354,37 +2382,34 @@ class ReportHeaders {
|
| }
|
|
|
| class Report {
|
| - /**
|
| - * 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 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<ReportHeaders> headers;
|
| - /** Kind this is, in this case adsensehost#report. */
|
| +
|
| + /// Kind this is, in this case adsensehost#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 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;
|
|
|
| Report();
|
| @@ -2394,7 +2419,9 @@ class Report {
|
| averages = _json["averages"];
|
| }
|
| if (_json.containsKey("headers")) {
|
| - headers = _json["headers"].map((value) => new ReportHeaders.fromJson(value)).toList();
|
| + headers = _json["headers"]
|
| + .map((value) => new ReportHeaders.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -2414,7 +2441,8 @@ class Report {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -2441,17 +2469,16 @@ class Report {
|
| }
|
|
|
| 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 adsensehost#urlChannel. */
|
| +
|
| + /// Kind of resource this is, in this case adsensehost#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();
|
| @@ -2469,7 +2496,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;
|
| }
|
| @@ -2484,16 +2512,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 adsensehost#urlChannels. */
|
| +
|
| + /// Kind of list this is, in this case adsensehost#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();
|
| @@ -2503,7 +2532,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"];
|
| @@ -2514,7 +2545,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;
|
| }
|
|
|