| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.dfareporting.v2_5; | 3 library googleapis.dfareporting.v2_6; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, | 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
| 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, | 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
| 15 ByteRange; | 15 ByteRange; |
| 16 | 16 |
| 17 const core.String USER_AGENT = 'dart-api-client dfareporting/v2.5'; | 17 const core.String USER_AGENT = 'dart-api-client dfareporting/v2.6'; |
| 18 | 18 |
| 19 /** Manages your DoubleClick Campaign Manager ad campaigns and reports. */ | 19 /** Manages your DoubleClick Campaign Manager ad campaigns and reports. */ |
| 20 class DfareportingApi { | 20 class DfareportingApi { |
| 21 /** Manage DoubleClick Digital Marketing conversions */ | 21 /** Manage DoubleClick Digital Marketing conversions */ |
| 22 static const DdmconversionsScope = "https://www.googleapis.com/auth/ddmconvers
ions"; | 22 static const DdmconversionsScope = "https://www.googleapis.com/auth/ddmconvers
ions"; |
| 23 | 23 |
| 24 /** View and manage DoubleClick for Advertisers reports */ | 24 /** View and manage DoubleClick for Advertisers reports */ |
| 25 static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting
"; | 25 static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting
"; |
| 26 | 26 |
| 27 /** | 27 /** |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 DirectorySiteContactsResourceApi get directorySiteContacts => new DirectorySit
eContactsResourceApi(_requester); | 59 DirectorySiteContactsResourceApi get directorySiteContacts => new DirectorySit
eContactsResourceApi(_requester); |
| 60 DirectorySitesResourceApi get directorySites => new DirectorySitesResourceApi(
_requester); | 60 DirectorySitesResourceApi get directorySites => new DirectorySitesResourceApi(
_requester); |
| 61 DynamicTargetingKeysResourceApi get dynamicTargetingKeys => new DynamicTargeti
ngKeysResourceApi(_requester); | 61 DynamicTargetingKeysResourceApi get dynamicTargetingKeys => new DynamicTargeti
ngKeysResourceApi(_requester); |
| 62 EventTagsResourceApi get eventTags => new EventTagsResourceApi(_requester); | 62 EventTagsResourceApi get eventTags => new EventTagsResourceApi(_requester); |
| 63 FilesResourceApi get files => new FilesResourceApi(_requester); | 63 FilesResourceApi get files => new FilesResourceApi(_requester); |
| 64 FloodlightActivitiesResourceApi get floodlightActivities => new FloodlightActi
vitiesResourceApi(_requester); | 64 FloodlightActivitiesResourceApi get floodlightActivities => new FloodlightActi
vitiesResourceApi(_requester); |
| 65 FloodlightActivityGroupsResourceApi get floodlightActivityGroups => new Floodl
ightActivityGroupsResourceApi(_requester); | 65 FloodlightActivityGroupsResourceApi get floodlightActivityGroups => new Floodl
ightActivityGroupsResourceApi(_requester); |
| 66 FloodlightConfigurationsResourceApi get floodlightConfigurations => new Floodl
ightConfigurationsResourceApi(_requester); | 66 FloodlightConfigurationsResourceApi get floodlightConfigurations => new Floodl
ightConfigurationsResourceApi(_requester); |
| 67 InventoryItemsResourceApi get inventoryItems => new InventoryItemsResourceApi(
_requester); | 67 InventoryItemsResourceApi get inventoryItems => new InventoryItemsResourceApi(
_requester); |
| 68 LandingPagesResourceApi get landingPages => new LandingPagesResourceApi(_reque
ster); | 68 LandingPagesResourceApi get landingPages => new LandingPagesResourceApi(_reque
ster); |
| 69 LanguagesResourceApi get languages => new LanguagesResourceApi(_requester); |
| 69 MetrosResourceApi get metros => new MetrosResourceApi(_requester); | 70 MetrosResourceApi get metros => new MetrosResourceApi(_requester); |
| 70 MobileCarriersResourceApi get mobileCarriers => new MobileCarriersResourceApi(
_requester); | 71 MobileCarriersResourceApi get mobileCarriers => new MobileCarriersResourceApi(
_requester); |
| 71 OperatingSystemVersionsResourceApi get operatingSystemVersions => new Operatin
gSystemVersionsResourceApi(_requester); | 72 OperatingSystemVersionsResourceApi get operatingSystemVersions => new Operatin
gSystemVersionsResourceApi(_requester); |
| 72 OperatingSystemsResourceApi get operatingSystems => new OperatingSystemsResour
ceApi(_requester); | 73 OperatingSystemsResourceApi get operatingSystems => new OperatingSystemsResour
ceApi(_requester); |
| 73 OrderDocumentsResourceApi get orderDocuments => new OrderDocumentsResourceApi(
_requester); | 74 OrderDocumentsResourceApi get orderDocuments => new OrderDocumentsResourceApi(
_requester); |
| 74 OrdersResourceApi get orders => new OrdersResourceApi(_requester); | 75 OrdersResourceApi get orders => new OrdersResourceApi(_requester); |
| 75 PlacementGroupsResourceApi get placementGroups => new PlacementGroupsResourceA
pi(_requester); | 76 PlacementGroupsResourceApi get placementGroups => new PlacementGroupsResourceA
pi(_requester); |
| 76 PlacementStrategiesResourceApi get placementStrategies => new PlacementStrateg
iesResourceApi(_requester); | 77 PlacementStrategiesResourceApi get placementStrategies => new PlacementStrateg
iesResourceApi(_requester); |
| 77 PlacementsResourceApi get placements => new PlacementsResourceApi(_requester); | 78 PlacementsResourceApi get placements => new PlacementsResourceApi(_requester); |
| 78 PlatformTypesResourceApi get platformTypes => new PlatformTypesResourceApi(_re
quester); | 79 PlatformTypesResourceApi get platformTypes => new PlatformTypesResourceApi(_re
quester); |
| 79 PostalCodesResourceApi get postalCodes => new PostalCodesResourceApi(_requeste
r); | 80 PostalCodesResourceApi get postalCodes => new PostalCodesResourceApi(_requeste
r); |
| 80 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 81 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
| 81 RegionsResourceApi get regions => new RegionsResourceApi(_requester); | 82 RegionsResourceApi get regions => new RegionsResourceApi(_requester); |
| 82 RemarketingListSharesResourceApi get remarketingListShares => new RemarketingL
istSharesResourceApi(_requester); | 83 RemarketingListSharesResourceApi get remarketingListShares => new RemarketingL
istSharesResourceApi(_requester); |
| 83 RemarketingListsResourceApi get remarketingLists => new RemarketingListsResour
ceApi(_requester); | 84 RemarketingListsResourceApi get remarketingLists => new RemarketingListsResour
ceApi(_requester); |
| 84 ReportsResourceApi get reports => new ReportsResourceApi(_requester); | 85 ReportsResourceApi get reports => new ReportsResourceApi(_requester); |
| 85 SitesResourceApi get sites => new SitesResourceApi(_requester); | 86 SitesResourceApi get sites => new SitesResourceApi(_requester); |
| 86 SizesResourceApi get sizes => new SizesResourceApi(_requester); | 87 SizesResourceApi get sizes => new SizesResourceApi(_requester); |
| 87 SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requeste
r); | 88 SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requeste
r); |
| 88 TargetableRemarketingListsResourceApi get targetableRemarketingLists => new Ta
rgetableRemarketingListsResourceApi(_requester); | 89 TargetableRemarketingListsResourceApi get targetableRemarketingLists => new Ta
rgetableRemarketingListsResourceApi(_requester); |
| 90 TargetingTemplatesResourceApi get targetingTemplates => new TargetingTemplates
ResourceApi(_requester); |
| 89 UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_reque
ster); | 91 UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_reque
ster); |
| 90 UserRolePermissionGroupsResourceApi get userRolePermissionGroups => new UserRo
lePermissionGroupsResourceApi(_requester); | 92 UserRolePermissionGroupsResourceApi get userRolePermissionGroups => new UserRo
lePermissionGroupsResourceApi(_requester); |
| 91 UserRolePermissionsResourceApi get userRolePermissions => new UserRolePermissi
onsResourceApi(_requester); | 93 UserRolePermissionsResourceApi get userRolePermissions => new UserRolePermissi
onsResourceApi(_requester); |
| 92 UserRolesResourceApi get userRoles => new UserRolesResourceApi(_requester); | 94 UserRolesResourceApi get userRoles => new UserRolesResourceApi(_requester); |
| 93 | 95 |
| 94 DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googlea
pis.com/", core.String servicePath: "dfareporting/v2.5/"}) : | 96 DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googlea
pis.com/", core.String servicePath: "dfareporting/v2.6/"}) : |
| 95 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 97 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 96 } | 98 } |
| 97 | 99 |
| 98 | 100 |
| 99 class AccountActiveAdSummariesResourceApi { | 101 class AccountActiveAdSummariesResourceApi { |
| 100 final commons.ApiRequester _requester; | 102 final commons.ApiRequester _requester; |
| 101 | 103 |
| 102 AccountActiveAdSummariesResourceApi(commons.ApiRequester client) : | 104 AccountActiveAdSummariesResourceApi(commons.ApiRequester client) : |
| 103 _requester = client; | 105 _requester = client; |
| 104 | 106 |
| (...skipping 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2501 * - "OBJECT_PLACEMENT" | 2503 * - "OBJECT_PLACEMENT" |
| 2502 * - "OBJECT_PLACEMENT_STRATEGY" | 2504 * - "OBJECT_PLACEMENT_STRATEGY" |
| 2503 * - "OBJECT_PLAYSTORE_LINK" | 2505 * - "OBJECT_PLAYSTORE_LINK" |
| 2504 * - "OBJECT_PROVIDED_LIST_CLIENT" | 2506 * - "OBJECT_PROVIDED_LIST_CLIENT" |
| 2505 * - "OBJECT_RATE_CARD" | 2507 * - "OBJECT_RATE_CARD" |
| 2506 * - "OBJECT_REMARKETING_LIST" | 2508 * - "OBJECT_REMARKETING_LIST" |
| 2507 * - "OBJECT_RICHMEDIA_CREATIVE" | 2509 * - "OBJECT_RICHMEDIA_CREATIVE" |
| 2508 * - "OBJECT_SD_SITE" | 2510 * - "OBJECT_SD_SITE" |
| 2509 * - "OBJECT_SIZE" | 2511 * - "OBJECT_SIZE" |
| 2510 * - "OBJECT_SUBACCOUNT" | 2512 * - "OBJECT_SUBACCOUNT" |
| 2513 * - "OBJECT_TARGETING_TEMPLATE" |
| 2511 * - "OBJECT_USER_PROFILE" | 2514 * - "OBJECT_USER_PROFILE" |
| 2512 * - "OBJECT_USER_PROFILE_FILTER" | 2515 * - "OBJECT_USER_PROFILE_FILTER" |
| 2513 * - "OBJECT_USER_ROLE" | 2516 * - "OBJECT_USER_ROLE" |
| 2514 * | 2517 * |
| 2515 * [pageToken] - Value of the nextPageToken from the previous result page. | 2518 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 2516 * | 2519 * |
| 2517 * [searchString] - Select only change logs whose object ID, user name, old or | 2520 * [searchString] - Select only change logs whose object ID, user name, old or |
| 2518 * new values match the search string. | 2521 * new values match the search string. |
| 2519 * | 2522 * |
| 2520 * [userProfileIds] - Select only change logs with these user profile IDs. | 2523 * [userProfileIds] - Select only change logs with these user profile IDs. |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3252 if (advertiserId == null) { | 3255 if (advertiserId == null) { |
| 3253 throw new core.ArgumentError("Parameter advertiserId is required."); | 3256 throw new core.ArgumentError("Parameter advertiserId is required."); |
| 3254 } | 3257 } |
| 3255 | 3258 |
| 3256 _uploadMedia = uploadMedia; | 3259 _uploadMedia = uploadMedia; |
| 3257 _uploadOptions = uploadOptions; | 3260 _uploadOptions = uploadOptions; |
| 3258 | 3261 |
| 3259 if (_uploadMedia == null) { | 3262 if (_uploadMedia == null) { |
| 3260 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/c
reativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAss
ets'; | 3263 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/c
reativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAss
ets'; |
| 3261 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 3264 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 3262 _url = '/resumable/upload/dfareporting/v2.5/userprofiles/' + commons.Escap
er.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVaria
ble('$advertiserId') + '/creativeAssets'; | 3265 _url = '/resumable/upload/dfareporting/v2.6/userprofiles/' + commons.Escap
er.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVaria
ble('$advertiserId') + '/creativeAssets'; |
| 3263 } else { | 3266 } else { |
| 3264 _url = '/upload/dfareporting/v2.5/userprofiles/' + commons.Escaper.ecapeVa
riable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$adve
rtiserId') + '/creativeAssets'; | 3267 _url = '/upload/dfareporting/v2.6/userprofiles/' + commons.Escaper.ecapeVa
riable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$adve
rtiserId') + '/creativeAssets'; |
| 3265 } | 3268 } |
| 3266 | 3269 |
| 3267 | 3270 |
| 3268 var _response = _requester.request(_url, | 3271 var _response = _requester.request(_url, |
| 3269 "POST", | 3272 "POST", |
| 3270 body: _body, | 3273 body: _body, |
| 3271 queryParams: _queryParams, | 3274 queryParams: _queryParams, |
| 3272 uploadOptions: _uploadOptions, | 3275 uploadOptions: _uploadOptions, |
| 3273 uploadMedia: _uploadMedia, | 3276 uploadMedia: _uploadMedia, |
| 3274 downloadOptions: _downloadOptions); | 3277 downloadOptions: _downloadOptions); |
| (...skipping 3740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7015 queryParams: _queryParams, | 7018 queryParams: _queryParams, |
| 7016 uploadOptions: _uploadOptions, | 7019 uploadOptions: _uploadOptions, |
| 7017 uploadMedia: _uploadMedia, | 7020 uploadMedia: _uploadMedia, |
| 7018 downloadOptions: _downloadOptions); | 7021 downloadOptions: _downloadOptions); |
| 7019 return _response.then((data) => new LandingPage.fromJson(data)); | 7022 return _response.then((data) => new LandingPage.fromJson(data)); |
| 7020 } | 7023 } |
| 7021 | 7024 |
| 7022 } | 7025 } |
| 7023 | 7026 |
| 7024 | 7027 |
| 7028 class LanguagesResourceApi { |
| 7029 final commons.ApiRequester _requester; |
| 7030 |
| 7031 LanguagesResourceApi(commons.ApiRequester client) : |
| 7032 _requester = client; |
| 7033 |
| 7034 /** |
| 7035 * Retrieves a list of languages. |
| 7036 * |
| 7037 * Request parameters: |
| 7038 * |
| 7039 * [profileId] - User profile ID associated with this request. |
| 7040 * |
| 7041 * Completes with a [LanguagesListResponse]. |
| 7042 * |
| 7043 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7044 * error. |
| 7045 * |
| 7046 * If the used [http.Client] completes with an error when making a REST call, |
| 7047 * this method will complete with the same error. |
| 7048 */ |
| 7049 async.Future<LanguagesListResponse> list(core.String profileId) { |
| 7050 var _url = null; |
| 7051 var _queryParams = new core.Map(); |
| 7052 var _uploadMedia = null; |
| 7053 var _uploadOptions = null; |
| 7054 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7055 var _body = null; |
| 7056 |
| 7057 if (profileId == null) { |
| 7058 throw new core.ArgumentError("Parameter profileId is required."); |
| 7059 } |
| 7060 |
| 7061 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/lan
guages'; |
| 7062 |
| 7063 var _response = _requester.request(_url, |
| 7064 "GET", |
| 7065 body: _body, |
| 7066 queryParams: _queryParams, |
| 7067 uploadOptions: _uploadOptions, |
| 7068 uploadMedia: _uploadMedia, |
| 7069 downloadOptions: _downloadOptions); |
| 7070 return _response.then((data) => new LanguagesListResponse.fromJson(data)); |
| 7071 } |
| 7072 |
| 7073 } |
| 7074 |
| 7075 |
| 7025 class MetrosResourceApi { | 7076 class MetrosResourceApi { |
| 7026 final commons.ApiRequester _requester; | 7077 final commons.ApiRequester _requester; |
| 7027 | 7078 |
| 7028 MetrosResourceApi(commons.ApiRequester client) : | 7079 MetrosResourceApi(commons.ApiRequester client) : |
| 7029 _requester = client; | 7080 _requester = client; |
| 7030 | 7081 |
| 7031 /** | 7082 /** |
| 7032 * Retrieves a list of metros. | 7083 * Retrieves a list of metros. |
| 7033 * | 7084 * |
| 7034 * Request parameters: | 7085 * Request parameters: |
| (...skipping 3977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11012 queryParams: _queryParams, | 11063 queryParams: _queryParams, |
| 11013 uploadOptions: _uploadOptions, | 11064 uploadOptions: _uploadOptions, |
| 11014 uploadMedia: _uploadMedia, | 11065 uploadMedia: _uploadMedia, |
| 11015 downloadOptions: _downloadOptions); | 11066 downloadOptions: _downloadOptions); |
| 11016 return _response.then((data) => new TargetableRemarketingListsListResponse.f
romJson(data)); | 11067 return _response.then((data) => new TargetableRemarketingListsListResponse.f
romJson(data)); |
| 11017 } | 11068 } |
| 11018 | 11069 |
| 11019 } | 11070 } |
| 11020 | 11071 |
| 11021 | 11072 |
| 11073 class TargetingTemplatesResourceApi { |
| 11074 final commons.ApiRequester _requester; |
| 11075 |
| 11076 TargetingTemplatesResourceApi(commons.ApiRequester client) : |
| 11077 _requester = client; |
| 11078 |
| 11079 /** |
| 11080 * Gets one targeting template by ID. |
| 11081 * |
| 11082 * Request parameters: |
| 11083 * |
| 11084 * [profileId] - User profile ID associated with this request. |
| 11085 * |
| 11086 * [id] - Targeting template ID. |
| 11087 * |
| 11088 * Completes with a [TargetingTemplate]. |
| 11089 * |
| 11090 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 11091 * error. |
| 11092 * |
| 11093 * If the used [http.Client] completes with an error when making a REST call, |
| 11094 * this method will complete with the same error. |
| 11095 */ |
| 11096 async.Future<TargetingTemplate> get(core.String profileId, core.String id) { |
| 11097 var _url = null; |
| 11098 var _queryParams = new core.Map(); |
| 11099 var _uploadMedia = null; |
| 11100 var _uploadOptions = null; |
| 11101 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 11102 var _body = null; |
| 11103 |
| 11104 if (profileId == null) { |
| 11105 throw new core.ArgumentError("Parameter profileId is required."); |
| 11106 } |
| 11107 if (id == null) { |
| 11108 throw new core.ArgumentError("Parameter id is required."); |
| 11109 } |
| 11110 |
| 11111 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/tar
getingTemplates/' + commons.Escaper.ecapeVariable('$id'); |
| 11112 |
| 11113 var _response = _requester.request(_url, |
| 11114 "GET", |
| 11115 body: _body, |
| 11116 queryParams: _queryParams, |
| 11117 uploadOptions: _uploadOptions, |
| 11118 uploadMedia: _uploadMedia, |
| 11119 downloadOptions: _downloadOptions); |
| 11120 return _response.then((data) => new TargetingTemplate.fromJson(data)); |
| 11121 } |
| 11122 |
| 11123 /** |
| 11124 * Inserts a new targeting template. |
| 11125 * |
| 11126 * [request] - The metadata request object. |
| 11127 * |
| 11128 * Request parameters: |
| 11129 * |
| 11130 * [profileId] - User profile ID associated with this request. |
| 11131 * |
| 11132 * Completes with a [TargetingTemplate]. |
| 11133 * |
| 11134 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 11135 * error. |
| 11136 * |
| 11137 * If the used [http.Client] completes with an error when making a REST call, |
| 11138 * this method will complete with the same error. |
| 11139 */ |
| 11140 async.Future<TargetingTemplate> insert(TargetingTemplate request, core.String
profileId) { |
| 11141 var _url = null; |
| 11142 var _queryParams = new core.Map(); |
| 11143 var _uploadMedia = null; |
| 11144 var _uploadOptions = null; |
| 11145 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 11146 var _body = null; |
| 11147 |
| 11148 if (request != null) { |
| 11149 _body = convert.JSON.encode((request).toJson()); |
| 11150 } |
| 11151 if (profileId == null) { |
| 11152 throw new core.ArgumentError("Parameter profileId is required."); |
| 11153 } |
| 11154 |
| 11155 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/tar
getingTemplates'; |
| 11156 |
| 11157 var _response = _requester.request(_url, |
| 11158 "POST", |
| 11159 body: _body, |
| 11160 queryParams: _queryParams, |
| 11161 uploadOptions: _uploadOptions, |
| 11162 uploadMedia: _uploadMedia, |
| 11163 downloadOptions: _downloadOptions); |
| 11164 return _response.then((data) => new TargetingTemplate.fromJson(data)); |
| 11165 } |
| 11166 |
| 11167 /** |
| 11168 * Retrieves a list of targeting templates, optionally filtered. |
| 11169 * |
| 11170 * Request parameters: |
| 11171 * |
| 11172 * [profileId] - User profile ID associated with this request. |
| 11173 * |
| 11174 * [advertiserId] - Select only targeting templates with this advertiser ID. |
| 11175 * |
| 11176 * [ids] - Select only targeting templates with these IDs. |
| 11177 * |
| 11178 * [maxResults] - Maximum number of results to return. |
| 11179 * |
| 11180 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 11181 * |
| 11182 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 11183 * are allowed. For example, "template*2015" will return objects with names |
| 11184 * like "template June 2015", "template April 2015", or simply "template |
| 11185 * 2015". Most of the searches also add wildcards implicitly at the start and |
| 11186 * the end of the search string. For example, a search string of "template" |
| 11187 * will match objects with name "my template", "template 2015", or simply |
| 11188 * "template". |
| 11189 * |
| 11190 * [sortField] - Field by which to sort the list. |
| 11191 * Possible string values are: |
| 11192 * - "ID" |
| 11193 * - "NAME" |
| 11194 * |
| 11195 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 11196 * Possible string values are: |
| 11197 * - "ASCENDING" |
| 11198 * - "DESCENDING" |
| 11199 * |
| 11200 * Completes with a [TargetingTemplatesListResponse]. |
| 11201 * |
| 11202 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 11203 * error. |
| 11204 * |
| 11205 * If the used [http.Client] completes with an error when making a REST call, |
| 11206 * this method will complete with the same error. |
| 11207 */ |
| 11208 async.Future<TargetingTemplatesListResponse> list(core.String profileId, {core
.String advertiserId, core.List<core.String> ids, core.int maxResults, core.Stri
ng pageToken, core.String searchString, core.String sortField, core.String sortO
rder}) { |
| 11209 var _url = null; |
| 11210 var _queryParams = new core.Map(); |
| 11211 var _uploadMedia = null; |
| 11212 var _uploadOptions = null; |
| 11213 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 11214 var _body = null; |
| 11215 |
| 11216 if (profileId == null) { |
| 11217 throw new core.ArgumentError("Parameter profileId is required."); |
| 11218 } |
| 11219 if (advertiserId != null) { |
| 11220 _queryParams["advertiserId"] = [advertiserId]; |
| 11221 } |
| 11222 if (ids != null) { |
| 11223 _queryParams["ids"] = ids; |
| 11224 } |
| 11225 if (maxResults != null) { |
| 11226 _queryParams["maxResults"] = ["${maxResults}"]; |
| 11227 } |
| 11228 if (pageToken != null) { |
| 11229 _queryParams["pageToken"] = [pageToken]; |
| 11230 } |
| 11231 if (searchString != null) { |
| 11232 _queryParams["searchString"] = [searchString]; |
| 11233 } |
| 11234 if (sortField != null) { |
| 11235 _queryParams["sortField"] = [sortField]; |
| 11236 } |
| 11237 if (sortOrder != null) { |
| 11238 _queryParams["sortOrder"] = [sortOrder]; |
| 11239 } |
| 11240 |
| 11241 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/tar
getingTemplates'; |
| 11242 |
| 11243 var _response = _requester.request(_url, |
| 11244 "GET", |
| 11245 body: _body, |
| 11246 queryParams: _queryParams, |
| 11247 uploadOptions: _uploadOptions, |
| 11248 uploadMedia: _uploadMedia, |
| 11249 downloadOptions: _downloadOptions); |
| 11250 return _response.then((data) => new TargetingTemplatesListResponse.fromJson(
data)); |
| 11251 } |
| 11252 |
| 11253 /** |
| 11254 * Updates an existing targeting template. This method supports patch |
| 11255 * semantics. |
| 11256 * |
| 11257 * [request] - The metadata request object. |
| 11258 * |
| 11259 * Request parameters: |
| 11260 * |
| 11261 * [profileId] - User profile ID associated with this request. |
| 11262 * |
| 11263 * [id] - Targeting template ID. |
| 11264 * |
| 11265 * Completes with a [TargetingTemplate]. |
| 11266 * |
| 11267 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 11268 * error. |
| 11269 * |
| 11270 * If the used [http.Client] completes with an error when making a REST call, |
| 11271 * this method will complete with the same error. |
| 11272 */ |
| 11273 async.Future<TargetingTemplate> patch(TargetingTemplate request, core.String p
rofileId, core.String id) { |
| 11274 var _url = null; |
| 11275 var _queryParams = new core.Map(); |
| 11276 var _uploadMedia = null; |
| 11277 var _uploadOptions = null; |
| 11278 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 11279 var _body = null; |
| 11280 |
| 11281 if (request != null) { |
| 11282 _body = convert.JSON.encode((request).toJson()); |
| 11283 } |
| 11284 if (profileId == null) { |
| 11285 throw new core.ArgumentError("Parameter profileId is required."); |
| 11286 } |
| 11287 if (id == null) { |
| 11288 throw new core.ArgumentError("Parameter id is required."); |
| 11289 } |
| 11290 _queryParams["id"] = [id]; |
| 11291 |
| 11292 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/tar
getingTemplates'; |
| 11293 |
| 11294 var _response = _requester.request(_url, |
| 11295 "PATCH", |
| 11296 body: _body, |
| 11297 queryParams: _queryParams, |
| 11298 uploadOptions: _uploadOptions, |
| 11299 uploadMedia: _uploadMedia, |
| 11300 downloadOptions: _downloadOptions); |
| 11301 return _response.then((data) => new TargetingTemplate.fromJson(data)); |
| 11302 } |
| 11303 |
| 11304 /** |
| 11305 * Updates an existing targeting template. |
| 11306 * |
| 11307 * [request] - The metadata request object. |
| 11308 * |
| 11309 * Request parameters: |
| 11310 * |
| 11311 * [profileId] - User profile ID associated with this request. |
| 11312 * |
| 11313 * Completes with a [TargetingTemplate]. |
| 11314 * |
| 11315 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 11316 * error. |
| 11317 * |
| 11318 * If the used [http.Client] completes with an error when making a REST call, |
| 11319 * this method will complete with the same error. |
| 11320 */ |
| 11321 async.Future<TargetingTemplate> update(TargetingTemplate request, core.String
profileId) { |
| 11322 var _url = null; |
| 11323 var _queryParams = new core.Map(); |
| 11324 var _uploadMedia = null; |
| 11325 var _uploadOptions = null; |
| 11326 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 11327 var _body = null; |
| 11328 |
| 11329 if (request != null) { |
| 11330 _body = convert.JSON.encode((request).toJson()); |
| 11331 } |
| 11332 if (profileId == null) { |
| 11333 throw new core.ArgumentError("Parameter profileId is required."); |
| 11334 } |
| 11335 |
| 11336 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/tar
getingTemplates'; |
| 11337 |
| 11338 var _response = _requester.request(_url, |
| 11339 "PUT", |
| 11340 body: _body, |
| 11341 queryParams: _queryParams, |
| 11342 uploadOptions: _uploadOptions, |
| 11343 uploadMedia: _uploadMedia, |
| 11344 downloadOptions: _downloadOptions); |
| 11345 return _response.then((data) => new TargetingTemplate.fromJson(data)); |
| 11346 } |
| 11347 |
| 11348 } |
| 11349 |
| 11350 |
| 11022 class UserProfilesResourceApi { | 11351 class UserProfilesResourceApi { |
| 11023 final commons.ApiRequester _requester; | 11352 final commons.ApiRequester _requester; |
| 11024 | 11353 |
| 11025 UserProfilesResourceApi(commons.ApiRequester client) : | 11354 UserProfilesResourceApi(commons.ApiRequester client) : |
| 11026 _requester = client; | 11355 _requester = client; |
| 11027 | 11356 |
| 11028 /** | 11357 /** |
| 11029 * Gets one user profile by ID. | 11358 * Gets one user profile by ID. |
| 11030 * | 11359 * |
| 11031 * Request parameters: | 11360 * Request parameters: |
| (...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11631 core.String accountProfile; | 11960 core.String accountProfile; |
| 11632 /** Whether this account is active. */ | 11961 /** Whether this account is active. */ |
| 11633 core.bool active; | 11962 core.bool active; |
| 11634 /** | 11963 /** |
| 11635 * Maximum number of active ads allowed for this account. | 11964 * Maximum number of active ads allowed for this account. |
| 11636 * Possible string values are: | 11965 * Possible string values are: |
| 11637 * - "ACTIVE_ADS_TIER_100K" | 11966 * - "ACTIVE_ADS_TIER_100K" |
| 11638 * - "ACTIVE_ADS_TIER_200K" | 11967 * - "ACTIVE_ADS_TIER_200K" |
| 11639 * - "ACTIVE_ADS_TIER_300K" | 11968 * - "ACTIVE_ADS_TIER_300K" |
| 11640 * - "ACTIVE_ADS_TIER_40K" | 11969 * - "ACTIVE_ADS_TIER_40K" |
| 11970 * - "ACTIVE_ADS_TIER_500K" |
| 11641 * - "ACTIVE_ADS_TIER_75K" | 11971 * - "ACTIVE_ADS_TIER_75K" |
| 11642 */ | 11972 */ |
| 11643 core.String activeAdsLimitTier; | 11973 core.String activeAdsLimitTier; |
| 11644 /** | 11974 /** |
| 11645 * Whether to serve creatives with Active View tags. If disabled, viewability | 11975 * Whether to serve creatives with Active View tags. If disabled, viewability |
| 11646 * data will not be available for any impressions. | 11976 * data will not be available for any impressions. |
| 11647 */ | 11977 */ |
| 11648 core.bool activeViewOptOut; | 11978 core.bool activeViewOptOut; |
| 11649 /** User role permissions available to the user roles of this account. */ | 11979 /** User role permissions available to the user roles of this account. */ |
| 11650 core.List<core.String> availablePermissionIds; | 11980 core.List<core.String> availablePermissionIds; |
| 11651 /** | |
| 11652 * Whether campaigns created in this account will be enabled for comScore vCE | |
| 11653 * by default. | |
| 11654 */ | |
| 11655 core.bool comscoreVceEnabled; | |
| 11656 /** ID of the country associated with this account. */ | 11981 /** ID of the country associated with this account. */ |
| 11657 core.String countryId; | 11982 core.String countryId; |
| 11658 /** | 11983 /** |
| 11659 * ID of currency associated with this account. This is a required field. | 11984 * ID of currency associated with this account. This is a required field. |
| 11660 * Acceptable values are: | 11985 * Acceptable values are: |
| 11661 * - "1" for USD | 11986 * - "1" for USD |
| 11662 * - "2" for GBP | 11987 * - "2" for GBP |
| 11663 * - "3" for ESP | 11988 * - "3" for ESP |
| 11664 * - "4" for SEK | 11989 * - "4" for SEK |
| 11665 * - "5" for CAD | 11990 * - "5" for CAD |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11746 * characters long and be globally unique. | 12071 * characters long and be globally unique. |
| 11747 */ | 12072 */ |
| 11748 core.String name; | 12073 core.String name; |
| 11749 /** | 12074 /** |
| 11750 * Whether campaigns created in this account will be enabled for Nielsen OCR | 12075 * Whether campaigns created in this account will be enabled for Nielsen OCR |
| 11751 * reach ratings by default. | 12076 * reach ratings by default. |
| 11752 */ | 12077 */ |
| 11753 core.bool nielsenOcrEnabled; | 12078 core.bool nielsenOcrEnabled; |
| 11754 /** Reporting configuration of this account. */ | 12079 /** Reporting configuration of this account. */ |
| 11755 ReportsConfiguration reportsConfiguration; | 12080 ReportsConfiguration reportsConfiguration; |
| 12081 /** Share Path to Conversion reports with Twitter. */ |
| 12082 core.bool shareReportsWithTwitter; |
| 11756 /** | 12083 /** |
| 11757 * File size limit in kilobytes of Rich Media teaser creatives. Must be | 12084 * File size limit in kilobytes of Rich Media teaser creatives. Must be |
| 11758 * between 1 and 10240. | 12085 * between 1 and 10240. |
| 11759 */ | 12086 */ |
| 11760 core.String teaserSizeLimit; | 12087 core.String teaserSizeLimit; |
| 11761 | 12088 |
| 11762 Account(); | 12089 Account(); |
| 11763 | 12090 |
| 11764 Account.fromJson(core.Map _json) { | 12091 Account.fromJson(core.Map _json) { |
| 11765 if (_json.containsKey("accountPermissionIds")) { | 12092 if (_json.containsKey("accountPermissionIds")) { |
| 11766 accountPermissionIds = _json["accountPermissionIds"]; | 12093 accountPermissionIds = _json["accountPermissionIds"]; |
| 11767 } | 12094 } |
| 11768 if (_json.containsKey("accountProfile")) { | 12095 if (_json.containsKey("accountProfile")) { |
| 11769 accountProfile = _json["accountProfile"]; | 12096 accountProfile = _json["accountProfile"]; |
| 11770 } | 12097 } |
| 11771 if (_json.containsKey("active")) { | 12098 if (_json.containsKey("active")) { |
| 11772 active = _json["active"]; | 12099 active = _json["active"]; |
| 11773 } | 12100 } |
| 11774 if (_json.containsKey("activeAdsLimitTier")) { | 12101 if (_json.containsKey("activeAdsLimitTier")) { |
| 11775 activeAdsLimitTier = _json["activeAdsLimitTier"]; | 12102 activeAdsLimitTier = _json["activeAdsLimitTier"]; |
| 11776 } | 12103 } |
| 11777 if (_json.containsKey("activeViewOptOut")) { | 12104 if (_json.containsKey("activeViewOptOut")) { |
| 11778 activeViewOptOut = _json["activeViewOptOut"]; | 12105 activeViewOptOut = _json["activeViewOptOut"]; |
| 11779 } | 12106 } |
| 11780 if (_json.containsKey("availablePermissionIds")) { | 12107 if (_json.containsKey("availablePermissionIds")) { |
| 11781 availablePermissionIds = _json["availablePermissionIds"]; | 12108 availablePermissionIds = _json["availablePermissionIds"]; |
| 11782 } | 12109 } |
| 11783 if (_json.containsKey("comscoreVceEnabled")) { | |
| 11784 comscoreVceEnabled = _json["comscoreVceEnabled"]; | |
| 11785 } | |
| 11786 if (_json.containsKey("countryId")) { | 12110 if (_json.containsKey("countryId")) { |
| 11787 countryId = _json["countryId"]; | 12111 countryId = _json["countryId"]; |
| 11788 } | 12112 } |
| 11789 if (_json.containsKey("currencyId")) { | 12113 if (_json.containsKey("currencyId")) { |
| 11790 currencyId = _json["currencyId"]; | 12114 currencyId = _json["currencyId"]; |
| 11791 } | 12115 } |
| 11792 if (_json.containsKey("defaultCreativeSizeId")) { | 12116 if (_json.containsKey("defaultCreativeSizeId")) { |
| 11793 defaultCreativeSizeId = _json["defaultCreativeSizeId"]; | 12117 defaultCreativeSizeId = _json["defaultCreativeSizeId"]; |
| 11794 } | 12118 } |
| 11795 if (_json.containsKey("description")) { | 12119 if (_json.containsKey("description")) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 11809 } | 12133 } |
| 11810 if (_json.containsKey("name")) { | 12134 if (_json.containsKey("name")) { |
| 11811 name = _json["name"]; | 12135 name = _json["name"]; |
| 11812 } | 12136 } |
| 11813 if (_json.containsKey("nielsenOcrEnabled")) { | 12137 if (_json.containsKey("nielsenOcrEnabled")) { |
| 11814 nielsenOcrEnabled = _json["nielsenOcrEnabled"]; | 12138 nielsenOcrEnabled = _json["nielsenOcrEnabled"]; |
| 11815 } | 12139 } |
| 11816 if (_json.containsKey("reportsConfiguration")) { | 12140 if (_json.containsKey("reportsConfiguration")) { |
| 11817 reportsConfiguration = new ReportsConfiguration.fromJson(_json["reportsCon
figuration"]); | 12141 reportsConfiguration = new ReportsConfiguration.fromJson(_json["reportsCon
figuration"]); |
| 11818 } | 12142 } |
| 12143 if (_json.containsKey("shareReportsWithTwitter")) { |
| 12144 shareReportsWithTwitter = _json["shareReportsWithTwitter"]; |
| 12145 } |
| 11819 if (_json.containsKey("teaserSizeLimit")) { | 12146 if (_json.containsKey("teaserSizeLimit")) { |
| 11820 teaserSizeLimit = _json["teaserSizeLimit"]; | 12147 teaserSizeLimit = _json["teaserSizeLimit"]; |
| 11821 } | 12148 } |
| 11822 } | 12149 } |
| 11823 | 12150 |
| 11824 core.Map toJson() { | 12151 core.Map toJson() { |
| 11825 var _json = new core.Map(); | 12152 var _json = new core.Map(); |
| 11826 if (accountPermissionIds != null) { | 12153 if (accountPermissionIds != null) { |
| 11827 _json["accountPermissionIds"] = accountPermissionIds; | 12154 _json["accountPermissionIds"] = accountPermissionIds; |
| 11828 } | 12155 } |
| 11829 if (accountProfile != null) { | 12156 if (accountProfile != null) { |
| 11830 _json["accountProfile"] = accountProfile; | 12157 _json["accountProfile"] = accountProfile; |
| 11831 } | 12158 } |
| 11832 if (active != null) { | 12159 if (active != null) { |
| 11833 _json["active"] = active; | 12160 _json["active"] = active; |
| 11834 } | 12161 } |
| 11835 if (activeAdsLimitTier != null) { | 12162 if (activeAdsLimitTier != null) { |
| 11836 _json["activeAdsLimitTier"] = activeAdsLimitTier; | 12163 _json["activeAdsLimitTier"] = activeAdsLimitTier; |
| 11837 } | 12164 } |
| 11838 if (activeViewOptOut != null) { | 12165 if (activeViewOptOut != null) { |
| 11839 _json["activeViewOptOut"] = activeViewOptOut; | 12166 _json["activeViewOptOut"] = activeViewOptOut; |
| 11840 } | 12167 } |
| 11841 if (availablePermissionIds != null) { | 12168 if (availablePermissionIds != null) { |
| 11842 _json["availablePermissionIds"] = availablePermissionIds; | 12169 _json["availablePermissionIds"] = availablePermissionIds; |
| 11843 } | 12170 } |
| 11844 if (comscoreVceEnabled != null) { | |
| 11845 _json["comscoreVceEnabled"] = comscoreVceEnabled; | |
| 11846 } | |
| 11847 if (countryId != null) { | 12171 if (countryId != null) { |
| 11848 _json["countryId"] = countryId; | 12172 _json["countryId"] = countryId; |
| 11849 } | 12173 } |
| 11850 if (currencyId != null) { | 12174 if (currencyId != null) { |
| 11851 _json["currencyId"] = currencyId; | 12175 _json["currencyId"] = currencyId; |
| 11852 } | 12176 } |
| 11853 if (defaultCreativeSizeId != null) { | 12177 if (defaultCreativeSizeId != null) { |
| 11854 _json["defaultCreativeSizeId"] = defaultCreativeSizeId; | 12178 _json["defaultCreativeSizeId"] = defaultCreativeSizeId; |
| 11855 } | 12179 } |
| 11856 if (description != null) { | 12180 if (description != null) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 11870 } | 12194 } |
| 11871 if (name != null) { | 12195 if (name != null) { |
| 11872 _json["name"] = name; | 12196 _json["name"] = name; |
| 11873 } | 12197 } |
| 11874 if (nielsenOcrEnabled != null) { | 12198 if (nielsenOcrEnabled != null) { |
| 11875 _json["nielsenOcrEnabled"] = nielsenOcrEnabled; | 12199 _json["nielsenOcrEnabled"] = nielsenOcrEnabled; |
| 11876 } | 12200 } |
| 11877 if (reportsConfiguration != null) { | 12201 if (reportsConfiguration != null) { |
| 11878 _json["reportsConfiguration"] = (reportsConfiguration).toJson(); | 12202 _json["reportsConfiguration"] = (reportsConfiguration).toJson(); |
| 11879 } | 12203 } |
| 12204 if (shareReportsWithTwitter != null) { |
| 12205 _json["shareReportsWithTwitter"] = shareReportsWithTwitter; |
| 12206 } |
| 11880 if (teaserSizeLimit != null) { | 12207 if (teaserSizeLimit != null) { |
| 11881 _json["teaserSizeLimit"] = teaserSizeLimit; | 12208 _json["teaserSizeLimit"] = teaserSizeLimit; |
| 11882 } | 12209 } |
| 11883 return _json; | 12210 return _json; |
| 11884 } | 12211 } |
| 11885 } | 12212 } |
| 11886 | 12213 |
| 11887 /** Gets a summary of active ads in an account. */ | 12214 /** Gets a summary of active ads in an account. */ |
| 11888 class AccountActiveAdSummary { | 12215 class AccountActiveAdSummary { |
| 11889 /** ID of the account. */ | 12216 /** ID of the account. */ |
| 11890 core.String accountId; | 12217 core.String accountId; |
| 11891 /** Ads that have been activated for the account */ | 12218 /** Ads that have been activated for the account */ |
| 11892 core.String activeAds; | 12219 core.String activeAds; |
| 11893 /** | 12220 /** |
| 11894 * Maximum number of active ads allowed for the account. | 12221 * Maximum number of active ads allowed for the account. |
| 11895 * Possible string values are: | 12222 * Possible string values are: |
| 11896 * - "ACTIVE_ADS_TIER_100K" | 12223 * - "ACTIVE_ADS_TIER_100K" |
| 11897 * - "ACTIVE_ADS_TIER_200K" | 12224 * - "ACTIVE_ADS_TIER_200K" |
| 11898 * - "ACTIVE_ADS_TIER_300K" | 12225 * - "ACTIVE_ADS_TIER_300K" |
| 11899 * - "ACTIVE_ADS_TIER_40K" | 12226 * - "ACTIVE_ADS_TIER_40K" |
| 12227 * - "ACTIVE_ADS_TIER_500K" |
| 11900 * - "ACTIVE_ADS_TIER_75K" | 12228 * - "ACTIVE_ADS_TIER_75K" |
| 11901 */ | 12229 */ |
| 11902 core.String activeAdsLimitTier; | 12230 core.String activeAdsLimitTier; |
| 11903 /** Ads that can be activated for the account. */ | 12231 /** Ads that can be activated for the account. */ |
| 11904 core.String availableAds; | 12232 core.String availableAds; |
| 11905 /** | 12233 /** |
| 11906 * Identifies what kind of resource this is. Value: the fixed string | 12234 * Identifies what kind of resource this is. Value: the fixed string |
| 11907 * "dfareporting#accountActiveAdSummary". | 12235 * "dfareporting#accountActiveAdSummary". |
| 11908 */ | 12236 */ |
| 11909 core.String kind; | 12237 core.String kind; |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12516 * compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video | 12844 * compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video |
| 12517 * ads developed with the VAST standard. | 12845 * ads developed with the VAST standard. |
| 12518 * Possible string values are: | 12846 * Possible string values are: |
| 12519 * - "APP" | 12847 * - "APP" |
| 12520 * - "APP_INTERSTITIAL" | 12848 * - "APP_INTERSTITIAL" |
| 12521 * - "DISPLAY" | 12849 * - "DISPLAY" |
| 12522 * - "DISPLAY_INTERSTITIAL" | 12850 * - "DISPLAY_INTERSTITIAL" |
| 12523 * - "IN_STREAM_VIDEO" | 12851 * - "IN_STREAM_VIDEO" |
| 12524 */ | 12852 */ |
| 12525 core.String compatibility; | 12853 core.String compatibility; |
| 12526 /** Information about the creation of this ad.This is a read-only field. */ | 12854 /** Information about the creation of this ad. This is a read-only field. */ |
| 12527 LastModifiedInfo createInfo; | 12855 LastModifiedInfo createInfo; |
| 12528 /** | 12856 /** |
| 12529 * Creative group assignments for this ad. Applicable when type is | 12857 * Creative group assignments for this ad. Applicable when type is |
| 12530 * AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is | 12858 * AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is |
| 12531 * allowed for a maximum of two assignments. | 12859 * allowed for a maximum of two assignments. |
| 12532 */ | 12860 */ |
| 12533 core.List<CreativeGroupAssignment> creativeGroupAssignments; | 12861 core.List<CreativeGroupAssignment> creativeGroupAssignments; |
| 12534 /** | 12862 /** |
| 12535 * Creative rotation for this ad. Applicable when type is | 12863 * Creative rotation for this ad. Applicable when type is |
| 12536 * AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When | 12864 * AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When |
| 12537 * type is AD_SERVING_DEFAULT_AD, this field should have exactly one | 12865 * type is AD_SERVING_DEFAULT_AD, this field should have exactly one |
| 12538 * creativeAssignment. | 12866 * creativeAssignment. |
| 12539 */ | 12867 */ |
| 12540 CreativeRotation creativeRotation; | 12868 CreativeRotation creativeRotation; |
| 12541 /** | 12869 /** |
| 12542 * Time and day targeting information for this ad. Applicable when type is | 12870 * Time and day targeting information for this ad. This field must be left |
| 12871 * blank if the ad is using a targeting template. Applicable when type is |
| 12543 * AD_SERVING_STANDARD_AD. | 12872 * AD_SERVING_STANDARD_AD. |
| 12544 */ | 12873 */ |
| 12545 DayPartTargeting dayPartTargeting; | 12874 DayPartTargeting dayPartTargeting; |
| 12546 /** Default click-through event tag properties for this ad. */ | 12875 /** Default click-through event tag properties for this ad. */ |
| 12547 DefaultClickThroughEventTagProperties defaultClickThroughEventTagProperties; | 12876 DefaultClickThroughEventTagProperties defaultClickThroughEventTagProperties; |
| 12548 /** | 12877 /** |
| 12549 * Delivery schedule information for this ad. Applicable when type is | 12878 * Delivery schedule information for this ad. Applicable when type is |
| 12550 * AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with | 12879 * AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with |
| 12551 * subfields priority and impressionRatio are required on insertion when type | 12880 * subfields priority and impressionRatio are required on insertion when type |
| 12552 * is AD_SERVING_STANDARD_AD. | 12881 * is AD_SERVING_STANDARD_AD. |
| 12553 */ | 12882 */ |
| 12554 DeliverySchedule deliverySchedule; | 12883 DeliverySchedule deliverySchedule; |
| 12555 /** | 12884 /** |
| 12556 * Whether this ad is a dynamic click tracker. Applicable when type is | 12885 * Whether this ad is a dynamic click tracker. Applicable when type is |
| 12557 * AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is | 12886 * AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is |
| 12558 * read-only after insert. | 12887 * read-only after insert. |
| 12559 */ | 12888 */ |
| 12560 core.bool dynamicClickTracker; | 12889 core.bool dynamicClickTracker; |
| 12561 /** | 12890 /** |
| 12562 * Date and time that this ad should stop serving. Must be later than the | 12891 * Date and time that this ad should stop serving. Must be later than the |
| 12563 * start time. This is a required field on insertion. | 12892 * start time. This is a required field on insertion. |
| 12564 */ | 12893 */ |
| 12565 core.DateTime endTime; | 12894 core.DateTime endTime; |
| 12566 /** Event tag overrides for this ad. */ | 12895 /** Event tag overrides for this ad. */ |
| 12567 core.List<EventTagOverride> eventTagOverrides; | 12896 core.List<EventTagOverride> eventTagOverrides; |
| 12568 /** | 12897 /** |
| 12569 * Geographical targeting information for this ad.Applicable when type is | 12898 * Geographical targeting information for this ad. This field must be left |
| 12899 * blank if the ad is using a targeting template. Applicable when type is |
| 12570 * AD_SERVING_STANDARD_AD. | 12900 * AD_SERVING_STANDARD_AD. |
| 12571 */ | 12901 */ |
| 12572 GeoTargeting geoTargeting; | 12902 GeoTargeting geoTargeting; |
| 12573 /** ID of this ad. This is a read-only, auto-generated field. */ | 12903 /** ID of this ad. This is a read-only, auto-generated field. */ |
| 12574 core.String id; | 12904 core.String id; |
| 12575 /** | 12905 /** |
| 12576 * Dimension value for the ID of this ad. This is a read-only, auto-generated | 12906 * Dimension value for the ID of this ad. This is a read-only, auto-generated |
| 12577 * field. | 12907 * field. |
| 12578 */ | 12908 */ |
| 12579 DimensionValue idDimensionValue; | 12909 DimensionValue idDimensionValue; |
| 12580 /** | 12910 /** |
| 12581 * Key-value targeting information for this ad. Applicable when type is | 12911 * Key-value targeting information for this ad. This field must be left blank |
| 12912 * if the ad is using a targeting template. Applicable when type is |
| 12582 * AD_SERVING_STANDARD_AD. | 12913 * AD_SERVING_STANDARD_AD. |
| 12583 */ | 12914 */ |
| 12584 KeyValueTargetingExpression keyValueTargetingExpression; | 12915 KeyValueTargetingExpression keyValueTargetingExpression; |
| 12585 /** | 12916 /** |
| 12586 * Identifies what kind of resource this is. Value: the fixed string | 12917 * Identifies what kind of resource this is. Value: the fixed string |
| 12587 * "dfareporting#ad". | 12918 * "dfareporting#ad". |
| 12588 */ | 12919 */ |
| 12589 core.String kind; | 12920 core.String kind; |
| 12590 /** | 12921 /** |
| 12922 * Language targeting information for this ad. This field must be left blank |
| 12923 * if the ad is using a targeting template. Applicable when type is |
| 12924 * AD_SERVING_STANDARD_AD. |
| 12925 */ |
| 12926 LanguageTargeting languageTargeting; |
| 12927 /** |
| 12591 * Information about the most recent modification of this ad. This is a | 12928 * Information about the most recent modification of this ad. This is a |
| 12592 * read-only field. | 12929 * read-only field. |
| 12593 */ | 12930 */ |
| 12594 LastModifiedInfo lastModifiedInfo; | 12931 LastModifiedInfo lastModifiedInfo; |
| 12595 /** | 12932 /** |
| 12596 * Name of this ad. This is a required field and must be less than 256 | 12933 * Name of this ad. This is a required field and must be less than 256 |
| 12597 * characters long. | 12934 * characters long. |
| 12598 */ | 12935 */ |
| 12599 core.String name; | 12936 core.String name; |
| 12600 /** Placement assignments for this ad. */ | 12937 /** Placement assignments for this ad. */ |
| 12601 core.List<PlacementAssignment> placementAssignments; | 12938 core.List<PlacementAssignment> placementAssignments; |
| 12602 /** | 12939 /** |
| 12603 * Applicable when type is AD_SERVING_STANDARD_AD. Remarketing list targeting | 12940 * Remarketing list targeting expression for this ad. This field must be left |
| 12604 * expression for this ad. | 12941 * blank if the ad is using a targeting template. Applicable when type is |
| 12942 * AD_SERVING_STANDARD_AD. |
| 12605 */ | 12943 */ |
| 12606 ListTargetingExpression remarketingListExpression; | 12944 ListTargetingExpression remarketingListExpression; |
| 12607 /** Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. */ | 12945 /** Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. */ |
| 12608 Size size; | 12946 Size size; |
| 12609 /** | 12947 /** |
| 12610 * Whether this ad is ssl compliant. This is a read-only field that is | 12948 * Whether this ad is ssl compliant. This is a read-only field that is |
| 12611 * auto-generated when the ad is inserted or updated. | 12949 * auto-generated when the ad is inserted or updated. |
| 12612 */ | 12950 */ |
| 12613 core.bool sslCompliant; | 12951 core.bool sslCompliant; |
| 12614 /** | 12952 /** |
| 12615 * Whether this ad requires ssl. This is a read-only field that is | 12953 * Whether this ad requires ssl. This is a read-only field that is |
| 12616 * auto-generated when the ad is inserted or updated. | 12954 * auto-generated when the ad is inserted or updated. |
| 12617 */ | 12955 */ |
| 12618 core.bool sslRequired; | 12956 core.bool sslRequired; |
| 12619 /** | 12957 /** |
| 12620 * Date and time that this ad should start serving. If creating an ad, this | 12958 * Date and time that this ad should start serving. If creating an ad, this |
| 12621 * field must be a time in the future. This is a required field on insertion. | 12959 * field must be a time in the future. This is a required field on insertion. |
| 12622 */ | 12960 */ |
| 12623 core.DateTime startTime; | 12961 core.DateTime startTime; |
| 12624 /** | 12962 /** |
| 12625 * Subaccount ID of this ad. This is a read-only field that can be left blank. | 12963 * Subaccount ID of this ad. This is a read-only field that can be left blank. |
| 12626 */ | 12964 */ |
| 12627 core.String subaccountId; | 12965 core.String subaccountId; |
| 12628 /** | 12966 /** |
| 12629 * Technology platform targeting information for this ad. Applicable when type | 12967 * Targeting template ID, used to apply preconfigured targeting information to |
| 12630 * is AD_SERVING_STANDARD_AD. | 12968 * this ad. This cannot be set while any of dayPartTargeting, geoTargeting, |
| 12969 * keyValueTargetingExpression, languageTargeting, remarketingListExpression, |
| 12970 * or technologyTargeting are set. Applicable when type is |
| 12971 * AD_SERVING_STANDARD_AD. |
| 12972 */ |
| 12973 core.String targetingTemplateId; |
| 12974 /** |
| 12975 * Technology platform targeting information for this ad. This field must be |
| 12976 * left blank if the ad is using a targeting template. Applicable when type is |
| 12977 * AD_SERVING_STANDARD_AD. |
| 12631 */ | 12978 */ |
| 12632 TechnologyTargeting technologyTargeting; | 12979 TechnologyTargeting technologyTargeting; |
| 12633 /** | 12980 /** |
| 12634 * Type of ad. This is a required field on insertion. Note that default ads | 12981 * Type of ad. This is a required field on insertion. Note that default ads |
| 12635 * (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). | 12982 * (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). |
| 12636 * Possible string values are: | 12983 * Possible string values are: |
| 12637 * - "AD_SERVING_CLICK_TRACKER" | 12984 * - "AD_SERVING_CLICK_TRACKER" |
| 12638 * - "AD_SERVING_DEFAULT_AD" | 12985 * - "AD_SERVING_DEFAULT_AD" |
| 12639 * - "AD_SERVING_STANDARD_AD" | 12986 * - "AD_SERVING_STANDARD_AD" |
| 12640 * - "AD_SERVING_TRACKING" | 12987 * - "AD_SERVING_TRACKING" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12715 } | 13062 } |
| 12716 if (_json.containsKey("idDimensionValue")) { | 13063 if (_json.containsKey("idDimensionValue")) { |
| 12717 idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); | 13064 idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); |
| 12718 } | 13065 } |
| 12719 if (_json.containsKey("keyValueTargetingExpression")) { | 13066 if (_json.containsKey("keyValueTargetingExpression")) { |
| 12720 keyValueTargetingExpression = new KeyValueTargetingExpression.fromJson(_js
on["keyValueTargetingExpression"]); | 13067 keyValueTargetingExpression = new KeyValueTargetingExpression.fromJson(_js
on["keyValueTargetingExpression"]); |
| 12721 } | 13068 } |
| 12722 if (_json.containsKey("kind")) { | 13069 if (_json.containsKey("kind")) { |
| 12723 kind = _json["kind"]; | 13070 kind = _json["kind"]; |
| 12724 } | 13071 } |
| 13072 if (_json.containsKey("languageTargeting")) { |
| 13073 languageTargeting = new LanguageTargeting.fromJson(_json["languageTargetin
g"]); |
| 13074 } |
| 12725 if (_json.containsKey("lastModifiedInfo")) { | 13075 if (_json.containsKey("lastModifiedInfo")) { |
| 12726 lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]
); | 13076 lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]
); |
| 12727 } | 13077 } |
| 12728 if (_json.containsKey("name")) { | 13078 if (_json.containsKey("name")) { |
| 12729 name = _json["name"]; | 13079 name = _json["name"]; |
| 12730 } | 13080 } |
| 12731 if (_json.containsKey("placementAssignments")) { | 13081 if (_json.containsKey("placementAssignments")) { |
| 12732 placementAssignments = _json["placementAssignments"].map((value) => new Pl
acementAssignment.fromJson(value)).toList(); | 13082 placementAssignments = _json["placementAssignments"].map((value) => new Pl
acementAssignment.fromJson(value)).toList(); |
| 12733 } | 13083 } |
| 12734 if (_json.containsKey("remarketingListExpression")) { | 13084 if (_json.containsKey("remarketingListExpression")) { |
| 12735 remarketingListExpression = new ListTargetingExpression.fromJson(_json["re
marketingListExpression"]); | 13085 remarketingListExpression = new ListTargetingExpression.fromJson(_json["re
marketingListExpression"]); |
| 12736 } | 13086 } |
| 12737 if (_json.containsKey("size")) { | 13087 if (_json.containsKey("size")) { |
| 12738 size = new Size.fromJson(_json["size"]); | 13088 size = new Size.fromJson(_json["size"]); |
| 12739 } | 13089 } |
| 12740 if (_json.containsKey("sslCompliant")) { | 13090 if (_json.containsKey("sslCompliant")) { |
| 12741 sslCompliant = _json["sslCompliant"]; | 13091 sslCompliant = _json["sslCompliant"]; |
| 12742 } | 13092 } |
| 12743 if (_json.containsKey("sslRequired")) { | 13093 if (_json.containsKey("sslRequired")) { |
| 12744 sslRequired = _json["sslRequired"]; | 13094 sslRequired = _json["sslRequired"]; |
| 12745 } | 13095 } |
| 12746 if (_json.containsKey("startTime")) { | 13096 if (_json.containsKey("startTime")) { |
| 12747 startTime = core.DateTime.parse(_json["startTime"]); | 13097 startTime = core.DateTime.parse(_json["startTime"]); |
| 12748 } | 13098 } |
| 12749 if (_json.containsKey("subaccountId")) { | 13099 if (_json.containsKey("subaccountId")) { |
| 12750 subaccountId = _json["subaccountId"]; | 13100 subaccountId = _json["subaccountId"]; |
| 12751 } | 13101 } |
| 13102 if (_json.containsKey("targetingTemplateId")) { |
| 13103 targetingTemplateId = _json["targetingTemplateId"]; |
| 13104 } |
| 12752 if (_json.containsKey("technologyTargeting")) { | 13105 if (_json.containsKey("technologyTargeting")) { |
| 12753 technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTa
rgeting"]); | 13106 technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTa
rgeting"]); |
| 12754 } | 13107 } |
| 12755 if (_json.containsKey("type")) { | 13108 if (_json.containsKey("type")) { |
| 12756 type = _json["type"]; | 13109 type = _json["type"]; |
| 12757 } | 13110 } |
| 12758 } | 13111 } |
| 12759 | 13112 |
| 12760 core.Map toJson() { | 13113 core.Map toJson() { |
| 12761 var _json = new core.Map(); | 13114 var _json = new core.Map(); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12830 } | 13183 } |
| 12831 if (idDimensionValue != null) { | 13184 if (idDimensionValue != null) { |
| 12832 _json["idDimensionValue"] = (idDimensionValue).toJson(); | 13185 _json["idDimensionValue"] = (idDimensionValue).toJson(); |
| 12833 } | 13186 } |
| 12834 if (keyValueTargetingExpression != null) { | 13187 if (keyValueTargetingExpression != null) { |
| 12835 _json["keyValueTargetingExpression"] = (keyValueTargetingExpression).toJso
n(); | 13188 _json["keyValueTargetingExpression"] = (keyValueTargetingExpression).toJso
n(); |
| 12836 } | 13189 } |
| 12837 if (kind != null) { | 13190 if (kind != null) { |
| 12838 _json["kind"] = kind; | 13191 _json["kind"] = kind; |
| 12839 } | 13192 } |
| 13193 if (languageTargeting != null) { |
| 13194 _json["languageTargeting"] = (languageTargeting).toJson(); |
| 13195 } |
| 12840 if (lastModifiedInfo != null) { | 13196 if (lastModifiedInfo != null) { |
| 12841 _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); | 13197 _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); |
| 12842 } | 13198 } |
| 12843 if (name != null) { | 13199 if (name != null) { |
| 12844 _json["name"] = name; | 13200 _json["name"] = name; |
| 12845 } | 13201 } |
| 12846 if (placementAssignments != null) { | 13202 if (placementAssignments != null) { |
| 12847 _json["placementAssignments"] = placementAssignments.map((value) => (value
).toJson()).toList(); | 13203 _json["placementAssignments"] = placementAssignments.map((value) => (value
).toJson()).toList(); |
| 12848 } | 13204 } |
| 12849 if (remarketingListExpression != null) { | 13205 if (remarketingListExpression != null) { |
| 12850 _json["remarketingListExpression"] = (remarketingListExpression).toJson(); | 13206 _json["remarketingListExpression"] = (remarketingListExpression).toJson(); |
| 12851 } | 13207 } |
| 12852 if (size != null) { | 13208 if (size != null) { |
| 12853 _json["size"] = (size).toJson(); | 13209 _json["size"] = (size).toJson(); |
| 12854 } | 13210 } |
| 12855 if (sslCompliant != null) { | 13211 if (sslCompliant != null) { |
| 12856 _json["sslCompliant"] = sslCompliant; | 13212 _json["sslCompliant"] = sslCompliant; |
| 12857 } | 13213 } |
| 12858 if (sslRequired != null) { | 13214 if (sslRequired != null) { |
| 12859 _json["sslRequired"] = sslRequired; | 13215 _json["sslRequired"] = sslRequired; |
| 12860 } | 13216 } |
| 12861 if (startTime != null) { | 13217 if (startTime != null) { |
| 12862 _json["startTime"] = (startTime).toIso8601String(); | 13218 _json["startTime"] = (startTime).toIso8601String(); |
| 12863 } | 13219 } |
| 12864 if (subaccountId != null) { | 13220 if (subaccountId != null) { |
| 12865 _json["subaccountId"] = subaccountId; | 13221 _json["subaccountId"] = subaccountId; |
| 12866 } | 13222 } |
| 13223 if (targetingTemplateId != null) { |
| 13224 _json["targetingTemplateId"] = targetingTemplateId; |
| 13225 } |
| 12867 if (technologyTargeting != null) { | 13226 if (technologyTargeting != null) { |
| 12868 _json["technologyTargeting"] = (technologyTargeting).toJson(); | 13227 _json["technologyTargeting"] = (technologyTargeting).toJson(); |
| 12869 } | 13228 } |
| 12870 if (type != null) { | 13229 if (type != null) { |
| 12871 _json["type"] = type; | 13230 _json["type"] = type; |
| 12872 } | 13231 } |
| 12873 return _json; | 13232 return _json; |
| 12874 } | 13233 } |
| 12875 } | 13234 } |
| 12876 | 13235 |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13583 * with the campaign. | 13942 * with the campaign. |
| 13584 */ | 13943 */ |
| 13585 core.String billingInvoiceCode; | 13944 core.String billingInvoiceCode; |
| 13586 /** Click-through URL suffix override properties for this campaign. */ | 13945 /** Click-through URL suffix override properties for this campaign. */ |
| 13587 ClickThroughUrlSuffixProperties clickThroughUrlSuffixProperties; | 13946 ClickThroughUrlSuffixProperties clickThroughUrlSuffixProperties; |
| 13588 /** | 13947 /** |
| 13589 * Arbitrary comments about this campaign. Must be less than 256 characters | 13948 * Arbitrary comments about this campaign. Must be less than 256 characters |
| 13590 * long. | 13949 * long. |
| 13591 */ | 13950 */ |
| 13592 core.String comment; | 13951 core.String comment; |
| 13593 /** Whether comScore vCE reports are enabled for this campaign. */ | |
| 13594 core.bool comscoreVceEnabled; | |
| 13595 /** | 13952 /** |
| 13596 * Information about the creation of this campaign. This is a read-only field. | 13953 * Information about the creation of this campaign. This is a read-only field. |
| 13597 */ | 13954 */ |
| 13598 LastModifiedInfo createInfo; | 13955 LastModifiedInfo createInfo; |
| 13599 /** List of creative group IDs that are assigned to the campaign. */ | 13956 /** List of creative group IDs that are assigned to the campaign. */ |
| 13600 core.List<core.String> creativeGroupIds; | 13957 core.List<core.String> creativeGroupIds; |
| 13601 /** Creative optimization configuration for the campaign. */ | 13958 /** Creative optimization configuration for the campaign. */ |
| 13602 CreativeOptimizationConfiguration creativeOptimizationConfiguration; | 13959 CreativeOptimizationConfiguration creativeOptimizationConfiguration; |
| 13603 /** Click-through event tag ID override properties for this campaign. */ | 13960 /** Click-through event tag ID override properties for this campaign. */ |
| 13604 DefaultClickThroughEventTagProperties defaultClickThroughEventTagProperties; | 13961 DefaultClickThroughEventTagProperties defaultClickThroughEventTagProperties; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13683 } | 14040 } |
| 13684 if (_json.containsKey("billingInvoiceCode")) { | 14041 if (_json.containsKey("billingInvoiceCode")) { |
| 13685 billingInvoiceCode = _json["billingInvoiceCode"]; | 14042 billingInvoiceCode = _json["billingInvoiceCode"]; |
| 13686 } | 14043 } |
| 13687 if (_json.containsKey("clickThroughUrlSuffixProperties")) { | 14044 if (_json.containsKey("clickThroughUrlSuffixProperties")) { |
| 13688 clickThroughUrlSuffixProperties = new ClickThroughUrlSuffixProperties.from
Json(_json["clickThroughUrlSuffixProperties"]); | 14045 clickThroughUrlSuffixProperties = new ClickThroughUrlSuffixProperties.from
Json(_json["clickThroughUrlSuffixProperties"]); |
| 13689 } | 14046 } |
| 13690 if (_json.containsKey("comment")) { | 14047 if (_json.containsKey("comment")) { |
| 13691 comment = _json["comment"]; | 14048 comment = _json["comment"]; |
| 13692 } | 14049 } |
| 13693 if (_json.containsKey("comscoreVceEnabled")) { | |
| 13694 comscoreVceEnabled = _json["comscoreVceEnabled"]; | |
| 13695 } | |
| 13696 if (_json.containsKey("createInfo")) { | 14050 if (_json.containsKey("createInfo")) { |
| 13697 createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); | 14051 createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); |
| 13698 } | 14052 } |
| 13699 if (_json.containsKey("creativeGroupIds")) { | 14053 if (_json.containsKey("creativeGroupIds")) { |
| 13700 creativeGroupIds = _json["creativeGroupIds"]; | 14054 creativeGroupIds = _json["creativeGroupIds"]; |
| 13701 } | 14055 } |
| 13702 if (_json.containsKey("creativeOptimizationConfiguration")) { | 14056 if (_json.containsKey("creativeOptimizationConfiguration")) { |
| 13703 creativeOptimizationConfiguration = new CreativeOptimizationConfiguration.
fromJson(_json["creativeOptimizationConfiguration"]); | 14057 creativeOptimizationConfiguration = new CreativeOptimizationConfiguration.
fromJson(_json["creativeOptimizationConfiguration"]); |
| 13704 } | 14058 } |
| 13705 if (_json.containsKey("defaultClickThroughEventTagProperties")) { | 14059 if (_json.containsKey("defaultClickThroughEventTagProperties")) { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13771 } | 14125 } |
| 13772 if (billingInvoiceCode != null) { | 14126 if (billingInvoiceCode != null) { |
| 13773 _json["billingInvoiceCode"] = billingInvoiceCode; | 14127 _json["billingInvoiceCode"] = billingInvoiceCode; |
| 13774 } | 14128 } |
| 13775 if (clickThroughUrlSuffixProperties != null) { | 14129 if (clickThroughUrlSuffixProperties != null) { |
| 13776 _json["clickThroughUrlSuffixProperties"] = (clickThroughUrlSuffixPropertie
s).toJson(); | 14130 _json["clickThroughUrlSuffixProperties"] = (clickThroughUrlSuffixPropertie
s).toJson(); |
| 13777 } | 14131 } |
| 13778 if (comment != null) { | 14132 if (comment != null) { |
| 13779 _json["comment"] = comment; | 14133 _json["comment"] = comment; |
| 13780 } | 14134 } |
| 13781 if (comscoreVceEnabled != null) { | |
| 13782 _json["comscoreVceEnabled"] = comscoreVceEnabled; | |
| 13783 } | |
| 13784 if (createInfo != null) { | 14135 if (createInfo != null) { |
| 13785 _json["createInfo"] = (createInfo).toJson(); | 14136 _json["createInfo"] = (createInfo).toJson(); |
| 13786 } | 14137 } |
| 13787 if (creativeGroupIds != null) { | 14138 if (creativeGroupIds != null) { |
| 13788 _json["creativeGroupIds"] = creativeGroupIds; | 14139 _json["creativeGroupIds"] = creativeGroupIds; |
| 13789 } | 14140 } |
| 13790 if (creativeOptimizationConfiguration != null) { | 14141 if (creativeOptimizationConfiguration != null) { |
| 13791 _json["creativeOptimizationConfiguration"] = (creativeOptimizationConfigur
ation).toJson(); | 14142 _json["creativeOptimizationConfiguration"] = (creativeOptimizationConfigur
ation).toJson(); |
| 13792 } | 14143 } |
| 13793 if (defaultClickThroughEventTagProperties != null) { | 14144 if (defaultClickThroughEventTagProperties != null) { |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14254 _json["regionDartId"] = regionDartId; | 14605 _json["regionDartId"] = regionDartId; |
| 14255 } | 14606 } |
| 14256 return _json; | 14607 return _json; |
| 14257 } | 14608 } |
| 14258 } | 14609 } |
| 14259 | 14610 |
| 14260 /** Creative Click Tag. */ | 14611 /** Creative Click Tag. */ |
| 14261 class ClickTag { | 14612 class ClickTag { |
| 14262 /** | 14613 /** |
| 14263 * Advertiser event name associated with the click tag. This field is used by | 14614 * Advertiser event name associated with the click tag. This field is used by |
| 14264 * ENHANCED_BANNER, ENHANCED_IMAGE, and HTML5_BANNER creatives. | 14615 * DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to DISPLAY |
| 14616 * when the primary asset type is not HTML_IMAGE. |
| 14265 */ | 14617 */ |
| 14266 core.String eventName; | 14618 core.String eventName; |
| 14267 /** | 14619 /** |
| 14268 * Parameter name for the specified click tag. For ENHANCED_IMAGE creative | 14620 * Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY |
| 14269 * assets, this field must match the value of the creative asset's | 14621 * creative assets, this field must match the value of the creative asset's |
| 14270 * creativeAssetId.name field. | 14622 * creativeAssetId.name field. |
| 14271 */ | 14623 */ |
| 14272 core.String name; | 14624 core.String name; |
| 14273 /** | 14625 /** |
| 14274 * Parameter value for the specified click tag. This field contains a | 14626 * Parameter value for the specified click tag. This field contains a |
| 14275 * click-through url. | 14627 * click-through url. |
| 14276 */ | 14628 */ |
| 14277 core.String value; | 14629 core.String value; |
| 14278 | 14630 |
| 14279 ClickTag(); | 14631 ClickTag(); |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14694 * A Conversion represents when a user successfully performs a desired action | 15046 * A Conversion represents when a user successfully performs a desired action |
| 14695 * after seeing an ad. | 15047 * after seeing an ad. |
| 14696 */ | 15048 */ |
| 14697 class Conversion { | 15049 class Conversion { |
| 14698 /** Whether the conversion was directed toward children. */ | 15050 /** Whether the conversion was directed toward children. */ |
| 14699 core.bool childDirectedTreatment; | 15051 core.bool childDirectedTreatment; |
| 14700 /** Custom floodlight variables. */ | 15052 /** Custom floodlight variables. */ |
| 14701 core.List<CustomFloodlightVariable> customVariables; | 15053 core.List<CustomFloodlightVariable> customVariables; |
| 14702 /** | 15054 /** |
| 14703 * The alphanumeric encrypted user ID. When set, encryptionInfo should also be | 15055 * The alphanumeric encrypted user ID. When set, encryptionInfo should also be |
| 14704 * specified. This field is mutually exclusive with mobileDeviceId. This or | 15056 * specified. This field is mutually exclusive with |
| 15057 * encryptedUserIdCandidates[] and mobileDeviceId. This or |
| 15058 * encryptedUserIdCandidates[] or mobileDeviceId is a required field. |
| 15059 */ |
| 15060 core.String encryptedUserId; |
| 15061 /** |
| 15062 * A list of the alphanumeric encrypted user IDs. Any user ID with exposure |
| 15063 * prior to the conversion timestamp will be used in the inserted conversion. |
| 15064 * If no such user ID is found then the conversion will be rejected with |
| 15065 * NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo should also be |
| 15066 * specified. This field should only be used when calling |
| 15067 * conversions.batchinsert. This field is mutually exclusive with |
| 15068 * encryptedUserId and mobileDeviceId. This or encryptedUserId or |
| 14705 * mobileDeviceId is a required field. | 15069 * mobileDeviceId is a required field. |
| 14706 */ | 15070 */ |
| 14707 core.String encryptedUserId; | 15071 core.List<core.String> encryptedUserIdCandidates; |
| 14708 /** Floodlight Activity ID of this conversion. This is a required field. */ | 15072 /** Floodlight Activity ID of this conversion. This is a required field. */ |
| 14709 core.String floodlightActivityId; | 15073 core.String floodlightActivityId; |
| 14710 /** | 15074 /** |
| 14711 * Floodlight Configuration ID of this conversion. This is a required field. | 15075 * Floodlight Configuration ID of this conversion. This is a required field. |
| 14712 */ | 15076 */ |
| 14713 core.String floodlightConfigurationId; | 15077 core.String floodlightConfigurationId; |
| 14714 /** | 15078 /** |
| 14715 * Identifies what kind of resource this is. Value: the fixed string | 15079 * Identifies what kind of resource this is. Value: the fixed string |
| 14716 * "dfareporting#conversion". | 15080 * "dfareporting#conversion". |
| 14717 */ | 15081 */ |
| 14718 core.String kind; | 15082 core.String kind; |
| 14719 /** Whether the user has Limit Ad Tracking set. */ | 15083 /** Whether the user has Limit Ad Tracking set. */ |
| 14720 core.bool limitAdTracking; | 15084 core.bool limitAdTracking; |
| 14721 /** | 15085 /** |
| 14722 * The mobile device ID. This field is mutually exclusive with | 15086 * The mobile device ID. This field is mutually exclusive with encryptedUserId |
| 14723 * encryptedUserId. This or encryptedUserId is a required field. | 15087 * and encryptedUserIdCandidates[]. This or encryptedUserId or |
| 15088 * encryptedUserIdCandidates[] is a required field. |
| 14724 */ | 15089 */ |
| 14725 core.String mobileDeviceId; | 15090 core.String mobileDeviceId; |
| 14726 /** | 15091 /** |
| 14727 * The ordinal of the conversion. Use this field to control how conversions of | 15092 * The ordinal of the conversion. Use this field to control how conversions of |
| 14728 * the same user and day are de-duplicated. This is a required field. | 15093 * the same user and day are de-duplicated. This is a required field. |
| 14729 */ | 15094 */ |
| 14730 core.String ordinal; | 15095 core.String ordinal; |
| 14731 /** The quantity of the conversion. */ | 15096 /** The quantity of the conversion. */ |
| 14732 core.String quantity; | 15097 core.String quantity; |
| 14733 /** | 15098 /** |
| 14734 * The timestamp of conversion, in Unix epoch micros. This is a required | 15099 * The timestamp of conversion, in Unix epoch micros. This is a required |
| 14735 * field. | 15100 * field. |
| 14736 */ | 15101 */ |
| 14737 core.String timestampMicros; | 15102 core.String timestampMicros; |
| 14738 /** The value of the conversion. */ | 15103 /** The value of the conversion. */ |
| 14739 core.double value; | 15104 core.double value; |
| 14740 | 15105 |
| 14741 Conversion(); | 15106 Conversion(); |
| 14742 | 15107 |
| 14743 Conversion.fromJson(core.Map _json) { | 15108 Conversion.fromJson(core.Map _json) { |
| 14744 if (_json.containsKey("childDirectedTreatment")) { | 15109 if (_json.containsKey("childDirectedTreatment")) { |
| 14745 childDirectedTreatment = _json["childDirectedTreatment"]; | 15110 childDirectedTreatment = _json["childDirectedTreatment"]; |
| 14746 } | 15111 } |
| 14747 if (_json.containsKey("customVariables")) { | 15112 if (_json.containsKey("customVariables")) { |
| 14748 customVariables = _json["customVariables"].map((value) => new CustomFloodl
ightVariable.fromJson(value)).toList(); | 15113 customVariables = _json["customVariables"].map((value) => new CustomFloodl
ightVariable.fromJson(value)).toList(); |
| 14749 } | 15114 } |
| 14750 if (_json.containsKey("encryptedUserId")) { | 15115 if (_json.containsKey("encryptedUserId")) { |
| 14751 encryptedUserId = _json["encryptedUserId"]; | 15116 encryptedUserId = _json["encryptedUserId"]; |
| 14752 } | 15117 } |
| 15118 if (_json.containsKey("encryptedUserIdCandidates")) { |
| 15119 encryptedUserIdCandidates = _json["encryptedUserIdCandidates"]; |
| 15120 } |
| 14753 if (_json.containsKey("floodlightActivityId")) { | 15121 if (_json.containsKey("floodlightActivityId")) { |
| 14754 floodlightActivityId = _json["floodlightActivityId"]; | 15122 floodlightActivityId = _json["floodlightActivityId"]; |
| 14755 } | 15123 } |
| 14756 if (_json.containsKey("floodlightConfigurationId")) { | 15124 if (_json.containsKey("floodlightConfigurationId")) { |
| 14757 floodlightConfigurationId = _json["floodlightConfigurationId"]; | 15125 floodlightConfigurationId = _json["floodlightConfigurationId"]; |
| 14758 } | 15126 } |
| 14759 if (_json.containsKey("kind")) { | 15127 if (_json.containsKey("kind")) { |
| 14760 kind = _json["kind"]; | 15128 kind = _json["kind"]; |
| 14761 } | 15129 } |
| 14762 if (_json.containsKey("limitAdTracking")) { | 15130 if (_json.containsKey("limitAdTracking")) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 14783 var _json = new core.Map(); | 15151 var _json = new core.Map(); |
| 14784 if (childDirectedTreatment != null) { | 15152 if (childDirectedTreatment != null) { |
| 14785 _json["childDirectedTreatment"] = childDirectedTreatment; | 15153 _json["childDirectedTreatment"] = childDirectedTreatment; |
| 14786 } | 15154 } |
| 14787 if (customVariables != null) { | 15155 if (customVariables != null) { |
| 14788 _json["customVariables"] = customVariables.map((value) => (value).toJson()
).toList(); | 15156 _json["customVariables"] = customVariables.map((value) => (value).toJson()
).toList(); |
| 14789 } | 15157 } |
| 14790 if (encryptedUserId != null) { | 15158 if (encryptedUserId != null) { |
| 14791 _json["encryptedUserId"] = encryptedUserId; | 15159 _json["encryptedUserId"] = encryptedUserId; |
| 14792 } | 15160 } |
| 15161 if (encryptedUserIdCandidates != null) { |
| 15162 _json["encryptedUserIdCandidates"] = encryptedUserIdCandidates; |
| 15163 } |
| 14793 if (floodlightActivityId != null) { | 15164 if (floodlightActivityId != null) { |
| 14794 _json["floodlightActivityId"] = floodlightActivityId; | 15165 _json["floodlightActivityId"] = floodlightActivityId; |
| 14795 } | 15166 } |
| 14796 if (floodlightConfigurationId != null) { | 15167 if (floodlightConfigurationId != null) { |
| 14797 _json["floodlightConfigurationId"] = floodlightConfigurationId; | 15168 _json["floodlightConfigurationId"] = floodlightConfigurationId; |
| 14798 } | 15169 } |
| 14799 if (kind != null) { | 15170 if (kind != null) { |
| 14800 _json["kind"] = kind; | 15171 _json["kind"] = kind; |
| 14801 } | 15172 } |
| 14802 if (limitAdTracking != null) { | 15173 if (limitAdTracking != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 14814 if (timestampMicros != null) { | 15185 if (timestampMicros != null) { |
| 14815 _json["timestampMicros"] = timestampMicros; | 15186 _json["timestampMicros"] = timestampMicros; |
| 14816 } | 15187 } |
| 14817 if (value != null) { | 15188 if (value != null) { |
| 14818 _json["value"] = value; | 15189 _json["value"] = value; |
| 14819 } | 15190 } |
| 14820 return _json; | 15191 return _json; |
| 14821 } | 15192 } |
| 14822 } | 15193 } |
| 14823 | 15194 |
| 14824 /** The error code and description for a conversion that failed to insert. */ | 15195 /** |
| 15196 * The error code and description for a conversion that failed to insert or |
| 15197 * update. |
| 15198 */ |
| 14825 class ConversionError { | 15199 class ConversionError { |
| 14826 /** | 15200 /** |
| 14827 * The error code. | 15201 * The error code. |
| 14828 * Possible string values are: | 15202 * Possible string values are: |
| 14829 * - "INTERNAL" | 15203 * - "INTERNAL" |
| 14830 * - "INVALID_ARGUMENT" | 15204 * - "INVALID_ARGUMENT" |
| 14831 * - "NOT_FOUND" | 15205 * - "NOT_FOUND" |
| 14832 * - "PERMISSION_DENIED" | 15206 * - "PERMISSION_DENIED" |
| 14833 */ | 15207 */ |
| 14834 core.String code; | 15208 core.String code; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 14863 _json["kind"] = kind; | 15237 _json["kind"] = kind; |
| 14864 } | 15238 } |
| 14865 if (message != null) { | 15239 if (message != null) { |
| 14866 _json["message"] = message; | 15240 _json["message"] = message; |
| 14867 } | 15241 } |
| 14868 return _json; | 15242 return _json; |
| 14869 } | 15243 } |
| 14870 } | 15244 } |
| 14871 | 15245 |
| 14872 /** | 15246 /** |
| 14873 * The original conversion that was inserted and whether there were any errors. | 15247 * The original conversion that was inserted or updated and whether there were |
| 15248 * any errors. |
| 14874 */ | 15249 */ |
| 14875 class ConversionStatus { | 15250 class ConversionStatus { |
| 14876 /** The original conversion that was inserted. */ | 15251 /** The original conversion that was inserted or updated. */ |
| 14877 Conversion conversion; | 15252 Conversion conversion; |
| 14878 /** A list of errors related to this conversion. */ | 15253 /** A list of errors related to this conversion. */ |
| 14879 core.List<ConversionError> errors; | 15254 core.List<ConversionError> errors; |
| 14880 /** | 15255 /** |
| 14881 * Identifies what kind of resource this is. Value: the fixed string | 15256 * Identifies what kind of resource this is. Value: the fixed string |
| 14882 * "dfareporting#conversionStatus". | 15257 * "dfareporting#conversionStatus". |
| 14883 */ | 15258 */ |
| 14884 core.String kind; | 15259 core.String kind; |
| 14885 | 15260 |
| 14886 ConversionStatus(); | 15261 ConversionStatus(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 14910 } | 15285 } |
| 14911 return _json; | 15286 return _json; |
| 14912 } | 15287 } |
| 14913 } | 15288 } |
| 14914 | 15289 |
| 14915 /** Insert Conversions Request. */ | 15290 /** Insert Conversions Request. */ |
| 14916 class ConversionsBatchInsertRequest { | 15291 class ConversionsBatchInsertRequest { |
| 14917 /** The set of conversions to insert. */ | 15292 /** The set of conversions to insert. */ |
| 14918 core.List<Conversion> conversions; | 15293 core.List<Conversion> conversions; |
| 14919 /** | 15294 /** |
| 14920 * Describes how encryptedUserId is encrypted. This is a required field if | 15295 * Describes how encryptedUserId or encryptedUserIdCandidates[] is encrypted. |
| 14921 * encryptedUserId is used. | 15296 * This is a required field if encryptedUserId or encryptedUserIdCandidates[] |
| 15297 * is used. |
| 14922 */ | 15298 */ |
| 14923 EncryptionInfo encryptionInfo; | 15299 EncryptionInfo encryptionInfo; |
| 14924 /** | 15300 /** |
| 14925 * Identifies what kind of resource this is. Value: the fixed string | 15301 * Identifies what kind of resource this is. Value: the fixed string |
| 14926 * "dfareporting#conversionsBatchInsertRequest". | 15302 * "dfareporting#conversionsBatchInsertRequest". |
| 14927 */ | 15303 */ |
| 14928 core.String kind; | 15304 core.String kind; |
| 14929 | 15305 |
| 14930 ConversionsBatchInsertRequest(); | 15306 ConversionsBatchInsertRequest(); |
| 14931 | 15307 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15151 core.String authoringSource; | 15527 core.String authoringSource; |
| 15152 /** | 15528 /** |
| 15153 * Authoring tool for HTML5 banner creatives. This is a read-only field. | 15529 * Authoring tool for HTML5 banner creatives. This is a read-only field. |
| 15154 * Applicable to the following creative types: HTML5_BANNER. | 15530 * Applicable to the following creative types: HTML5_BANNER. |
| 15155 * Possible string values are: | 15531 * Possible string values are: |
| 15156 * - "NINJA" | 15532 * - "NINJA" |
| 15157 * - "SWIFFY" | 15533 * - "SWIFFY" |
| 15158 */ | 15534 */ |
| 15159 core.String authoringTool; | 15535 core.String authoringTool; |
| 15160 /** | 15536 /** |
| 15161 * Whether images are automatically advanced for enhanced image creatives. | 15537 * Whether images are automatically advanced for image gallery creatives. |
| 15162 * Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. | 15538 * Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. |
| 15163 */ | 15539 */ |
| 15164 core.bool autoAdvanceImages; | 15540 core.bool autoAdvanceImages; |
| 15165 /** | 15541 /** |
| 15166 * The 6-character HTML color code, beginning with #, for the background of | 15542 * The 6-character HTML color code, beginning with #, for the background of |
| 15167 * the window area where the Flash file is displayed. Default is white. | 15543 * the window area where the Flash file is displayed. Default is white. |
| 15168 * Applicable to the following creative types: FLASH_INPAGE. | 15544 * Applicable to the following creative types: FLASH_INPAGE. |
| 15169 */ | 15545 */ |
| 15170 core.String backgroundColor; | 15546 core.String backgroundColor; |
| 15171 /** | 15547 /** |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15215 core.List<ClickTag> clickTags; | 15591 core.List<ClickTag> clickTags; |
| 15216 /** | 15592 /** |
| 15217 * Industry standard ID assigned to creative for reach and frequency. | 15593 * Industry standard ID assigned to creative for reach and frequency. |
| 15218 * Applicable to the following creative types: all INSTREAM_VIDEO and all | 15594 * Applicable to the following creative types: all INSTREAM_VIDEO and all |
| 15219 * VPAID. | 15595 * VPAID. |
| 15220 */ | 15596 */ |
| 15221 core.String commercialId; | 15597 core.String commercialId; |
| 15222 /** | 15598 /** |
| 15223 * List of companion creatives assigned to an in-Stream videocreative. | 15599 * List of companion creatives assigned to an in-Stream videocreative. |
| 15224 * Acceptable values include IDs of existing flash and image creatives. | 15600 * Acceptable values include IDs of existing flash and image creatives. |
| 15225 * Applicable to the following creative types: all INSTREAM_VIDEO and all | 15601 * Applicable to the following creative types: all VPAID and all |
| 15226 * VPAID. | 15602 * INSTREAM_VIDEO with dynamicAssetSelection set to false. |
| 15227 */ | 15603 */ |
| 15228 core.List<core.String> companionCreatives; | 15604 core.List<core.String> companionCreatives; |
| 15229 /** | 15605 /** |
| 15230 * Compatibilities associated with this creative. This is a read-only field. | 15606 * Compatibilities associated with this creative. This is a read-only field. |
| 15231 * DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on | 15607 * DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on |
| 15232 * mobile devices or in mobile apps for regular or interstitial ads, | 15608 * mobile devices or in mobile apps for regular or interstitial ads, |
| 15233 * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. | 15609 * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. |
| 15234 * Only pre-existing creatives may have these compatibilities since new | 15610 * Only pre-existing creatives may have these compatibilities since new |
| 15235 * creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. | 15611 * creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. |
| 15236 * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with | 15612 * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with |
| 15237 * the VAST standard. Applicable to all creative types. | 15613 * the VAST standard. Applicable to all creative types. |
| 15238 * | 15614 * |
| 15239 * Acceptable values are: | 15615 * Acceptable values are: |
| 15240 * - "APP" | 15616 * - "APP" |
| 15241 * - "APP_INTERSTITIAL" | 15617 * - "APP_INTERSTITIAL" |
| 15242 * - "IN_STREAM_VIDEO" | 15618 * - "IN_STREAM_VIDEO" |
| 15243 * - "DISPLAY" | 15619 * - "DISPLAY" |
| 15244 * - "DISPLAY_INTERSTITIAL" | 15620 * - "DISPLAY_INTERSTITIAL" |
| 15245 */ | 15621 */ |
| 15246 core.List<core.String> compatibility; | 15622 core.List<core.String> compatibility; |
| 15247 /** | 15623 /** |
| 15248 * Whether Flash assets associated with the creative need to be automatically | 15624 * Whether Flash assets associated with the creative need to be automatically |
| 15249 * converted to HTML5. This flag is enabled by default and users can choose to | 15625 * converted to HTML5. This flag is enabled by default and users can choose to |
| 15250 * disable it if they don't want the system to generate and use HTML5 asset | 15626 * disable it if they don't want the system to generate and use HTML5 asset |
| 15251 * for this creative. Applicable to the following creative type: FLASH_INPAGE. | 15627 * for this creative. Applicable to the following creative type: FLASH_INPAGE. |
| 15252 * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. | 15628 * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. |
| 15253 */ | 15629 */ |
| 15254 core.bool convertFlashToHtml5; | 15630 core.bool convertFlashToHtml5; |
| 15255 /** | 15631 /** |
| 15256 * List of counter events configured for the creative. For | 15632 * List of counter events configured for the creative. For |
| 15257 * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated | 15633 * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated |
| 15258 * from clickTags. Applicable to the following creative types: | 15634 * from clickTags. Applicable to the following creative types: |
| 15259 * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. | 15635 * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. |
| 15260 */ | 15636 */ |
| 15261 core.List<CreativeCustomEvent> counterCustomEvents; | 15637 core.List<CreativeCustomEvent> counterCustomEvents; |
| 15638 /** Required if dynamicAssetSelection is true. */ |
| 15639 CreativeAssetSelection creativeAssetSelection; |
| 15262 /** | 15640 /** |
| 15263 * Assets associated with a creative. Applicable to all but the following | 15641 * Assets associated with a creative. Applicable to all but the following |
| 15264 * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and | 15642 * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and |
| 15265 * REDIRECT | 15643 * REDIRECT |
| 15266 */ | 15644 */ |
| 15267 core.List<CreativeAsset> creativeAssets; | 15645 core.List<CreativeAsset> creativeAssets; |
| 15268 /** | 15646 /** |
| 15269 * Creative field assignments for this creative. Applicable to all creative | 15647 * Creative field assignments for this creative. Applicable to all creative |
| 15270 * types. | 15648 * types. |
| 15271 */ | 15649 */ |
| 15272 core.List<CreativeFieldAssignment> creativeFieldAssignments; | 15650 core.List<CreativeFieldAssignment> creativeFieldAssignments; |
| 15273 /** | 15651 /** |
| 15274 * Custom key-values for a Rich Media creative. Key-values let you customize | 15652 * Custom key-values for a Rich Media creative. Key-values let you customize |
| 15275 * the creative settings of a Rich Media ad running on your site without | 15653 * the creative settings of a Rich Media ad running on your site without |
| 15276 * having to contact the advertiser. You can use key-values to dynamically | 15654 * having to contact the advertiser. You can use key-values to dynamically |
| 15277 * change the look or functionality of a creative. Applicable to the following | 15655 * change the look or functionality of a creative. Applicable to the following |
| 15278 * creative types: all RICH_MEDIA, and all VPAID. | 15656 * creative types: all RICH_MEDIA, and all VPAID. |
| 15279 */ | 15657 */ |
| 15280 core.List<core.String> customKeyValues; | 15658 core.List<core.String> customKeyValues; |
| 15281 /** | 15659 /** |
| 15660 * Set this to true to enable the use of rules to target individual assets in |
| 15661 * this creative. When set to true creativeAssetSelection must be set. This |
| 15662 * also controls asset-level companions. When this is true, companion |
| 15663 * creatives should be assigned to creative assets. Learn more. Applicable to |
| 15664 * INSTREAM_VIDEO creatives. |
| 15665 */ |
| 15666 core.bool dynamicAssetSelection; |
| 15667 /** |
| 15282 * List of exit events configured for the creative. For DISPLAY and | 15668 * List of exit events configured for the creative. For DISPLAY and |
| 15283 * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated | 15669 * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated |
| 15284 * from clickTags, For DISPLAY, an event is also created from the | 15670 * from clickTags, For DISPLAY, an event is also created from the |
| 15285 * backupImageReportingLabel. Applicable to the following creative types: | 15671 * backupImageReportingLabel. Applicable to the following creative types: |
| 15286 * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY | 15672 * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY |
| 15287 * when the primary asset type is not HTML_IMAGE. | 15673 * when the primary asset type is not HTML_IMAGE. |
| 15288 */ | 15674 */ |
| 15289 core.List<CreativeCustomEvent> exitCustomEvents; | 15675 core.List<CreativeCustomEvent> exitCustomEvents; |
| 15290 /** | 15676 /** |
| 15291 * OpenWindow FSCommand of this creative. This lets the SWF file communicate | 15677 * OpenWindow FSCommand of this creative. This lets the SWF file communicate |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15448 * RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset is | 15834 * RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset is |
| 15449 * not HTML_IMAGE. | 15835 * not HTML_IMAGE. |
| 15450 */ | 15836 */ |
| 15451 core.List<CreativeCustomEvent> timerCustomEvents; | 15837 core.List<CreativeCustomEvent> timerCustomEvents; |
| 15452 /** | 15838 /** |
| 15453 * Combined size of all creative assets. This is a read-only field. Applicable | 15839 * Combined size of all creative assets. This is a read-only field. Applicable |
| 15454 * to the following creative types: all RICH_MEDIA, and all VPAID. | 15840 * to the following creative types: all RICH_MEDIA, and all VPAID. |
| 15455 */ | 15841 */ |
| 15456 core.String totalFileSize; | 15842 core.String totalFileSize; |
| 15457 /** | 15843 /** |
| 15458 * Type of this creative.This is a required field. Applicable to all creative | 15844 * Type of this creative. This is a required field. Applicable to all creative |
| 15845 * types. |
| 15846 * |
| 15847 * Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing |
| 15848 * creatives. New creatives should use DISPLAY as a replacement for these |
| 15459 * types. | 15849 * types. |
| 15460 * Possible string values are: | 15850 * Possible string values are: |
| 15461 * - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" | 15851 * - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" |
| 15462 * - "CUSTOM_DISPLAY" | 15852 * - "CUSTOM_DISPLAY" |
| 15463 * - "CUSTOM_DISPLAY_INTERSTITIAL" | 15853 * - "CUSTOM_DISPLAY_INTERSTITIAL" |
| 15464 * - "DISPLAY" | 15854 * - "DISPLAY" |
| 15465 * - "DISPLAY_IMAGE_GALLERY" | 15855 * - "DISPLAY_IMAGE_GALLERY" |
| 15466 * - "DISPLAY_REDIRECT" | 15856 * - "DISPLAY_REDIRECT" |
| 15467 * - "FLASH_INPAGE" | 15857 * - "FLASH_INPAGE" |
| 15468 * - "HTML5_BANNER" | 15858 * - "HTML5_BANNER" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15568 } | 15958 } |
| 15569 if (_json.containsKey("compatibility")) { | 15959 if (_json.containsKey("compatibility")) { |
| 15570 compatibility = _json["compatibility"]; | 15960 compatibility = _json["compatibility"]; |
| 15571 } | 15961 } |
| 15572 if (_json.containsKey("convertFlashToHtml5")) { | 15962 if (_json.containsKey("convertFlashToHtml5")) { |
| 15573 convertFlashToHtml5 = _json["convertFlashToHtml5"]; | 15963 convertFlashToHtml5 = _json["convertFlashToHtml5"]; |
| 15574 } | 15964 } |
| 15575 if (_json.containsKey("counterCustomEvents")) { | 15965 if (_json.containsKey("counterCustomEvents")) { |
| 15576 counterCustomEvents = _json["counterCustomEvents"].map((value) => new Crea
tiveCustomEvent.fromJson(value)).toList(); | 15966 counterCustomEvents = _json["counterCustomEvents"].map((value) => new Crea
tiveCustomEvent.fromJson(value)).toList(); |
| 15577 } | 15967 } |
| 15968 if (_json.containsKey("creativeAssetSelection")) { |
| 15969 creativeAssetSelection = new CreativeAssetSelection.fromJson(_json["creati
veAssetSelection"]); |
| 15970 } |
| 15578 if (_json.containsKey("creativeAssets")) { | 15971 if (_json.containsKey("creativeAssets")) { |
| 15579 creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset.
fromJson(value)).toList(); | 15972 creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset.
fromJson(value)).toList(); |
| 15580 } | 15973 } |
| 15581 if (_json.containsKey("creativeFieldAssignments")) { | 15974 if (_json.containsKey("creativeFieldAssignments")) { |
| 15582 creativeFieldAssignments = _json["creativeFieldAssignments"].map((value) =
> new CreativeFieldAssignment.fromJson(value)).toList(); | 15975 creativeFieldAssignments = _json["creativeFieldAssignments"].map((value) =
> new CreativeFieldAssignment.fromJson(value)).toList(); |
| 15583 } | 15976 } |
| 15584 if (_json.containsKey("customKeyValues")) { | 15977 if (_json.containsKey("customKeyValues")) { |
| 15585 customKeyValues = _json["customKeyValues"]; | 15978 customKeyValues = _json["customKeyValues"]; |
| 15586 } | 15979 } |
| 15980 if (_json.containsKey("dynamicAssetSelection")) { |
| 15981 dynamicAssetSelection = _json["dynamicAssetSelection"]; |
| 15982 } |
| 15587 if (_json.containsKey("exitCustomEvents")) { | 15983 if (_json.containsKey("exitCustomEvents")) { |
| 15588 exitCustomEvents = _json["exitCustomEvents"].map((value) => new CreativeCu
stomEvent.fromJson(value)).toList(); | 15984 exitCustomEvents = _json["exitCustomEvents"].map((value) => new CreativeCu
stomEvent.fromJson(value)).toList(); |
| 15589 } | 15985 } |
| 15590 if (_json.containsKey("fsCommand")) { | 15986 if (_json.containsKey("fsCommand")) { |
| 15591 fsCommand = new FsCommand.fromJson(_json["fsCommand"]); | 15987 fsCommand = new FsCommand.fromJson(_json["fsCommand"]); |
| 15592 } | 15988 } |
| 15593 if (_json.containsKey("htmlCode")) { | 15989 if (_json.containsKey("htmlCode")) { |
| 15594 htmlCode = _json["htmlCode"]; | 15990 htmlCode = _json["htmlCode"]; |
| 15595 } | 15991 } |
| 15596 if (_json.containsKey("htmlCodeLocked")) { | 15992 if (_json.containsKey("htmlCodeLocked")) { |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15746 } | 16142 } |
| 15747 if (compatibility != null) { | 16143 if (compatibility != null) { |
| 15748 _json["compatibility"] = compatibility; | 16144 _json["compatibility"] = compatibility; |
| 15749 } | 16145 } |
| 15750 if (convertFlashToHtml5 != null) { | 16146 if (convertFlashToHtml5 != null) { |
| 15751 _json["convertFlashToHtml5"] = convertFlashToHtml5; | 16147 _json["convertFlashToHtml5"] = convertFlashToHtml5; |
| 15752 } | 16148 } |
| 15753 if (counterCustomEvents != null) { | 16149 if (counterCustomEvents != null) { |
| 15754 _json["counterCustomEvents"] = counterCustomEvents.map((value) => (value).
toJson()).toList(); | 16150 _json["counterCustomEvents"] = counterCustomEvents.map((value) => (value).
toJson()).toList(); |
| 15755 } | 16151 } |
| 16152 if (creativeAssetSelection != null) { |
| 16153 _json["creativeAssetSelection"] = (creativeAssetSelection).toJson(); |
| 16154 } |
| 15756 if (creativeAssets != null) { | 16155 if (creativeAssets != null) { |
| 15757 _json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()).
toList(); | 16156 _json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()).
toList(); |
| 15758 } | 16157 } |
| 15759 if (creativeFieldAssignments != null) { | 16158 if (creativeFieldAssignments != null) { |
| 15760 _json["creativeFieldAssignments"] = creativeFieldAssignments.map((value) =
> (value).toJson()).toList(); | 16159 _json["creativeFieldAssignments"] = creativeFieldAssignments.map((value) =
> (value).toJson()).toList(); |
| 15761 } | 16160 } |
| 15762 if (customKeyValues != null) { | 16161 if (customKeyValues != null) { |
| 15763 _json["customKeyValues"] = customKeyValues; | 16162 _json["customKeyValues"] = customKeyValues; |
| 15764 } | 16163 } |
| 16164 if (dynamicAssetSelection != null) { |
| 16165 _json["dynamicAssetSelection"] = dynamicAssetSelection; |
| 16166 } |
| 15765 if (exitCustomEvents != null) { | 16167 if (exitCustomEvents != null) { |
| 15766 _json["exitCustomEvents"] = exitCustomEvents.map((value) => (value).toJson
()).toList(); | 16168 _json["exitCustomEvents"] = exitCustomEvents.map((value) => (value).toJson
()).toList(); |
| 15767 } | 16169 } |
| 15768 if (fsCommand != null) { | 16170 if (fsCommand != null) { |
| 15769 _json["fsCommand"] = (fsCommand).toJson(); | 16171 _json["fsCommand"] = (fsCommand).toJson(); |
| 15770 } | 16172 } |
| 15771 if (htmlCode != null) { | 16173 if (htmlCode != null) { |
| 15772 _json["htmlCode"] = htmlCode; | 16174 _json["htmlCode"] = htmlCode; |
| 15773 } | 16175 } |
| 15774 if (htmlCodeLocked != null) { | 16176 if (htmlCodeLocked != null) { |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15927 */ | 16329 */ |
| 15928 core.String childAssetType; | 16330 core.String childAssetType; |
| 15929 /** | 16331 /** |
| 15930 * Size of an asset when collapsed. This is a read-only field. Applicable to | 16332 * Size of an asset when collapsed. This is a read-only field. Applicable to |
| 15931 * the following creative types: all RICH_MEDIA and all VPAID. Additionally, | 16333 * the following creative types: all RICH_MEDIA and all VPAID. Additionally, |
| 15932 * applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or | 16334 * applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or |
| 15933 * ASSET_DISPLAY_TYPE_PEEL_DOWN. | 16335 * ASSET_DISPLAY_TYPE_PEEL_DOWN. |
| 15934 */ | 16336 */ |
| 15935 Size collapsedSize; | 16337 Size collapsedSize; |
| 15936 /** | 16338 /** |
| 16339 * List of companion creatives assigned to an in-stream video creative asset. |
| 16340 * Acceptable values include IDs of existing flash and image creatives. |
| 16341 * Applicable to INSTREAM_VIDEO creative type with dynamicAssetSelection set |
| 16342 * to true. |
| 16343 */ |
| 16344 core.List<core.String> companionCreativeIds; |
| 16345 /** |
| 15937 * Custom start time in seconds for making the asset visible. Applicable to | 16346 * Custom start time in seconds for making the asset visible. Applicable to |
| 15938 * the following creative types: all RICH_MEDIA. | 16347 * the following creative types: all RICH_MEDIA. |
| 15939 */ | 16348 */ |
| 15940 core.int customStartTimeValue; | 16349 core.int customStartTimeValue; |
| 15941 /** | 16350 /** |
| 15942 * List of feature dependencies for the creative asset that are detected by | 16351 * List of feature dependencies for the creative asset that are detected by |
| 15943 * DCM. Feature dependencies are features that a browser must be able to | 16352 * DCM. Feature dependencies are features that a browser must be able to |
| 15944 * support in order to render your HTML5 creative correctly. This is a | 16353 * support in order to render your HTML5 creative correctly. This is a |
| 15945 * read-only, auto-generated field. Applicable to the following creative | 16354 * read-only, auto-generated field. Applicable to the following creative |
| 15946 * types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is | 16355 * types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is |
| 15947 * not HTML_IMAGE. | 16356 * not HTML_IMAGE. |
| 15948 */ | 16357 */ |
| 15949 core.List<core.String> detectedFeatures; | 16358 core.List<core.String> detectedFeatures; |
| 15950 /** | 16359 /** |
| 15951 * Type of rich media asset. This is a read-only field. Applicable to the | 16360 * Type of rich media asset. This is a read-only field. Applicable to the |
| 15952 * following creative types: all RICH_MEDIA. | 16361 * following creative types: all RICH_MEDIA. |
| 15953 * Possible string values are: | 16362 * Possible string values are: |
| 16363 * - "ASSET_DISPLAY_TYPE_BACKDROP" |
| 15954 * - "ASSET_DISPLAY_TYPE_EXPANDING" | 16364 * - "ASSET_DISPLAY_TYPE_EXPANDING" |
| 15955 * - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH" | 16365 * - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH" |
| 15956 * - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING" | 16366 * - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING" |
| 15957 * - "ASSET_DISPLAY_TYPE_FLOATING" | 16367 * - "ASSET_DISPLAY_TYPE_FLOATING" |
| 15958 * - "ASSET_DISPLAY_TYPE_INPAGE" | 16368 * - "ASSET_DISPLAY_TYPE_INPAGE" |
| 15959 * - "ASSET_DISPLAY_TYPE_OVERLAY" | 16369 * - "ASSET_DISPLAY_TYPE_OVERLAY" |
| 15960 * - "ASSET_DISPLAY_TYPE_PEEL_DOWN" | 16370 * - "ASSET_DISPLAY_TYPE_PEEL_DOWN" |
| 15961 * - "ASSET_DISPLAY_TYPE_VPAID_LINEAR" | 16371 * - "ASSET_DISPLAY_TYPE_VPAID_LINEAR" |
| 15962 * - "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" | 16372 * - "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" |
| 15963 */ | 16373 */ |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16008 * Applicable to the following creative types: all RICH_MEDIA. | 16418 * Applicable to the following creative types: all RICH_MEDIA. |
| 16009 */ | 16419 */ |
| 16010 core.bool horizontallyLocked; | 16420 core.bool horizontallyLocked; |
| 16011 /** | 16421 /** |
| 16012 * Numeric ID of this creative asset. This is a required field and should not | 16422 * Numeric ID of this creative asset. This is a required field and should not |
| 16013 * be modified. Applicable to all but the following creative types: all | 16423 * be modified. Applicable to all but the following creative types: all |
| 16014 * REDIRECT and TRACKING_TEXT. | 16424 * REDIRECT and TRACKING_TEXT. |
| 16015 */ | 16425 */ |
| 16016 core.String id; | 16426 core.String id; |
| 16017 /** | 16427 /** |
| 16428 * Dimension value for the ID of the asset. This is a read-only, |
| 16429 * auto-generated field. |
| 16430 */ |
| 16431 DimensionValue idDimensionValue; |
| 16432 /** |
| 16018 * Detected MIME type for video asset. This is a read-only field. Applicable | 16433 * Detected MIME type for video asset. This is a read-only field. Applicable |
| 16019 * to the following creative types: INSTREAM_VIDEO and all VPAID. | 16434 * to the following creative types: INSTREAM_VIDEO and all VPAID. |
| 16020 */ | 16435 */ |
| 16021 core.String mimeType; | 16436 core.String mimeType; |
| 16022 /** | 16437 /** |
| 16023 * Offset position for an asset in collapsed mode. This is a read-only field. | 16438 * Offset position for an asset in collapsed mode. This is a read-only field. |
| 16024 * Applicable to the following creative types: all RICH_MEDIA and all VPAID. | 16439 * Applicable to the following creative types: all RICH_MEDIA and all VPAID. |
| 16025 * Additionally, only applicable to assets whose displayType is | 16440 * Additionally, only applicable to assets whose displayType is |
| 16026 * ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. | 16441 * ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. |
| 16027 */ | 16442 */ |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16205 } | 16620 } |
| 16206 if (_json.containsKey("bitRate")) { | 16621 if (_json.containsKey("bitRate")) { |
| 16207 bitRate = _json["bitRate"]; | 16622 bitRate = _json["bitRate"]; |
| 16208 } | 16623 } |
| 16209 if (_json.containsKey("childAssetType")) { | 16624 if (_json.containsKey("childAssetType")) { |
| 16210 childAssetType = _json["childAssetType"]; | 16625 childAssetType = _json["childAssetType"]; |
| 16211 } | 16626 } |
| 16212 if (_json.containsKey("collapsedSize")) { | 16627 if (_json.containsKey("collapsedSize")) { |
| 16213 collapsedSize = new Size.fromJson(_json["collapsedSize"]); | 16628 collapsedSize = new Size.fromJson(_json["collapsedSize"]); |
| 16214 } | 16629 } |
| 16630 if (_json.containsKey("companionCreativeIds")) { |
| 16631 companionCreativeIds = _json["companionCreativeIds"]; |
| 16632 } |
| 16215 if (_json.containsKey("customStartTimeValue")) { | 16633 if (_json.containsKey("customStartTimeValue")) { |
| 16216 customStartTimeValue = _json["customStartTimeValue"]; | 16634 customStartTimeValue = _json["customStartTimeValue"]; |
| 16217 } | 16635 } |
| 16218 if (_json.containsKey("detectedFeatures")) { | 16636 if (_json.containsKey("detectedFeatures")) { |
| 16219 detectedFeatures = _json["detectedFeatures"]; | 16637 detectedFeatures = _json["detectedFeatures"]; |
| 16220 } | 16638 } |
| 16221 if (_json.containsKey("displayType")) { | 16639 if (_json.containsKey("displayType")) { |
| 16222 displayType = _json["displayType"]; | 16640 displayType = _json["displayType"]; |
| 16223 } | 16641 } |
| 16224 if (_json.containsKey("duration")) { | 16642 if (_json.containsKey("duration")) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 16241 } | 16659 } |
| 16242 if (_json.containsKey("hideSelectionBoxes")) { | 16660 if (_json.containsKey("hideSelectionBoxes")) { |
| 16243 hideSelectionBoxes = _json["hideSelectionBoxes"]; | 16661 hideSelectionBoxes = _json["hideSelectionBoxes"]; |
| 16244 } | 16662 } |
| 16245 if (_json.containsKey("horizontallyLocked")) { | 16663 if (_json.containsKey("horizontallyLocked")) { |
| 16246 horizontallyLocked = _json["horizontallyLocked"]; | 16664 horizontallyLocked = _json["horizontallyLocked"]; |
| 16247 } | 16665 } |
| 16248 if (_json.containsKey("id")) { | 16666 if (_json.containsKey("id")) { |
| 16249 id = _json["id"]; | 16667 id = _json["id"]; |
| 16250 } | 16668 } |
| 16669 if (_json.containsKey("idDimensionValue")) { |
| 16670 idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); |
| 16671 } |
| 16251 if (_json.containsKey("mimeType")) { | 16672 if (_json.containsKey("mimeType")) { |
| 16252 mimeType = _json["mimeType"]; | 16673 mimeType = _json["mimeType"]; |
| 16253 } | 16674 } |
| 16254 if (_json.containsKey("offset")) { | 16675 if (_json.containsKey("offset")) { |
| 16255 offset = new OffsetPosition.fromJson(_json["offset"]); | 16676 offset = new OffsetPosition.fromJson(_json["offset"]); |
| 16256 } | 16677 } |
| 16257 if (_json.containsKey("originalBackup")) { | 16678 if (_json.containsKey("originalBackup")) { |
| 16258 originalBackup = _json["originalBackup"]; | 16679 originalBackup = _json["originalBackup"]; |
| 16259 } | 16680 } |
| 16260 if (_json.containsKey("position")) { | 16681 if (_json.containsKey("position")) { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16335 } | 16756 } |
| 16336 if (bitRate != null) { | 16757 if (bitRate != null) { |
| 16337 _json["bitRate"] = bitRate; | 16758 _json["bitRate"] = bitRate; |
| 16338 } | 16759 } |
| 16339 if (childAssetType != null) { | 16760 if (childAssetType != null) { |
| 16340 _json["childAssetType"] = childAssetType; | 16761 _json["childAssetType"] = childAssetType; |
| 16341 } | 16762 } |
| 16342 if (collapsedSize != null) { | 16763 if (collapsedSize != null) { |
| 16343 _json["collapsedSize"] = (collapsedSize).toJson(); | 16764 _json["collapsedSize"] = (collapsedSize).toJson(); |
| 16344 } | 16765 } |
| 16766 if (companionCreativeIds != null) { |
| 16767 _json["companionCreativeIds"] = companionCreativeIds; |
| 16768 } |
| 16345 if (customStartTimeValue != null) { | 16769 if (customStartTimeValue != null) { |
| 16346 _json["customStartTimeValue"] = customStartTimeValue; | 16770 _json["customStartTimeValue"] = customStartTimeValue; |
| 16347 } | 16771 } |
| 16348 if (detectedFeatures != null) { | 16772 if (detectedFeatures != null) { |
| 16349 _json["detectedFeatures"] = detectedFeatures; | 16773 _json["detectedFeatures"] = detectedFeatures; |
| 16350 } | 16774 } |
| 16351 if (displayType != null) { | 16775 if (displayType != null) { |
| 16352 _json["displayType"] = displayType; | 16776 _json["displayType"] = displayType; |
| 16353 } | 16777 } |
| 16354 if (duration != null) { | 16778 if (duration != null) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 16371 } | 16795 } |
| 16372 if (hideSelectionBoxes != null) { | 16796 if (hideSelectionBoxes != null) { |
| 16373 _json["hideSelectionBoxes"] = hideSelectionBoxes; | 16797 _json["hideSelectionBoxes"] = hideSelectionBoxes; |
| 16374 } | 16798 } |
| 16375 if (horizontallyLocked != null) { | 16799 if (horizontallyLocked != null) { |
| 16376 _json["horizontallyLocked"] = horizontallyLocked; | 16800 _json["horizontallyLocked"] = horizontallyLocked; |
| 16377 } | 16801 } |
| 16378 if (id != null) { | 16802 if (id != null) { |
| 16379 _json["id"] = id; | 16803 _json["id"] = id; |
| 16380 } | 16804 } |
| 16805 if (idDimensionValue != null) { |
| 16806 _json["idDimensionValue"] = (idDimensionValue).toJson(); |
| 16807 } |
| 16381 if (mimeType != null) { | 16808 if (mimeType != null) { |
| 16382 _json["mimeType"] = mimeType; | 16809 _json["mimeType"] = mimeType; |
| 16383 } | 16810 } |
| 16384 if (offset != null) { | 16811 if (offset != null) { |
| 16385 _json["offset"] = (offset).toJson(); | 16812 _json["offset"] = (offset).toJson(); |
| 16386 } | 16813 } |
| 16387 if (originalBackup != null) { | 16814 if (originalBackup != null) { |
| 16388 _json["originalBackup"] = originalBackup; | 16815 _json["originalBackup"] = originalBackup; |
| 16389 } | 16816 } |
| 16390 if (position != null) { | 16817 if (position != null) { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16448 /** Creative Asset ID. */ | 16875 /** Creative Asset ID. */ |
| 16449 class CreativeAssetId { | 16876 class CreativeAssetId { |
| 16450 /** | 16877 /** |
| 16451 * Name of the creative asset. This is a required field while inserting an | 16878 * Name of the creative asset. This is a required field while inserting an |
| 16452 * asset. After insertion, this assetIdentifier is used to identify the | 16879 * asset. After insertion, this assetIdentifier is used to identify the |
| 16453 * uploaded asset. Characters in the name must be alphanumeric or one of the | 16880 * uploaded asset. Characters in the name must be alphanumeric or one of the |
| 16454 * following: ".-_ ". Spaces are allowed. | 16881 * following: ".-_ ". Spaces are allowed. |
| 16455 */ | 16882 */ |
| 16456 core.String name; | 16883 core.String name; |
| 16457 /** | 16884 /** |
| 16458 * Type of asset to upload. This is a required field. IMAGE is solely used for | 16885 * Type of asset to upload. This is a required field. FLASH and IMAGE are no |
| 16459 * IMAGE creatives. Other image assets should use HTML_IMAGE. | 16886 * longer supported for new uploads. All image assets should use HTML_IMAGE. |
| 16460 * Possible string values are: | 16887 * Possible string values are: |
| 16461 * - "FLASH" | 16888 * - "FLASH" |
| 16462 * - "HTML" | 16889 * - "HTML" |
| 16463 * - "HTML_IMAGE" | 16890 * - "HTML_IMAGE" |
| 16464 * - "IMAGE" | 16891 * - "IMAGE" |
| 16465 * - "VIDEO" | 16892 * - "VIDEO" |
| 16466 */ | 16893 */ |
| 16467 core.String type; | 16894 core.String type; |
| 16468 | 16895 |
| 16469 CreativeAssetId(); | 16896 CreativeAssetId(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16502 * field. | 16929 * field. |
| 16503 */ | 16930 */ |
| 16504 core.List<ClickTag> clickTags; | 16931 core.List<ClickTag> clickTags; |
| 16505 /** | 16932 /** |
| 16506 * List of feature dependencies for the creative asset that are detected by | 16933 * List of feature dependencies for the creative asset that are detected by |
| 16507 * DCM. Feature dependencies are features that a browser must be able to | 16934 * DCM. Feature dependencies are features that a browser must be able to |
| 16508 * support in order to render your HTML5 creative correctly. This is a | 16935 * support in order to render your HTML5 creative correctly. This is a |
| 16509 * read-only, auto-generated field. | 16936 * read-only, auto-generated field. |
| 16510 */ | 16937 */ |
| 16511 core.List<core.String> detectedFeatures; | 16938 core.List<core.String> detectedFeatures; |
| 16939 /** Numeric ID of the asset. This is a read-only, auto-generated field. */ |
| 16940 core.String id; |
| 16941 /** |
| 16942 * Dimension value for the numeric ID of the asset. This is a read-only, |
| 16943 * auto-generated field. |
| 16944 */ |
| 16945 DimensionValue idDimensionValue; |
| 16512 /** | 16946 /** |
| 16513 * Identifies what kind of resource this is. Value: the fixed string | 16947 * Identifies what kind of resource this is. Value: the fixed string |
| 16514 * "dfareporting#creativeAssetMetadata". | 16948 * "dfareporting#creativeAssetMetadata". |
| 16515 */ | 16949 */ |
| 16516 core.String kind; | 16950 core.String kind; |
| 16517 /** | 16951 /** |
| 16518 * Rules validated during code generation that generated a warning. This is a | 16952 * Rules validated during code generation that generated a warning. This is a |
| 16519 * read-only, auto-generated field. | 16953 * read-only, auto-generated field. |
| 16520 * | 16954 * |
| 16521 * Possible values are: | 16955 * Possible values are: |
| (...skipping 29 matching lines...) Expand all Loading... |
| 16551 CreativeAssetMetadata.fromJson(core.Map _json) { | 16985 CreativeAssetMetadata.fromJson(core.Map _json) { |
| 16552 if (_json.containsKey("assetIdentifier")) { | 16986 if (_json.containsKey("assetIdentifier")) { |
| 16553 assetIdentifier = new CreativeAssetId.fromJson(_json["assetIdentifier"]); | 16987 assetIdentifier = new CreativeAssetId.fromJson(_json["assetIdentifier"]); |
| 16554 } | 16988 } |
| 16555 if (_json.containsKey("clickTags")) { | 16989 if (_json.containsKey("clickTags")) { |
| 16556 clickTags = _json["clickTags"].map((value) => new ClickTag.fromJson(value)
).toList(); | 16990 clickTags = _json["clickTags"].map((value) => new ClickTag.fromJson(value)
).toList(); |
| 16557 } | 16991 } |
| 16558 if (_json.containsKey("detectedFeatures")) { | 16992 if (_json.containsKey("detectedFeatures")) { |
| 16559 detectedFeatures = _json["detectedFeatures"]; | 16993 detectedFeatures = _json["detectedFeatures"]; |
| 16560 } | 16994 } |
| 16995 if (_json.containsKey("id")) { |
| 16996 id = _json["id"]; |
| 16997 } |
| 16998 if (_json.containsKey("idDimensionValue")) { |
| 16999 idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); |
| 17000 } |
| 16561 if (_json.containsKey("kind")) { | 17001 if (_json.containsKey("kind")) { |
| 16562 kind = _json["kind"]; | 17002 kind = _json["kind"]; |
| 16563 } | 17003 } |
| 16564 if (_json.containsKey("warnedValidationRules")) { | 17004 if (_json.containsKey("warnedValidationRules")) { |
| 16565 warnedValidationRules = _json["warnedValidationRules"]; | 17005 warnedValidationRules = _json["warnedValidationRules"]; |
| 16566 } | 17006 } |
| 16567 } | 17007 } |
| 16568 | 17008 |
| 16569 core.Map toJson() { | 17009 core.Map toJson() { |
| 16570 var _json = new core.Map(); | 17010 var _json = new core.Map(); |
| 16571 if (assetIdentifier != null) { | 17011 if (assetIdentifier != null) { |
| 16572 _json["assetIdentifier"] = (assetIdentifier).toJson(); | 17012 _json["assetIdentifier"] = (assetIdentifier).toJson(); |
| 16573 } | 17013 } |
| 16574 if (clickTags != null) { | 17014 if (clickTags != null) { |
| 16575 _json["clickTags"] = clickTags.map((value) => (value).toJson()).toList(); | 17015 _json["clickTags"] = clickTags.map((value) => (value).toJson()).toList(); |
| 16576 } | 17016 } |
| 16577 if (detectedFeatures != null) { | 17017 if (detectedFeatures != null) { |
| 16578 _json["detectedFeatures"] = detectedFeatures; | 17018 _json["detectedFeatures"] = detectedFeatures; |
| 16579 } | 17019 } |
| 17020 if (id != null) { |
| 17021 _json["id"] = id; |
| 17022 } |
| 17023 if (idDimensionValue != null) { |
| 17024 _json["idDimensionValue"] = (idDimensionValue).toJson(); |
| 17025 } |
| 16580 if (kind != null) { | 17026 if (kind != null) { |
| 16581 _json["kind"] = kind; | 17027 _json["kind"] = kind; |
| 16582 } | 17028 } |
| 16583 if (warnedValidationRules != null) { | 17029 if (warnedValidationRules != null) { |
| 16584 _json["warnedValidationRules"] = warnedValidationRules; | 17030 _json["warnedValidationRules"] = warnedValidationRules; |
| 16585 } | 17031 } |
| 16586 return _json; | 17032 return _json; |
| 16587 } | 17033 } |
| 16588 } | 17034 } |
| 16589 | 17035 |
| 17036 /** |
| 17037 * Encapsulates the list of rules for asset selection and a default asset in |
| 17038 * case none of the rules match. Applicable to INSTREAM_VIDEO creatives. |
| 17039 */ |
| 17040 class CreativeAssetSelection { |
| 17041 /** |
| 17042 * A creativeAssets[].id. This should refer to one of the parent assets in |
| 17043 * this creative, and will be served if none of the rules match. This is a |
| 17044 * required field. |
| 17045 */ |
| 17046 core.String defaultAssetId; |
| 17047 /** |
| 17048 * Rules determine which asset will be served to a viewer. Rules will be |
| 17049 * evaluated in the order in which they are stored in this list. This list |
| 17050 * must contain at least one rule. Applicable to INSTREAM_VIDEO creatives. |
| 17051 */ |
| 17052 core.List<Rule> rules; |
| 17053 |
| 17054 CreativeAssetSelection(); |
| 17055 |
| 17056 CreativeAssetSelection.fromJson(core.Map _json) { |
| 17057 if (_json.containsKey("defaultAssetId")) { |
| 17058 defaultAssetId = _json["defaultAssetId"]; |
| 17059 } |
| 17060 if (_json.containsKey("rules")) { |
| 17061 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); |
| 17062 } |
| 17063 } |
| 17064 |
| 17065 core.Map toJson() { |
| 17066 var _json = new core.Map(); |
| 17067 if (defaultAssetId != null) { |
| 17068 _json["defaultAssetId"] = defaultAssetId; |
| 17069 } |
| 17070 if (rules != null) { |
| 17071 _json["rules"] = rules.map((value) => (value).toJson()).toList(); |
| 17072 } |
| 17073 return _json; |
| 17074 } |
| 17075 } |
| 17076 |
| 16590 /** Creative Assignment. */ | 17077 /** Creative Assignment. */ |
| 16591 class CreativeAssignment { | 17078 class CreativeAssignment { |
| 16592 /** | 17079 /** |
| 16593 * Whether this creative assignment is active. When true, the creative will be | 17080 * Whether this creative assignment is active. When true, the creative will be |
| 16594 * included in the ad's rotation. | 17081 * included in the ad's rotation. |
| 16595 */ | 17082 */ |
| 16596 core.bool active; | 17083 core.bool active; |
| 16597 /** | 17084 /** |
| 16598 * Whether applicable event tags should fire when this creative assignment is | 17085 * Whether applicable event tags should fire when this creative assignment is |
| 16599 * rendered. If this value is unset when the ad is inserted or updated, it | 17086 * rendered. If this value is unset when the ad is inserted or updated, it |
| (...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17585 * Identifies what kind of resource this is. Value: the fixed string | 18072 * Identifies what kind of resource this is. Value: the fixed string |
| 17586 * "dfareporting#customFloodlightVariable". | 18073 * "dfareporting#customFloodlightVariable". |
| 17587 */ | 18074 */ |
| 17588 core.String kind; | 18075 core.String kind; |
| 17589 /** | 18076 /** |
| 17590 * The type of custom floodlight variable to supply a value for. These map to | 18077 * The type of custom floodlight variable to supply a value for. These map to |
| 17591 * the "u[1-20]=" in the tags. | 18078 * the "u[1-20]=" in the tags. |
| 17592 * Possible string values are: | 18079 * Possible string values are: |
| 17593 * - "U1" | 18080 * - "U1" |
| 17594 * - "U10" | 18081 * - "U10" |
| 18082 * - "U100" |
| 17595 * - "U11" | 18083 * - "U11" |
| 17596 * - "U12" | 18084 * - "U12" |
| 17597 * - "U13" | 18085 * - "U13" |
| 17598 * - "U14" | 18086 * - "U14" |
| 17599 * - "U15" | 18087 * - "U15" |
| 17600 * - "U16" | 18088 * - "U16" |
| 17601 * - "U17" | 18089 * - "U17" |
| 17602 * - "U18" | 18090 * - "U18" |
| 17603 * - "U19" | 18091 * - "U19" |
| 17604 * - "U2" | 18092 * - "U2" |
| 17605 * - "U20" | 18093 * - "U20" |
| 18094 * - "U21" |
| 18095 * - "U22" |
| 18096 * - "U23" |
| 18097 * - "U24" |
| 18098 * - "U25" |
| 18099 * - "U26" |
| 18100 * - "U27" |
| 18101 * - "U28" |
| 18102 * - "U29" |
| 17606 * - "U3" | 18103 * - "U3" |
| 18104 * - "U30" |
| 18105 * - "U31" |
| 18106 * - "U32" |
| 18107 * - "U33" |
| 18108 * - "U34" |
| 18109 * - "U35" |
| 18110 * - "U36" |
| 18111 * - "U37" |
| 18112 * - "U38" |
| 18113 * - "U39" |
| 17607 * - "U4" | 18114 * - "U4" |
| 18115 * - "U40" |
| 18116 * - "U41" |
| 18117 * - "U42" |
| 18118 * - "U43" |
| 18119 * - "U44" |
| 18120 * - "U45" |
| 18121 * - "U46" |
| 18122 * - "U47" |
| 18123 * - "U48" |
| 18124 * - "U49" |
| 17608 * - "U5" | 18125 * - "U5" |
| 18126 * - "U50" |
| 18127 * - "U51" |
| 18128 * - "U52" |
| 18129 * - "U53" |
| 18130 * - "U54" |
| 18131 * - "U55" |
| 18132 * - "U56" |
| 18133 * - "U57" |
| 18134 * - "U58" |
| 18135 * - "U59" |
| 17609 * - "U6" | 18136 * - "U6" |
| 18137 * - "U60" |
| 18138 * - "U61" |
| 18139 * - "U62" |
| 18140 * - "U63" |
| 18141 * - "U64" |
| 18142 * - "U65" |
| 18143 * - "U66" |
| 18144 * - "U67" |
| 18145 * - "U68" |
| 18146 * - "U69" |
| 17610 * - "U7" | 18147 * - "U7" |
| 18148 * - "U70" |
| 18149 * - "U71" |
| 18150 * - "U72" |
| 18151 * - "U73" |
| 18152 * - "U74" |
| 18153 * - "U75" |
| 18154 * - "U76" |
| 18155 * - "U77" |
| 18156 * - "U78" |
| 18157 * - "U79" |
| 17611 * - "U8" | 18158 * - "U8" |
| 18159 * - "U80" |
| 18160 * - "U81" |
| 18161 * - "U82" |
| 18162 * - "U83" |
| 18163 * - "U84" |
| 18164 * - "U85" |
| 18165 * - "U86" |
| 18166 * - "U87" |
| 18167 * - "U88" |
| 18168 * - "U89" |
| 17612 * - "U9" | 18169 * - "U9" |
| 18170 * - "U90" |
| 18171 * - "U91" |
| 18172 * - "U92" |
| 18173 * - "U93" |
| 18174 * - "U94" |
| 18175 * - "U95" |
| 18176 * - "U96" |
| 18177 * - "U97" |
| 18178 * - "U98" |
| 18179 * - "U99" |
| 17613 */ | 18180 */ |
| 17614 core.String type; | 18181 core.String type; |
| 17615 /** | 18182 /** |
| 17616 * The value of the custom floodlight variable. The length of string must not | 18183 * The value of the custom floodlight variable. The length of string must not |
| 17617 * exceed 50 characters. | 18184 * exceed 50 characters. |
| 17618 */ | 18185 */ |
| 17619 core.String value; | 18186 core.String value; |
| 17620 | 18187 |
| 17621 CustomFloodlightVariable(); | 18188 CustomFloodlightVariable(); |
| 17622 | 18189 |
| (...skipping 3383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21006 | 21573 |
| 21007 LandingPagesListResponse.fromJson(core.Map _json) { | 21574 LandingPagesListResponse.fromJson(core.Map _json) { |
| 21008 if (_json.containsKey("kind")) { | 21575 if (_json.containsKey("kind")) { |
| 21009 kind = _json["kind"]; | 21576 kind = _json["kind"]; |
| 21010 } | 21577 } |
| 21011 if (_json.containsKey("landingPages")) { | 21578 if (_json.containsKey("landingPages")) { |
| 21012 landingPages = _json["landingPages"].map((value) => new LandingPage.fromJs
on(value)).toList(); | 21579 landingPages = _json["landingPages"].map((value) => new LandingPage.fromJs
on(value)).toList(); |
| 21013 } | 21580 } |
| 21014 } | 21581 } |
| 21015 | 21582 |
| 21583 core.Map toJson() { |
| 21584 var _json = new core.Map(); |
| 21585 if (kind != null) { |
| 21586 _json["kind"] = kind; |
| 21587 } |
| 21588 if (landingPages != null) { |
| 21589 _json["landingPages"] = landingPages.map((value) => (value).toJson()).toLi
st(); |
| 21590 } |
| 21591 return _json; |
| 21592 } |
| 21593 } |
| 21594 |
| 21595 /** Contains information about a language that can be targeted by ads. */ |
| 21596 class Language { |
| 21597 /** |
| 21598 * Language ID of this language. This is the ID used for targeting and |
| 21599 * generating reports. |
| 21600 */ |
| 21601 core.String id; |
| 21602 /** |
| 21603 * Identifies what kind of resource this is. Value: the fixed string |
| 21604 * "dfareporting#language". |
| 21605 */ |
| 21606 core.String kind; |
| 21607 /** |
| 21608 * Format of language code is an ISO 639 two-letter language code optionally |
| 21609 * followed by an underscore followed by an ISO 3166 code. Examples are "en" |
| 21610 * for English or "zh_CN" for Simplified Chinese. |
| 21611 */ |
| 21612 core.String languageCode; |
| 21613 /** Name of this language. */ |
| 21614 core.String name; |
| 21615 |
| 21616 Language(); |
| 21617 |
| 21618 Language.fromJson(core.Map _json) { |
| 21619 if (_json.containsKey("id")) { |
| 21620 id = _json["id"]; |
| 21621 } |
| 21622 if (_json.containsKey("kind")) { |
| 21623 kind = _json["kind"]; |
| 21624 } |
| 21625 if (_json.containsKey("languageCode")) { |
| 21626 languageCode = _json["languageCode"]; |
| 21627 } |
| 21628 if (_json.containsKey("name")) { |
| 21629 name = _json["name"]; |
| 21630 } |
| 21631 } |
| 21632 |
| 21633 core.Map toJson() { |
| 21634 var _json = new core.Map(); |
| 21635 if (id != null) { |
| 21636 _json["id"] = id; |
| 21637 } |
| 21638 if (kind != null) { |
| 21639 _json["kind"] = kind; |
| 21640 } |
| 21641 if (languageCode != null) { |
| 21642 _json["languageCode"] = languageCode; |
| 21643 } |
| 21644 if (name != null) { |
| 21645 _json["name"] = name; |
| 21646 } |
| 21647 return _json; |
| 21648 } |
| 21649 } |
| 21650 |
| 21651 /** Language Targeting. */ |
| 21652 class LanguageTargeting { |
| 21653 /** |
| 21654 * Languages that this ad targets. For each language only languageId is |
| 21655 * required. The other fields are populated automatically when the ad is |
| 21656 * inserted or updated. |
| 21657 */ |
| 21658 core.List<Language> languages; |
| 21659 |
| 21660 LanguageTargeting(); |
| 21661 |
| 21662 LanguageTargeting.fromJson(core.Map _json) { |
| 21663 if (_json.containsKey("languages")) { |
| 21664 languages = _json["languages"].map((value) => new Language.fromJson(value)
).toList(); |
| 21665 } |
| 21666 } |
| 21667 |
| 21668 core.Map toJson() { |
| 21669 var _json = new core.Map(); |
| 21670 if (languages != null) { |
| 21671 _json["languages"] = languages.map((value) => (value).toJson()).toList(); |
| 21672 } |
| 21673 return _json; |
| 21674 } |
| 21675 } |
| 21676 |
| 21677 /** Language List Response */ |
| 21678 class LanguagesListResponse { |
| 21679 /** |
| 21680 * Identifies what kind of resource this is. Value: the fixed string |
| 21681 * "dfareporting#languagesListResponse". |
| 21682 */ |
| 21683 core.String kind; |
| 21684 /** Language collection. */ |
| 21685 core.List<Language> languages; |
| 21686 |
| 21687 LanguagesListResponse(); |
| 21688 |
| 21689 LanguagesListResponse.fromJson(core.Map _json) { |
| 21690 if (_json.containsKey("kind")) { |
| 21691 kind = _json["kind"]; |
| 21692 } |
| 21693 if (_json.containsKey("languages")) { |
| 21694 languages = _json["languages"].map((value) => new Language.fromJson(value)
).toList(); |
| 21695 } |
| 21696 } |
| 21697 |
| 21016 core.Map toJson() { | 21698 core.Map toJson() { |
| 21017 var _json = new core.Map(); | 21699 var _json = new core.Map(); |
| 21018 if (kind != null) { | 21700 if (kind != null) { |
| 21019 _json["kind"] = kind; | 21701 _json["kind"] = kind; |
| 21020 } | 21702 } |
| 21021 if (landingPages != null) { | 21703 if (languages != null) { |
| 21022 _json["landingPages"] = landingPages.map((value) => (value).toJson()).toLi
st(); | 21704 _json["languages"] = languages.map((value) => (value).toJson()).toList(); |
| 21023 } | 21705 } |
| 21024 return _json; | 21706 return _json; |
| 21025 } | 21707 } |
| 21026 } | 21708 } |
| 21027 | 21709 |
| 21028 /** Modification timestamp. */ | 21710 /** Modification timestamp. */ |
| 21029 class LastModifiedInfo { | 21711 class LastModifiedInfo { |
| 21030 /** Timestamp of the last change in milliseconds since epoch. */ | 21712 /** Timestamp of the last change in milliseconds since epoch. */ |
| 21031 core.String time; | 21713 core.String time; |
| 21032 | 21714 |
| (...skipping 2714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23747 * - "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" | 24429 * - "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" |
| 23748 */ | 24430 */ |
| 23749 core.String groupType; | 24431 core.String groupType; |
| 23750 /** | 24432 /** |
| 23751 * Pricing type of this inventory item. | 24433 * Pricing type of this inventory item. |
| 23752 * Possible string values are: | 24434 * Possible string values are: |
| 23753 * - "PLANNING_PLACEMENT_PRICING_TYPE_CLICKS" | 24435 * - "PLANNING_PLACEMENT_PRICING_TYPE_CLICKS" |
| 23754 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPA" | 24436 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPA" |
| 23755 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPC" | 24437 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPC" |
| 23756 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM" | 24438 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM" |
| 24439 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM_ACTIVEVIEW" |
| 23757 * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS" | 24440 * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS" |
| 23758 * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS" | 24441 * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS" |
| 23759 * - "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS" | 24442 * - "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS" |
| 23760 */ | 24443 */ |
| 23761 core.String pricingType; | 24444 core.String pricingType; |
| 23762 /** Start date of this inventory item. */ | 24445 /** Start date of this inventory item. */ |
| 23763 core.DateTime startDate; | 24446 core.DateTime startDate; |
| 23764 | 24447 |
| 23765 Pricing(); | 24448 Pricing(); |
| 23766 | 24449 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23841 */ | 24524 */ |
| 23842 core.String floodlightActivityId; | 24525 core.String floodlightActivityId; |
| 23843 /** Pricing periods for this placement. */ | 24526 /** Pricing periods for this placement. */ |
| 23844 core.List<PricingSchedulePricingPeriod> pricingPeriods; | 24527 core.List<PricingSchedulePricingPeriod> pricingPeriods; |
| 23845 /** | 24528 /** |
| 23846 * Placement pricing type. This field is required on insertion. | 24529 * Placement pricing type. This field is required on insertion. |
| 23847 * Possible string values are: | 24530 * Possible string values are: |
| 23848 * - "PRICING_TYPE_CPA" | 24531 * - "PRICING_TYPE_CPA" |
| 23849 * - "PRICING_TYPE_CPC" | 24532 * - "PRICING_TYPE_CPC" |
| 23850 * - "PRICING_TYPE_CPM" | 24533 * - "PRICING_TYPE_CPM" |
| 24534 * - "PRICING_TYPE_CPM_ACTIVEVIEW" |
| 23851 * - "PRICING_TYPE_FLAT_RATE_CLICKS" | 24535 * - "PRICING_TYPE_FLAT_RATE_CLICKS" |
| 23852 * - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" | 24536 * - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" |
| 23853 */ | 24537 */ |
| 23854 core.String pricingType; | 24538 core.String pricingType; |
| 23855 /** | 24539 /** |
| 23856 * Placement start date. This date must be later than, or the same day as, the | 24540 * Placement start date. This date must be later than, or the same day as, the |
| 23857 * campaign start date. The hours, minutes, and seconds of the start date | 24541 * campaign start date. The hours, minutes, and seconds of the start date |
| 23858 * should not be set, as doing so will result in an error. This field is | 24542 * should not be set, as doing so will result in an error. This field is |
| 23859 * required on insertion. | 24543 * required on insertion. |
| 23860 */ | 24544 */ |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24052 /** Subaccount ID of this project. */ | 24736 /** Subaccount ID of this project. */ |
| 24053 core.String subaccountId; | 24737 core.String subaccountId; |
| 24054 /** Number of clicks that the advertiser is targeting. */ | 24738 /** Number of clicks that the advertiser is targeting. */ |
| 24055 core.String targetClicks; | 24739 core.String targetClicks; |
| 24056 /** Number of conversions that the advertiser is targeting. */ | 24740 /** Number of conversions that the advertiser is targeting. */ |
| 24057 core.String targetConversions; | 24741 core.String targetConversions; |
| 24058 /** CPA that the advertiser is targeting. */ | 24742 /** CPA that the advertiser is targeting. */ |
| 24059 core.String targetCpaNanos; | 24743 core.String targetCpaNanos; |
| 24060 /** CPC that the advertiser is targeting. */ | 24744 /** CPC that the advertiser is targeting. */ |
| 24061 core.String targetCpcNanos; | 24745 core.String targetCpcNanos; |
| 24746 /** vCPM from Active View that the advertiser is targeting. */ |
| 24747 core.String targetCpmActiveViewNanos; |
| 24062 /** CPM that the advertiser is targeting. */ | 24748 /** CPM that the advertiser is targeting. */ |
| 24063 core.String targetCpmNanos; | 24749 core.String targetCpmNanos; |
| 24064 /** Number of impressions that the advertiser is targeting. */ | 24750 /** Number of impressions that the advertiser is targeting. */ |
| 24065 core.String targetImpressions; | 24751 core.String targetImpressions; |
| 24066 | 24752 |
| 24067 Project(); | 24753 Project(); |
| 24068 | 24754 |
| 24069 Project.fromJson(core.Map _json) { | 24755 Project.fromJson(core.Map _json) { |
| 24070 if (_json.containsKey("accountId")) { | 24756 if (_json.containsKey("accountId")) { |
| 24071 accountId = _json["accountId"]; | 24757 accountId = _json["accountId"]; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24117 } | 24803 } |
| 24118 if (_json.containsKey("targetConversions")) { | 24804 if (_json.containsKey("targetConversions")) { |
| 24119 targetConversions = _json["targetConversions"]; | 24805 targetConversions = _json["targetConversions"]; |
| 24120 } | 24806 } |
| 24121 if (_json.containsKey("targetCpaNanos")) { | 24807 if (_json.containsKey("targetCpaNanos")) { |
| 24122 targetCpaNanos = _json["targetCpaNanos"]; | 24808 targetCpaNanos = _json["targetCpaNanos"]; |
| 24123 } | 24809 } |
| 24124 if (_json.containsKey("targetCpcNanos")) { | 24810 if (_json.containsKey("targetCpcNanos")) { |
| 24125 targetCpcNanos = _json["targetCpcNanos"]; | 24811 targetCpcNanos = _json["targetCpcNanos"]; |
| 24126 } | 24812 } |
| 24813 if (_json.containsKey("targetCpmActiveViewNanos")) { |
| 24814 targetCpmActiveViewNanos = _json["targetCpmActiveViewNanos"]; |
| 24815 } |
| 24127 if (_json.containsKey("targetCpmNanos")) { | 24816 if (_json.containsKey("targetCpmNanos")) { |
| 24128 targetCpmNanos = _json["targetCpmNanos"]; | 24817 targetCpmNanos = _json["targetCpmNanos"]; |
| 24129 } | 24818 } |
| 24130 if (_json.containsKey("targetImpressions")) { | 24819 if (_json.containsKey("targetImpressions")) { |
| 24131 targetImpressions = _json["targetImpressions"]; | 24820 targetImpressions = _json["targetImpressions"]; |
| 24132 } | 24821 } |
| 24133 } | 24822 } |
| 24134 | 24823 |
| 24135 core.Map toJson() { | 24824 core.Map toJson() { |
| 24136 var _json = new core.Map(); | 24825 var _json = new core.Map(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24184 } | 24873 } |
| 24185 if (targetConversions != null) { | 24874 if (targetConversions != null) { |
| 24186 _json["targetConversions"] = targetConversions; | 24875 _json["targetConversions"] = targetConversions; |
| 24187 } | 24876 } |
| 24188 if (targetCpaNanos != null) { | 24877 if (targetCpaNanos != null) { |
| 24189 _json["targetCpaNanos"] = targetCpaNanos; | 24878 _json["targetCpaNanos"] = targetCpaNanos; |
| 24190 } | 24879 } |
| 24191 if (targetCpcNanos != null) { | 24880 if (targetCpcNanos != null) { |
| 24192 _json["targetCpcNanos"] = targetCpcNanos; | 24881 _json["targetCpcNanos"] = targetCpcNanos; |
| 24193 } | 24882 } |
| 24883 if (targetCpmActiveViewNanos != null) { |
| 24884 _json["targetCpmActiveViewNanos"] = targetCpmActiveViewNanos; |
| 24885 } |
| 24194 if (targetCpmNanos != null) { | 24886 if (targetCpmNanos != null) { |
| 24195 _json["targetCpmNanos"] = targetCpmNanos; | 24887 _json["targetCpmNanos"] = targetCpmNanos; |
| 24196 } | 24888 } |
| 24197 if (targetImpressions != null) { | 24889 if (targetImpressions != null) { |
| 24198 _json["targetImpressions"] = targetImpressions; | 24890 _json["targetImpressions"] = targetImpressions; |
| 24199 } | 24891 } |
| 24200 return _json; | 24892 return _json; |
| 24201 } | 24893 } |
| 24202 } | 24894 } |
| 24203 | 24895 |
| (...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25788 if (reportGenerationTimeZoneId != null) { | 26480 if (reportGenerationTimeZoneId != null) { |
| 25789 _json["reportGenerationTimeZoneId"] = reportGenerationTimeZoneId; | 26481 _json["reportGenerationTimeZoneId"] = reportGenerationTimeZoneId; |
| 25790 } | 26482 } |
| 25791 return _json; | 26483 return _json; |
| 25792 } | 26484 } |
| 25793 } | 26485 } |
| 25794 | 26486 |
| 25795 /** Rich Media Exit Override. */ | 26487 /** Rich Media Exit Override. */ |
| 25796 class RichMediaExitOverride { | 26488 class RichMediaExitOverride { |
| 25797 /** | 26489 /** |
| 25798 * Click-through URL to override the default exit URL. Applicable if the | 26490 * Click-through URL of this rich media exit override. Applicable if the |
| 25799 * useCustomExitUrl field is set to true. | 26491 * enabled field is set to true. |
| 25800 */ | 26492 */ |
| 25801 core.String customExitUrl; | 26493 ClickThroughUrl clickThroughUrl; |
| 26494 /** |
| 26495 * Whether to use the clickThroughUrl. If false, the creative-level exit will |
| 26496 * be used. |
| 26497 */ |
| 26498 core.bool enabled; |
| 25802 /** ID for the override to refer to a specific exit in the creative. */ | 26499 /** ID for the override to refer to a specific exit in the creative. */ |
| 25803 core.String exitId; | 26500 core.String exitId; |
| 25804 /** Whether to use the custom exit URL. */ | |
| 25805 core.bool useCustomExitUrl; | |
| 25806 | 26501 |
| 25807 RichMediaExitOverride(); | 26502 RichMediaExitOverride(); |
| 25808 | 26503 |
| 25809 RichMediaExitOverride.fromJson(core.Map _json) { | 26504 RichMediaExitOverride.fromJson(core.Map _json) { |
| 25810 if (_json.containsKey("customExitUrl")) { | 26505 if (_json.containsKey("clickThroughUrl")) { |
| 25811 customExitUrl = _json["customExitUrl"]; | 26506 clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); |
| 26507 } |
| 26508 if (_json.containsKey("enabled")) { |
| 26509 enabled = _json["enabled"]; |
| 25812 } | 26510 } |
| 25813 if (_json.containsKey("exitId")) { | 26511 if (_json.containsKey("exitId")) { |
| 25814 exitId = _json["exitId"]; | 26512 exitId = _json["exitId"]; |
| 25815 } | 26513 } |
| 25816 if (_json.containsKey("useCustomExitUrl")) { | |
| 25817 useCustomExitUrl = _json["useCustomExitUrl"]; | |
| 25818 } | |
| 25819 } | 26514 } |
| 25820 | 26515 |
| 25821 core.Map toJson() { | 26516 core.Map toJson() { |
| 25822 var _json = new core.Map(); | 26517 var _json = new core.Map(); |
| 25823 if (customExitUrl != null) { | 26518 if (clickThroughUrl != null) { |
| 25824 _json["customExitUrl"] = customExitUrl; | 26519 _json["clickThroughUrl"] = (clickThroughUrl).toJson(); |
| 26520 } |
| 26521 if (enabled != null) { |
| 26522 _json["enabled"] = enabled; |
| 25825 } | 26523 } |
| 25826 if (exitId != null) { | 26524 if (exitId != null) { |
| 25827 _json["exitId"] = exitId; | 26525 _json["exitId"] = exitId; |
| 25828 } | 26526 } |
| 25829 if (useCustomExitUrl != null) { | 26527 return _json; |
| 25830 _json["useCustomExitUrl"] = useCustomExitUrl; | 26528 } |
| 26529 } |
| 26530 |
| 26531 /** |
| 26532 * A rule associates an asset with a targeting template for asset-level |
| 26533 * targeting. Applicable to INSTREAM_VIDEO creatives. |
| 26534 */ |
| 26535 class Rule { |
| 26536 /** |
| 26537 * A creativeAssets[].id. This should refer to one of the parent assets in |
| 26538 * this creative. This is a required field. |
| 26539 */ |
| 26540 core.String assetId; |
| 26541 /** A user-friendly name for this rule. This is a required field. */ |
| 26542 core.String name; |
| 26543 /** |
| 26544 * A targeting template ID. The targeting from the targeting template will be |
| 26545 * used to determine whether this asset should be served. This is a required |
| 26546 * field. |
| 26547 */ |
| 26548 core.String targetingTemplateId; |
| 26549 |
| 26550 Rule(); |
| 26551 |
| 26552 Rule.fromJson(core.Map _json) { |
| 26553 if (_json.containsKey("assetId")) { |
| 26554 assetId = _json["assetId"]; |
| 26555 } |
| 26556 if (_json.containsKey("name")) { |
| 26557 name = _json["name"]; |
| 26558 } |
| 26559 if (_json.containsKey("targetingTemplateId")) { |
| 26560 targetingTemplateId = _json["targetingTemplateId"]; |
| 26561 } |
| 26562 } |
| 26563 |
| 26564 core.Map toJson() { |
| 26565 var _json = new core.Map(); |
| 26566 if (assetId != null) { |
| 26567 _json["assetId"] = assetId; |
| 26568 } |
| 26569 if (name != null) { |
| 26570 _json["name"] = name; |
| 26571 } |
| 26572 if (targetingTemplateId != null) { |
| 26573 _json["targetingTemplateId"] = targetingTemplateId; |
| 25831 } | 26574 } |
| 25832 return _json; | 26575 return _json; |
| 25833 } | 26576 } |
| 25834 } | 26577 } |
| 25835 | 26578 |
| 25836 /** Contains properties of a site. */ | 26579 /** Contains properties of a site. */ |
| 25837 class Site { | 26580 class Site { |
| 25838 /** | 26581 /** |
| 25839 * Account ID of this site. This is a read-only field that can be left blank. | 26582 * Account ID of this site. This is a read-only field that can be left blank. |
| 25840 */ | 26583 */ |
| (...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26799 if (nextPageToken != null) { | 27542 if (nextPageToken != null) { |
| 26800 _json["nextPageToken"] = nextPageToken; | 27543 _json["nextPageToken"] = nextPageToken; |
| 26801 } | 27544 } |
| 26802 if (targetableRemarketingLists != null) { | 27545 if (targetableRemarketingLists != null) { |
| 26803 _json["targetableRemarketingLists"] = targetableRemarketingLists.map((valu
e) => (value).toJson()).toList(); | 27546 _json["targetableRemarketingLists"] = targetableRemarketingLists.map((valu
e) => (value).toJson()).toList(); |
| 26804 } | 27547 } |
| 26805 return _json; | 27548 return _json; |
| 26806 } | 27549 } |
| 26807 } | 27550 } |
| 26808 | 27551 |
| 27552 /** |
| 27553 * Contains properties of a targeting template. A targeting template |
| 27554 * encapsulates targeting information which can be reused across multiple ads. |
| 27555 */ |
| 27556 class TargetingTemplate { |
| 27557 /** |
| 27558 * Account ID of this targeting template. This field, if left unset, will be |
| 27559 * auto-generated on insert and is read-only after insert. |
| 27560 */ |
| 27561 core.String accountId; |
| 27562 /** |
| 27563 * Advertiser ID of this targeting template. This is a required field on |
| 27564 * insert and is read-only after insert. |
| 27565 */ |
| 27566 core.String advertiserId; |
| 27567 /** |
| 27568 * Dimension value for the ID of the advertiser. This is a read-only, |
| 27569 * auto-generated field. |
| 27570 */ |
| 27571 DimensionValue advertiserIdDimensionValue; |
| 27572 /** Time and day targeting criteria. */ |
| 27573 DayPartTargeting dayPartTargeting; |
| 27574 /** Geographical targeting criteria. */ |
| 27575 GeoTargeting geoTargeting; |
| 27576 /** |
| 27577 * ID of this targeting template. This is a read-only, auto-generated field. |
| 27578 */ |
| 27579 core.String id; |
| 27580 /** Key-value targeting criteria. */ |
| 27581 KeyValueTargetingExpression keyValueTargetingExpression; |
| 27582 /** |
| 27583 * Identifies what kind of resource this is. Value: the fixed string |
| 27584 * "dfareporting#targetingTemplate". |
| 27585 */ |
| 27586 core.String kind; |
| 27587 /** Language targeting criteria. */ |
| 27588 LanguageTargeting languageTargeting; |
| 27589 /** Remarketing list targeting criteria. */ |
| 27590 ListTargetingExpression listTargetingExpression; |
| 27591 /** |
| 27592 * Name of this targeting template. This field is required. It must be less |
| 27593 * than 256 characters long and unique within an advertiser. |
| 27594 */ |
| 27595 core.String name; |
| 27596 /** |
| 27597 * Subaccount ID of this targeting template. This field, if left unset, will |
| 27598 * be auto-generated on insert and is read-only after insert. |
| 27599 */ |
| 27600 core.String subaccountId; |
| 27601 /** Technology platform targeting criteria. */ |
| 27602 TechnologyTargeting technologyTargeting; |
| 27603 |
| 27604 TargetingTemplate(); |
| 27605 |
| 27606 TargetingTemplate.fromJson(core.Map _json) { |
| 27607 if (_json.containsKey("accountId")) { |
| 27608 accountId = _json["accountId"]; |
| 27609 } |
| 27610 if (_json.containsKey("advertiserId")) { |
| 27611 advertiserId = _json["advertiserId"]; |
| 27612 } |
| 27613 if (_json.containsKey("advertiserIdDimensionValue")) { |
| 27614 advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiser
IdDimensionValue"]); |
| 27615 } |
| 27616 if (_json.containsKey("dayPartTargeting")) { |
| 27617 dayPartTargeting = new DayPartTargeting.fromJson(_json["dayPartTargeting"]
); |
| 27618 } |
| 27619 if (_json.containsKey("geoTargeting")) { |
| 27620 geoTargeting = new GeoTargeting.fromJson(_json["geoTargeting"]); |
| 27621 } |
| 27622 if (_json.containsKey("id")) { |
| 27623 id = _json["id"]; |
| 27624 } |
| 27625 if (_json.containsKey("keyValueTargetingExpression")) { |
| 27626 keyValueTargetingExpression = new KeyValueTargetingExpression.fromJson(_js
on["keyValueTargetingExpression"]); |
| 27627 } |
| 27628 if (_json.containsKey("kind")) { |
| 27629 kind = _json["kind"]; |
| 27630 } |
| 27631 if (_json.containsKey("languageTargeting")) { |
| 27632 languageTargeting = new LanguageTargeting.fromJson(_json["languageTargetin
g"]); |
| 27633 } |
| 27634 if (_json.containsKey("listTargetingExpression")) { |
| 27635 listTargetingExpression = new ListTargetingExpression.fromJson(_json["list
TargetingExpression"]); |
| 27636 } |
| 27637 if (_json.containsKey("name")) { |
| 27638 name = _json["name"]; |
| 27639 } |
| 27640 if (_json.containsKey("subaccountId")) { |
| 27641 subaccountId = _json["subaccountId"]; |
| 27642 } |
| 27643 if (_json.containsKey("technologyTargeting")) { |
| 27644 technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTa
rgeting"]); |
| 27645 } |
| 27646 } |
| 27647 |
| 27648 core.Map toJson() { |
| 27649 var _json = new core.Map(); |
| 27650 if (accountId != null) { |
| 27651 _json["accountId"] = accountId; |
| 27652 } |
| 27653 if (advertiserId != null) { |
| 27654 _json["advertiserId"] = advertiserId; |
| 27655 } |
| 27656 if (advertiserIdDimensionValue != null) { |
| 27657 _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(
); |
| 27658 } |
| 27659 if (dayPartTargeting != null) { |
| 27660 _json["dayPartTargeting"] = (dayPartTargeting).toJson(); |
| 27661 } |
| 27662 if (geoTargeting != null) { |
| 27663 _json["geoTargeting"] = (geoTargeting).toJson(); |
| 27664 } |
| 27665 if (id != null) { |
| 27666 _json["id"] = id; |
| 27667 } |
| 27668 if (keyValueTargetingExpression != null) { |
| 27669 _json["keyValueTargetingExpression"] = (keyValueTargetingExpression).toJso
n(); |
| 27670 } |
| 27671 if (kind != null) { |
| 27672 _json["kind"] = kind; |
| 27673 } |
| 27674 if (languageTargeting != null) { |
| 27675 _json["languageTargeting"] = (languageTargeting).toJson(); |
| 27676 } |
| 27677 if (listTargetingExpression != null) { |
| 27678 _json["listTargetingExpression"] = (listTargetingExpression).toJson(); |
| 27679 } |
| 27680 if (name != null) { |
| 27681 _json["name"] = name; |
| 27682 } |
| 27683 if (subaccountId != null) { |
| 27684 _json["subaccountId"] = subaccountId; |
| 27685 } |
| 27686 if (technologyTargeting != null) { |
| 27687 _json["technologyTargeting"] = (technologyTargeting).toJson(); |
| 27688 } |
| 27689 return _json; |
| 27690 } |
| 27691 } |
| 27692 |
| 27693 /** Targeting Template List Response */ |
| 27694 class TargetingTemplatesListResponse { |
| 27695 /** |
| 27696 * Identifies what kind of resource this is. Value: the fixed string |
| 27697 * "dfareporting#targetingTemplatesListResponse". |
| 27698 */ |
| 27699 core.String kind; |
| 27700 /** Pagination token to be used for the next list operation. */ |
| 27701 core.String nextPageToken; |
| 27702 /** Targeting template collection. */ |
| 27703 core.List<TargetingTemplate> targetingTemplates; |
| 27704 |
| 27705 TargetingTemplatesListResponse(); |
| 27706 |
| 27707 TargetingTemplatesListResponse.fromJson(core.Map _json) { |
| 27708 if (_json.containsKey("kind")) { |
| 27709 kind = _json["kind"]; |
| 27710 } |
| 27711 if (_json.containsKey("nextPageToken")) { |
| 27712 nextPageToken = _json["nextPageToken"]; |
| 27713 } |
| 27714 if (_json.containsKey("targetingTemplates")) { |
| 27715 targetingTemplates = _json["targetingTemplates"].map((value) => new Target
ingTemplate.fromJson(value)).toList(); |
| 27716 } |
| 27717 } |
| 27718 |
| 27719 core.Map toJson() { |
| 27720 var _json = new core.Map(); |
| 27721 if (kind != null) { |
| 27722 _json["kind"] = kind; |
| 27723 } |
| 27724 if (nextPageToken != null) { |
| 27725 _json["nextPageToken"] = nextPageToken; |
| 27726 } |
| 27727 if (targetingTemplates != null) { |
| 27728 _json["targetingTemplates"] = targetingTemplates.map((value) => (value).to
Json()).toList(); |
| 27729 } |
| 27730 return _json; |
| 27731 } |
| 27732 } |
| 27733 |
| 26809 /** Technology Targeting. */ | 27734 /** Technology Targeting. */ |
| 26810 class TechnologyTargeting { | 27735 class TechnologyTargeting { |
| 26811 /** | 27736 /** |
| 26812 * Browsers that this ad targets. For each browser either set browserVersionId | 27737 * Browsers that this ad targets. For each browser either set browserVersionId |
| 26813 * or dartId along with the version numbers. If both are specified, only | 27738 * or dartId along with the version numbers. If both are specified, only |
| 26814 * browserVersionId will be used.The other fields are populated automatically | 27739 * browserVersionId will be used. The other fields are populated automatically |
| 26815 * when the ad is inserted or updated. | 27740 * when the ad is inserted or updated. |
| 26816 */ | 27741 */ |
| 26817 core.List<Browser> browsers; | 27742 core.List<Browser> browsers; |
| 26818 /** | 27743 /** |
| 26819 * Connection types that this ad targets. For each connection type only id is | 27744 * Connection types that this ad targets. For each connection type only id is |
| 26820 * required.The other fields are populated automatically when the ad is | 27745 * required. The other fields are populated automatically when the ad is |
| 26821 * inserted or updated. | 27746 * inserted or updated. |
| 26822 */ | 27747 */ |
| 26823 core.List<ConnectionType> connectionTypes; | 27748 core.List<ConnectionType> connectionTypes; |
| 26824 /** | 27749 /** |
| 26825 * Mobile carriers that this ad targets. For each mobile carrier only id is | 27750 * Mobile carriers that this ad targets. For each mobile carrier only id is |
| 26826 * required, and the other fields are populated automatically when the ad is | 27751 * required, and the other fields are populated automatically when the ad is |
| 26827 * inserted or updated. If targeting a mobile carrier, do not set targeting | 27752 * inserted or updated. If targeting a mobile carrier, do not set targeting |
| 26828 * for any zip codes. | 27753 * for any zip codes. |
| 26829 */ | 27754 */ |
| 26830 core.List<MobileCarrier> mobileCarriers; | 27755 core.List<MobileCarrier> mobileCarriers; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26996 * User-friendly name for the variable which will appear in reports. This is a | 27921 * User-friendly name for the variable which will appear in reports. This is a |
| 26997 * required field, must be less than 64 characters long, and cannot contain | 27922 * required field, must be less than 64 characters long, and cannot contain |
| 26998 * the following characters: ""<>". | 27923 * the following characters: ""<>". |
| 26999 */ | 27924 */ |
| 27000 core.String reportName; | 27925 core.String reportName; |
| 27001 /** | 27926 /** |
| 27002 * Variable name in the tag. This is a required field. | 27927 * Variable name in the tag. This is a required field. |
| 27003 * Possible string values are: | 27928 * Possible string values are: |
| 27004 * - "U1" | 27929 * - "U1" |
| 27005 * - "U10" | 27930 * - "U10" |
| 27931 * - "U100" |
| 27006 * - "U11" | 27932 * - "U11" |
| 27007 * - "U12" | 27933 * - "U12" |
| 27008 * - "U13" | 27934 * - "U13" |
| 27009 * - "U14" | 27935 * - "U14" |
| 27010 * - "U15" | 27936 * - "U15" |
| 27011 * - "U16" | 27937 * - "U16" |
| 27012 * - "U17" | 27938 * - "U17" |
| 27013 * - "U18" | 27939 * - "U18" |
| 27014 * - "U19" | 27940 * - "U19" |
| 27015 * - "U2" | 27941 * - "U2" |
| 27016 * - "U20" | 27942 * - "U20" |
| 27943 * - "U21" |
| 27944 * - "U22" |
| 27945 * - "U23" |
| 27946 * - "U24" |
| 27947 * - "U25" |
| 27948 * - "U26" |
| 27949 * - "U27" |
| 27950 * - "U28" |
| 27951 * - "U29" |
| 27017 * - "U3" | 27952 * - "U3" |
| 27953 * - "U30" |
| 27954 * - "U31" |
| 27955 * - "U32" |
| 27956 * - "U33" |
| 27957 * - "U34" |
| 27958 * - "U35" |
| 27959 * - "U36" |
| 27960 * - "U37" |
| 27961 * - "U38" |
| 27962 * - "U39" |
| 27018 * - "U4" | 27963 * - "U4" |
| 27964 * - "U40" |
| 27965 * - "U41" |
| 27966 * - "U42" |
| 27967 * - "U43" |
| 27968 * - "U44" |
| 27969 * - "U45" |
| 27970 * - "U46" |
| 27971 * - "U47" |
| 27972 * - "U48" |
| 27973 * - "U49" |
| 27019 * - "U5" | 27974 * - "U5" |
| 27975 * - "U50" |
| 27976 * - "U51" |
| 27977 * - "U52" |
| 27978 * - "U53" |
| 27979 * - "U54" |
| 27980 * - "U55" |
| 27981 * - "U56" |
| 27982 * - "U57" |
| 27983 * - "U58" |
| 27984 * - "U59" |
| 27020 * - "U6" | 27985 * - "U6" |
| 27986 * - "U60" |
| 27987 * - "U61" |
| 27988 * - "U62" |
| 27989 * - "U63" |
| 27990 * - "U64" |
| 27991 * - "U65" |
| 27992 * - "U66" |
| 27993 * - "U67" |
| 27994 * - "U68" |
| 27995 * - "U69" |
| 27021 * - "U7" | 27996 * - "U7" |
| 27997 * - "U70" |
| 27998 * - "U71" |
| 27999 * - "U72" |
| 28000 * - "U73" |
| 28001 * - "U74" |
| 28002 * - "U75" |
| 28003 * - "U76" |
| 28004 * - "U77" |
| 28005 * - "U78" |
| 28006 * - "U79" |
| 27022 * - "U8" | 28007 * - "U8" |
| 28008 * - "U80" |
| 28009 * - "U81" |
| 28010 * - "U82" |
| 28011 * - "U83" |
| 28012 * - "U84" |
| 28013 * - "U85" |
| 28014 * - "U86" |
| 28015 * - "U87" |
| 28016 * - "U88" |
| 28017 * - "U89" |
| 27023 * - "U9" | 28018 * - "U9" |
| 28019 * - "U90" |
| 28020 * - "U91" |
| 28021 * - "U92" |
| 28022 * - "U93" |
| 28023 * - "U94" |
| 28024 * - "U95" |
| 28025 * - "U96" |
| 28026 * - "U97" |
| 28027 * - "U98" |
| 28028 * - "U99" |
| 27024 */ | 28029 */ |
| 27025 core.String variableType; | 28030 core.String variableType; |
| 27026 | 28031 |
| 27027 UserDefinedVariableConfiguration(); | 28032 UserDefinedVariableConfiguration(); |
| 27028 | 28033 |
| 27029 UserDefinedVariableConfiguration.fromJson(core.Map _json) { | 28034 UserDefinedVariableConfiguration.fromJson(core.Map _json) { |
| 27030 if (_json.containsKey("dataType")) { | 28035 if (_json.containsKey("dataType")) { |
| 27031 dataType = _json["dataType"]; | 28036 dataType = _json["dataType"]; |
| 27032 } | 28037 } |
| 27033 if (_json.containsKey("reportName")) { | 28038 if (_json.containsKey("reportName")) { |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27474 } | 28479 } |
| 27475 if (nextPageToken != null) { | 28480 if (nextPageToken != null) { |
| 27476 _json["nextPageToken"] = nextPageToken; | 28481 _json["nextPageToken"] = nextPageToken; |
| 27477 } | 28482 } |
| 27478 if (userRoles != null) { | 28483 if (userRoles != null) { |
| 27479 _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList(); | 28484 _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList(); |
| 27480 } | 28485 } |
| 27481 return _json; | 28486 return _json; |
| 27482 } | 28487 } |
| 27483 } | 28488 } |
| OLD | NEW |