| Index: generated/googleapis/lib/adexchangeseller/v2_0.dart
|
| diff --git a/generated/googleapis/lib/adexchangeseller/v1_1.dart b/generated/googleapis/lib/adexchangeseller/v2_0.dart
|
| similarity index 79%
|
| copy from generated/googleapis/lib/adexchangeseller/v1_1.dart
|
| copy to generated/googleapis/lib/adexchangeseller/v2_0.dart
|
| index d7c971ed0dbbb01e26e40658895fc79b5781caf9..d7fc92d1473cd3adcc8a7297097a0f3b66a3fbde 100644
|
| --- a/generated/googleapis/lib/adexchangeseller/v1_1.dart
|
| +++ b/generated/googleapis/lib/adexchangeseller/v2_0.dart
|
| @@ -1,4 +1,4 @@
|
| -library googleapis.adexchangeseller.v1_1;
|
| +library googleapis.adexchangeseller.v2_0;
|
|
|
| import "dart:core" as core;
|
| import "dart:collection" as collection;
|
| @@ -28,17 +28,9 @@ class AdexchangesellerApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
|
| - AdclientsResourceApi get adclients => new AdclientsResourceApi(_requester);
|
| - AdunitsResourceApi get adunits => new AdunitsResourceApi(_requester);
|
| - AlertsResourceApi get alerts => new AlertsResourceApi(_requester);
|
| - CustomchannelsResourceApi get customchannels => new CustomchannelsResourceApi(_requester);
|
| - MetadataResourceApi get metadata => new MetadataResourceApi(_requester);
|
| - PreferreddealsResourceApi get preferreddeals => new PreferreddealsResourceApi(_requester);
|
| - ReportsResourceApi get reports => new ReportsResourceApi(_requester);
|
| - UrlchannelsResourceApi get urlchannels => new UrlchannelsResourceApi(_requester);
|
|
|
| AdexchangesellerApi(http.Client client) :
|
| - _requester = new common_internal.ApiRequester(client, "https://www.googleapis.com/", "adexchangeseller/v1.1/");
|
| + _requester = new common_internal.ApiRequester(client, "https://www.googleapis.com/", "adexchangeseller/v2.0/");
|
| }
|
|
|
|
|
| @@ -46,6 +38,14 @@ class AdexchangesellerApi {
|
| class AccountsResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| + AccountsAdclientsResourceApi get adclients => new AccountsAdclientsResourceApi(_requester);
|
| + AccountsAlertsResourceApi get alerts => new AccountsAlertsResourceApi(_requester);
|
| + AccountsCustomchannelsResourceApi get customchannels => new AccountsCustomchannelsResourceApi(_requester);
|
| + AccountsMetadataResourceApi get metadata => new AccountsMetadataResourceApi(_requester);
|
| + AccountsPreferreddealsResourceApi get preferreddeals => new AccountsPreferreddealsResourceApi(_requester);
|
| + AccountsReportsResourceApi get reports => new AccountsReportsResourceApi(_requester);
|
| + AccountsUrlchannelsResourceApi get urlchannels => new AccountsUrlchannelsResourceApi(_requester);
|
| +
|
| AccountsResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
|
|
| @@ -90,30 +90,20 @@ class AccountsResourceApi {
|
| return _response.then((data) => new Account.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class AdclientsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| -
|
| - AdclientsResourceApi(common_internal.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * List all ad clients in this Ad Exchange account.
|
| + * List all accounts available to this Ad Exchange account.
|
| *
|
| * Request parameters:
|
| *
|
| - * [maxResults] - The maximum number of ad clients to include in the response,
|
| + * [maxResults] - The maximum number of accounts to include in the response,
|
| * used for paging.
|
| * Value must be between "0" and "10000".
|
| *
|
| - * [pageToken] - A continuation token, used to page through ad clients. To
|
| + * [pageToken] - A continuation token, used to page through accounts. To
|
| * retrieve the next page, set this parameter to the value of "nextPageToken"
|
| * from the previous response.
|
| *
|
| - * Completes with a [AdClients].
|
| + * Completes with a [Accounts].
|
| *
|
| * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -121,7 +111,7 @@ class AdclientsResourceApi {
|
| * 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}) {
|
| + async.Future<Accounts> list({core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -137,7 +127,7 @@ class AdclientsResourceApi {
|
| }
|
|
|
|
|
| - _url = 'adclients';
|
| + _url = 'accounts';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -146,153 +136,35 @@ class AdclientsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AdClients.fromJson(data));
|
| + return _response.then((data) => new Accounts.fromJson(data));
|
| }
|
|
|
| }
|
|
|
|
|
| /** Not documented yet. */
|
| -class AdunitsResourceApi {
|
| +class AccountsAdclientsResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| - AdunitsCustomchannelsResourceApi get customchannels => new AdunitsCustomchannelsResourceApi(_requester);
|
| -
|
| - AdunitsResourceApi(common_internal.ApiRequester client) :
|
| + AccountsAdclientsResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Gets the specified ad unit in the specified ad client.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client for which to get the ad unit.
|
| - *
|
| - * [adUnitId] - Ad unit to retrieve.
|
| - *
|
| - * Completes with a [AdUnit].
|
| - *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<AdUnit> get(core.String adClientId, core.String adUnitId) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (adClientId == null) {
|
| - throw new core.ArgumentError("Parameter adClientId is required.");
|
| - }
|
| - if (adUnitId == null) {
|
| - throw new core.ArgumentError("Parameter adUnitId is required.");
|
| - }
|
| -
|
| -
|
| - _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits/' + common_internal.Escaper.ecapeVariable('$adUnitId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - 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 ad client for this Ad Exchange account.
|
| + * List all ad clients in this Ad Exchange account.
|
| *
|
| * Request parameters:
|
| *
|
| - * [adClientId] - Ad client for which to list ad units.
|
| - *
|
| - * [includeInactive] - Whether to include inactive ad units. Default: true.
|
| + * [accountId] - Account to which the ad client belongs.
|
| *
|
| - * [maxResults] - The maximum number of ad units to include in the response,
|
| + * [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 units. To
|
| + * [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 [AdUnits].
|
| - *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<AdUnits> list(core.String adClientId, {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (adClientId == null) {
|
| - throw new core.ArgumentError("Parameter adClientId is required.");
|
| - }
|
| - if (includeInactive != null) {
|
| - _queryParams["includeInactive"] = ["${includeInactive}"];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| - }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| - }
|
| -
|
| -
|
| - _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AdUnits.fromJson(data));
|
| - }
|
| -
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class AdunitsCustomchannelsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| -
|
| - AdunitsCustomchannelsResourceApi(common_internal.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * List all custom channels which the specified ad unit belongs to.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client which contains the ad unit.
|
| - *
|
| - * [adUnitId] - Ad unit for which to list custom channels.
|
| - *
|
| - * [maxResults] - The maximum number of custom channels to include in the
|
| - * response, used for paging.
|
| - * Value must be between "0" and "10000".
|
| - *
|
| - * [pageToken] - A continuation token, used to page through custom channels.
|
| - * To retrieve the next page, set this parameter to the value of
|
| - * "nextPageToken" from the previous response.
|
| - *
|
| - * Completes with a [CustomChannels].
|
| + * Completes with a [AdClients].
|
| *
|
| * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -300,7 +172,7 @@ class AdunitsCustomchannelsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<CustomChannels> list(core.String adClientId, core.String adUnitId, {core.int maxResults, core.String pageToken}) {
|
| + async.Future<AdClients> list(core.String accountId, {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -308,11 +180,8 @@ class AdunitsCustomchannelsResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (adClientId == null) {
|
| - throw new core.ArgumentError("Parameter adClientId is required.");
|
| - }
|
| - if (adUnitId == null) {
|
| - throw new core.ArgumentError("Parameter adUnitId is required.");
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| @@ -322,7 +191,7 @@ class AdunitsCustomchannelsResourceApi {
|
| }
|
|
|
|
|
| - _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits/' + common_internal.Escaper.ecapeVariable('$adUnitId') + '/customchannels';
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/adclients';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -331,17 +200,17 @@ class AdunitsCustomchannelsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new CustomChannels.fromJson(data));
|
| + return _response.then((data) => new AdClients.fromJson(data));
|
| }
|
|
|
| }
|
|
|
|
|
| /** Not documented yet. */
|
| -class AlertsResourceApi {
|
| +class AccountsAlertsResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| - AlertsResourceApi(common_internal.ApiRequester client) :
|
| + AccountsAlertsResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -349,6 +218,8 @@ class AlertsResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account owning the alerts.
|
| + *
|
| * [locale] - The locale to use for translating alert messages. The account
|
| * locale will be used if this is not supplied. The AdSense default (English)
|
| * will be used if the supplied locale is invalid or unsupported.
|
| @@ -361,7 +232,7 @@ class AlertsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Alerts> list({core.String locale}) {
|
| + async.Future<Alerts> list(core.String accountId, {core.String locale}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -369,12 +240,15 @@ class AlertsResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| + }
|
| if (locale != null) {
|
| _queryParams["locale"] = [locale];
|
| }
|
|
|
|
|
| - _url = 'alerts';
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/alerts';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -390,12 +264,10 @@ class AlertsResourceApi {
|
|
|
|
|
| /** Not documented yet. */
|
| -class CustomchannelsResourceApi {
|
| +class AccountsCustomchannelsResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| - CustomchannelsAdunitsResourceApi get adunits => new CustomchannelsAdunitsResourceApi(_requester);
|
| -
|
| - CustomchannelsResourceApi(common_internal.ApiRequester client) :
|
| + AccountsCustomchannelsResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -403,6 +275,8 @@ class CustomchannelsResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account to which the ad client belongs.
|
| + *
|
| * [adClientId] - Ad client which contains the custom channel.
|
| *
|
| * [customChannelId] - Custom channel to retrieve.
|
| @@ -415,7 +289,7 @@ class CustomchannelsResourceApi {
|
| * 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) {
|
| + async.Future<CustomChannel> get(core.String accountId, core.String adClientId, core.String customChannelId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -423,6 +297,9 @@ class CustomchannelsResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| + }
|
| if (adClientId == null) {
|
| throw new core.ArgumentError("Parameter adClientId is required.");
|
| }
|
| @@ -431,7 +308,7 @@ class CustomchannelsResourceApi {
|
| }
|
|
|
|
|
| - _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + common_internal.Escaper.ecapeVariable('$customChannelId');
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + common_internal.Escaper.ecapeVariable('$customChannelId');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -449,6 +326,8 @@ class CustomchannelsResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account to which the ad client belongs.
|
| + *
|
| * [adClientId] - Ad client for which to list custom channels.
|
| *
|
| * [maxResults] - The maximum number of custom channels to include in the
|
| @@ -467,7 +346,7 @@ class CustomchannelsResourceApi {
|
| * 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}) {
|
| + async.Future<CustomChannels> list(core.String accountId, core.String adClientId, {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -475,83 +354,12 @@ class CustomchannelsResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (adClientId == null) {
|
| - throw new core.ArgumentError("Parameter adClientId is required.");
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| - }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| }
|
| -
|
| -
|
| - _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new CustomChannels.fromJson(data));
|
| - }
|
| -
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class CustomchannelsAdunitsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| -
|
| - CustomchannelsAdunitsResourceApi(common_internal.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * List all ad units in the specified custom channel.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [adClientId] - Ad client which contains the custom channel.
|
| - *
|
| - * [customChannelId] - Custom channel for which to list ad units.
|
| - *
|
| - * [includeInactive] - Whether to include inactive ad units. Default: true.
|
| - *
|
| - * [maxResults] - The maximum number of ad units to include in the response,
|
| - * used for paging.
|
| - * Value must be between "0" and "10000".
|
| - *
|
| - * [pageToken] - A continuation token, used to page through ad units. To
|
| - * retrieve the next page, set this parameter to the value of "nextPageToken"
|
| - * from the previous response.
|
| - *
|
| - * Completes with a [AdUnits].
|
| - *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<AdUnits> list(core.String adClientId, core.String customChannelId, {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| if (adClientId == null) {
|
| throw new core.ArgumentError("Parameter adClientId is required.");
|
| }
|
| - if (customChannelId == null) {
|
| - throw new core.ArgumentError("Parameter customChannelId is required.");
|
| - }
|
| - if (includeInactive != null) {
|
| - _queryParams["includeInactive"] = ["${includeInactive}"];
|
| - }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| @@ -560,7 +368,7 @@ class CustomchannelsAdunitsResourceApi {
|
| }
|
|
|
|
|
| - _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + common_internal.Escaper.ecapeVariable('$customChannelId') + '/adunits';
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -569,29 +377,29 @@ class CustomchannelsAdunitsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AdUnits.fromJson(data));
|
| + return _response.then((data) => new CustomChannels.fromJson(data));
|
| }
|
|
|
| }
|
|
|
|
|
| /** Not documented yet. */
|
| -class MetadataResourceApi {
|
| +class AccountsMetadataResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| - MetadataDimensionsResourceApi get dimensions => new MetadataDimensionsResourceApi(_requester);
|
| - MetadataMetricsResourceApi get metrics => new MetadataMetricsResourceApi(_requester);
|
| + AccountsMetadataDimensionsResourceApi get dimensions => new AccountsMetadataDimensionsResourceApi(_requester);
|
| + AccountsMetadataMetricsResourceApi get metrics => new AccountsMetadataMetricsResourceApi(_requester);
|
|
|
| - MetadataResourceApi(common_internal.ApiRequester client) :
|
| + AccountsMetadataResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
| }
|
|
|
|
|
| /** Not documented yet. */
|
| -class MetadataDimensionsResourceApi {
|
| +class AccountsMetadataDimensionsResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| - MetadataDimensionsResourceApi(common_internal.ApiRequester client) :
|
| + AccountsMetadataDimensionsResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -599,6 +407,8 @@ class MetadataDimensionsResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account with visibility to the dimensions.
|
| + *
|
| * Completes with a [Metadata].
|
| *
|
| * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| @@ -607,7 +417,7 @@ class MetadataDimensionsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Metadata> list() {
|
| + async.Future<Metadata> list(core.String accountId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -615,9 +425,12 @@ class MetadataDimensionsResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| + }
|
|
|
|
|
| - _url = 'metadata/dimensions';
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/metadata/dimensions';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -633,10 +446,10 @@ class MetadataDimensionsResourceApi {
|
|
|
|
|
| /** Not documented yet. */
|
| -class MetadataMetricsResourceApi {
|
| +class AccountsMetadataMetricsResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| - MetadataMetricsResourceApi(common_internal.ApiRequester client) :
|
| + AccountsMetadataMetricsResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -644,6 +457,8 @@ class MetadataMetricsResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account with visibility to the metrics.
|
| + *
|
| * Completes with a [Metadata].
|
| *
|
| * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| @@ -652,7 +467,7 @@ class MetadataMetricsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Metadata> list() {
|
| + async.Future<Metadata> list(core.String accountId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -660,9 +475,12 @@ class MetadataMetricsResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| + }
|
|
|
|
|
| - _url = 'metadata/metrics';
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/metadata/metrics';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -678,10 +496,10 @@ class MetadataMetricsResourceApi {
|
|
|
|
|
| /** Not documented yet. */
|
| -class PreferreddealsResourceApi {
|
| +class AccountsPreferreddealsResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| - PreferreddealsResourceApi(common_internal.ApiRequester client) :
|
| + AccountsPreferreddealsResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -689,6 +507,8 @@ class PreferreddealsResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account owning the deal.
|
| + *
|
| * [dealId] - Preferred deal to get information about.
|
| *
|
| * Completes with a [PreferredDeal].
|
| @@ -699,7 +519,7 @@ class PreferreddealsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<PreferredDeal> get(core.String dealId) {
|
| + async.Future<PreferredDeal> get(core.String accountId, core.String dealId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -707,12 +527,15 @@ class PreferreddealsResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| + }
|
| if (dealId == null) {
|
| throw new core.ArgumentError("Parameter dealId is required.");
|
| }
|
|
|
|
|
| - _url = 'preferreddeals/' + common_internal.Escaper.ecapeVariable('$dealId');
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/preferreddeals/' + common_internal.Escaper.ecapeVariable('$dealId');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -729,6 +552,8 @@ class PreferreddealsResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account owning the deals.
|
| + *
|
| * Completes with a [PreferredDeals].
|
| *
|
| * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| @@ -737,7 +562,7 @@ class PreferreddealsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<PreferredDeals> list() {
|
| + async.Future<PreferredDeals> list(core.String accountId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -745,9 +570,12 @@ class PreferreddealsResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| + }
|
|
|
|
|
| - _url = 'preferreddeals';
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/preferreddeals';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -763,12 +591,12 @@ class PreferreddealsResourceApi {
|
|
|
|
|
| /** Not documented yet. */
|
| -class ReportsResourceApi {
|
| +class AccountsReportsResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| - ReportsSavedResourceApi get saved => new ReportsSavedResourceApi(_requester);
|
| + AccountsReportsSavedResourceApi get saved => new AccountsReportsSavedResourceApi(_requester);
|
|
|
| - ReportsResourceApi(common_internal.ApiRequester client) :
|
| + AccountsReportsResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -778,6 +606,8 @@ class ReportsResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account which owns the generated report.
|
| + *
|
| * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format,
|
| * inclusive.
|
| * Value must have pattern
|
| @@ -828,7 +658,7 @@ class ReportsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future generate(core.String startDate, core.String endDate, {core.List<core.String> 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, common.DownloadOptions downloadOptions: common.DownloadOptions.Metadata}) {
|
| + async.Future 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, common.DownloadOptions downloadOptions: common.DownloadOptions.Metadata}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -836,6 +666,9 @@ class ReportsResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| + }
|
| if (startDate == null) {
|
| throw new core.ArgumentError("Parameter startDate is required.");
|
| }
|
| @@ -868,7 +701,7 @@ class ReportsResourceApi {
|
|
|
| _downloadOptions = downloadOptions;
|
|
|
| - _url = 'reports';
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/reports';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -889,10 +722,10 @@ class ReportsResourceApi {
|
|
|
|
|
| /** Not documented yet. */
|
| -class ReportsSavedResourceApi {
|
| +class AccountsReportsSavedResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| - ReportsSavedResourceApi(common_internal.ApiRequester client) :
|
| + AccountsReportsSavedResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -901,6 +734,8 @@ class ReportsSavedResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account owning the saved report.
|
| + *
|
| * [savedReportId] - The saved report to retrieve.
|
| *
|
| * [locale] - Optional locale to use for translating report output to a local
|
| @@ -921,7 +756,7 @@ class ReportsSavedResourceApi {
|
| * 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 savedReportId, {core.String locale, core.int maxResults, core.int startIndex}) {
|
| + async.Future<Report> generate(core.String accountId, core.String savedReportId, {core.String locale, core.int maxResults, core.int startIndex}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -929,6 +764,9 @@ class ReportsSavedResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| + }
|
| if (savedReportId == null) {
|
| throw new core.ArgumentError("Parameter savedReportId is required.");
|
| }
|
| @@ -943,7 +781,7 @@ class ReportsSavedResourceApi {
|
| }
|
|
|
|
|
| - _url = 'reports/' + common_internal.Escaper.ecapeVariable('$savedReportId');
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/reports/' + common_internal.Escaper.ecapeVariable('$savedReportId');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -960,6 +798,8 @@ class ReportsSavedResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account owning the saved reports.
|
| + *
|
| * [maxResults] - The maximum number of saved reports to include in the
|
| * response, used for paging.
|
| * Value must be between "0" and "100".
|
| @@ -976,7 +816,7 @@ class ReportsSavedResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<SavedReports> list({core.int maxResults, core.String pageToken}) {
|
| + async.Future<SavedReports> list(core.String accountId, {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -984,6 +824,9 @@ class ReportsSavedResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| + }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| @@ -992,7 +835,7 @@ class ReportsSavedResourceApi {
|
| }
|
|
|
|
|
| - _url = 'reports/saved';
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/reports/saved';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1008,10 +851,10 @@ class ReportsSavedResourceApi {
|
|
|
|
|
| /** Not documented yet. */
|
| -class UrlchannelsResourceApi {
|
| +class AccountsUrlchannelsResourceApi {
|
| final common_internal.ApiRequester _requester;
|
|
|
| - UrlchannelsResourceApi(common_internal.ApiRequester client) :
|
| + AccountsUrlchannelsResourceApi(common_internal.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -1020,6 +863,8 @@ class UrlchannelsResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| + * [accountId] - Account to which the ad client belongs.
|
| + *
|
| * [adClientId] - Ad client for which to list URL channels.
|
| *
|
| * [maxResults] - The maximum number of URL channels to include in the
|
| @@ -1038,7 +883,7 @@ class UrlchannelsResourceApi {
|
| * 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}) {
|
| + async.Future<UrlChannels> list(core.String accountId, core.String adClientId, {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1046,6 +891,9 @@ class UrlchannelsResourceApi {
|
| var _downloadOptions = common.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (accountId == null) {
|
| + throw new core.ArgumentError("Parameter accountId is required.");
|
| + }
|
| if (adClientId == null) {
|
| throw new core.ArgumentError("Parameter adClientId is required.");
|
| }
|
| @@ -1057,7 +905,7 @@ class UrlchannelsResourceApi {
|
| }
|
|
|
|
|
| - _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/urlchannels';
|
| + _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/urlchannels';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1116,94 +964,31 @@ class Account {
|
|
|
|
|
| /** Not documented yet. */
|
| -class AdClient {
|
| - /** Whether this ad client is opted in to ARC. */
|
| - core.bool arcOptIn;
|
| -
|
| - /** Unique identifier of this ad client. */
|
| - core.String id;
|
| -
|
| - /** Kind of resource this is, in this case adexchangeseller#adClient. */
|
| - core.String kind;
|
| -
|
| - /**
|
| - * 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. */
|
| - core.bool supportsReporting;
|
| -
|
| -
|
| - AdClient();
|
| -
|
| - AdClient.fromJson(core.Map _json) {
|
| - if (_json.containsKey("arcOptIn")) {
|
| - arcOptIn = _json["arcOptIn"];
|
| - }
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("productCode")) {
|
| - productCode = _json["productCode"];
|
| - }
|
| - if (_json.containsKey("supportsReporting")) {
|
| - supportsReporting = _json["supportsReporting"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (arcOptIn != null) {
|
| - _json["arcOptIn"] = arcOptIn;
|
| - }
|
| - if (id != null) {
|
| - _json["id"] = id;
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - if (productCode != null) {
|
| - _json["productCode"] = productCode;
|
| - }
|
| - if (supportsReporting != null) {
|
| - _json["supportsReporting"] = supportsReporting;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class AdClients {
|
| +class Accounts {
|
| /** ETag of this response for caching purposes. */
|
| core.String etag;
|
|
|
| - /** The ad clients returned in this list response. */
|
| - core.List<AdClient> items;
|
| + /** The accounts returned in this list response. */
|
| + core.List<Account> items;
|
|
|
| - /** Kind of list this is, in this case adexchangeseller#adClients. */
|
| + /** Kind of list this is, in this case adexchangeseller#accounts. */
|
| 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 accounts. To retrieve the next page
|
| + * of results, set the next request's "pageToken" value to this.
|
| */
|
| core.String nextPageToken;
|
|
|
|
|
| - AdClients();
|
| + Accounts();
|
|
|
| - AdClients.fromJson(core.Map _json) {
|
| + Accounts.fromJson(core.Map _json) {
|
| if (_json.containsKey("etag")) {
|
| etag = _json["etag"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new AdClient.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new Account.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -1233,43 +1018,31 @@ class AdClients {
|
|
|
|
|
| /** Not documented yet. */
|
| -class AdUnit {
|
| - /**
|
| - * Identity code of this ad unit, not necessarily unique across ad clients.
|
| - */
|
| - core.String code;
|
| +class AdClient {
|
| + /** Whether this ad client is opted in to ARC. */
|
| + core.bool arcOptIn;
|
|
|
| - /**
|
| - * 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 client. */
|
| core.String id;
|
|
|
| - /** Kind of resource this is, in this case adexchangeseller#adUnit. */
|
| + /** Kind of resource this is, in this case adexchangeseller#adClient. */
|
| core.String kind;
|
|
|
| - /** 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.
|
| + * This ad client's product code, which corresponds to the PRODUCT_CODE report
|
| + * dimension.
|
| */
|
| - core.String status;
|
| + core.String productCode;
|
| +
|
| + /** Whether this ad client supports being reported on. */
|
| + core.bool supportsReporting;
|
|
|
|
|
| - AdUnit();
|
| + AdClient();
|
|
|
| - AdUnit.fromJson(core.Map _json) {
|
| - if (_json.containsKey("code")) {
|
| - code = _json["code"];
|
| + AdClient.fromJson(core.Map _json) {
|
| + if (_json.containsKey("arcOptIn")) {
|
| + arcOptIn = _json["arcOptIn"];
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| @@ -1277,18 +1050,18 @@ class AdUnit {
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| + if (_json.containsKey("productCode")) {
|
| + productCode = _json["productCode"];
|
| }
|
| - if (_json.containsKey("status")) {
|
| - status = _json["status"];
|
| + if (_json.containsKey("supportsReporting")) {
|
| + supportsReporting = _json["supportsReporting"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (code != null) {
|
| - _json["code"] = code;
|
| + if (arcOptIn != null) {
|
| + _json["arcOptIn"] = arcOptIn;
|
| }
|
| if (id != null) {
|
| _json["id"] = id;
|
| @@ -1296,11 +1069,11 @@ class AdUnit {
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| + if (productCode != null) {
|
| + _json["productCode"] = productCode;
|
| }
|
| - if (status != null) {
|
| - _json["status"] = status;
|
| + if (supportsReporting != null) {
|
| + _json["supportsReporting"] = supportsReporting;
|
| }
|
| return _json;
|
| }
|
| @@ -1308,31 +1081,31 @@ class AdUnit {
|
|
|
|
|
| /** Not documented yet. */
|
| -class AdUnits {
|
| +class AdClients {
|
| /** ETag of this response for caching purposes. */
|
| core.String etag;
|
|
|
| - /** The ad units returned in this list response. */
|
| - core.List<AdUnit> items;
|
| + /** The ad clients returned in this list response. */
|
| + core.List<AdClient> items;
|
|
|
| - /** Kind of list this is, in this case adexchangeseller#adUnits. */
|
| + /** Kind of list this is, in this case adexchangeseller#adClients. */
|
| 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 clients. To retrieve the next
|
| + * page of results, set the next request's "pageToken" value to this.
|
| */
|
| core.String nextPageToken;
|
|
|
|
|
| - AdUnits();
|
| + AdClients();
|
|
|
| - AdUnits.fromJson(core.Map _json) {
|
| + AdClients.fromJson(core.Map _json) {
|
| if (_json.containsKey("etag")) {
|
| etag = _json["etag"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new AdUnit.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new AdClient.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
|
|