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

Unified Diff: generated/googleapis/lib/dfareporting/v2_6.dart

Issue 2226653002: Api-roll 40: 2016-08-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed review comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/lib/dfareporting/v2_5.dart ('k') | generated/googleapis/lib/fitness/v1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/dfareporting/v2_6.dart
diff --git a/generated/googleapis/lib/dfareporting/v2_5.dart b/generated/googleapis/lib/dfareporting/v2_6.dart
similarity index 96%
copy from generated/googleapis/lib/dfareporting/v2_5.dart
copy to generated/googleapis/lib/dfareporting/v2_6.dart
index 2644e54a89b229a43832328713377c90220db01f..fdd0947cfca005eb2c5c9091682ec0ac109e169c 100644
--- a/generated/googleapis/lib/dfareporting/v2_5.dart
+++ b/generated/googleapis/lib/dfareporting/v2_6.dart
@@ -1,6 +1,6 @@
// This is a generated file (see the discoveryapis_generator project).
-library googleapis.dfareporting.v2_5;
+library googleapis.dfareporting.v2_6;
import 'dart:core' as core;
import 'dart:async' as async;
@@ -14,7 +14,7 @@ export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
ResumableUploadOptions, DownloadOptions, PartialDownloadOptions,
ByteRange;
-const core.String USER_AGENT = 'dart-api-client dfareporting/v2.5';
+const core.String USER_AGENT = 'dart-api-client dfareporting/v2.6';
/** Manages your DoubleClick Campaign Manager ad campaigns and reports. */
class DfareportingApi {
@@ -66,6 +66,7 @@ class DfareportingApi {
FloodlightConfigurationsResourceApi get floodlightConfigurations => new FloodlightConfigurationsResourceApi(_requester);
InventoryItemsResourceApi get inventoryItems => new InventoryItemsResourceApi(_requester);
LandingPagesResourceApi get landingPages => new LandingPagesResourceApi(_requester);
+ LanguagesResourceApi get languages => new LanguagesResourceApi(_requester);
MetrosResourceApi get metros => new MetrosResourceApi(_requester);
MobileCarriersResourceApi get mobileCarriers => new MobileCarriersResourceApi(_requester);
OperatingSystemVersionsResourceApi get operatingSystemVersions => new OperatingSystemVersionsResourceApi(_requester);
@@ -86,12 +87,13 @@ class DfareportingApi {
SizesResourceApi get sizes => new SizesResourceApi(_requester);
SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requester);
TargetableRemarketingListsResourceApi get targetableRemarketingLists => new TargetableRemarketingListsResourceApi(_requester);
+ TargetingTemplatesResourceApi get targetingTemplates => new TargetingTemplatesResourceApi(_requester);
UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_requester);
UserRolePermissionGroupsResourceApi get userRolePermissionGroups => new UserRolePermissionGroupsResourceApi(_requester);
UserRolePermissionsResourceApi get userRolePermissions => new UserRolePermissionsResourceApi(_requester);
UserRolesResourceApi get userRoles => new UserRolesResourceApi(_requester);
- DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "dfareporting/v2.5/"}) :
+ DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "dfareporting/v2.6/"}) :
_requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
@@ -2508,6 +2510,7 @@ class ChangeLogsResourceApi {
* - "OBJECT_SD_SITE"
* - "OBJECT_SIZE"
* - "OBJECT_SUBACCOUNT"
+ * - "OBJECT_TARGETING_TEMPLATE"
* - "OBJECT_USER_PROFILE"
* - "OBJECT_USER_PROFILE_FILTER"
* - "OBJECT_USER_ROLE"
@@ -3259,9 +3262,9 @@ class CreativeAssetsResourceApi {
if (_uploadMedia == null) {
_url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets';
} else if (_uploadOptions is commons.ResumableUploadOptions) {
- _url = '/resumable/upload/dfareporting/v2.5/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets';
+ _url = '/resumable/upload/dfareporting/v2.6/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets';
} else {
- _url = '/upload/dfareporting/v2.5/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets';
+ _url = '/upload/dfareporting/v2.6/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets';
}
@@ -7022,6 +7025,54 @@ class LandingPagesResourceApi {
}
+class LanguagesResourceApi {
+ final commons.ApiRequester _requester;
+
+ LanguagesResourceApi(commons.ApiRequester client) :
+ _requester = client;
+
+ /**
+ * Retrieves a list of languages.
+ *
+ * Request parameters:
+ *
+ * [profileId] - User profile ID associated with this request.
+ *
+ * Completes with a [LanguagesListResponse].
+ *
+ * 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<LanguagesListResponse> list(core.String profileId) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (profileId == null) {
+ throw new core.ArgumentError("Parameter profileId is required.");
+ }
+
+ _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/languages';
+
+ var _response = _requester.request(_url,
+ "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new LanguagesListResponse.fromJson(data));
+ }
+
+}
+
+
class MetrosResourceApi {
final commons.ApiRequester _requester;
@@ -11019,6 +11070,284 @@ class TargetableRemarketingListsResourceApi {
}
+class TargetingTemplatesResourceApi {
+ final commons.ApiRequester _requester;
+
+ TargetingTemplatesResourceApi(commons.ApiRequester client) :
+ _requester = client;
+
+ /**
+ * Gets one targeting template by ID.
+ *
+ * Request parameters:
+ *
+ * [profileId] - User profile ID associated with this request.
+ *
+ * [id] - Targeting template ID.
+ *
+ * Completes with a [TargetingTemplate].
+ *
+ * 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<TargetingTemplate> get(core.String profileId, core.String id) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (profileId == null) {
+ throw new core.ArgumentError("Parameter profileId is required.");
+ }
+ if (id == null) {
+ throw new core.ArgumentError("Parameter id is required.");
+ }
+
+ _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates/' + commons.Escaper.ecapeVariable('$id');
+
+ var _response = _requester.request(_url,
+ "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new TargetingTemplate.fromJson(data));
+ }
+
+ /**
+ * Inserts a new targeting template.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [profileId] - User profile ID associated with this request.
+ *
+ * Completes with a [TargetingTemplate].
+ *
+ * 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<TargetingTemplate> insert(TargetingTemplate request, core.String profileId) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+ if (profileId == null) {
+ throw new core.ArgumentError("Parameter profileId is required.");
+ }
+
+ _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates';
+
+ var _response = _requester.request(_url,
+ "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new TargetingTemplate.fromJson(data));
+ }
+
+ /**
+ * Retrieves a list of targeting templates, optionally filtered.
+ *
+ * Request parameters:
+ *
+ * [profileId] - User profile ID associated with this request.
+ *
+ * [advertiserId] - Select only targeting templates with this advertiser ID.
+ *
+ * [ids] - Select only targeting templates with these IDs.
+ *
+ * [maxResults] - Maximum number of results to return.
+ *
+ * [pageToken] - Value of the nextPageToken from the previous result page.
+ *
+ * [searchString] - Allows searching for objects by name or ID. Wildcards (*)
+ * are allowed. For example, "template*2015" will return objects with names
+ * like "template June 2015", "template April 2015", or simply "template
+ * 2015". Most of the searches also add wildcards implicitly at the start and
+ * the end of the search string. For example, a search string of "template"
+ * will match objects with name "my template", "template 2015", or simply
+ * "template".
+ *
+ * [sortField] - Field by which to sort the list.
+ * Possible string values are:
+ * - "ID"
+ * - "NAME"
+ *
+ * [sortOrder] - Order of sorted results, default is ASCENDING.
+ * Possible string values are:
+ * - "ASCENDING"
+ * - "DESCENDING"
+ *
+ * Completes with a [TargetingTemplatesListResponse].
+ *
+ * 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<TargetingTemplatesListResponse> list(core.String profileId, {core.String advertiserId, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (profileId == null) {
+ throw new core.ArgumentError("Parameter profileId is required.");
+ }
+ if (advertiserId != null) {
+ _queryParams["advertiserId"] = [advertiserId];
+ }
+ if (ids != null) {
+ _queryParams["ids"] = ids;
+ }
+ if (maxResults != null) {
+ _queryParams["maxResults"] = ["${maxResults}"];
+ }
+ if (pageToken != null) {
+ _queryParams["pageToken"] = [pageToken];
+ }
+ if (searchString != null) {
+ _queryParams["searchString"] = [searchString];
+ }
+ if (sortField != null) {
+ _queryParams["sortField"] = [sortField];
+ }
+ if (sortOrder != null) {
+ _queryParams["sortOrder"] = [sortOrder];
+ }
+
+ _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates';
+
+ var _response = _requester.request(_url,
+ "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new TargetingTemplatesListResponse.fromJson(data));
+ }
+
+ /**
+ * Updates an existing targeting template. This method supports patch
+ * semantics.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [profileId] - User profile ID associated with this request.
+ *
+ * [id] - Targeting template ID.
+ *
+ * Completes with a [TargetingTemplate].
+ *
+ * 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<TargetingTemplate> patch(TargetingTemplate request, core.String profileId, core.String id) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+ if (profileId == null) {
+ throw new core.ArgumentError("Parameter profileId is required.");
+ }
+ if (id == null) {
+ throw new core.ArgumentError("Parameter id is required.");
+ }
+ _queryParams["id"] = [id];
+
+ _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates';
+
+ var _response = _requester.request(_url,
+ "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new TargetingTemplate.fromJson(data));
+ }
+
+ /**
+ * Updates an existing targeting template.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [profileId] - User profile ID associated with this request.
+ *
+ * Completes with a [TargetingTemplate].
+ *
+ * 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<TargetingTemplate> update(TargetingTemplate request, core.String profileId) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+ if (profileId == null) {
+ throw new core.ArgumentError("Parameter profileId is required.");
+ }
+
+ _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetingTemplates';
+
+ var _response = _requester.request(_url,
+ "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new TargetingTemplate.fromJson(data));
+ }
+
+}
+
+
class UserProfilesResourceApi {
final commons.ApiRequester _requester;
@@ -11638,6 +11967,7 @@ class Account {
* - "ACTIVE_ADS_TIER_200K"
* - "ACTIVE_ADS_TIER_300K"
* - "ACTIVE_ADS_TIER_40K"
+ * - "ACTIVE_ADS_TIER_500K"
* - "ACTIVE_ADS_TIER_75K"
*/
core.String activeAdsLimitTier;
@@ -11648,11 +11978,6 @@ class Account {
core.bool activeViewOptOut;
/** User role permissions available to the user roles of this account. */
core.List<core.String> availablePermissionIds;
- /**
- * Whether campaigns created in this account will be enabled for comScore vCE
- * by default.
- */
- core.bool comscoreVceEnabled;
/** ID of the country associated with this account. */
core.String countryId;
/**
@@ -11753,6 +12078,8 @@ class Account {
core.bool nielsenOcrEnabled;
/** Reporting configuration of this account. */
ReportsConfiguration reportsConfiguration;
+ /** Share Path to Conversion reports with Twitter. */
+ core.bool shareReportsWithTwitter;
/**
* File size limit in kilobytes of Rich Media teaser creatives. Must be
* between 1 and 10240.
@@ -11780,9 +12107,6 @@ class Account {
if (_json.containsKey("availablePermissionIds")) {
availablePermissionIds = _json["availablePermissionIds"];
}
- if (_json.containsKey("comscoreVceEnabled")) {
- comscoreVceEnabled = _json["comscoreVceEnabled"];
- }
if (_json.containsKey("countryId")) {
countryId = _json["countryId"];
}
@@ -11816,6 +12140,9 @@ class Account {
if (_json.containsKey("reportsConfiguration")) {
reportsConfiguration = new ReportsConfiguration.fromJson(_json["reportsConfiguration"]);
}
+ if (_json.containsKey("shareReportsWithTwitter")) {
+ shareReportsWithTwitter = _json["shareReportsWithTwitter"];
+ }
if (_json.containsKey("teaserSizeLimit")) {
teaserSizeLimit = _json["teaserSizeLimit"];
}
@@ -11841,9 +12168,6 @@ class Account {
if (availablePermissionIds != null) {
_json["availablePermissionIds"] = availablePermissionIds;
}
- if (comscoreVceEnabled != null) {
- _json["comscoreVceEnabled"] = comscoreVceEnabled;
- }
if (countryId != null) {
_json["countryId"] = countryId;
}
@@ -11877,6 +12201,9 @@ class Account {
if (reportsConfiguration != null) {
_json["reportsConfiguration"] = (reportsConfiguration).toJson();
}
+ if (shareReportsWithTwitter != null) {
+ _json["shareReportsWithTwitter"] = shareReportsWithTwitter;
+ }
if (teaserSizeLimit != null) {
_json["teaserSizeLimit"] = teaserSizeLimit;
}
@@ -11897,6 +12224,7 @@ class AccountActiveAdSummary {
* - "ACTIVE_ADS_TIER_200K"
* - "ACTIVE_ADS_TIER_300K"
* - "ACTIVE_ADS_TIER_40K"
+ * - "ACTIVE_ADS_TIER_500K"
* - "ACTIVE_ADS_TIER_75K"
*/
core.String activeAdsLimitTier;
@@ -12523,7 +12851,7 @@ class Ad {
* - "IN_STREAM_VIDEO"
*/
core.String compatibility;
- /** Information about the creation of this ad.This is a read-only field. */
+ /** Information about the creation of this ad. This is a read-only field. */
LastModifiedInfo createInfo;
/**
* Creative group assignments for this ad. Applicable when type is
@@ -12539,7 +12867,8 @@ class Ad {
*/
CreativeRotation creativeRotation;
/**
- * Time and day targeting information for this ad. Applicable when type is
+ * Time and day targeting information for this ad. This field must be left
+ * blank if the ad is using a targeting template. Applicable when type is
* AD_SERVING_STANDARD_AD.
*/
DayPartTargeting dayPartTargeting;
@@ -12566,7 +12895,8 @@ class Ad {
/** Event tag overrides for this ad. */
core.List<EventTagOverride> eventTagOverrides;
/**
- * Geographical targeting information for this ad.Applicable when type is
+ * Geographical targeting information for this ad. This field must be left
+ * blank if the ad is using a targeting template. Applicable when type is
* AD_SERVING_STANDARD_AD.
*/
GeoTargeting geoTargeting;
@@ -12578,7 +12908,8 @@ class Ad {
*/
DimensionValue idDimensionValue;
/**
- * Key-value targeting information for this ad. Applicable when type is
+ * Key-value targeting information for this ad. This field must be left blank
+ * if the ad is using a targeting template. Applicable when type is
* AD_SERVING_STANDARD_AD.
*/
KeyValueTargetingExpression keyValueTargetingExpression;
@@ -12588,6 +12919,12 @@ class Ad {
*/
core.String kind;
/**
+ * Language targeting information for this ad. This field must be left blank
+ * if the ad is using a targeting template. Applicable when type is
+ * AD_SERVING_STANDARD_AD.
+ */
+ LanguageTargeting languageTargeting;
+ /**
* Information about the most recent modification of this ad. This is a
* read-only field.
*/
@@ -12600,8 +12937,9 @@ class Ad {
/** Placement assignments for this ad. */
core.List<PlacementAssignment> placementAssignments;
/**
- * Applicable when type is AD_SERVING_STANDARD_AD. Remarketing list targeting
- * expression for this ad.
+ * Remarketing list targeting expression for this ad. This field must be left
+ * blank if the ad is using a targeting template. Applicable when type is
+ * AD_SERVING_STANDARD_AD.
*/
ListTargetingExpression remarketingListExpression;
/** Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. */
@@ -12626,8 +12964,17 @@ class Ad {
*/
core.String subaccountId;
/**
- * Technology platform targeting information for this ad. Applicable when type
- * is AD_SERVING_STANDARD_AD.
+ * Targeting template ID, used to apply preconfigured targeting information to
+ * this ad. This cannot be set while any of dayPartTargeting, geoTargeting,
+ * keyValueTargetingExpression, languageTargeting, remarketingListExpression,
+ * or technologyTargeting are set. Applicable when type is
+ * AD_SERVING_STANDARD_AD.
+ */
+ core.String targetingTemplateId;
+ /**
+ * Technology platform targeting information for this ad. This field must be
+ * left blank if the ad is using a targeting template. Applicable when type is
+ * AD_SERVING_STANDARD_AD.
*/
TechnologyTargeting technologyTargeting;
/**
@@ -12722,6 +13069,9 @@ class Ad {
if (_json.containsKey("kind")) {
kind = _json["kind"];
}
+ if (_json.containsKey("languageTargeting")) {
+ languageTargeting = new LanguageTargeting.fromJson(_json["languageTargeting"]);
+ }
if (_json.containsKey("lastModifiedInfo")) {
lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]);
}
@@ -12749,6 +13099,9 @@ class Ad {
if (_json.containsKey("subaccountId")) {
subaccountId = _json["subaccountId"];
}
+ if (_json.containsKey("targetingTemplateId")) {
+ targetingTemplateId = _json["targetingTemplateId"];
+ }
if (_json.containsKey("technologyTargeting")) {
technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTargeting"]);
}
@@ -12837,6 +13190,9 @@ class Ad {
if (kind != null) {
_json["kind"] = kind;
}
+ if (languageTargeting != null) {
+ _json["languageTargeting"] = (languageTargeting).toJson();
+ }
if (lastModifiedInfo != null) {
_json["lastModifiedInfo"] = (lastModifiedInfo).toJson();
}
@@ -12864,6 +13220,9 @@ class Ad {
if (subaccountId != null) {
_json["subaccountId"] = subaccountId;
}
+ if (targetingTemplateId != null) {
+ _json["targetingTemplateId"] = targetingTemplateId;
+ }
if (technologyTargeting != null) {
_json["technologyTargeting"] = (technologyTargeting).toJson();
}
@@ -13590,8 +13949,6 @@ class Campaign {
* long.
*/
core.String comment;
- /** Whether comScore vCE reports are enabled for this campaign. */
- core.bool comscoreVceEnabled;
/**
* Information about the creation of this campaign. This is a read-only field.
*/
@@ -13690,9 +14047,6 @@ class Campaign {
if (_json.containsKey("comment")) {
comment = _json["comment"];
}
- if (_json.containsKey("comscoreVceEnabled")) {
- comscoreVceEnabled = _json["comscoreVceEnabled"];
- }
if (_json.containsKey("createInfo")) {
createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]);
}
@@ -13778,9 +14132,6 @@ class Campaign {
if (comment != null) {
_json["comment"] = comment;
}
- if (comscoreVceEnabled != null) {
- _json["comscoreVceEnabled"] = comscoreVceEnabled;
- }
if (createInfo != null) {
_json["createInfo"] = (createInfo).toJson();
}
@@ -14261,12 +14612,13 @@ class City {
class ClickTag {
/**
* Advertiser event name associated with the click tag. This field is used by
- * ENHANCED_BANNER, ENHANCED_IMAGE, and HTML5_BANNER creatives.
+ * DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to DISPLAY
+ * when the primary asset type is not HTML_IMAGE.
*/
core.String eventName;
/**
- * Parameter name for the specified click tag. For ENHANCED_IMAGE creative
- * assets, this field must match the value of the creative asset's
+ * Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY
+ * creative assets, this field must match the value of the creative asset's
* creativeAssetId.name field.
*/
core.String name;
@@ -14701,10 +15053,22 @@ class Conversion {
core.List<CustomFloodlightVariable> customVariables;
/**
* The alphanumeric encrypted user ID. When set, encryptionInfo should also be
- * specified. This field is mutually exclusive with mobileDeviceId. This or
- * mobileDeviceId is a required field.
+ * specified. This field is mutually exclusive with
+ * encryptedUserIdCandidates[] and mobileDeviceId. This or
+ * encryptedUserIdCandidates[] or mobileDeviceId is a required field.
*/
core.String encryptedUserId;
+ /**
+ * A list of the alphanumeric encrypted user IDs. Any user ID with exposure
+ * prior to the conversion timestamp will be used in the inserted conversion.
+ * If no such user ID is found then the conversion will be rejected with
+ * NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo should also be
+ * specified. This field should only be used when calling
+ * conversions.batchinsert. This field is mutually exclusive with
+ * encryptedUserId and mobileDeviceId. This or encryptedUserId or
+ * mobileDeviceId is a required field.
+ */
+ core.List<core.String> encryptedUserIdCandidates;
/** Floodlight Activity ID of this conversion. This is a required field. */
core.String floodlightActivityId;
/**
@@ -14719,8 +15083,9 @@ class Conversion {
/** Whether the user has Limit Ad Tracking set. */
core.bool limitAdTracking;
/**
- * The mobile device ID. This field is mutually exclusive with
- * encryptedUserId. This or encryptedUserId is a required field.
+ * The mobile device ID. This field is mutually exclusive with encryptedUserId
+ * and encryptedUserIdCandidates[]. This or encryptedUserId or
+ * encryptedUserIdCandidates[] is a required field.
*/
core.String mobileDeviceId;
/**
@@ -14750,6 +15115,9 @@ class Conversion {
if (_json.containsKey("encryptedUserId")) {
encryptedUserId = _json["encryptedUserId"];
}
+ if (_json.containsKey("encryptedUserIdCandidates")) {
+ encryptedUserIdCandidates = _json["encryptedUserIdCandidates"];
+ }
if (_json.containsKey("floodlightActivityId")) {
floodlightActivityId = _json["floodlightActivityId"];
}
@@ -14790,6 +15158,9 @@ class Conversion {
if (encryptedUserId != null) {
_json["encryptedUserId"] = encryptedUserId;
}
+ if (encryptedUserIdCandidates != null) {
+ _json["encryptedUserIdCandidates"] = encryptedUserIdCandidates;
+ }
if (floodlightActivityId != null) {
_json["floodlightActivityId"] = floodlightActivityId;
}
@@ -14821,7 +15192,10 @@ class Conversion {
}
}
-/** The error code and description for a conversion that failed to insert. */
+/**
+ * The error code and description for a conversion that failed to insert or
+ * update.
+ */
class ConversionError {
/**
* The error code.
@@ -14870,10 +15244,11 @@ class ConversionError {
}
/**
- * The original conversion that was inserted and whether there were any errors.
+ * The original conversion that was inserted or updated and whether there were
+ * any errors.
*/
class ConversionStatus {
- /** The original conversion that was inserted. */
+ /** The original conversion that was inserted or updated. */
Conversion conversion;
/** A list of errors related to this conversion. */
core.List<ConversionError> errors;
@@ -14917,8 +15292,9 @@ class ConversionsBatchInsertRequest {
/** The set of conversions to insert. */
core.List<Conversion> conversions;
/**
- * Describes how encryptedUserId is encrypted. This is a required field if
- * encryptedUserId is used.
+ * Describes how encryptedUserId or encryptedUserIdCandidates[] is encrypted.
+ * This is a required field if encryptedUserId or encryptedUserIdCandidates[]
+ * is used.
*/
EncryptionInfo encryptionInfo;
/**
@@ -15158,7 +15534,7 @@ class Creative {
*/
core.String authoringTool;
/**
- * Whether images are automatically advanced for enhanced image creatives.
+ * Whether images are automatically advanced for image gallery creatives.
* Applicable to the following creative types: DISPLAY_IMAGE_GALLERY.
*/
core.bool autoAdvanceImages;
@@ -15222,15 +15598,15 @@ class Creative {
/**
* List of companion creatives assigned to an in-Stream videocreative.
* Acceptable values include IDs of existing flash and image creatives.
- * Applicable to the following creative types: all INSTREAM_VIDEO and all
- * VPAID.
+ * Applicable to the following creative types: all VPAID and all
+ * INSTREAM_VIDEO with dynamicAssetSelection set to false.
*/
core.List<core.String> companionCreatives;
/**
* Compatibilities associated with this creative. This is a read-only field.
* DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on
* mobile devices or in mobile apps for regular or interstitial ads,
- * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps.
+ * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps.
* Only pre-existing creatives may have these compatibilities since new
* creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead.
* IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with
@@ -15259,6 +15635,8 @@ class Creative {
* DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID.
*/
core.List<CreativeCustomEvent> counterCustomEvents;
+ /** Required if dynamicAssetSelection is true. */
+ CreativeAssetSelection creativeAssetSelection;
/**
* Assets associated with a creative. Applicable to all but the following
* creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and
@@ -15279,6 +15657,14 @@ class Creative {
*/
core.List<core.String> customKeyValues;
/**
+ * Set this to true to enable the use of rules to target individual assets in
+ * this creative. When set to true creativeAssetSelection must be set. This
+ * also controls asset-level companions. When this is true, companion
+ * creatives should be assigned to creative assets. Learn more. Applicable to
+ * INSTREAM_VIDEO creatives.
+ */
+ core.bool dynamicAssetSelection;
+ /**
* List of exit events configured for the creative. For DISPLAY and
* DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated
* from clickTags, For DISPLAY, an event is also created from the
@@ -15455,7 +15841,11 @@ class Creative {
*/
core.String totalFileSize;
/**
- * Type of this creative.This is a required field. Applicable to all creative
+ * Type of this creative. This is a required field. Applicable to all creative
+ * types.
+ *
+ * Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing
+ * creatives. New creatives should use DISPLAY as a replacement for these
* types.
* Possible string values are:
* - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO"
@@ -15575,6 +15965,9 @@ class Creative {
if (_json.containsKey("counterCustomEvents")) {
counterCustomEvents = _json["counterCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList();
}
+ if (_json.containsKey("creativeAssetSelection")) {
+ creativeAssetSelection = new CreativeAssetSelection.fromJson(_json["creativeAssetSelection"]);
+ }
if (_json.containsKey("creativeAssets")) {
creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset.fromJson(value)).toList();
}
@@ -15584,6 +15977,9 @@ class Creative {
if (_json.containsKey("customKeyValues")) {
customKeyValues = _json["customKeyValues"];
}
+ if (_json.containsKey("dynamicAssetSelection")) {
+ dynamicAssetSelection = _json["dynamicAssetSelection"];
+ }
if (_json.containsKey("exitCustomEvents")) {
exitCustomEvents = _json["exitCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList();
}
@@ -15753,6 +16149,9 @@ class Creative {
if (counterCustomEvents != null) {
_json["counterCustomEvents"] = counterCustomEvents.map((value) => (value).toJson()).toList();
}
+ if (creativeAssetSelection != null) {
+ _json["creativeAssetSelection"] = (creativeAssetSelection).toJson();
+ }
if (creativeAssets != null) {
_json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()).toList();
}
@@ -15762,6 +16161,9 @@ class Creative {
if (customKeyValues != null) {
_json["customKeyValues"] = customKeyValues;
}
+ if (dynamicAssetSelection != null) {
+ _json["dynamicAssetSelection"] = dynamicAssetSelection;
+ }
if (exitCustomEvents != null) {
_json["exitCustomEvents"] = exitCustomEvents.map((value) => (value).toJson()).toList();
}
@@ -15934,6 +16336,13 @@ class CreativeAsset {
*/
Size collapsedSize;
/**
+ * List of companion creatives assigned to an in-stream video creative asset.
+ * Acceptable values include IDs of existing flash and image creatives.
+ * Applicable to INSTREAM_VIDEO creative type with dynamicAssetSelection set
+ * to true.
+ */
+ core.List<core.String> companionCreativeIds;
+ /**
* Custom start time in seconds for making the asset visible. Applicable to
* the following creative types: all RICH_MEDIA.
*/
@@ -15951,6 +16360,7 @@ class CreativeAsset {
* Type of rich media asset. This is a read-only field. Applicable to the
* following creative types: all RICH_MEDIA.
* Possible string values are:
+ * - "ASSET_DISPLAY_TYPE_BACKDROP"
* - "ASSET_DISPLAY_TYPE_EXPANDING"
* - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH"
* - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING"
@@ -16015,6 +16425,11 @@ class CreativeAsset {
*/
core.String id;
/**
+ * Dimension value for the ID of the asset. This is a read-only,
+ * auto-generated field.
+ */
+ DimensionValue idDimensionValue;
+ /**
* Detected MIME type for video asset. This is a read-only field. Applicable
* to the following creative types: INSTREAM_VIDEO and all VPAID.
*/
@@ -16212,6 +16627,9 @@ class CreativeAsset {
if (_json.containsKey("collapsedSize")) {
collapsedSize = new Size.fromJson(_json["collapsedSize"]);
}
+ if (_json.containsKey("companionCreativeIds")) {
+ companionCreativeIds = _json["companionCreativeIds"];
+ }
if (_json.containsKey("customStartTimeValue")) {
customStartTimeValue = _json["customStartTimeValue"];
}
@@ -16248,6 +16666,9 @@ class CreativeAsset {
if (_json.containsKey("id")) {
id = _json["id"];
}
+ if (_json.containsKey("idDimensionValue")) {
+ idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]);
+ }
if (_json.containsKey("mimeType")) {
mimeType = _json["mimeType"];
}
@@ -16342,6 +16763,9 @@ class CreativeAsset {
if (collapsedSize != null) {
_json["collapsedSize"] = (collapsedSize).toJson();
}
+ if (companionCreativeIds != null) {
+ _json["companionCreativeIds"] = companionCreativeIds;
+ }
if (customStartTimeValue != null) {
_json["customStartTimeValue"] = customStartTimeValue;
}
@@ -16378,6 +16802,9 @@ class CreativeAsset {
if (id != null) {
_json["id"] = id;
}
+ if (idDimensionValue != null) {
+ _json["idDimensionValue"] = (idDimensionValue).toJson();
+ }
if (mimeType != null) {
_json["mimeType"] = mimeType;
}
@@ -16455,8 +16882,8 @@ class CreativeAssetId {
*/
core.String name;
/**
- * Type of asset to upload. This is a required field. IMAGE is solely used for
- * IMAGE creatives. Other image assets should use HTML_IMAGE.
+ * Type of asset to upload. This is a required field. FLASH and IMAGE are no
+ * longer supported for new uploads. All image assets should use HTML_IMAGE.
* Possible string values are:
* - "FLASH"
* - "HTML"
@@ -16509,6 +16936,13 @@ class CreativeAssetMetadata {
* read-only, auto-generated field.
*/
core.List<core.String> detectedFeatures;
+ /** Numeric ID of the asset. This is a read-only, auto-generated field. */
+ core.String id;
+ /**
+ * Dimension value for the numeric ID of the asset. This is a read-only,
+ * auto-generated field.
+ */
+ DimensionValue idDimensionValue;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "dfareporting#creativeAssetMetadata".
@@ -16558,6 +16992,12 @@ class CreativeAssetMetadata {
if (_json.containsKey("detectedFeatures")) {
detectedFeatures = _json["detectedFeatures"];
}
+ if (_json.containsKey("id")) {
+ id = _json["id"];
+ }
+ if (_json.containsKey("idDimensionValue")) {
+ idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]);
+ }
if (_json.containsKey("kind")) {
kind = _json["kind"];
}
@@ -16577,6 +17017,12 @@ class CreativeAssetMetadata {
if (detectedFeatures != null) {
_json["detectedFeatures"] = detectedFeatures;
}
+ if (id != null) {
+ _json["id"] = id;
+ }
+ if (idDimensionValue != null) {
+ _json["idDimensionValue"] = (idDimensionValue).toJson();
+ }
if (kind != null) {
_json["kind"] = kind;
}
@@ -16587,6 +17033,47 @@ class CreativeAssetMetadata {
}
}
+/**
+ * Encapsulates the list of rules for asset selection and a default asset in
+ * case none of the rules match. Applicable to INSTREAM_VIDEO creatives.
+ */
+class CreativeAssetSelection {
+ /**
+ * A creativeAssets[].id. This should refer to one of the parent assets in
+ * this creative, and will be served if none of the rules match. This is a
+ * required field.
+ */
+ core.String defaultAssetId;
+ /**
+ * Rules determine which asset will be served to a viewer. Rules will be
+ * evaluated in the order in which they are stored in this list. This list
+ * must contain at least one rule. Applicable to INSTREAM_VIDEO creatives.
+ */
+ core.List<Rule> rules;
+
+ CreativeAssetSelection();
+
+ CreativeAssetSelection.fromJson(core.Map _json) {
+ if (_json.containsKey("defaultAssetId")) {
+ defaultAssetId = _json["defaultAssetId"];
+ }
+ if (_json.containsKey("rules")) {
+ rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList();
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (defaultAssetId != null) {
+ _json["defaultAssetId"] = defaultAssetId;
+ }
+ if (rules != null) {
+ _json["rules"] = rules.map((value) => (value).toJson()).toList();
+ }
+ return _json;
+ }
+}
+
/** Creative Assignment. */
class CreativeAssignment {
/**
@@ -17592,6 +18079,7 @@ class CustomFloodlightVariable {
* Possible string values are:
* - "U1"
* - "U10"
+ * - "U100"
* - "U11"
* - "U12"
* - "U13"
@@ -17603,13 +18091,92 @@ class CustomFloodlightVariable {
* - "U19"
* - "U2"
* - "U20"
+ * - "U21"
+ * - "U22"
+ * - "U23"
+ * - "U24"
+ * - "U25"
+ * - "U26"
+ * - "U27"
+ * - "U28"
+ * - "U29"
* - "U3"
+ * - "U30"
+ * - "U31"
+ * - "U32"
+ * - "U33"
+ * - "U34"
+ * - "U35"
+ * - "U36"
+ * - "U37"
+ * - "U38"
+ * - "U39"
* - "U4"
+ * - "U40"
+ * - "U41"
+ * - "U42"
+ * - "U43"
+ * - "U44"
+ * - "U45"
+ * - "U46"
+ * - "U47"
+ * - "U48"
+ * - "U49"
* - "U5"
+ * - "U50"
+ * - "U51"
+ * - "U52"
+ * - "U53"
+ * - "U54"
+ * - "U55"
+ * - "U56"
+ * - "U57"
+ * - "U58"
+ * - "U59"
* - "U6"
+ * - "U60"
+ * - "U61"
+ * - "U62"
+ * - "U63"
+ * - "U64"
+ * - "U65"
+ * - "U66"
+ * - "U67"
+ * - "U68"
+ * - "U69"
* - "U7"
+ * - "U70"
+ * - "U71"
+ * - "U72"
+ * - "U73"
+ * - "U74"
+ * - "U75"
+ * - "U76"
+ * - "U77"
+ * - "U78"
+ * - "U79"
* - "U8"
+ * - "U80"
+ * - "U81"
+ * - "U82"
+ * - "U83"
+ * - "U84"
+ * - "U85"
+ * - "U86"
+ * - "U87"
+ * - "U88"
+ * - "U89"
* - "U9"
+ * - "U90"
+ * - "U91"
+ * - "U92"
+ * - "U93"
+ * - "U94"
+ * - "U95"
+ * - "U96"
+ * - "U97"
+ * - "U98"
+ * - "U99"
*/
core.String type;
/**
@@ -20917,99 +21484,214 @@ class KeyValueTargetingExpression {
core.Map toJson() {
var _json = new core.Map();
- if (expression != null) {
- _json["expression"] = expression;
+ if (expression != null) {
+ _json["expression"] = expression;
+ }
+ return _json;
+ }
+}
+
+/**
+ * Contains information about where a user's browser is taken after the user
+ * clicks an ad.
+ */
+class LandingPage {
+ /**
+ * Whether or not this landing page will be assigned to any ads or creatives
+ * that do not have a landing page assigned explicitly. Only one default
+ * landing page is allowed per campaign.
+ */
+ core.bool default_;
+ /** ID of this landing page. This is a read-only, auto-generated field. */
+ core.String id;
+ /**
+ * Identifies what kind of resource this is. Value: the fixed string
+ * "dfareporting#landingPage".
+ */
+ core.String kind;
+ /**
+ * Name of this landing page. This is a required field. It must be less than
+ * 256 characters long, and must be unique among landing pages of the same
+ * campaign.
+ */
+ core.String name;
+ /** URL of this landing page. This is a required field. */
+ core.String url;
+
+ LandingPage();
+
+ LandingPage.fromJson(core.Map _json) {
+ if (_json.containsKey("default")) {
+ default_ = _json["default"];
+ }
+ if (_json.containsKey("id")) {
+ id = _json["id"];
+ }
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
+ if (_json.containsKey("name")) {
+ name = _json["name"];
+ }
+ if (_json.containsKey("url")) {
+ url = _json["url"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (default_ != null) {
+ _json["default"] = default_;
+ }
+ if (id != null) {
+ _json["id"] = id;
+ }
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
+ if (name != null) {
+ _json["name"] = name;
+ }
+ if (url != null) {
+ _json["url"] = url;
+ }
+ return _json;
+ }
+}
+
+/** Landing Page List Response */
+class LandingPagesListResponse {
+ /**
+ * Identifies what kind of resource this is. Value: the fixed string
+ * "dfareporting#landingPagesListResponse".
+ */
+ core.String kind;
+ /** Landing page collection */
+ core.List<LandingPage> landingPages;
+
+ LandingPagesListResponse();
+
+ LandingPagesListResponse.fromJson(core.Map _json) {
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
+ if (_json.containsKey("landingPages")) {
+ landingPages = _json["landingPages"].map((value) => new LandingPage.fromJson(value)).toList();
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
+ if (landingPages != null) {
+ _json["landingPages"] = landingPages.map((value) => (value).toJson()).toList();
}
return _json;
}
}
-/**
- * Contains information about where a user's browser is taken after the user
- * clicks an ad.
- */
-class LandingPage {
+/** Contains information about a language that can be targeted by ads. */
+class Language {
/**
- * Whether or not this landing page will be assigned to any ads or creatives
- * that do not have a landing page assigned explicitly. Only one default
- * landing page is allowed per campaign.
+ * Language ID of this language. This is the ID used for targeting and
+ * generating reports.
*/
- core.bool default_;
- /** ID of this landing page. This is a read-only, auto-generated field. */
core.String id;
/**
* Identifies what kind of resource this is. Value: the fixed string
- * "dfareporting#landingPage".
+ * "dfareporting#language".
*/
core.String kind;
/**
- * Name of this landing page. This is a required field. It must be less than
- * 256 characters long, and must be unique among landing pages of the same
- * campaign.
+ * Format of language code is an ISO 639 two-letter language code optionally
+ * followed by an underscore followed by an ISO 3166 code. Examples are "en"
+ * for English or "zh_CN" for Simplified Chinese.
*/
+ core.String languageCode;
+ /** Name of this language. */
core.String name;
- /** URL of this landing page. This is a required field. */
- core.String url;
- LandingPage();
+ Language();
- LandingPage.fromJson(core.Map _json) {
- if (_json.containsKey("default")) {
- default_ = _json["default"];
- }
+ Language.fromJson(core.Map _json) {
if (_json.containsKey("id")) {
id = _json["id"];
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
}
+ if (_json.containsKey("languageCode")) {
+ languageCode = _json["languageCode"];
+ }
if (_json.containsKey("name")) {
name = _json["name"];
}
- if (_json.containsKey("url")) {
- url = _json["url"];
- }
}
core.Map toJson() {
var _json = new core.Map();
- if (default_ != null) {
- _json["default"] = default_;
- }
if (id != null) {
_json["id"] = id;
}
if (kind != null) {
_json["kind"] = kind;
}
+ if (languageCode != null) {
+ _json["languageCode"] = languageCode;
+ }
if (name != null) {
_json["name"] = name;
}
- if (url != null) {
- _json["url"] = url;
+ return _json;
+ }
+}
+
+/** Language Targeting. */
+class LanguageTargeting {
+ /**
+ * Languages that this ad targets. For each language only languageId is
+ * required. The other fields are populated automatically when the ad is
+ * inserted or updated.
+ */
+ core.List<Language> languages;
+
+ LanguageTargeting();
+
+ LanguageTargeting.fromJson(core.Map _json) {
+ if (_json.containsKey("languages")) {
+ languages = _json["languages"].map((value) => new Language.fromJson(value)).toList();
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (languages != null) {
+ _json["languages"] = languages.map((value) => (value).toJson()).toList();
}
return _json;
}
}
-/** Landing Page List Response */
-class LandingPagesListResponse {
+/** Language List Response */
+class LanguagesListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
- * "dfareporting#landingPagesListResponse".
+ * "dfareporting#languagesListResponse".
*/
core.String kind;
- /** Landing page collection */
- core.List<LandingPage> landingPages;
+ /** Language collection. */
+ core.List<Language> languages;
- LandingPagesListResponse();
+ LanguagesListResponse();
- LandingPagesListResponse.fromJson(core.Map _json) {
+ LanguagesListResponse.fromJson(core.Map _json) {
if (_json.containsKey("kind")) {
kind = _json["kind"];
}
- if (_json.containsKey("landingPages")) {
- landingPages = _json["landingPages"].map((value) => new LandingPage.fromJson(value)).toList();
+ if (_json.containsKey("languages")) {
+ languages = _json["languages"].map((value) => new Language.fromJson(value)).toList();
}
}
@@ -21018,8 +21700,8 @@ class LandingPagesListResponse {
if (kind != null) {
_json["kind"] = kind;
}
- if (landingPages != null) {
- _json["landingPages"] = landingPages.map((value) => (value).toJson()).toList();
+ if (languages != null) {
+ _json["languages"] = languages.map((value) => (value).toJson()).toList();
}
return _json;
}
@@ -23754,6 +24436,7 @@ class Pricing {
* - "PLANNING_PLACEMENT_PRICING_TYPE_CPA"
* - "PLANNING_PLACEMENT_PRICING_TYPE_CPC"
* - "PLANNING_PLACEMENT_PRICING_TYPE_CPM"
+ * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM_ACTIVEVIEW"
* - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS"
* - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS"
* - "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS"
@@ -23848,6 +24531,7 @@ class PricingSchedule {
* - "PRICING_TYPE_CPA"
* - "PRICING_TYPE_CPC"
* - "PRICING_TYPE_CPM"
+ * - "PRICING_TYPE_CPM_ACTIVEVIEW"
* - "PRICING_TYPE_FLAT_RATE_CLICKS"
* - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS"
*/
@@ -24059,6 +24743,8 @@ class Project {
core.String targetCpaNanos;
/** CPC that the advertiser is targeting. */
core.String targetCpcNanos;
+ /** vCPM from Active View that the advertiser is targeting. */
+ core.String targetCpmActiveViewNanos;
/** CPM that the advertiser is targeting. */
core.String targetCpmNanos;
/** Number of impressions that the advertiser is targeting. */
@@ -24124,6 +24810,9 @@ class Project {
if (_json.containsKey("targetCpcNanos")) {
targetCpcNanos = _json["targetCpcNanos"];
}
+ if (_json.containsKey("targetCpmActiveViewNanos")) {
+ targetCpmActiveViewNanos = _json["targetCpmActiveViewNanos"];
+ }
if (_json.containsKey("targetCpmNanos")) {
targetCpmNanos = _json["targetCpmNanos"];
}
@@ -24191,6 +24880,9 @@ class Project {
if (targetCpcNanos != null) {
_json["targetCpcNanos"] = targetCpcNanos;
}
+ if (targetCpmActiveViewNanos != null) {
+ _json["targetCpmActiveViewNanos"] = targetCpmActiveViewNanos;
+ }
if (targetCpmNanos != null) {
_json["targetCpmNanos"] = targetCpmNanos;
}
@@ -25795,39 +26487,90 @@ class ReportsConfiguration {
/** Rich Media Exit Override. */
class RichMediaExitOverride {
/**
- * Click-through URL to override the default exit URL. Applicable if the
- * useCustomExitUrl field is set to true.
+ * Click-through URL of this rich media exit override. Applicable if the
+ * enabled field is set to true.
+ */
+ ClickThroughUrl clickThroughUrl;
+ /**
+ * Whether to use the clickThroughUrl. If false, the creative-level exit will
+ * be used.
*/
- core.String customExitUrl;
+ core.bool enabled;
/** ID for the override to refer to a specific exit in the creative. */
core.String exitId;
- /** Whether to use the custom exit URL. */
- core.bool useCustomExitUrl;
RichMediaExitOverride();
RichMediaExitOverride.fromJson(core.Map _json) {
- if (_json.containsKey("customExitUrl")) {
- customExitUrl = _json["customExitUrl"];
+ if (_json.containsKey("clickThroughUrl")) {
+ clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]);
+ }
+ if (_json.containsKey("enabled")) {
+ enabled = _json["enabled"];
}
if (_json.containsKey("exitId")) {
exitId = _json["exitId"];
}
- if (_json.containsKey("useCustomExitUrl")) {
- useCustomExitUrl = _json["useCustomExitUrl"];
- }
}
core.Map toJson() {
var _json = new core.Map();
- if (customExitUrl != null) {
- _json["customExitUrl"] = customExitUrl;
+ if (clickThroughUrl != null) {
+ _json["clickThroughUrl"] = (clickThroughUrl).toJson();
+ }
+ if (enabled != null) {
+ _json["enabled"] = enabled;
}
if (exitId != null) {
_json["exitId"] = exitId;
}
- if (useCustomExitUrl != null) {
- _json["useCustomExitUrl"] = useCustomExitUrl;
+ return _json;
+ }
+}
+
+/**
+ * A rule associates an asset with a targeting template for asset-level
+ * targeting. Applicable to INSTREAM_VIDEO creatives.
+ */
+class Rule {
+ /**
+ * A creativeAssets[].id. This should refer to one of the parent assets in
+ * this creative. This is a required field.
+ */
+ core.String assetId;
+ /** A user-friendly name for this rule. This is a required field. */
+ core.String name;
+ /**
+ * A targeting template ID. The targeting from the targeting template will be
+ * used to determine whether this asset should be served. This is a required
+ * field.
+ */
+ core.String targetingTemplateId;
+
+ Rule();
+
+ Rule.fromJson(core.Map _json) {
+ if (_json.containsKey("assetId")) {
+ assetId = _json["assetId"];
+ }
+ if (_json.containsKey("name")) {
+ name = _json["name"];
+ }
+ if (_json.containsKey("targetingTemplateId")) {
+ targetingTemplateId = _json["targetingTemplateId"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (assetId != null) {
+ _json["assetId"] = assetId;
+ }
+ if (name != null) {
+ _json["name"] = name;
+ }
+ if (targetingTemplateId != null) {
+ _json["targetingTemplateId"] = targetingTemplateId;
}
return _json;
}
@@ -26806,18 +27549,200 @@ class TargetableRemarketingListsListResponse {
}
}
+/**
+ * Contains properties of a targeting template. A targeting template
+ * encapsulates targeting information which can be reused across multiple ads.
+ */
+class TargetingTemplate {
+ /**
+ * Account ID of this targeting template. This field, if left unset, will be
+ * auto-generated on insert and is read-only after insert.
+ */
+ core.String accountId;
+ /**
+ * Advertiser ID of this targeting template. This is a required field on
+ * insert and is read-only after insert.
+ */
+ core.String advertiserId;
+ /**
+ * Dimension value for the ID of the advertiser. This is a read-only,
+ * auto-generated field.
+ */
+ DimensionValue advertiserIdDimensionValue;
+ /** Time and day targeting criteria. */
+ DayPartTargeting dayPartTargeting;
+ /** Geographical targeting criteria. */
+ GeoTargeting geoTargeting;
+ /**
+ * ID of this targeting template. This is a read-only, auto-generated field.
+ */
+ core.String id;
+ /** Key-value targeting criteria. */
+ KeyValueTargetingExpression keyValueTargetingExpression;
+ /**
+ * Identifies what kind of resource this is. Value: the fixed string
+ * "dfareporting#targetingTemplate".
+ */
+ core.String kind;
+ /** Language targeting criteria. */
+ LanguageTargeting languageTargeting;
+ /** Remarketing list targeting criteria. */
+ ListTargetingExpression listTargetingExpression;
+ /**
+ * Name of this targeting template. This field is required. It must be less
+ * than 256 characters long and unique within an advertiser.
+ */
+ core.String name;
+ /**
+ * Subaccount ID of this targeting template. This field, if left unset, will
+ * be auto-generated on insert and is read-only after insert.
+ */
+ core.String subaccountId;
+ /** Technology platform targeting criteria. */
+ TechnologyTargeting technologyTargeting;
+
+ TargetingTemplate();
+
+ TargetingTemplate.fromJson(core.Map _json) {
+ if (_json.containsKey("accountId")) {
+ accountId = _json["accountId"];
+ }
+ if (_json.containsKey("advertiserId")) {
+ advertiserId = _json["advertiserId"];
+ }
+ if (_json.containsKey("advertiserIdDimensionValue")) {
+ advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]);
+ }
+ if (_json.containsKey("dayPartTargeting")) {
+ dayPartTargeting = new DayPartTargeting.fromJson(_json["dayPartTargeting"]);
+ }
+ if (_json.containsKey("geoTargeting")) {
+ geoTargeting = new GeoTargeting.fromJson(_json["geoTargeting"]);
+ }
+ if (_json.containsKey("id")) {
+ id = _json["id"];
+ }
+ if (_json.containsKey("keyValueTargetingExpression")) {
+ keyValueTargetingExpression = new KeyValueTargetingExpression.fromJson(_json["keyValueTargetingExpression"]);
+ }
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
+ if (_json.containsKey("languageTargeting")) {
+ languageTargeting = new LanguageTargeting.fromJson(_json["languageTargeting"]);
+ }
+ if (_json.containsKey("listTargetingExpression")) {
+ listTargetingExpression = new ListTargetingExpression.fromJson(_json["listTargetingExpression"]);
+ }
+ if (_json.containsKey("name")) {
+ name = _json["name"];
+ }
+ if (_json.containsKey("subaccountId")) {
+ subaccountId = _json["subaccountId"];
+ }
+ if (_json.containsKey("technologyTargeting")) {
+ technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTargeting"]);
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (accountId != null) {
+ _json["accountId"] = accountId;
+ }
+ if (advertiserId != null) {
+ _json["advertiserId"] = advertiserId;
+ }
+ if (advertiserIdDimensionValue != null) {
+ _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson();
+ }
+ if (dayPartTargeting != null) {
+ _json["dayPartTargeting"] = (dayPartTargeting).toJson();
+ }
+ if (geoTargeting != null) {
+ _json["geoTargeting"] = (geoTargeting).toJson();
+ }
+ if (id != null) {
+ _json["id"] = id;
+ }
+ if (keyValueTargetingExpression != null) {
+ _json["keyValueTargetingExpression"] = (keyValueTargetingExpression).toJson();
+ }
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
+ if (languageTargeting != null) {
+ _json["languageTargeting"] = (languageTargeting).toJson();
+ }
+ if (listTargetingExpression != null) {
+ _json["listTargetingExpression"] = (listTargetingExpression).toJson();
+ }
+ if (name != null) {
+ _json["name"] = name;
+ }
+ if (subaccountId != null) {
+ _json["subaccountId"] = subaccountId;
+ }
+ if (technologyTargeting != null) {
+ _json["technologyTargeting"] = (technologyTargeting).toJson();
+ }
+ return _json;
+ }
+}
+
+/** Targeting Template List Response */
+class TargetingTemplatesListResponse {
+ /**
+ * Identifies what kind of resource this is. Value: the fixed string
+ * "dfareporting#targetingTemplatesListResponse".
+ */
+ core.String kind;
+ /** Pagination token to be used for the next list operation. */
+ core.String nextPageToken;
+ /** Targeting template collection. */
+ core.List<TargetingTemplate> targetingTemplates;
+
+ TargetingTemplatesListResponse();
+
+ TargetingTemplatesListResponse.fromJson(core.Map _json) {
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
+ if (_json.containsKey("nextPageToken")) {
+ nextPageToken = _json["nextPageToken"];
+ }
+ if (_json.containsKey("targetingTemplates")) {
+ targetingTemplates = _json["targetingTemplates"].map((value) => new TargetingTemplate.fromJson(value)).toList();
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
+ if (nextPageToken != null) {
+ _json["nextPageToken"] = nextPageToken;
+ }
+ if (targetingTemplates != null) {
+ _json["targetingTemplates"] = targetingTemplates.map((value) => (value).toJson()).toList();
+ }
+ return _json;
+ }
+}
+
/** Technology Targeting. */
class TechnologyTargeting {
/**
* Browsers that this ad targets. For each browser either set browserVersionId
* or dartId along with the version numbers. If both are specified, only
- * browserVersionId will be used.The other fields are populated automatically
+ * browserVersionId will be used. The other fields are populated automatically
* when the ad is inserted or updated.
*/
core.List<Browser> browsers;
/**
* Connection types that this ad targets. For each connection type only id is
- * required.The other fields are populated automatically when the ad is
+ * required. The other fields are populated automatically when the ad is
* inserted or updated.
*/
core.List<ConnectionType> connectionTypes;
@@ -27003,6 +27928,7 @@ class UserDefinedVariableConfiguration {
* Possible string values are:
* - "U1"
* - "U10"
+ * - "U100"
* - "U11"
* - "U12"
* - "U13"
@@ -27014,13 +27940,92 @@ class UserDefinedVariableConfiguration {
* - "U19"
* - "U2"
* - "U20"
+ * - "U21"
+ * - "U22"
+ * - "U23"
+ * - "U24"
+ * - "U25"
+ * - "U26"
+ * - "U27"
+ * - "U28"
+ * - "U29"
* - "U3"
+ * - "U30"
+ * - "U31"
+ * - "U32"
+ * - "U33"
+ * - "U34"
+ * - "U35"
+ * - "U36"
+ * - "U37"
+ * - "U38"
+ * - "U39"
* - "U4"
+ * - "U40"
+ * - "U41"
+ * - "U42"
+ * - "U43"
+ * - "U44"
+ * - "U45"
+ * - "U46"
+ * - "U47"
+ * - "U48"
+ * - "U49"
* - "U5"
+ * - "U50"
+ * - "U51"
+ * - "U52"
+ * - "U53"
+ * - "U54"
+ * - "U55"
+ * - "U56"
+ * - "U57"
+ * - "U58"
+ * - "U59"
* - "U6"
+ * - "U60"
+ * - "U61"
+ * - "U62"
+ * - "U63"
+ * - "U64"
+ * - "U65"
+ * - "U66"
+ * - "U67"
+ * - "U68"
+ * - "U69"
* - "U7"
+ * - "U70"
+ * - "U71"
+ * - "U72"
+ * - "U73"
+ * - "U74"
+ * - "U75"
+ * - "U76"
+ * - "U77"
+ * - "U78"
+ * - "U79"
* - "U8"
+ * - "U80"
+ * - "U81"
+ * - "U82"
+ * - "U83"
+ * - "U84"
+ * - "U85"
+ * - "U86"
+ * - "U87"
+ * - "U88"
+ * - "U89"
* - "U9"
+ * - "U90"
+ * - "U91"
+ * - "U92"
+ * - "U93"
+ * - "U94"
+ * - "U95"
+ * - "U96"
+ * - "U97"
+ * - "U98"
+ * - "U99"
*/
core.String variableType;
« no previous file with comments | « generated/googleapis/lib/dfareporting/v2_5.dart ('k') | generated/googleapis/lib/fitness/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698