Index: generated/googleapis/lib/adexchangebuyer/v1_3.dart |
diff --git a/generated/googleapis/lib/adexchangebuyer/v1_3.dart b/generated/googleapis/lib/adexchangebuyer/v1_3.dart |
index 9c45f00c0b67830ddd9ee3eaa140c3589e397c45..4d4c4bfe556f4a33c6d531711d13956ccbe44647 100644 |
--- a/generated/googleapis/lib/adexchangebuyer/v1_3.dart |
+++ b/generated/googleapis/lib/adexchangebuyer/v1_3.dart |
@@ -9,56 +9,58 @@ 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 adexchangebuyer/v1.3'; |
-/** |
- * Accesses your bidding-account information, submits creatives for validation, |
- * finds available direct deals, and retrieves performance reports. |
- */ |
+/// Accesses your bidding-account information, submits creatives for |
+/// validation, finds available direct deals, and retrieves performance |
+/// reports. |
class AdexchangebuyerApi { |
- /** Manage your Ad Exchange buyer account configuration */ |
- static const AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchange.buyer"; |
- |
+ /// Manage your Ad Exchange buyer account configuration |
+ static const AdexchangeBuyerScope = |
+ "https://www.googleapis.com/auth/adexchange.buyer"; |
final commons.ApiRequester _requester; |
AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
- BillingInfoResourceApi get billingInfo => new BillingInfoResourceApi(_requester); |
+ BillingInfoResourceApi get billingInfo => |
+ new BillingInfoResourceApi(_requester); |
BudgetResourceApi get budget => new BudgetResourceApi(_requester); |
CreativesResourceApi get creatives => new CreativesResourceApi(_requester); |
- DirectDealsResourceApi get directDeals => new DirectDealsResourceApi(_requester); |
- PerformanceReportResourceApi get performanceReport => new PerformanceReportResourceApi(_requester); |
- PretargetingConfigResourceApi get pretargetingConfig => new PretargetingConfigResourceApi(_requester); |
- |
- AdexchangebuyerApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "adexchangebuyer/v1.3/"}) : |
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
+ DirectDealsResourceApi get directDeals => |
+ new DirectDealsResourceApi(_requester); |
+ PerformanceReportResourceApi get performanceReport => |
+ new PerformanceReportResourceApi(_requester); |
+ PretargetingConfigResourceApi get pretargetingConfig => |
+ new PretargetingConfigResourceApi(_requester); |
+ |
+ AdexchangebuyerApi(http.Client client, |
+ {core.String rootUrl: "https://www.googleapis.com/", |
+ core.String servicePath: "adexchangebuyer/v1.3/"}) |
+ : _requester = |
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
- |
class AccountsResourceApi { |
final commons.ApiRequester _requester; |
- AccountsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Gets one account by ID. |
- * |
- * Request parameters: |
- * |
- * [id] - The account id |
- * |
- * 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. |
- */ |
+ AccountsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Gets one account by ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [id] - The account id |
+ /// |
+ /// 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.int id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -73,29 +75,26 @@ class AccountsResourceApi { |
_url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); |
- 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)); |
} |
- /** |
- * Retrieves the authenticated user's list of accounts. |
- * |
- * Request parameters: |
- * |
- * Completes with a [AccountsList]. |
- * |
- * 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. |
- */ |
+ /// Retrieves the authenticated user's list of accounts. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// Completes with a [AccountsList]. |
+ /// |
+ /// 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<AccountsList> list() { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -104,36 +103,32 @@ class AccountsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- |
_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 AccountsList.fromJson(data)); |
} |
- /** |
- * Updates an existing account. This method supports patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [id] - The account id |
- * |
- * 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. |
- */ |
+ /// Updates an existing account. This method supports patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [id] - The account id |
+ /// |
+ /// 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> patch(Account request, core.int id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -151,33 +146,30 @@ class AccountsResourceApi { |
_url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); |
- 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 Account.fromJson(data)); |
} |
- /** |
- * Updates an existing account. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [id] - The account id |
- * |
- * 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. |
- */ |
+ /// Updates an existing account. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [id] - The account id |
+ /// |
+ /// 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> update(Account request, core.int id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -195,40 +187,34 @@ class AccountsResourceApi { |
_url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); |
- 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 Account.fromJson(data)); |
} |
- |
} |
- |
class BillingInfoResourceApi { |
final commons.ApiRequester _requester; |
- BillingInfoResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Returns the billing information for one account specified by account ID. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id. |
- * |
- * Completes with a [BillingInfo]. |
- * |
- * 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. |
- */ |
+ BillingInfoResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Returns the billing information for one account specified by account ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id. |
+ /// |
+ /// Completes with a [BillingInfo]. |
+ /// |
+ /// 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<BillingInfo> get(core.int accountId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -243,30 +229,27 @@ class BillingInfoResourceApi { |
_url = 'billinginfo/' + 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 BillingInfo.fromJson(data)); |
} |
- /** |
- * Retrieves a list of billing information for all accounts of the |
- * authenticated user. |
- * |
- * Request parameters: |
- * |
- * Completes with a [BillingInfoList]. |
- * |
- * 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. |
- */ |
+ /// Retrieves a list of billing information for all accounts of the |
+ /// authenticated user. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// Completes with a [BillingInfoList]. |
+ /// |
+ /// 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<BillingInfoList> list() { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -275,46 +258,39 @@ class BillingInfoResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- |
_url = 'billinginfo'; |
- 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 BillingInfoList.fromJson(data)); |
} |
- |
} |
- |
class BudgetResourceApi { |
final commons.ApiRequester _requester; |
- BudgetResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Returns the budget information for the adgroup specified by the accountId |
- * and billingId. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id to get the budget information for. |
- * |
- * [billingId] - The billing id to get the budget information for. |
- * |
- * Completes with a [Budget]. |
- * |
- * 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. |
- */ |
+ BudgetResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Returns the budget information for the adgroup specified by the accountId |
+ /// and billingId. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id to get the budget information for. |
+ /// |
+ /// [billingId] - The billing id to get the budget information for. |
+ /// |
+ /// Completes with a [Budget]. |
+ /// |
+ /// 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<Budget> get(core.String accountId, core.String billingId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -330,40 +306,41 @@ class BudgetResourceApi { |
throw new core.ArgumentError("Parameter billingId is required."); |
} |
- _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$billingId'); |
+ _url = 'billinginfo/' + |
+ commons.Escaper.ecapeVariable('$accountId') + |
+ '/' + |
+ commons.Escaper.ecapeVariable('$billingId'); |
- 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 Budget.fromJson(data)); |
} |
- /** |
- * Updates the budget amount for the budget of the adgroup specified by the |
- * accountId and billingId, with the budget amount in the request. This method |
- * supports patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id associated with the budget being updated. |
- * |
- * [billingId] - The billing id associated with the budget being updated. |
- * |
- * Completes with a [Budget]. |
- * |
- * 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<Budget> patch(Budget request, core.String accountId, core.String billingId) { |
+ /// Updates the budget amount for the budget of the adgroup specified by the |
+ /// accountId and billingId, with the budget amount in the request. This |
+ /// method supports patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id associated with the budget being updated. |
+ /// |
+ /// [billingId] - The billing id associated with the budget being updated. |
+ /// |
+ /// Completes with a [Budget]. |
+ /// |
+ /// 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<Budget> patch( |
+ Budget request, core.String accountId, core.String billingId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -381,39 +358,40 @@ class BudgetResourceApi { |
throw new core.ArgumentError("Parameter billingId is required."); |
} |
- _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$billingId'); |
+ _url = 'billinginfo/' + |
+ commons.Escaper.ecapeVariable('$accountId') + |
+ '/' + |
+ commons.Escaper.ecapeVariable('$billingId'); |
- 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 Budget.fromJson(data)); |
} |
- /** |
- * Updates the budget amount for the budget of the adgroup specified by the |
- * accountId and billingId, with the budget amount in the request. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id associated with the budget being updated. |
- * |
- * [billingId] - The billing id associated with the budget being updated. |
- * |
- * Completes with a [Budget]. |
- * |
- * 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<Budget> update(Budget request, core.String accountId, core.String billingId) { |
+ /// Updates the budget amount for the budget of the adgroup specified by the |
+ /// accountId and billingId, with the budget amount in the request. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id associated with the budget being updated. |
+ /// |
+ /// [billingId] - The billing id associated with the budget being updated. |
+ /// |
+ /// Completes with a [Budget]. |
+ /// |
+ /// 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<Budget> update( |
+ Budget request, core.String accountId, core.String billingId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -431,45 +409,42 @@ class BudgetResourceApi { |
throw new core.ArgumentError("Parameter billingId is required."); |
} |
- _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$billingId'); |
+ _url = 'billinginfo/' + |
+ commons.Escaper.ecapeVariable('$accountId') + |
+ '/' + |
+ commons.Escaper.ecapeVariable('$billingId'); |
- 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 Budget.fromJson(data)); |
} |
- |
} |
- |
class CreativesResourceApi { |
final commons.ApiRequester _requester; |
- CreativesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Gets the status for a single creative. A creative will be available 30-40 |
- * minutes after submission. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The id for the account that will serve this creative. |
- * |
- * [buyerCreativeId] - The buyer-specific id for this creative. |
- * |
- * Completes with a [Creative]. |
- * |
- * 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. |
- */ |
+ CreativesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Gets the status for a single creative. A creative will be available 30-40 |
+ /// minutes after submission. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The id for the account that will serve this creative. |
+ /// |
+ /// [buyerCreativeId] - The buyer-specific id for this creative. |
+ /// |
+ /// Completes with a [Creative]. |
+ /// |
+ /// 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<Creative> get(core.int accountId, core.String buyerCreativeId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -485,33 +460,33 @@ class CreativesResourceApi { |
throw new core.ArgumentError("Parameter buyerCreativeId is required."); |
} |
- _url = 'creatives/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$buyerCreativeId'); |
+ _url = 'creatives/' + |
+ commons.Escaper.ecapeVariable('$accountId') + |
+ '/' + |
+ commons.Escaper.ecapeVariable('$buyerCreativeId'); |
- 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 Creative.fromJson(data)); |
} |
- /** |
- * Submit a new creative. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * Completes with a [Creative]. |
- * |
- * 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. |
- */ |
+ /// Submit a new creative. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// Completes with a [Creative]. |
+ /// |
+ /// 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<Creative> insert(Creative request) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -526,52 +501,54 @@ class CreativesResourceApi { |
_url = 'creatives'; |
- 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 Creative.fromJson(data)); |
} |
- /** |
- * Retrieves a list of the authenticated user's active creatives. A creative |
- * will be available 30-40 minutes after submission. |
- * |
- * Request parameters: |
- * |
- * [accountId] - When specified, only creatives for the given account ids are |
- * returned. |
- * |
- * [buyerCreativeId] - When specified, only creatives for the given buyer |
- * creative ids are returned. |
- * |
- * [maxResults] - Maximum number of entries returned on one result page. If |
- * not set, the default is 100. Optional. |
- * Value must be between "1" and "1000". |
- * |
- * [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. Optional. |
- * |
- * [statusFilter] - When specified, only creatives having the given status are |
- * returned. |
- * Possible string values are: |
- * - "approved" : Creatives which have been approved. |
- * - "disapproved" : Creatives which have been disapproved. |
- * - "not_checked" : Creatives whose status is not yet checked. |
- * |
- * Completes with a [CreativesList]. |
- * |
- * 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<CreativesList> list({core.List<core.int> accountId, core.List<core.String> buyerCreativeId, core.int maxResults, core.String pageToken, core.String statusFilter}) { |
+ /// Retrieves a list of the authenticated user's active creatives. A creative |
+ /// will be available 30-40 minutes after submission. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - When specified, only creatives for the given account ids |
+ /// are returned. |
+ /// |
+ /// [buyerCreativeId] - When specified, only creatives for the given buyer |
+ /// creative ids are returned. |
+ /// |
+ /// [maxResults] - Maximum number of entries returned on one result page. If |
+ /// not set, the default is 100. Optional. |
+ /// Value must be between "1" and "1000". |
+ /// |
+ /// [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. Optional. |
+ /// |
+ /// [statusFilter] - When specified, only creatives having the given status |
+ /// are returned. |
+ /// Possible string values are: |
+ /// - "approved" : Creatives which have been approved. |
+ /// - "disapproved" : Creatives which have been disapproved. |
+ /// - "not_checked" : Creatives whose status is not yet checked. |
+ /// |
+ /// Completes with a [CreativesList]. |
+ /// |
+ /// 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<CreativesList> list( |
+ {core.List<core.int> accountId, |
+ core.List<core.String> buyerCreativeId, |
+ core.int maxResults, |
+ core.String pageToken, |
+ core.String statusFilter}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -597,40 +574,34 @@ class CreativesResourceApi { |
_url = 'creatives'; |
- 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 CreativesList.fromJson(data)); |
} |
- |
} |
- |
class DirectDealsResourceApi { |
final commons.ApiRequester _requester; |
- DirectDealsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Gets one direct deal by ID. |
- * |
- * Request parameters: |
- * |
- * [id] - The direct deal id |
- * |
- * Completes with a [DirectDeal]. |
- * |
- * 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. |
- */ |
+ DirectDealsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Gets one direct deal by ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [id] - The direct deal id |
+ /// |
+ /// Completes with a [DirectDeal]. |
+ /// |
+ /// 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<DirectDeal> get(core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -645,29 +616,26 @@ class DirectDealsResourceApi { |
_url = 'directdeals/' + commons.Escaper.ecapeVariable('$id'); |
- 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 DirectDeal.fromJson(data)); |
} |
- /** |
- * Retrieves the authenticated user's list of direct deals. |
- * |
- * Request parameters: |
- * |
- * Completes with a [DirectDealsList]. |
- * |
- * 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. |
- */ |
+ /// Retrieves the authenticated user's list of direct deals. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// Completes with a [DirectDealsList]. |
+ /// |
+ /// 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<DirectDealsList> list() { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -676,58 +644,54 @@ class DirectDealsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- |
_url = 'directdeals'; |
- 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 DirectDealsList.fromJson(data)); |
} |
- |
} |
- |
class PerformanceReportResourceApi { |
final commons.ApiRequester _requester; |
- PerformanceReportResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Retrieves the authenticated user's list of performance metrics. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id to get the reports. |
- * |
- * [endDateTime] - The end time of the report in ISO 8601 timestamp format |
- * using UTC. |
- * |
- * [startDateTime] - The start time of the report in ISO 8601 timestamp format |
- * using UTC. |
- * |
- * [maxResults] - Maximum number of entries returned on one result page. If |
- * not set, the default is 100. Optional. |
- * Value must be between "1" and "1000". |
- * |
- * [pageToken] - A continuation token, used to page through performance |
- * reports. To retrieve the next page, set this parameter to the value of |
- * "nextPageToken" from the previous response. Optional. |
- * |
- * Completes with a [PerformanceReportList]. |
- * |
- * 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<PerformanceReportList> list(core.String accountId, core.String endDateTime, core.String startDateTime, {core.int maxResults, core.String pageToken}) { |
+ PerformanceReportResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Retrieves the authenticated user's list of performance metrics. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id to get the reports. |
+ /// |
+ /// [endDateTime] - The end time of the report in ISO 8601 timestamp format |
+ /// using UTC. |
+ /// |
+ /// [startDateTime] - The start time of the report in ISO 8601 timestamp |
+ /// format using UTC. |
+ /// |
+ /// [maxResults] - Maximum number of entries returned on one result page. If |
+ /// not set, the default is 100. Optional. |
+ /// Value must be between "1" and "1000". |
+ /// |
+ /// [pageToken] - A continuation token, used to page through performance |
+ /// reports. To retrieve the next page, set this parameter to the value of |
+ /// "nextPageToken" from the previous response. Optional. |
+ /// |
+ /// Completes with a [PerformanceReportList]. |
+ /// |
+ /// 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<PerformanceReportList> list( |
+ core.String accountId, core.String endDateTime, core.String startDateTime, |
+ {core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -756,40 +720,35 @@ class PerformanceReportResourceApi { |
_url = 'performancereport'; |
- 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 PerformanceReportList.fromJson(data)); |
} |
- |
} |
- |
class PretargetingConfigResourceApi { |
final commons.ApiRequester _requester; |
- PretargetingConfigResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Deletes an existing pretargeting config. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id to delete the pretargeting config for. |
- * |
- * [configId] - The specific id of the configuration to delete. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ PretargetingConfigResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Deletes an existing pretargeting config. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id to delete the pretargeting config for. |
+ /// |
+ /// [configId] - The specific id of the configuration to delete. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future delete(core.String accountId, core.String configId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -807,36 +766,37 @@ class PretargetingConfigResourceApi { |
_downloadOptions = null; |
- _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId'); |
- |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'pretargetingconfigs/' + |
+ commons.Escaper.ecapeVariable('$accountId') + |
+ '/' + |
+ commons.Escaper.ecapeVariable('$configId'); |
+ |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets a specific pretargeting configuration |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id to get the pretargeting config for. |
- * |
- * [configId] - The specific id of the configuration to retrieve. |
- * |
- * Completes with a [PretargetingConfig]. |
- * |
- * 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<PretargetingConfig> get(core.String accountId, core.String configId) { |
+ /// Gets a specific pretargeting configuration |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id to get the pretargeting config for. |
+ /// |
+ /// [configId] - The specific id of the configuration to retrieve. |
+ /// |
+ /// Completes with a [PretargetingConfig]. |
+ /// |
+ /// 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<PretargetingConfig> get( |
+ core.String accountId, core.String configId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -851,36 +811,37 @@ class PretargetingConfigResourceApi { |
throw new core.ArgumentError("Parameter configId is required."); |
} |
- _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId'); |
+ _url = 'pretargetingconfigs/' + |
+ commons.Escaper.ecapeVariable('$accountId') + |
+ '/' + |
+ commons.Escaper.ecapeVariable('$configId'); |
- 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 PretargetingConfig.fromJson(data)); |
} |
- /** |
- * Inserts a new pretargeting configuration. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id to insert the pretargeting config for. |
- * |
- * Completes with a [PretargetingConfig]. |
- * |
- * 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<PretargetingConfig> insert(PretargetingConfig request, core.String accountId) { |
+ /// Inserts a new pretargeting configuration. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id to insert the pretargeting config for. |
+ /// |
+ /// Completes with a [PretargetingConfig]. |
+ /// |
+ /// 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<PretargetingConfig> insert( |
+ PretargetingConfig request, core.String accountId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -897,31 +858,28 @@ class PretargetingConfigResourceApi { |
_url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId'); |
- 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 PretargetingConfig.fromJson(data)); |
} |
- /** |
- * Retrieves a list of the authenticated user's pretargeting configurations. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id to get the pretargeting configs for. |
- * |
- * Completes with a [PretargetingConfigList]. |
- * |
- * 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. |
- */ |
+ /// Retrieves a list of the authenticated user's pretargeting configurations. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id to get the pretargeting configs for. |
+ /// |
+ /// Completes with a [PretargetingConfigList]. |
+ /// |
+ /// 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<PretargetingConfigList> list(core.String accountId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -936,37 +894,35 @@ class PretargetingConfigResourceApi { |
_url = 'pretargetingconfigs/' + 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 PretargetingConfigList.fromJson(data)); |
} |
- /** |
- * Updates an existing pretargeting config. This method supports patch |
- * semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id to update the pretargeting config for. |
- * |
- * [configId] - The specific id of the configuration to update. |
- * |
- * Completes with a [PretargetingConfig]. |
- * |
- * 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<PretargetingConfig> patch(PretargetingConfig request, core.String accountId, core.String configId) { |
+ /// Updates an existing pretargeting config. This method supports patch |
+ /// semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id to update the pretargeting config for. |
+ /// |
+ /// [configId] - The specific id of the configuration to update. |
+ /// |
+ /// Completes with a [PretargetingConfig]. |
+ /// |
+ /// 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<PretargetingConfig> patch( |
+ PretargetingConfig request, core.String accountId, core.String configId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -984,38 +940,39 @@ class PretargetingConfigResourceApi { |
throw new core.ArgumentError("Parameter configId is required."); |
} |
- _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId'); |
+ _url = 'pretargetingconfigs/' + |
+ commons.Escaper.ecapeVariable('$accountId') + |
+ '/' + |
+ commons.Escaper.ecapeVariable('$configId'); |
- 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 PretargetingConfig.fromJson(data)); |
} |
- /** |
- * Updates an existing pretargeting config. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [accountId] - The account id to update the pretargeting config for. |
- * |
- * [configId] - The specific id of the configuration to update. |
- * |
- * Completes with a [PretargetingConfig]. |
- * |
- * 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<PretargetingConfig> update(PretargetingConfig request, core.String accountId, core.String configId) { |
+ /// Updates an existing pretargeting config. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [accountId] - The account id to update the pretargeting config for. |
+ /// |
+ /// [configId] - The specific id of the configuration to update. |
+ /// |
+ /// Completes with a [PretargetingConfig]. |
+ /// |
+ /// 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<PretargetingConfig> update( |
+ PretargetingConfig request, core.String accountId, core.String configId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1033,36 +990,35 @@ class PretargetingConfigResourceApi { |
throw new core.ArgumentError("Parameter configId is required."); |
} |
- _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId'); |
+ _url = 'pretargetingconfigs/' + |
+ commons.Escaper.ecapeVariable('$accountId') + |
+ '/' + |
+ commons.Escaper.ecapeVariable('$configId'); |
- 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 PretargetingConfig.fromJson(data)); |
} |
- |
} |
- |
- |
class AccountBidderLocation { |
- /** The maximum queries per second the Ad Exchange will send. */ |
+ /// The maximum queries per second the Ad Exchange will send. |
core.int maximumQps; |
- /** |
- * The geographical region the Ad Exchange should send requests from. Only |
- * used by some quota systems, but always setting the value is recommended. |
- * Allowed values: |
- * - ASIA |
- * - EUROPE |
- * - US_EAST |
- * - US_WEST |
- */ |
+ |
+ /// The geographical region the Ad Exchange should send requests from. Only |
+ /// used by some quota systems, but always setting the value is recommended. |
+ /// Allowed values: |
+ /// - ASIA |
+ /// - EUROPE |
+ /// - US_EAST |
+ /// - US_WEST |
core.String region; |
- /** The URL to which the Ad Exchange will send bid requests. */ |
+ |
+ /// The URL to which the Ad Exchange will send bid requests. |
core.String url; |
AccountBidderLocation(); |
@@ -1080,7 +1036,8 @@ class AccountBidderLocation { |
} |
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 (maximumQps != null) { |
_json["maximumQps"] = maximumQps; |
} |
@@ -1094,43 +1051,44 @@ class AccountBidderLocation { |
} |
} |
-/** Configuration data for an Ad Exchange buyer account. */ |
+/// Configuration data for an Ad Exchange buyer account. |
class Account { |
- /** Your bidder locations that have distinct URLs. */ |
+ /// Your bidder locations that have distinct URLs. |
core.List<AccountBidderLocation> bidderLocation; |
- /** |
- * The nid parameter value used in cookie match requests. Please contact your |
- * technical account manager if you need to change this. |
- */ |
+ |
+ /// The nid parameter value used in cookie match requests. Please contact |
+ /// your technical account manager if you need to change this. |
core.String cookieMatchingNid; |
- /** The base URL used in cookie match requests. */ |
+ |
+ /// The base URL used in cookie match requests. |
core.String cookieMatchingUrl; |
- /** Account id. */ |
+ |
+ /// Account id. |
core.int id; |
- /** Resource type. */ |
+ |
+ /// Resource type. |
core.String kind; |
- /** |
- * The maximum number of active creatives that an account can have, where a |
- * creative is active if it was inserted or bid with in the last 30 days. |
- * Please contact your technical account manager if you need to change this. |
- */ |
+ |
+ /// The maximum number of active creatives that an account can have, where a |
+ /// creative is active if it was inserted or bid with in the last 30 days. |
+ /// Please contact your technical account manager if you need to change this. |
core.int maximumActiveCreatives; |
- /** |
- * The sum of all bidderLocation.maximumQps values cannot exceed this. Please |
- * contact your technical account manager if you need to change this. |
- */ |
+ |
+ /// The sum of all bidderLocation.maximumQps values cannot exceed this. |
+ /// Please contact your technical account manager if you need to change this. |
core.int maximumTotalQps; |
- /** |
- * The number of creatives that this account inserted or bid with in the last |
- * 30 days. |
- */ |
+ |
+ /// The number of creatives that this account inserted or bid with in the |
+ /// last 30 days. |
core.int numberActiveCreatives; |
Account(); |
Account.fromJson(core.Map _json) { |
if (_json.containsKey("bidderLocation")) { |
- bidderLocation = _json["bidderLocation"].map((value) => new AccountBidderLocation.fromJson(value)).toList(); |
+ bidderLocation = _json["bidderLocation"] |
+ .map((value) => new AccountBidderLocation.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("cookieMatchingNid")) { |
cookieMatchingNid = _json["cookieMatchingNid"]; |
@@ -1156,9 +1114,11 @@ 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 (bidderLocation != null) { |
- _json["bidderLocation"] = bidderLocation.map((value) => (value).toJson()).toList(); |
+ _json["bidderLocation"] = |
+ bidderLocation.map((value) => (value).toJson()).toList(); |
} |
if (cookieMatchingNid != null) { |
_json["cookieMatchingNid"] = cookieMatchingNid; |
@@ -1185,21 +1145,21 @@ class Account { |
} |
} |
-/** |
- * An account feed lists Ad Exchange buyer accounts that the user has access to. |
- * Each entry in the feed corresponds to a single buyer account. |
- */ |
+/// An account feed lists Ad Exchange buyer accounts that the user has access |
+/// to. Each entry in the feed corresponds to a single buyer account. |
class AccountsList { |
- /** A list of accounts. */ |
+ /// A list of accounts. |
core.List<Account> items; |
- /** Resource type. */ |
+ |
+ /// Resource type. |
core.String kind; |
AccountsList(); |
AccountsList.fromJson(core.Map _json) { |
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"]; |
@@ -1207,7 +1167,8 @@ class AccountsList { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -1218,19 +1179,20 @@ class AccountsList { |
} |
} |
-/** The configuration data for an Ad Exchange billing info. */ |
+/// The configuration data for an Ad Exchange billing info. |
class BillingInfo { |
- /** Account id. */ |
+ /// Account id. |
core.int accountId; |
- /** Account name. */ |
+ |
+ /// Account name. |
core.String accountName; |
- /** |
- * A list of adgroup IDs associated with this particular account. These IDs |
- * may show up as part of a realtime bidding BidRequest, which indicates a bid |
- * request for this account. |
- */ |
+ |
+ /// A list of adgroup IDs associated with this particular account. These IDs |
+ /// may show up as part of a realtime bidding BidRequest, which indicates a |
+ /// bid request for this account. |
core.List<core.String> billingId; |
- /** Resource type. */ |
+ |
+ /// Resource type. |
core.String kind; |
BillingInfo(); |
@@ -1251,7 +1213,8 @@ class BillingInfo { |
} |
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; |
} |
@@ -1268,21 +1231,22 @@ class BillingInfo { |
} |
} |
-/** |
- * A billing info feed lists Billing Info the Ad Exchange buyer account has |
- * access to. Each entry in the feed corresponds to a single billing info. |
- */ |
+/// A billing info feed lists Billing Info the Ad Exchange buyer account has |
+/// access to. Each entry in the feed corresponds to a single billing info. |
class BillingInfoList { |
- /** A list of billing info relevant for your account. */ |
+ /// A list of billing info relevant for your account. |
core.List<BillingInfo> items; |
- /** Resource type. */ |
+ |
+ /// Resource type. |
core.String kind; |
BillingInfoList(); |
BillingInfoList.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new BillingInfo.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new BillingInfo.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -1290,7 +1254,8 @@ class BillingInfoList { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -1301,25 +1266,26 @@ class BillingInfoList { |
} |
} |
-/** The configuration data for Ad Exchange RTB - Budget API. */ |
+/// The configuration data for Ad Exchange RTB - Budget API. |
class Budget { |
- /** The id of the account. This is required for get and update requests. */ |
+ /// The id of the account. This is required for get and update requests. |
core.String accountId; |
- /** |
- * The billing id to determine which adgroup to provide budget information |
- * for. This is required for get and update requests. |
- */ |
+ |
+ /// The billing id to determine which adgroup to provide budget information |
+ /// for. This is required for get and update requests. |
core.String billingId; |
- /** |
- * The daily budget amount in unit amount of the account currency to apply for |
- * the billingId provided. This is required for update requests. |
- */ |
+ |
+ /// The daily budget amount in unit amount of the account currency to apply |
+ /// for the billingId provided. This is required for update requests. |
core.String budgetAmount; |
- /** The currency code for the buyer. This cannot be altered here. */ |
+ |
+ /// The currency code for the buyer. This cannot be altered here. |
core.String currencyCode; |
- /** The unique id that describes this item. */ |
+ |
+ /// The unique id that describes this item. |
core.String id; |
- /** The kind of the resource, i.e. "adexchangebuyer#budget". */ |
+ |
+ /// The kind of the resource, i.e. "adexchangebuyer#budget". |
core.String kind; |
Budget(); |
@@ -1346,7 +1312,8 @@ class Budget { |
} |
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; |
} |
@@ -1370,9 +1337,10 @@ class Budget { |
} |
class CreativeCorrections { |
- /** Additional details about the correction. */ |
+ /// Additional details about the correction. |
core.List<core.String> details; |
- /** The type of correction that was applied to the creative. */ |
+ |
+ /// The type of correction that was applied to the creative. |
core.String reason; |
CreativeCorrections(); |
@@ -1387,7 +1355,8 @@ class CreativeCorrections { |
} |
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 (details != null) { |
_json["details"] = details; |
} |
@@ -1399,9 +1368,10 @@ class CreativeCorrections { |
} |
class CreativeDisapprovalReasons { |
- /** Additional details about the reason for disapproval. */ |
+ /// Additional details about the reason for disapproval. |
core.List<core.String> details; |
- /** The categorized reason for disapproval. */ |
+ |
+ /// The categorized reason for disapproval. |
core.String reason; |
CreativeDisapprovalReasons(); |
@@ -1416,7 +1386,8 @@ class CreativeDisapprovalReasons { |
} |
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 (details != null) { |
_json["details"] = details; |
} |
@@ -1428,15 +1399,12 @@ class CreativeDisapprovalReasons { |
} |
class CreativeFilteringReasonsReasons { |
- /** |
- * The number of times the creative was filtered for the status. The count is |
- * aggregated across all publishers on the exchange. |
- */ |
+ /// The number of times the creative was filtered for the status. The count |
+ /// is aggregated across all publishers on the exchange. |
core.String filteringCount; |
- /** |
- * The filtering status code. Please refer to the creative-status-codes.txt |
- * file for different statuses. |
- */ |
+ |
+ /// The filtering status code. Please refer to the creative-status-codes.txt |
+ /// file for different statuses. |
core.int filteringStatus; |
CreativeFilteringReasonsReasons(); |
@@ -1451,7 +1419,8 @@ class CreativeFilteringReasonsReasons { |
} |
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 (filteringCount != null) { |
_json["filteringCount"] = filteringCount; |
} |
@@ -1462,17 +1431,14 @@ class CreativeFilteringReasonsReasons { |
} |
} |
-/** |
- * The filtering reasons for the creative. Read-only. This field should not be |
- * set in requests. |
- */ |
+/// The filtering reasons for the creative. Read-only. This field should not be |
+/// set in requests. |
class CreativeFilteringReasons { |
- /** |
- * The date in ISO 8601 format for the data. The data is collected from |
- * 00:00:00 to 23:59:59 in PST. |
- */ |
+ /// The date in ISO 8601 format for the data. The data is collected from |
+ /// 00:00:00 to 23:59:59 in PST. |
core.String date; |
- /** The filtering reasons. */ |
+ |
+ /// The filtering reasons. |
core.List<CreativeFilteringReasonsReasons> reasons; |
CreativeFilteringReasons(); |
@@ -1482,12 +1448,15 @@ class CreativeFilteringReasons { |
date = _json["date"]; |
} |
if (_json.containsKey("reasons")) { |
- reasons = _json["reasons"].map((value) => new CreativeFilteringReasonsReasons.fromJson(value)).toList(); |
+ reasons = _json["reasons"] |
+ .map((value) => new CreativeFilteringReasonsReasons.fromJson(value)) |
+ .toList(); |
} |
} |
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 (date != null) { |
_json["date"] = date; |
} |
@@ -1498,7 +1467,7 @@ class CreativeFilteringReasons { |
} |
} |
-/** The app icon, for app download ads. */ |
+/// The app icon, for app download ads. |
class CreativeNativeAdAppIcon { |
core.int height; |
core.String url; |
@@ -1519,7 +1488,8 @@ class CreativeNativeAdAppIcon { |
} |
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 (height != null) { |
_json["height"] = height; |
} |
@@ -1533,7 +1503,7 @@ class CreativeNativeAdAppIcon { |
} |
} |
-/** A large image. */ |
+/// A large image. |
class CreativeNativeAdImage { |
core.int height; |
core.String url; |
@@ -1554,7 +1524,8 @@ class CreativeNativeAdImage { |
} |
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 (height != null) { |
_json["height"] = height; |
} |
@@ -1568,7 +1539,7 @@ class CreativeNativeAdImage { |
} |
} |
-/** A smaller image, for the advertiser logo. */ |
+/// A smaller image, for the advertiser logo. |
class CreativeNativeAdLogo { |
core.int height; |
core.String url; |
@@ -1589,7 +1560,8 @@ class CreativeNativeAdLogo { |
} |
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 (height != null) { |
_json["height"] = height; |
} |
@@ -1603,30 +1575,41 @@ class CreativeNativeAdLogo { |
} |
} |
-/** If nativeAd is set, HTMLSnippet and videoURL should not be set. */ |
+/// If nativeAd is set, HTMLSnippet and videoURL should not be set. |
class CreativeNativeAd { |
core.String advertiser; |
- /** The app icon, for app download ads. */ |
+ |
+ /// The app icon, for app download ads. |
CreativeNativeAdAppIcon appIcon; |
- /** A long description of the ad. */ |
+ |
+ /// A long description of the ad. |
core.String body; |
- /** A label for the button that the user is supposed to click. */ |
+ |
+ /// A label for the button that the user is supposed to click. |
core.String callToAction; |
- /** The URL to use for click tracking. */ |
+ |
+ /// The URL to use for click tracking. |
core.String clickTrackingUrl; |
- /** A short title for the ad. */ |
+ |
+ /// A short title for the ad. |
core.String headline; |
- /** A large image. */ |
+ |
+ /// A large image. |
CreativeNativeAdImage image; |
- /** The URLs are called when the impression is rendered. */ |
+ |
+ /// The URLs are called when the impression is rendered. |
core.List<core.String> impressionTrackingUrl; |
- /** A smaller image, for the advertiser logo. */ |
+ |
+ /// A smaller image, for the advertiser logo. |
CreativeNativeAdLogo logo; |
- /** The price of the promoted app including the currency info. */ |
+ |
+ /// The price of the promoted app including the currency info. |
core.String price; |
- /** The app rating in the app store. Must be in the range [0-5]. */ |
+ |
+ /// The app rating in the app store. Must be in the range [0-5]. |
core.double starRating; |
- /** The URL to the app store to purchase/download the promoted app. */ |
+ |
+ /// The URL to the app store to purchase/download the promoted app. |
core.String store; |
CreativeNativeAd(); |
@@ -1671,7 +1654,8 @@ class CreativeNativeAd { |
} |
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 (advertiser != null) { |
_json["advertiser"] = advertiser; |
} |
@@ -1712,94 +1696,94 @@ class CreativeNativeAd { |
} |
} |
-/** A creative and its classification data. */ |
+/// A creative and its classification data. |
class Creative { |
- /** |
- * The HTML snippet that displays the ad when inserted in the web page. If |
- * set, videoURL should not be set. |
- */ |
+ /// The HTML snippet that displays the ad when inserted in the web page. If |
+ /// set, videoURL should not be set. |
core.String HTMLSnippet; |
- /** Account id. */ |
+ |
+ /// Account id. |
core.int accountId; |
- /** |
- * Detected advertiser id, if any. Read-only. This field should not be set in |
- * requests. |
- */ |
+ |
+ /// Detected advertiser id, if any. Read-only. This field should not be set |
+ /// in requests. |
core.List<core.String> advertiserId; |
- /** The name of the company being advertised in the creative. */ |
+ |
+ /// The name of the company being advertised in the creative. |
core.String advertiserName; |
- /** The agency id for this creative. */ |
+ |
+ /// The agency id for this creative. |
core.String agencyId; |
- /** |
- * The last upload timestamp of this creative if it was uploaded via API. |
- * Read-only. The value of this field is generated, and will be ignored for |
- * uploads. (formatted RFC 3339 timestamp). |
- */ |
+ |
+ /// The last upload timestamp of this creative if it was uploaded via API. |
+ /// Read-only. The value of this field is generated, and will be ignored for |
+ /// uploads. (formatted RFC 3339 timestamp). |
core.DateTime apiUploadTimestamp; |
- /** All attributes for the ads that may be shown from this snippet. */ |
+ |
+ /// All attributes for the ads that may be shown from this snippet. |
core.List<core.int> attribute; |
- /** A buyer-specific id identifying the creative in this ad. */ |
+ |
+ /// A buyer-specific id identifying the creative in this ad. |
core.String buyerCreativeId; |
- /** The set of destination urls for the snippet. */ |
+ |
+ /// The set of destination urls for the snippet. |
core.List<core.String> clickThroughUrl; |
- /** |
- * Shows any corrections that were applied to this creative. Read-only. This |
- * field should not be set in requests. |
- */ |
+ |
+ /// Shows any corrections that were applied to this creative. Read-only. This |
+ /// field should not be set in requests. |
core.List<CreativeCorrections> corrections; |
- /** |
- * The reasons for disapproval, if any. Note that not all disapproval reasons |
- * may be categorized, so it is possible for the creative to have a status of |
- * DISAPPROVED with an empty list for disapproval_reasons. In this case, |
- * please reach out to your TAM to help debug the issue. Read-only. This field |
- * should not be set in requests. |
- */ |
+ |
+ /// The reasons for disapproval, if any. Note that not all disapproval |
+ /// reasons may be categorized, so it is possible for the creative to have a |
+ /// status of DISAPPROVED with an empty list for disapproval_reasons. In this |
+ /// case, please reach out to your TAM to help debug the issue. Read-only. |
+ /// This field should not be set in requests. |
core.List<CreativeDisapprovalReasons> disapprovalReasons; |
- /** |
- * The filtering reasons for the creative. Read-only. This field should not be |
- * set in requests. |
- */ |
+ |
+ /// The filtering reasons for the creative. Read-only. This field should not |
+ /// be set in requests. |
CreativeFilteringReasons filteringReasons; |
- /** Ad height. */ |
+ |
+ /// Ad height. |
core.int height; |
- /** The set of urls to be called to record an impression. */ |
+ |
+ /// The set of urls to be called to record an impression. |
core.List<core.String> impressionTrackingUrl; |
- /** Resource type. */ |
+ |
+ /// Resource type. |
core.String kind; |
- /** If nativeAd is set, HTMLSnippet and videoURL should not be set. */ |
+ |
+ /// If nativeAd is set, HTMLSnippet and videoURL should not be set. |
CreativeNativeAd nativeAd; |
- /** |
- * Detected product categories, if any. Read-only. This field should not be |
- * set in requests. |
- */ |
+ |
+ /// Detected product categories, if any. Read-only. This field should not be |
+ /// set in requests. |
core.List<core.int> productCategories; |
- /** |
- * All restricted categories for the ads that may be shown from this snippet. |
- */ |
+ |
+ /// All restricted categories for the ads that may be shown from this |
+ /// snippet. |
core.List<core.int> restrictedCategories; |
- /** |
- * Detected sensitive categories, if any. Read-only. This field should not be |
- * set in requests. |
- */ |
+ |
+ /// Detected sensitive categories, if any. Read-only. This field should not |
+ /// be set in requests. |
core.List<core.int> sensitiveCategories; |
- /** |
- * Creative serving status. Read-only. This field should not be set in |
- * requests. |
- */ |
+ |
+ /// Creative serving status. Read-only. This field should not be set in |
+ /// requests. |
core.String status; |
- /** All vendor types for the ads that may be shown from this snippet. */ |
+ |
+ /// All vendor types for the ads that may be shown from this snippet. |
core.List<core.int> vendorType; |
- /** |
- * The version for this creative. Read-only. This field should not be set in |
- * requests. |
- */ |
+ |
+ /// The version for this creative. Read-only. This field should not be set in |
+ /// requests. |
core.int version; |
- /** |
- * The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should |
- * not be set. |
- */ |
+ |
+ /// The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should |
+ /// not be set. |
core.String videoURL; |
- /** Ad width. */ |
+ |
+ /// Ad width. |
core.int width; |
Creative(); |
@@ -1833,13 +1817,18 @@ class Creative { |
clickThroughUrl = _json["clickThroughUrl"]; |
} |
if (_json.containsKey("corrections")) { |
- corrections = _json["corrections"].map((value) => new CreativeCorrections.fromJson(value)).toList(); |
+ corrections = _json["corrections"] |
+ .map((value) => new CreativeCorrections.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("disapprovalReasons")) { |
- disapprovalReasons = _json["disapprovalReasons"].map((value) => new CreativeDisapprovalReasons.fromJson(value)).toList(); |
+ disapprovalReasons = _json["disapprovalReasons"] |
+ .map((value) => new CreativeDisapprovalReasons.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("filteringReasons")) { |
- filteringReasons = new CreativeFilteringReasons.fromJson(_json["filteringReasons"]); |
+ filteringReasons = |
+ new CreativeFilteringReasons.fromJson(_json["filteringReasons"]); |
} |
if (_json.containsKey("height")) { |
height = _json["height"]; |
@@ -1880,7 +1869,8 @@ class Creative { |
} |
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 (HTMLSnippet != null) { |
_json["HTMLSnippet"] = HTMLSnippet; |
} |
@@ -1909,10 +1899,12 @@ class Creative { |
_json["clickThroughUrl"] = clickThroughUrl; |
} |
if (corrections != null) { |
- _json["corrections"] = corrections.map((value) => (value).toJson()).toList(); |
+ _json["corrections"] = |
+ corrections.map((value) => (value).toJson()).toList(); |
} |
if (disapprovalReasons != null) { |
- _json["disapprovalReasons"] = disapprovalReasons.map((value) => (value).toJson()).toList(); |
+ _json["disapprovalReasons"] = |
+ disapprovalReasons.map((value) => (value).toJson()).toList(); |
} |
if (filteringReasons != null) { |
_json["filteringReasons"] = (filteringReasons).toJson(); |
@@ -1957,27 +1949,26 @@ class Creative { |
} |
} |
-/** |
- * The creatives feed lists the active creatives for the Ad Exchange buyer |
- * accounts that the user has access to. Each entry in the feed corresponds to a |
- * single creative. |
- */ |
+/// The creatives feed lists the active creatives for the Ad Exchange buyer |
+/// accounts that the user has access to. Each entry in the feed corresponds to |
+/// a single creative. |
class CreativesList { |
- /** A list of creatives. */ |
+ /// A list of creatives. |
core.List<Creative> items; |
- /** Resource type. */ |
+ |
+ /// Resource type. |
core.String kind; |
- /** |
- * Continuation token used to page through creatives. To retrieve the next |
- * page of results, set the next request's "pageToken" value to this. |
- */ |
+ |
+ /// Continuation token used to page through creatives. To retrieve the next |
+ /// page of results, set the next request's "pageToken" value to this. |
core.String nextPageToken; |
CreativesList(); |
CreativesList.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new Creative.fromJson(value)).toList(); |
+ items = |
+ _json["items"].map((value) => new Creative.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -1988,7 +1979,8 @@ class CreativesList { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -2002,64 +1994,63 @@ class CreativesList { |
} |
} |
-/** The configuration data for an Ad Exchange direct deal. */ |
+/// The configuration data for an Ad Exchange direct deal. |
class DirectDeal { |
- /** The account id of the buyer this deal is for. */ |
+ /// The account id of the buyer this deal is for. |
core.int accountId; |
- /** The name of the advertiser this deal is for. */ |
+ |
+ /// The name of the advertiser this deal is for. |
core.String advertiser; |
- /** Whether the publisher for this deal is eligible for alcohol ads. */ |
+ |
+ /// Whether the publisher for this deal is eligible for alcohol ads. |
core.bool allowsAlcohol; |
- /** |
- * The account id that this deal was negotiated for. It is either the buyer or |
- * the client that this deal was negotiated on behalf of. |
- */ |
+ |
+ /// The account id that this deal was negotiated for. It is either the buyer |
+ /// or the client that this deal was negotiated on behalf of. |
core.String buyerAccountId; |
- /** |
- * The currency code that applies to the fixed_cpm value. If not set then |
- * assumed to be USD. |
- */ |
+ |
+ /// The currency code that applies to the fixed_cpm value. If not set then |
+ /// assumed to be USD. |
core.String currencyCode; |
- /** |
- * The deal type such as programmatic reservation or fixed price and so on. |
- */ |
+ |
+ /// The deal type such as programmatic reservation or fixed price and so on. |
core.String dealTier; |
- /** |
- * End time for when this deal stops being active. If not set then this deal |
- * is valid until manually disabled by the publisher. In seconds since the |
- * epoch. |
- */ |
+ |
+ /// End time for when this deal stops being active. If not set then this deal |
+ /// is valid until manually disabled by the publisher. In seconds since the |
+ /// epoch. |
core.String endTime; |
- /** |
- * The fixed price for this direct deal. In cpm micros of currency according |
- * to currency_code. If set, then this deal is eligible for the fixed price |
- * tier of buying (highest priority, pay exactly the configured fixed price). |
- */ |
+ |
+ /// The fixed price for this direct deal. In cpm micros of currency according |
+ /// to currency_code. If set, then this deal is eligible for the fixed price |
+ /// tier of buying (highest priority, pay exactly the configured fixed |
+ /// price). |
core.String fixedCpm; |
- /** Deal id. */ |
+ |
+ /// Deal id. |
core.String id; |
- /** Resource type. */ |
+ |
+ /// Resource type. |
core.String kind; |
- /** Deal name. */ |
+ |
+ /// Deal name. |
core.String name; |
- /** |
- * The minimum price for this direct deal. In cpm micros of currency according |
- * to currency_code. If set, then this deal is eligible for the private |
- * exchange tier of buying (below fixed price priority, run as a second price |
- * auction). |
- */ |
+ |
+ /// The minimum price for this direct deal. In cpm micros of currency |
+ /// according to currency_code. If set, then this deal is eligible for the |
+ /// private exchange tier of buying (below fixed price priority, run as a |
+ /// second price auction). |
core.String privateExchangeMinCpm; |
- /** |
- * If true, the publisher has opted to have their blocks ignored when a |
- * creative is bid with for this deal. |
- */ |
+ |
+ /// If true, the publisher has opted to have their blocks ignored when a |
+ /// creative is bid with for this deal. |
core.bool publisherBlocksOverriden; |
- /** The name of the publisher offering this direct deal. */ |
+ |
+ /// The name of the publisher offering this direct deal. |
core.String sellerNetwork; |
- /** |
- * Start time for when this deal becomes active. If not set then this deal is |
- * active immediately upon creation. In seconds since the epoch. |
- */ |
+ |
+ /// Start time for when this deal becomes active. If not set then this deal |
+ /// is active immediately upon creation. In seconds since the epoch. |
core.String startTime; |
DirectDeal(); |
@@ -2113,7 +2104,8 @@ class DirectDeal { |
} |
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; |
} |
@@ -2163,22 +2155,23 @@ class DirectDeal { |
} |
} |
-/** |
- * A direct deals feed lists Direct Deals the Ad Exchange buyer account has |
- * access to. This includes direct deals set up for the buyer account as well as |
- * its merged stream seats. |
- */ |
+/// A direct deals feed lists Direct Deals the Ad Exchange buyer account has |
+/// access to. This includes direct deals set up for the buyer account as well |
+/// as its merged stream seats. |
class DirectDealsList { |
- /** A list of direct deals relevant for your account. */ |
+ /// A list of direct deals relevant for your account. |
core.List<DirectDeal> directDeals; |
- /** Resource type. */ |
+ |
+ /// Resource type. |
core.String kind; |
DirectDealsList(); |
DirectDealsList.fromJson(core.Map _json) { |
if (_json.containsKey("directDeals")) { |
- directDeals = _json["directDeals"].map((value) => new DirectDeal.fromJson(value)).toList(); |
+ directDeals = _json["directDeals"] |
+ .map((value) => new DirectDeal.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -2186,9 +2179,11 @@ class DirectDealsList { |
} |
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 (directDeals != null) { |
- _json["directDeals"] = directDeals.map((value) => (value).toJson()).toList(); |
+ _json["directDeals"] = |
+ directDeals.map((value) => (value).toJson()).toList(); |
} |
if (kind != null) { |
_json["kind"] = kind; |
@@ -2197,91 +2192,92 @@ class DirectDealsList { |
} |
} |
-/** The configuration data for an Ad Exchange performance report list. */ |
+/// The configuration data for an Ad Exchange performance report list. |
class PerformanceReport { |
- /** The number of bid responses with an ad. */ |
+ /// The number of bid responses with an ad. |
core.double bidRate; |
- /** The number of bid requests sent to your bidder. */ |
+ |
+ /// The number of bid requests sent to your bidder. |
core.double bidRequestRate; |
- /** |
- * Rate of various prefiltering statuses per match. Please refer to the |
- * callout-status-codes.txt file for different statuses. |
- * |
- * The values for Object must be JSON objects. It can consist of `num`, |
- * `String`, `bool` and `null` as well as `Map` and `List` values. |
- */ |
+ |
+ /// Rate of various prefiltering statuses per match. Please refer to the |
+ /// callout-status-codes.txt file for different statuses. |
+ /// |
+ /// The values for Object must be JSON objects. It can consist of `num`, |
+ /// `String`, `bool` and `null` as well as `Map` and `List` values. |
core.List<core.Object> calloutStatusRate; |
- /** |
- * Average QPS for cookie matcher operations. |
- * |
- * The values for Object must be JSON objects. It can consist of `num`, |
- * `String`, `bool` and `null` as well as `Map` and `List` values. |
- */ |
+ |
+ /// Average QPS for cookie matcher operations. |
+ /// |
+ /// The values for Object must be JSON objects. It can consist of `num`, |
+ /// `String`, `bool` and `null` as well as `Map` and `List` values. |
core.List<core.Object> cookieMatcherStatusRate; |
- /** |
- * Rate of ads with a given status. Please refer to the |
- * creative-status-codes.txt file for different statuses. |
- * |
- * The values for Object must be JSON objects. It can consist of `num`, |
- * `String`, `bool` and `null` as well as `Map` and `List` values. |
- */ |
+ |
+ /// Rate of ads with a given status. Please refer to the |
+ /// creative-status-codes.txt file for different statuses. |
+ /// |
+ /// The values for Object must be JSON objects. It can consist of `num`, |
+ /// `String`, `bool` and `null` as well as `Map` and `List` values. |
core.List<core.Object> creativeStatusRate; |
- /** |
- * The number of bid responses that were filtered due to a policy violation or |
- * other errors. |
- */ |
+ |
+ /// The number of bid responses that were filtered due to a policy violation |
+ /// or other errors. |
core.double filteredBidRate; |
- /** |
- * Average QPS for hosted match operations. |
- * |
- * The values for Object must be JSON objects. It can consist of `num`, |
- * `String`, `bool` and `null` as well as `Map` and `List` values. |
- */ |
+ |
+ /// Average QPS for hosted match operations. |
+ /// |
+ /// The values for Object must be JSON objects. It can consist of `num`, |
+ /// `String`, `bool` and `null` as well as `Map` and `List` values. |
core.List<core.Object> hostedMatchStatusRate; |
- /** The number of potential queries based on your pretargeting settings. */ |
+ |
+ /// The number of potential queries based on your pretargeting settings. |
core.double inventoryMatchRate; |
- /** Resource type. */ |
+ |
+ /// Resource type. |
core.String kind; |
- /** |
- * The 50th percentile round trip latency(ms) as perceived from Google servers |
- * for the duration period covered by the report. |
- */ |
+ |
+ /// The 50th percentile round trip latency(ms) as perceived from Google |
+ /// servers for the duration period covered by the report. |
core.double latency50thPercentile; |
- /** |
- * The 85th percentile round trip latency(ms) as perceived from Google servers |
- * for the duration period covered by the report. |
- */ |
+ |
+ /// The 85th percentile round trip latency(ms) as perceived from Google |
+ /// servers for the duration period covered by the report. |
core.double latency85thPercentile; |
- /** |
- * The 95th percentile round trip latency(ms) as perceived from Google servers |
- * for the duration period covered by the report. |
- */ |
+ |
+ /// The 95th percentile round trip latency(ms) as perceived from Google |
+ /// servers for the duration period covered by the report. |
core.double latency95thPercentile; |
- /** Rate of various quota account statuses per quota check. */ |
+ |
+ /// Rate of various quota account statuses per quota check. |
core.double noQuotaInRegion; |
- /** Rate of various quota account statuses per quota check. */ |
+ |
+ /// Rate of various quota account statuses per quota check. |
core.double outOfQuota; |
- /** Average QPS for pixel match requests from clients. */ |
+ |
+ /// Average QPS for pixel match requests from clients. |
core.double pixelMatchRequests; |
- /** Average QPS for pixel match responses from clients. */ |
+ |
+ /// Average QPS for pixel match responses from clients. |
core.double pixelMatchResponses; |
- /** The configured quota limits for this account. */ |
+ |
+ /// The configured quota limits for this account. |
core.double quotaConfiguredLimit; |
- /** The throttled quota limits for this account. */ |
+ |
+ /// The throttled quota limits for this account. |
core.double quotaThrottledLimit; |
- /** The trading location of this data. */ |
+ |
+ /// The trading location of this data. |
core.String region; |
- /** |
- * The number of properly formed bid responses received by our servers within |
- * the deadline. |
- */ |
+ |
+ /// The number of properly formed bid responses received by our servers |
+ /// within the deadline. |
core.double successfulRequestRate; |
- /** The unix timestamp of the starting time of this performance data. */ |
+ |
+ /// The unix timestamp of the starting time of this performance data. |
core.String timestamp; |
- /** |
- * The number of bid responses that were unsuccessful due to timeouts, |
- * incorrect formatting, etc. |
- */ |
+ |
+ /// The number of bid responses that were unsuccessful due to timeouts, |
+ /// incorrect formatting, etc. |
core.double unsuccessfulRequestRate; |
PerformanceReport(); |
@@ -2356,7 +2352,8 @@ class PerformanceReport { |
} |
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 (bidRate != null) { |
_json["bidRate"] = bidRate; |
} |
@@ -2427,11 +2424,12 @@ class PerformanceReport { |
} |
} |
-/** The configuration data for an Ad Exchange performance report list. */ |
+/// The configuration data for an Ad Exchange performance report list. |
class PerformanceReportList { |
- /** Resource type. */ |
+ /// Resource type. |
core.String kind; |
- /** A list of performance reports relevant for the account. */ |
+ |
+ /// A list of performance reports relevant for the account. |
core.List<PerformanceReport> performanceReport; |
PerformanceReportList(); |
@@ -2441,26 +2439,31 @@ class PerformanceReportList { |
kind = _json["kind"]; |
} |
if (_json.containsKey("performanceReport")) { |
- performanceReport = _json["performanceReport"].map((value) => new PerformanceReport.fromJson(value)).toList(); |
+ performanceReport = _json["performanceReport"] |
+ .map((value) => new PerformanceReport.fromJson(value)) |
+ .toList(); |
} |
} |
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 (kind != null) { |
_json["kind"] = kind; |
} |
if (performanceReport != null) { |
- _json["performanceReport"] = performanceReport.map((value) => (value).toJson()).toList(); |
+ _json["performanceReport"] = |
+ performanceReport.map((value) => (value).toJson()).toList(); |
} |
return _json; |
} |
} |
class PretargetingConfigDimensions { |
- /** Height in pixels. */ |
+ /// Height in pixels. |
core.String height; |
- /** Width in pixels. */ |
+ |
+ /// Width in pixels. |
core.String width; |
PretargetingConfigDimensions(); |
@@ -2475,7 +2478,8 @@ class PretargetingConfigDimensions { |
} |
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 (height != null) { |
_json["height"] = height; |
} |
@@ -2487,13 +2491,12 @@ class PretargetingConfigDimensions { |
} |
class PretargetingConfigExcludedPlacements { |
- /** |
- * The value of the placement. Interpretation depends on the placement type, |
- * e.g. URL for a site placement, channel name for a channel placement, app id |
- * for a mobile app placement. |
- */ |
+ /// The value of the placement. Interpretation depends on the placement type, |
+ /// e.g. URL for a site placement, channel name for a channel placement, app |
+ /// id for a mobile app placement. |
core.String token; |
- /** The type of the placement. */ |
+ |
+ /// The type of the placement. |
core.String type; |
PretargetingConfigExcludedPlacements(); |
@@ -2508,7 +2511,8 @@ class PretargetingConfigExcludedPlacements { |
} |
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 (token != null) { |
_json["token"] = token; |
} |
@@ -2520,13 +2524,12 @@ class PretargetingConfigExcludedPlacements { |
} |
class PretargetingConfigPlacements { |
- /** |
- * The value of the placement. Interpretation depends on the placement type, |
- * e.g. URL for a site placement, channel name for a channel placement, app id |
- * for a mobile app placement. |
- */ |
+ /// The value of the placement. Interpretation depends on the placement type, |
+ /// e.g. URL for a site placement, channel name for a channel placement, app |
+ /// id for a mobile app placement. |
core.String token; |
- /** The type of the placement. */ |
+ |
+ /// The type of the placement. |
core.String type; |
PretargetingConfigPlacements(); |
@@ -2541,7 +2544,8 @@ class PretargetingConfigPlacements { |
} |
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 (token != null) { |
_json["token"] = token; |
} |
@@ -2553,90 +2557,88 @@ class PretargetingConfigPlacements { |
} |
class PretargetingConfig { |
- /** |
- * The id for billing purposes, provided for reference. Leave this field blank |
- * for insert requests; the id will be generated automatically. |
- */ |
+ /// The id for billing purposes, provided for reference. Leave this field |
+ /// blank for insert requests; the id will be generated automatically. |
core.String billingId; |
- /** |
- * The config id; generated automatically. Leave this field blank for insert |
- * requests. |
- */ |
+ |
+ /// The config id; generated automatically. Leave this field blank for insert |
+ /// requests. |
core.String configId; |
- /** The name of the config. Must be unique. Required for all requests. */ |
+ |
+ /// The name of the config. Must be unique. Required for all requests. |
core.String configName; |
- /** |
- * List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or |
- * PRETARGETING_CREATIVE_TYPE_VIDEO. |
- */ |
+ |
+ /// List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or |
+ /// PRETARGETING_CREATIVE_TYPE_VIDEO. |
core.List<core.String> creativeType; |
- /** |
- * Requests which allow one of these (width, height) pairs will match. All |
- * pairs must be supported ad dimensions. |
- */ |
+ |
+ /// Requests which allow one of these (width, height) pairs will match. All |
+ /// pairs must be supported ad dimensions. |
core.List<PretargetingConfigDimensions> dimensions; |
- /** |
- * Requests with any of these content labels will not match. Values are from |
- * content-labels.txt in the downloadable files section. |
- */ |
+ |
+ /// Requests with any of these content labels will not match. Values are from |
+ /// content-labels.txt in the downloadable files section. |
core.List<core.String> excludedContentLabels; |
- /** Requests containing any of these geo criteria ids will not match. */ |
+ |
+ /// Requests containing any of these geo criteria ids will not match. |
core.List<core.String> excludedGeoCriteriaIds; |
- /** Requests containing any of these placements will not match. */ |
+ |
+ /// Requests containing any of these placements will not match. |
core.List<PretargetingConfigExcludedPlacements> excludedPlacements; |
- /** Requests containing any of these users list ids will not match. */ |
+ |
+ /// Requests containing any of these users list ids will not match. |
core.List<core.String> excludedUserLists; |
- /** |
- * Requests containing any of these vertical ids will not match. Values are |
- * from the publisher-verticals.txt file in the downloadable files section. |
- */ |
+ |
+ /// Requests containing any of these vertical ids will not match. Values are |
+ /// from the publisher-verticals.txt file in the downloadable files section. |
core.List<core.String> excludedVerticals; |
- /** Requests containing any of these geo criteria ids will match. */ |
+ |
+ /// Requests containing any of these geo criteria ids will match. |
core.List<core.String> geoCriteriaIds; |
- /** Whether this config is active. Required for all requests. */ |
+ |
+ /// Whether this config is active. Required for all requests. |
core.bool isActive; |
- /** The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig". */ |
+ |
+ /// The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig". |
core.String kind; |
- /** Request containing any of these language codes will match. */ |
+ |
+ /// Request containing any of these language codes will match. |
core.List<core.String> languages; |
- /** |
- * Requests containing any of these mobile carrier ids will match. Values are |
- * from mobile-carriers.csv in the downloadable files section. |
- */ |
+ |
+ /// Requests containing any of these mobile carrier ids will match. Values |
+ /// are from mobile-carriers.csv in the downloadable files section. |
core.List<core.String> mobileCarriers; |
- /** |
- * Requests containing any of these mobile device ids will match. Values are |
- * from mobile-devices.csv in the downloadable files section. |
- */ |
+ |
+ /// Requests containing any of these mobile device ids will match. Values are |
+ /// from mobile-devices.csv in the downloadable files section. |
core.List<core.String> mobileDevices; |
- /** |
- * Requests containing any of these mobile operating system version ids will |
- * match. Values are from mobile-os.csv in the downloadable files section. |
- */ |
+ |
+ /// Requests containing any of these mobile operating system version ids will |
+ /// match. Values are from mobile-os.csv in the downloadable files section. |
core.List<core.String> mobileOperatingSystemVersions; |
- /** Requests containing any of these placements will match. */ |
+ |
+ /// Requests containing any of these placements will match. |
core.List<PretargetingConfigPlacements> placements; |
- /** |
- * Requests matching any of these platforms will match. Possible values are |
- * PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and |
- * PRETARGETING_PLATFORM_TABLET. |
- */ |
+ |
+ /// Requests matching any of these platforms will match. Possible values are |
+ /// PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and |
+ /// PRETARGETING_PLATFORM_TABLET. |
core.List<core.String> platforms; |
- /** |
- * Creative attributes should be declared here if all creatives corresponding |
- * to this pretargeting configuration have that creative attribute. Values are |
- * from pretargetable-creative-attributes.txt in the downloadable files |
- * section. |
- */ |
+ |
+ /// Creative attributes should be declared here if all creatives |
+ /// corresponding to this pretargeting configuration have that creative |
+ /// attribute. Values are from pretargetable-creative-attributes.txt in the |
+ /// downloadable files section. |
core.List<core.String> supportedCreativeAttributes; |
- /** Requests containing any of these user list ids will match. */ |
+ |
+ /// Requests containing any of these user list ids will match. |
core.List<core.String> userLists; |
- /** |
- * Requests that allow any of these vendor ids will match. Values are from |
- * vendors.txt in the downloadable files section. |
- */ |
+ |
+ /// Requests that allow any of these vendor ids will match. Values are from |
+ /// vendors.txt in the downloadable files section. |
core.List<core.String> vendorTypes; |
- /** Requests containing any of these vertical ids will match. */ |
+ |
+ /// Requests containing any of these vertical ids will match. |
core.List<core.String> verticals; |
PretargetingConfig(); |
@@ -2655,7 +2657,9 @@ class PretargetingConfig { |
creativeType = _json["creativeType"]; |
} |
if (_json.containsKey("dimensions")) { |
- dimensions = _json["dimensions"].map((value) => new PretargetingConfigDimensions.fromJson(value)).toList(); |
+ dimensions = _json["dimensions"] |
+ .map((value) => new PretargetingConfigDimensions.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("excludedContentLabels")) { |
excludedContentLabels = _json["excludedContentLabels"]; |
@@ -2664,7 +2668,10 @@ class PretargetingConfig { |
excludedGeoCriteriaIds = _json["excludedGeoCriteriaIds"]; |
} |
if (_json.containsKey("excludedPlacements")) { |
- excludedPlacements = _json["excludedPlacements"].map((value) => new PretargetingConfigExcludedPlacements.fromJson(value)).toList(); |
+ excludedPlacements = _json["excludedPlacements"] |
+ .map((value) => |
+ new PretargetingConfigExcludedPlacements.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("excludedUserLists")) { |
excludedUserLists = _json["excludedUserLists"]; |
@@ -2694,7 +2701,9 @@ class PretargetingConfig { |
mobileOperatingSystemVersions = _json["mobileOperatingSystemVersions"]; |
} |
if (_json.containsKey("placements")) { |
- placements = _json["placements"].map((value) => new PretargetingConfigPlacements.fromJson(value)).toList(); |
+ placements = _json["placements"] |
+ .map((value) => new PretargetingConfigPlacements.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("platforms")) { |
platforms = _json["platforms"]; |
@@ -2714,7 +2723,8 @@ class PretargetingConfig { |
} |
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 (billingId != null) { |
_json["billingId"] = billingId; |
} |
@@ -2728,7 +2738,8 @@ class PretargetingConfig { |
_json["creativeType"] = creativeType; |
} |
if (dimensions != null) { |
- _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); |
+ _json["dimensions"] = |
+ dimensions.map((value) => (value).toJson()).toList(); |
} |
if (excludedContentLabels != null) { |
_json["excludedContentLabels"] = excludedContentLabels; |
@@ -2737,7 +2748,8 @@ class PretargetingConfig { |
_json["excludedGeoCriteriaIds"] = excludedGeoCriteriaIds; |
} |
if (excludedPlacements != null) { |
- _json["excludedPlacements"] = excludedPlacements.map((value) => (value).toJson()).toList(); |
+ _json["excludedPlacements"] = |
+ excludedPlacements.map((value) => (value).toJson()).toList(); |
} |
if (excludedUserLists != null) { |
_json["excludedUserLists"] = excludedUserLists; |
@@ -2767,7 +2779,8 @@ class PretargetingConfig { |
_json["mobileOperatingSystemVersions"] = mobileOperatingSystemVersions; |
} |
if (placements != null) { |
- _json["placements"] = placements.map((value) => (value).toJson()).toList(); |
+ _json["placements"] = |
+ placements.map((value) => (value).toJson()).toList(); |
} |
if (platforms != null) { |
_json["platforms"] = platforms; |
@@ -2789,16 +2802,19 @@ class PretargetingConfig { |
} |
class PretargetingConfigList { |
- /** A list of pretargeting configs */ |
+ /// A list of pretargeting configs |
core.List<PretargetingConfig> items; |
- /** Resource type. */ |
+ |
+ /// Resource type. |
core.String kind; |
PretargetingConfigList(); |
PretargetingConfigList.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new PretargetingConfig.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new PretargetingConfig.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -2806,7 +2822,8 @@ class PretargetingConfigList { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |