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

Side by Side Diff: generated/googleapis/lib/dfareporting/v2_2.dart

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_0; 3 library googleapis.dfareporting.v2_2;
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.0'; 17 const core.String USER_AGENT = 'dart-api-client dfareporting/v2.2';
18 18
19 /** Manage your DoubleClick Campaign Manager ad campaigns and reports. */ 19 /** Manage your DoubleClick Campaign Manager ad campaigns and reports. */
20 class DfareportingApi { 20 class DfareportingApi {
21 /** View and manage DoubleClick for Advertisers reports */ 21 /** View and manage DoubleClick for Advertisers reports */
22 static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting "; 22 static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting ";
23 23
24 /** 24 /**
25 * View and manage your DoubleClick Campaign Manager's (DCM) display ad 25 * View and manage your DoubleClick Campaign Manager's (DCM) display ad
26 * campaigns 26 * campaigns
27 */ 27 */
(...skipping 24 matching lines...) Expand all
52 CreativeGroupsResourceApi get creativeGroups => new CreativeGroupsResourceApi( _requester); 52 CreativeGroupsResourceApi get creativeGroups => new CreativeGroupsResourceApi( _requester);
53 CreativesResourceApi get creatives => new CreativesResourceApi(_requester); 53 CreativesResourceApi get creatives => new CreativesResourceApi(_requester);
54 DimensionValuesResourceApi get dimensionValues => new DimensionValuesResourceA pi(_requester); 54 DimensionValuesResourceApi get dimensionValues => new DimensionValuesResourceA pi(_requester);
55 DirectorySiteContactsResourceApi get directorySiteContacts => new DirectorySit eContactsResourceApi(_requester); 55 DirectorySiteContactsResourceApi get directorySiteContacts => new DirectorySit eContactsResourceApi(_requester);
56 DirectorySitesResourceApi get directorySites => new DirectorySitesResourceApi( _requester); 56 DirectorySitesResourceApi get directorySites => new DirectorySitesResourceApi( _requester);
57 EventTagsResourceApi get eventTags => new EventTagsResourceApi(_requester); 57 EventTagsResourceApi get eventTags => new EventTagsResourceApi(_requester);
58 FilesResourceApi get files => new FilesResourceApi(_requester); 58 FilesResourceApi get files => new FilesResourceApi(_requester);
59 FloodlightActivitiesResourceApi get floodlightActivities => new FloodlightActi vitiesResourceApi(_requester); 59 FloodlightActivitiesResourceApi get floodlightActivities => new FloodlightActi vitiesResourceApi(_requester);
60 FloodlightActivityGroupsResourceApi get floodlightActivityGroups => new Floodl ightActivityGroupsResourceApi(_requester); 60 FloodlightActivityGroupsResourceApi get floodlightActivityGroups => new Floodl ightActivityGroupsResourceApi(_requester);
61 FloodlightConfigurationsResourceApi get floodlightConfigurations => new Floodl ightConfigurationsResourceApi(_requester); 61 FloodlightConfigurationsResourceApi get floodlightConfigurations => new Floodl ightConfigurationsResourceApi(_requester);
62 InventoryItemsResourceApi get inventoryItems => new InventoryItemsResourceApi( _requester);
62 LandingPagesResourceApi get landingPages => new LandingPagesResourceApi(_reque ster); 63 LandingPagesResourceApi get landingPages => new LandingPagesResourceApi(_reque ster);
63 MetrosResourceApi get metros => new MetrosResourceApi(_requester); 64 MetrosResourceApi get metros => new MetrosResourceApi(_requester);
64 MobileCarriersResourceApi get mobileCarriers => new MobileCarriersResourceApi( _requester); 65 MobileCarriersResourceApi get mobileCarriers => new MobileCarriersResourceApi( _requester);
65 OperatingSystemVersionsResourceApi get operatingSystemVersions => new Operatin gSystemVersionsResourceApi(_requester); 66 OperatingSystemVersionsResourceApi get operatingSystemVersions => new Operatin gSystemVersionsResourceApi(_requester);
66 OperatingSystemsResourceApi get operatingSystems => new OperatingSystemsResour ceApi(_requester); 67 OperatingSystemsResourceApi get operatingSystems => new OperatingSystemsResour ceApi(_requester);
68 OrderDocumentsResourceApi get orderDocuments => new OrderDocumentsResourceApi( _requester);
69 OrdersResourceApi get orders => new OrdersResourceApi(_requester);
67 PlacementGroupsResourceApi get placementGroups => new PlacementGroupsResourceA pi(_requester); 70 PlacementGroupsResourceApi get placementGroups => new PlacementGroupsResourceA pi(_requester);
68 PlacementStrategiesResourceApi get placementStrategies => new PlacementStrateg iesResourceApi(_requester); 71 PlacementStrategiesResourceApi get placementStrategies => new PlacementStrateg iesResourceApi(_requester);
69 PlacementsResourceApi get placements => new PlacementsResourceApi(_requester); 72 PlacementsResourceApi get placements => new PlacementsResourceApi(_requester);
70 PlatformTypesResourceApi get platformTypes => new PlatformTypesResourceApi(_re quester); 73 PlatformTypesResourceApi get platformTypes => new PlatformTypesResourceApi(_re quester);
71 PostalCodesResourceApi get postalCodes => new PostalCodesResourceApi(_requeste r); 74 PostalCodesResourceApi get postalCodes => new PostalCodesResourceApi(_requeste r);
75 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
72 RegionsResourceApi get regions => new RegionsResourceApi(_requester); 76 RegionsResourceApi get regions => new RegionsResourceApi(_requester);
77 RemarketingListSharesResourceApi get remarketingListShares => new RemarketingL istSharesResourceApi(_requester);
78 RemarketingListsResourceApi get remarketingLists => new RemarketingListsResour ceApi(_requester);
73 ReportsResourceApi get reports => new ReportsResourceApi(_requester); 79 ReportsResourceApi get reports => new ReportsResourceApi(_requester);
74 SitesResourceApi get sites => new SitesResourceApi(_requester); 80 SitesResourceApi get sites => new SitesResourceApi(_requester);
75 SizesResourceApi get sizes => new SizesResourceApi(_requester); 81 SizesResourceApi get sizes => new SizesResourceApi(_requester);
76 SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requeste r); 82 SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requeste r);
83 TargetableRemarketingListsResourceApi get targetableRemarketingLists => new Ta rgetableRemarketingListsResourceApi(_requester);
77 UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_reque ster); 84 UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_reque ster);
78 UserRolePermissionGroupsResourceApi get userRolePermissionGroups => new UserRo lePermissionGroupsResourceApi(_requester); 85 UserRolePermissionGroupsResourceApi get userRolePermissionGroups => new UserRo lePermissionGroupsResourceApi(_requester);
79 UserRolePermissionsResourceApi get userRolePermissions => new UserRolePermissi onsResourceApi(_requester); 86 UserRolePermissionsResourceApi get userRolePermissions => new UserRolePermissi onsResourceApi(_requester);
80 UserRolesResourceApi get userRoles => new UserRolesResourceApi(_requester); 87 UserRolesResourceApi get userRoles => new UserRolesResourceApi(_requester);
81 88
82 DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googlea pis.com/", core.String servicePath: "dfareporting/v2.0/"}) : 89 DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googlea pis.com/", core.String servicePath: "dfareporting/v2.2/"}) :
83 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 90 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
84 } 91 }
85 92
86 93
87 class AccountActiveAdSummariesResourceApi { 94 class AccountActiveAdSummariesResourceApi {
88 final commons.ApiRequester _requester; 95 final commons.ApiRequester _requester;
89 96
90 AccountActiveAdSummariesResourceApi(commons.ApiRequester client) : 97 AccountActiveAdSummariesResourceApi(commons.ApiRequester client) :
91 _requester = client; 98 _requester = client;
92 99
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 "GET", 372 "GET",
366 body: _body, 373 body: _body,
367 queryParams: _queryParams, 374 queryParams: _queryParams,
368 uploadOptions: _uploadOptions, 375 uploadOptions: _uploadOptions,
369 uploadMedia: _uploadMedia, 376 uploadMedia: _uploadMedia,
370 downloadOptions: _downloadOptions); 377 downloadOptions: _downloadOptions);
371 return _response.then((data) => new AccountUserProfile.fromJson(data)); 378 return _response.then((data) => new AccountUserProfile.fromJson(data));
372 } 379 }
373 380
374 /** 381 /**
382 * Inserts a new account user profile.
383 *
384 * [request] - The metadata request object.
385 *
386 * Request parameters:
387 *
388 * [profileId] - User profile ID associated with this request.
389 *
390 * Completes with a [AccountUserProfile].
391 *
392 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
393 * error.
394 *
395 * If the used [http.Client] completes with an error when making a REST call,
396 * this method will complete with the same error.
397 */
398 async.Future<AccountUserProfile> insert(AccountUserProfile request, core.Strin g profileId) {
399 var _url = null;
400 var _queryParams = new core.Map();
401 var _uploadMedia = null;
402 var _uploadOptions = null;
403 var _downloadOptions = commons.DownloadOptions.Metadata;
404 var _body = null;
405
406 if (request != null) {
407 _body = convert.JSON.encode((request).toJson());
408 }
409 if (profileId == null) {
410 throw new core.ArgumentError("Parameter profileId is required.");
411 }
412
413 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc ountUserProfiles';
414
415 var _response = _requester.request(_url,
416 "POST",
417 body: _body,
418 queryParams: _queryParams,
419 uploadOptions: _uploadOptions,
420 uploadMedia: _uploadMedia,
421 downloadOptions: _downloadOptions);
422 return _response.then((data) => new AccountUserProfile.fromJson(data));
423 }
424
425 /**
375 * Retrieves a list of account user profiles, possibly filtered. 426 * Retrieves a list of account user profiles, possibly filtered.
376 * 427 *
377 * Request parameters: 428 * Request parameters:
378 * 429 *
379 * [profileId] - User profile ID associated with this request. 430 * [profileId] - User profile ID associated with this request.
380 * 431 *
381 * [active] - Select only active user profiles. 432 * [active] - Select only active user profiles.
382 * 433 *
383 * [ids] - Select only user profiles with these IDs. 434 * [ids] - Select only user profiles with these IDs.
384 * 435 *
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 * - "REDIRECT" 995 * - "REDIRECT"
945 * - "RICH_MEDIA_EXPANDING" 996 * - "RICH_MEDIA_EXPANDING"
946 * - "RICH_MEDIA_IM_EXPAND" 997 * - "RICH_MEDIA_IM_EXPAND"
947 * - "RICH_MEDIA_INPAGE" 998 * - "RICH_MEDIA_INPAGE"
948 * - "RICH_MEDIA_INPAGE_FLOATING" 999 * - "RICH_MEDIA_INPAGE_FLOATING"
949 * - "RICH_MEDIA_INTERSTITIAL_FLOAT" 1000 * - "RICH_MEDIA_INTERSTITIAL_FLOAT"
950 * - "RICH_MEDIA_MOBILE_IN_APP" 1001 * - "RICH_MEDIA_MOBILE_IN_APP"
951 * - "RICH_MEDIA_MULTI_FLOATING" 1002 * - "RICH_MEDIA_MULTI_FLOATING"
952 * - "RICH_MEDIA_PEEL_DOWN" 1003 * - "RICH_MEDIA_PEEL_DOWN"
953 * - "TRACKING_TEXT" 1004 * - "TRACKING_TEXT"
1005 * - "VAST_REDIRECT"
954 * - "VPAID_LINEAR" 1006 * - "VPAID_LINEAR"
955 * - "VPAID_NON_LINEAR" 1007 * - "VPAID_NON_LINEAR"
956 * 1008 *
957 * [dynamicClickTracker] - Select only dynamic click trackers. Applicable when 1009 * [dynamicClickTracker] - Select only dynamic click trackers. Applicable when
958 * type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. 1010 * type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers.
959 * If false, select static click trackers. Leave unset to select both. 1011 * If false, select static click trackers. Leave unset to select both.
960 * 1012 *
961 * [ids] - Select only ads with these IDs. 1013 * [ids] - Select only ads with these IDs.
962 * 1014 *
963 * [landingPageIds] - Select only ads with these landing page IDs. 1015 * [landingPageIds] - Select only ads with these landing page IDs.
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after
2383 * - "ACTION_CREATE" 2435 * - "ACTION_CREATE"
2384 * - "ACTION_DELETE" 2436 * - "ACTION_DELETE"
2385 * - "ACTION_DISABLE" 2437 * - "ACTION_DISABLE"
2386 * - "ACTION_EMAIL_TAGS" 2438 * - "ACTION_EMAIL_TAGS"
2387 * - "ACTION_ENABLE" 2439 * - "ACTION_ENABLE"
2388 * - "ACTION_LINK" 2440 * - "ACTION_LINK"
2389 * - "ACTION_MARK_AS_DEFAULT" 2441 * - "ACTION_MARK_AS_DEFAULT"
2390 * - "ACTION_PUSH" 2442 * - "ACTION_PUSH"
2391 * - "ACTION_REMOVE" 2443 * - "ACTION_REMOVE"
2392 * - "ACTION_SEND" 2444 * - "ACTION_SEND"
2445 * - "ACTION_SHARE"
2393 * - "ACTION_UNASSIGN" 2446 * - "ACTION_UNASSIGN"
2394 * - "ACTION_UNLINK" 2447 * - "ACTION_UNLINK"
2395 * - "ACTION_UPDATE" 2448 * - "ACTION_UPDATE"
2396 * 2449 *
2397 * [ids] - Select only change logs with these IDs. 2450 * [ids] - Select only change logs with these IDs.
2398 * 2451 *
2399 * [maxChangeTime] - Select only change logs whose change time is before the 2452 * [maxChangeTime] - Select only change logs whose change time is before the
2400 * specified maxChangeTime.The time should be formatted as an RFC3339 2453 * specified maxChangeTime.The time should be formatted as an RFC3339
2401 * date/time string. For example, for 10:54 PM on July 18th, 2015, in the 2454 * date/time string. For example, for 10:54 PM on July 18th, 2015, in the
2402 * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In 2455 * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
2593 } 2646 }
2594 2647
2595 2648
2596 class ConnectionTypesResourceApi { 2649 class ConnectionTypesResourceApi {
2597 final commons.ApiRequester _requester; 2650 final commons.ApiRequester _requester;
2598 2651
2599 ConnectionTypesResourceApi(commons.ApiRequester client) : 2652 ConnectionTypesResourceApi(commons.ApiRequester client) :
2600 _requester = client; 2653 _requester = client;
2601 2654
2602 /** 2655 /**
2656 * Gets one connection type by ID.
2657 *
2658 * Request parameters:
2659 *
2660 * [profileId] - User profile ID associated with this request.
2661 *
2662 * [id] - Connection type ID.
2663 *
2664 * Completes with a [ConnectionType].
2665 *
2666 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2667 * error.
2668 *
2669 * If the used [http.Client] completes with an error when making a REST call,
2670 * this method will complete with the same error.
2671 */
2672 async.Future<ConnectionType> get(core.String profileId, core.String id) {
2673 var _url = null;
2674 var _queryParams = new core.Map();
2675 var _uploadMedia = null;
2676 var _uploadOptions = null;
2677 var _downloadOptions = commons.DownloadOptions.Metadata;
2678 var _body = null;
2679
2680 if (profileId == null) {
2681 throw new core.ArgumentError("Parameter profileId is required.");
2682 }
2683 if (id == null) {
2684 throw new core.ArgumentError("Parameter id is required.");
2685 }
2686
2687 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/con nectionTypes/' + commons.Escaper.ecapeVariable('$id');
2688
2689 var _response = _requester.request(_url,
2690 "GET",
2691 body: _body,
2692 queryParams: _queryParams,
2693 uploadOptions: _uploadOptions,
2694 uploadMedia: _uploadMedia,
2695 downloadOptions: _downloadOptions);
2696 return _response.then((data) => new ConnectionType.fromJson(data));
2697 }
2698
2699 /**
2603 * Retrieves a list of connection types. 2700 * Retrieves a list of connection types.
2604 * 2701 *
2605 * Request parameters: 2702 * Request parameters:
2606 * 2703 *
2607 * [profileId] - User profile ID associated with this request. 2704 * [profileId] - User profile ID associated with this request.
2608 * 2705 *
2609 * Completes with a [ConnectionTypesListResponse]. 2706 * Completes with a [ConnectionTypesListResponse].
2610 * 2707 *
2611 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2708 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2612 * error. 2709 * error.
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
3096 if (advertiserId == null) { 3193 if (advertiserId == null) {
3097 throw new core.ArgumentError("Parameter advertiserId is required."); 3194 throw new core.ArgumentError("Parameter advertiserId is required.");
3098 } 3195 }
3099 3196
3100 _uploadMedia = uploadMedia; 3197 _uploadMedia = uploadMedia;
3101 _uploadOptions = uploadOptions; 3198 _uploadOptions = uploadOptions;
3102 3199
3103 if (_uploadMedia == null) { 3200 if (_uploadMedia == null) {
3104 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/c reativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAss ets'; 3201 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/c reativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAss ets';
3105 } else if (_uploadOptions is commons.ResumableUploadOptions) { 3202 } else if (_uploadOptions is commons.ResumableUploadOptions) {
3106 _url = '/resumable/upload/dfareporting/v2.0/userprofiles/' + commons.Escap er.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVaria ble('$advertiserId') + '/creativeAssets'; 3203 _url = '/resumable/upload/dfareporting/v2.2/userprofiles/' + commons.Escap er.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVaria ble('$advertiserId') + '/creativeAssets';
3107 } else { 3204 } else {
3108 _url = '/upload/dfareporting/v2.0/userprofiles/' + commons.Escaper.ecapeVa riable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$adve rtiserId') + '/creativeAssets'; 3205 _url = '/upload/dfareporting/v2.2/userprofiles/' + commons.Escaper.ecapeVa riable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$adve rtiserId') + '/creativeAssets';
3109 } 3206 }
3110 3207
3111 3208
3112 var _response = _requester.request(_url, 3209 var _response = _requester.request(_url,
3113 "POST", 3210 "POST",
3114 body: _body, 3211 body: _body,
3115 queryParams: _queryParams, 3212 queryParams: _queryParams,
3116 uploadOptions: _uploadOptions, 3213 uploadOptions: _uploadOptions,
3117 uploadMedia: _uploadMedia, 3214 uploadMedia: _uploadMedia,
3118 downloadOptions: _downloadOptions); 3215 downloadOptions: _downloadOptions);
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after
4646 "GET", 4743 "GET",
4647 body: _body, 4744 body: _body,
4648 queryParams: _queryParams, 4745 queryParams: _queryParams,
4649 uploadOptions: _uploadOptions, 4746 uploadOptions: _uploadOptions,
4650 uploadMedia: _uploadMedia, 4747 uploadMedia: _uploadMedia,
4651 downloadOptions: _downloadOptions); 4748 downloadOptions: _downloadOptions);
4652 return _response.then((data) => new DirectorySite.fromJson(data)); 4749 return _response.then((data) => new DirectorySite.fromJson(data));
4653 } 4750 }
4654 4751
4655 /** 4752 /**
4753 * Inserts a new directory site.
4754 *
4755 * [request] - The metadata request object.
4756 *
4757 * Request parameters:
4758 *
4759 * [profileId] - User profile ID associated with this request.
4760 *
4761 * Completes with a [DirectorySite].
4762 *
4763 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
4764 * error.
4765 *
4766 * If the used [http.Client] completes with an error when making a REST call,
4767 * this method will complete with the same error.
4768 */
4769 async.Future<DirectorySite> insert(DirectorySite request, core.String profileI d) {
4770 var _url = null;
4771 var _queryParams = new core.Map();
4772 var _uploadMedia = null;
4773 var _uploadOptions = null;
4774 var _downloadOptions = commons.DownloadOptions.Metadata;
4775 var _body = null;
4776
4777 if (request != null) {
4778 _body = convert.JSON.encode((request).toJson());
4779 }
4780 if (profileId == null) {
4781 throw new core.ArgumentError("Parameter profileId is required.");
4782 }
4783
4784 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dir ectorySites';
4785
4786 var _response = _requester.request(_url,
4787 "POST",
4788 body: _body,
4789 queryParams: _queryParams,
4790 uploadOptions: _uploadOptions,
4791 uploadMedia: _uploadMedia,
4792 downloadOptions: _downloadOptions);
4793 return _response.then((data) => new DirectorySite.fromJson(data));
4794 }
4795
4796 /**
4656 * Retrieves a list of directory sites, possibly filtered. 4797 * Retrieves a list of directory sites, possibly filtered.
4657 * 4798 *
4658 * Request parameters: 4799 * Request parameters:
4659 * 4800 *
4660 * [profileId] - User profile ID associated with this request. 4801 * [profileId] - User profile ID associated with this request.
4661 * 4802 *
4662 * [acceptsInStreamVideoPlacements] - This search filter is no longer 4803 * [acceptsInStreamVideoPlacements] - This search filter is no longer
4663 * supported and will have no effect on the results returned. 4804 * supported and will have no effect on the results returned.
4664 * 4805 *
4665 * [acceptsInterstitialPlacements] - This search filter is no longer supported 4806 * [acceptsInterstitialPlacements] - This search filter is no longer supported
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
4919 * Request parameters: 5060 * Request parameters:
4920 * 5061 *
4921 * [profileId] - User profile ID associated with this request. 5062 * [profileId] - User profile ID associated with this request.
4922 * 5063 *
4923 * [adId] - Select only event tags that belong to this ad. 5064 * [adId] - Select only event tags that belong to this ad.
4924 * 5065 *
4925 * [advertiserId] - Select only event tags that belong to this advertiser. 5066 * [advertiserId] - Select only event tags that belong to this advertiser.
4926 * 5067 *
4927 * [campaignId] - Select only event tags that belong to this campaign. 5068 * [campaignId] - Select only event tags that belong to this campaign.
4928 * 5069 *
4929 * [definitionsOnly] - Examine only the specified ad or campaign or 5070 * [definitionsOnly] - Examine only the specified campaign or advertiser's
4930 * advertiser's event tags for matching selector criteria. When set to false, 5071 * event tags for matching selector criteria. When set to false, the parent
4931 * the parent advertiser and parent campaign is examined as well. In addition, 5072 * advertiser and parent campaign of the specified ad or campaign is examined
4932 * when set to false, the status field is examined as well along with the 5073 * as well. In addition, when set to false, the status field is examined as
4933 * enabledByDefault field. 5074 * well, along with the enabledByDefault field. This parameter can not be set
5075 * to true when adId is specified as ads do not define their own even tags.
4934 * 5076 *
4935 * [enabled] - Select only enabled event tags. When definitionsOnly is set to 5077 * [enabled] - Select only enabled event tags. What is considered enabled or
4936 * true, only the specified advertiser or campaign's event tags' 5078 * disabled depends on the definitionsOnly parameter. When definitionsOnly is
5079 * set to true, only the specified advertiser or campaign's event tags'
4937 * enabledByDefault field is examined. When definitionsOnly is set to false, 5080 * enabledByDefault field is examined. When definitionsOnly is set to false,
4938 * the specified ad or specified campaign's parent advertiser's or parent 5081 * the specified ad or specified campaign's parent advertiser's or parent
4939 * campaign's event tags' enabledByDefault and status fields are examined as 5082 * campaign's event tags' enabledByDefault and status fields are examined as
4940 * well. 5083 * well.
4941 * 5084 *
4942 * [eventTagTypes] - Select only event tags with the specified event tag 5085 * [eventTagTypes] - Select only event tags with the specified event tag
4943 * types. Event tag types can be used to specify whether to use a third-party 5086 * types. Event tag types can be used to specify whether to use a third-party
4944 * pixel, a third-party JavaScript URL, or a third-party click-through URL for 5087 * pixel, a third-party JavaScript URL, or a third-party click-through URL for
4945 * either impression or click tracking. 5088 * either impression or click tracking.
4946 * 5089 *
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
6209 queryParams: _queryParams, 6352 queryParams: _queryParams,
6210 uploadOptions: _uploadOptions, 6353 uploadOptions: _uploadOptions,
6211 uploadMedia: _uploadMedia, 6354 uploadMedia: _uploadMedia,
6212 downloadOptions: _downloadOptions); 6355 downloadOptions: _downloadOptions);
6213 return _response.then((data) => new FloodlightConfiguration.fromJson(data)); 6356 return _response.then((data) => new FloodlightConfiguration.fromJson(data));
6214 } 6357 }
6215 6358
6216 } 6359 }
6217 6360
6218 6361
6362 class InventoryItemsResourceApi {
6363 final commons.ApiRequester _requester;
6364
6365 InventoryItemsResourceApi(commons.ApiRequester client) :
6366 _requester = client;
6367
6368 /**
6369 * Gets one inventory item by ID.
6370 *
6371 * Request parameters:
6372 *
6373 * [profileId] - User profile ID associated with this request.
6374 *
6375 * [projectId] - Project ID for order documents.
6376 *
6377 * [id] - Inventory item ID.
6378 *
6379 * Completes with a [InventoryItem].
6380 *
6381 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
6382 * error.
6383 *
6384 * If the used [http.Client] completes with an error when making a REST call,
6385 * this method will complete with the same error.
6386 */
6387 async.Future<InventoryItem> get(core.String profileId, core.String projectId, core.String id) {
6388 var _url = null;
6389 var _queryParams = new core.Map();
6390 var _uploadMedia = null;
6391 var _uploadOptions = null;
6392 var _downloadOptions = commons.DownloadOptions.Metadata;
6393 var _body = null;
6394
6395 if (profileId == null) {
6396 throw new core.ArgumentError("Parameter profileId is required.");
6397 }
6398 if (projectId == null) {
6399 throw new core.ArgumentError("Parameter projectId is required.");
6400 }
6401 if (id == null) {
6402 throw new core.ArgumentError("Parameter id is required.");
6403 }
6404
6405 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pro jects/' + commons.Escaper.ecapeVariable('$projectId') + '/inventoryItems/' + com mons.Escaper.ecapeVariable('$id');
6406
6407 var _response = _requester.request(_url,
6408 "GET",
6409 body: _body,
6410 queryParams: _queryParams,
6411 uploadOptions: _uploadOptions,
6412 uploadMedia: _uploadMedia,
6413 downloadOptions: _downloadOptions);
6414 return _response.then((data) => new InventoryItem.fromJson(data));
6415 }
6416
6417 /**
6418 * Retrieves a list of inventory items, possibly filtered.
6419 *
6420 * Request parameters:
6421 *
6422 * [profileId] - User profile ID associated with this request.
6423 *
6424 * [projectId] - Project ID for order documents.
6425 *
6426 * [ids] - Select only inventory items with these IDs.
6427 *
6428 * [inPlan] - Select only inventory items that are in plan.
6429 *
6430 * [maxResults] - Maximum number of results to return.
6431 *
6432 * [orderId] - Select only inventory items that belong to specified orders.
6433 *
6434 * [pageToken] - Value of the nextPageToken from the previous result page.
6435 *
6436 * [siteId] - Select only inventory items that are associated with these
6437 * sites.
6438 *
6439 * [sortField] - Field by which to sort the list.
6440 * Possible string values are:
6441 * - "ID"
6442 * - "NAME"
6443 *
6444 * [sortOrder] - Order of sorted results, default is ASCENDING.
6445 * Possible string values are:
6446 * - "ASCENDING"
6447 * - "DESCENDING"
6448 *
6449 * Completes with a [InventoryItemsListResponse].
6450 *
6451 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
6452 * error.
6453 *
6454 * If the used [http.Client] completes with an error when making a REST call,
6455 * this method will complete with the same error.
6456 */
6457 async.Future<InventoryItemsListResponse> list(core.String profileId, core.Stri ng projectId, {core.List<core.String> ids, core.bool inPlan, core.int maxResults , core.List<core.String> orderId, core.String pageToken, core.List<core.String> siteId, core.String sortField, core.String sortOrder}) {
6458 var _url = null;
6459 var _queryParams = new core.Map();
6460 var _uploadMedia = null;
6461 var _uploadOptions = null;
6462 var _downloadOptions = commons.DownloadOptions.Metadata;
6463 var _body = null;
6464
6465 if (profileId == null) {
6466 throw new core.ArgumentError("Parameter profileId is required.");
6467 }
6468 if (projectId == null) {
6469 throw new core.ArgumentError("Parameter projectId is required.");
6470 }
6471 if (ids != null) {
6472 _queryParams["ids"] = ids;
6473 }
6474 if (inPlan != null) {
6475 _queryParams["inPlan"] = ["${inPlan}"];
6476 }
6477 if (maxResults != null) {
6478 _queryParams["maxResults"] = ["${maxResults}"];
6479 }
6480 if (orderId != null) {
6481 _queryParams["orderId"] = orderId;
6482 }
6483 if (pageToken != null) {
6484 _queryParams["pageToken"] = [pageToken];
6485 }
6486 if (siteId != null) {
6487 _queryParams["siteId"] = siteId;
6488 }
6489 if (sortField != null) {
6490 _queryParams["sortField"] = [sortField];
6491 }
6492 if (sortOrder != null) {
6493 _queryParams["sortOrder"] = [sortOrder];
6494 }
6495
6496 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pro jects/' + commons.Escaper.ecapeVariable('$projectId') + '/inventoryItems';
6497
6498 var _response = _requester.request(_url,
6499 "GET",
6500 body: _body,
6501 queryParams: _queryParams,
6502 uploadOptions: _uploadOptions,
6503 uploadMedia: _uploadMedia,
6504 downloadOptions: _downloadOptions);
6505 return _response.then((data) => new InventoryItemsListResponse.fromJson(data ));
6506 }
6507
6508 }
6509
6510
6219 class LandingPagesResourceApi { 6511 class LandingPagesResourceApi {
6220 final commons.ApiRequester _requester; 6512 final commons.ApiRequester _requester;
6221 6513
6222 LandingPagesResourceApi(commons.ApiRequester client) : 6514 LandingPagesResourceApi(commons.ApiRequester client) :
6223 _requester = client; 6515 _requester = client;
6224 6516
6225 /** 6517 /**
6226 * Deletes an existing campaign landing page. 6518 * Deletes an existing campaign landing page.
6227 * 6519 *
6228 * Request parameters: 6520 * Request parameters:
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
6569 } 6861 }
6570 6862
6571 6863
6572 class MobileCarriersResourceApi { 6864 class MobileCarriersResourceApi {
6573 final commons.ApiRequester _requester; 6865 final commons.ApiRequester _requester;
6574 6866
6575 MobileCarriersResourceApi(commons.ApiRequester client) : 6867 MobileCarriersResourceApi(commons.ApiRequester client) :
6576 _requester = client; 6868 _requester = client;
6577 6869
6578 /** 6870 /**
6579 * Retrieves a list of mobile carriers. 6871 * Gets one mobile carrier by ID.
6580 * 6872 *
6581 * Request parameters: 6873 * Request parameters:
6582 * 6874 *
6583 * [profileId] - User profile ID associated with this request. 6875 * [profileId] - User profile ID associated with this request.
6584 * 6876 *
6585 * Completes with a [MobileCarriersListResponse]. 6877 * [id] - Mobile carrier ID.
6878 *
6879 * Completes with a [MobileCarrier].
6586 * 6880 *
6587 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 6881 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
6588 * error. 6882 * error.
6589 * 6883 *
6590 * If the used [http.Client] completes with an error when making a REST call, 6884 * If the used [http.Client] completes with an error when making a REST call,
6591 * this method will complete with the same error. 6885 * this method will complete with the same error.
6592 */ 6886 */
6593 async.Future<MobileCarriersListResponse> list(core.String profileId) { 6887 async.Future<MobileCarrier> get(core.String profileId, core.String id) {
6594 var _url = null; 6888 var _url = null;
6595 var _queryParams = new core.Map(); 6889 var _queryParams = new core.Map();
6596 var _uploadMedia = null; 6890 var _uploadMedia = null;
6597 var _uploadOptions = null; 6891 var _uploadOptions = null;
6598 var _downloadOptions = commons.DownloadOptions.Metadata; 6892 var _downloadOptions = commons.DownloadOptions.Metadata;
6599 var _body = null; 6893 var _body = null;
6600 6894
6601 if (profileId == null) { 6895 if (profileId == null) {
6602 throw new core.ArgumentError("Parameter profileId is required."); 6896 throw new core.ArgumentError("Parameter profileId is required.");
6603 } 6897 }
6898 if (id == null) {
6899 throw new core.ArgumentError("Parameter id is required.");
6900 }
6604 6901
6605 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/mob ileCarriers'; 6902 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/mob ileCarriers/' + commons.Escaper.ecapeVariable('$id');
6606 6903
6607 var _response = _requester.request(_url, 6904 var _response = _requester.request(_url,
6608 "GET", 6905 "GET",
6609 body: _body, 6906 body: _body,
6610 queryParams: _queryParams, 6907 queryParams: _queryParams,
6611 uploadOptions: _uploadOptions, 6908 uploadOptions: _uploadOptions,
6612 uploadMedia: _uploadMedia, 6909 uploadMedia: _uploadMedia,
6613 downloadOptions: _downloadOptions); 6910 downloadOptions: _downloadOptions);
6614 return _response.then((data) => new MobileCarriersListResponse.fromJson(data )); 6911 return _response.then((data) => new MobileCarrier.fromJson(data));
6615 } 6912 }
6616 6913
6617 }
6618
6619
6620 class OperatingSystemVersionsResourceApi {
6621 final commons.ApiRequester _requester;
6622
6623 OperatingSystemVersionsResourceApi(commons.ApiRequester client) :
6624 _requester = client;
6625
6626 /** 6914 /**
6627 * Retrieves a list of operating system versions. 6915 * Retrieves a list of mobile carriers.
6628 * 6916 *
6629 * Request parameters: 6917 * Request parameters:
6630 * 6918 *
6631 * [profileId] - User profile ID associated with this request. 6919 * [profileId] - User profile ID associated with this request.
6632 * 6920 *
6633 * Completes with a [OperatingSystemVersionsListResponse]. 6921 * Completes with a [MobileCarriersListResponse].
6634 * 6922 *
6635 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 6923 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
6636 * error. 6924 * error.
6637 * 6925 *
6638 * If the used [http.Client] completes with an error when making a REST call, 6926 * If the used [http.Client] completes with an error when making a REST call,
6639 * this method will complete with the same error. 6927 * this method will complete with the same error.
6640 */ 6928 */
6641 async.Future<OperatingSystemVersionsListResponse> list(core.String profileId) { 6929 async.Future<MobileCarriersListResponse> list(core.String profileId) {
6642 var _url = null; 6930 var _url = null;
6643 var _queryParams = new core.Map(); 6931 var _queryParams = new core.Map();
6644 var _uploadMedia = null; 6932 var _uploadMedia = null;
6645 var _uploadOptions = null; 6933 var _uploadOptions = null;
6646 var _downloadOptions = commons.DownloadOptions.Metadata; 6934 var _downloadOptions = commons.DownloadOptions.Metadata;
6647 var _body = null; 6935 var _body = null;
6648 6936
6649 if (profileId == null) { 6937 if (profileId == null) {
6650 throw new core.ArgumentError("Parameter profileId is required."); 6938 throw new core.ArgumentError("Parameter profileId is required.");
6651 } 6939 }
6652 6940
6653 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ope ratingSystemVersions'; 6941 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/mob ileCarriers';
6654 6942
6655 var _response = _requester.request(_url, 6943 var _response = _requester.request(_url,
6656 "GET", 6944 "GET",
6657 body: _body, 6945 body: _body,
6658 queryParams: _queryParams, 6946 queryParams: _queryParams,
6659 uploadOptions: _uploadOptions, 6947 uploadOptions: _uploadOptions,
6660 uploadMedia: _uploadMedia, 6948 uploadMedia: _uploadMedia,
6661 downloadOptions: _downloadOptions); 6949 downloadOptions: _downloadOptions);
6662 return _response.then((data) => new OperatingSystemVersionsListResponse.from Json(data)); 6950 return _response.then((data) => new MobileCarriersListResponse.fromJson(data ));
6663 } 6951 }
6664 6952
6665 } 6953 }
6666 6954
6667 6955
6668 class OperatingSystemsResourceApi { 6956 class OperatingSystemVersionsResourceApi {
6669 final commons.ApiRequester _requester; 6957 final commons.ApiRequester _requester;
6670 6958
6671 OperatingSystemsResourceApi(commons.ApiRequester client) : 6959 OperatingSystemVersionsResourceApi(commons.ApiRequester client) :
6672 _requester = client; 6960 _requester = client;
6673 6961
6674 /** 6962 /**
6675 * Retrieves a list of operating systems. 6963 * Gets one operating system version by ID.
6676 * 6964 *
6677 * Request parameters: 6965 * Request parameters:
6678 * 6966 *
6679 * [profileId] - User profile ID associated with this request. 6967 * [profileId] - User profile ID associated with this request.
6680 * 6968 *
6681 * Completes with a [OperatingSystemsListResponse]. 6969 * [id] - Operating system version ID.
6970 *
6971 * Completes with a [OperatingSystemVersion].
6682 * 6972 *
6683 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 6973 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
6684 * error. 6974 * error.
6685 * 6975 *
6686 * If the used [http.Client] completes with an error when making a REST call, 6976 * If the used [http.Client] completes with an error when making a REST call,
6687 * this method will complete with the same error. 6977 * this method will complete with the same error.
6688 */ 6978 */
6689 async.Future<OperatingSystemsListResponse> list(core.String profileId) { 6979 async.Future<OperatingSystemVersion> get(core.String profileId, core.String id ) {
6690 var _url = null; 6980 var _url = null;
6691 var _queryParams = new core.Map(); 6981 var _queryParams = new core.Map();
6692 var _uploadMedia = null; 6982 var _uploadMedia = null;
6693 var _uploadOptions = null; 6983 var _uploadOptions = null;
6694 var _downloadOptions = commons.DownloadOptions.Metadata; 6984 var _downloadOptions = commons.DownloadOptions.Metadata;
6695 var _body = null; 6985 var _body = null;
6696 6986
6697 if (profileId == null) { 6987 if (profileId == null) {
6698 throw new core.ArgumentError("Parameter profileId is required."); 6988 throw new core.ArgumentError("Parameter profileId is required.");
6699 } 6989 }
6990 if (id == null) {
6991 throw new core.ArgumentError("Parameter id is required.");
6992 }
6700 6993
6701 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ope ratingSystems'; 6994 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ope ratingSystemVersions/' + commons.Escaper.ecapeVariable('$id');
6702 6995
6703 var _response = _requester.request(_url, 6996 var _response = _requester.request(_url,
6704 "GET", 6997 "GET",
6705 body: _body, 6998 body: _body,
6706 queryParams: _queryParams, 6999 queryParams: _queryParams,
6707 uploadOptions: _uploadOptions, 7000 uploadOptions: _uploadOptions,
6708 uploadMedia: _uploadMedia, 7001 uploadMedia: _uploadMedia,
6709 downloadOptions: _downloadOptions); 7002 downloadOptions: _downloadOptions);
6710 return _response.then((data) => new OperatingSystemsListResponse.fromJson(da ta)); 7003 return _response.then((data) => new OperatingSystemVersion.fromJson(data));
7004 }
7005
7006 /**
7007 * Retrieves a list of operating system versions.
7008 *
7009 * Request parameters:
7010 *
7011 * [profileId] - User profile ID associated with this request.
7012 *
7013 * Completes with a [OperatingSystemVersionsListResponse].
7014 *
7015 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7016 * error.
7017 *
7018 * If the used [http.Client] completes with an error when making a REST call,
7019 * this method will complete with the same error.
7020 */
7021 async.Future<OperatingSystemVersionsListResponse> list(core.String profileId) {
7022 var _url = null;
7023 var _queryParams = new core.Map();
7024 var _uploadMedia = null;
7025 var _uploadOptions = null;
7026 var _downloadOptions = commons.DownloadOptions.Metadata;
7027 var _body = null;
7028
7029 if (profileId == null) {
7030 throw new core.ArgumentError("Parameter profileId is required.");
7031 }
7032
7033 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ope ratingSystemVersions';
7034
7035 var _response = _requester.request(_url,
7036 "GET",
7037 body: _body,
7038 queryParams: _queryParams,
7039 uploadOptions: _uploadOptions,
7040 uploadMedia: _uploadMedia,
7041 downloadOptions: _downloadOptions);
7042 return _response.then((data) => new OperatingSystemVersionsListResponse.from Json(data));
6711 } 7043 }
6712 7044
6713 } 7045 }
6714 7046
6715 7047
6716 class PlacementGroupsResourceApi { 7048 class OperatingSystemsResourceApi {
6717 final commons.ApiRequester _requester; 7049 final commons.ApiRequester _requester;
6718 7050
6719 PlacementGroupsResourceApi(commons.ApiRequester client) : 7051 OperatingSystemsResourceApi(commons.ApiRequester client) :
6720 _requester = client; 7052 _requester = client;
6721 7053
6722 /** 7054 /**
6723 * Gets one placement group by ID. 7055 * Gets one operating system by DART ID.
6724 * 7056 *
6725 * Request parameters: 7057 * Request parameters:
6726 * 7058 *
6727 * [profileId] - User profile ID associated with this request. 7059 * [profileId] - User profile ID associated with this request.
6728 * 7060 *
6729 * [id] - Placement group ID. 7061 * [dartId] - Operating system DART ID.
6730 * 7062 *
6731 * Completes with a [PlacementGroup]. 7063 * Completes with a [OperatingSystem].
6732 * 7064 *
6733 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7065 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
6734 * error. 7066 * error.
6735 * 7067 *
6736 * If the used [http.Client] completes with an error when making a REST call, 7068 * If the used [http.Client] completes with an error when making a REST call,
6737 * this method will complete with the same error. 7069 * this method will complete with the same error.
6738 */ 7070 */
6739 async.Future<PlacementGroup> get(core.String profileId, core.String id) { 7071 async.Future<OperatingSystem> get(core.String profileId, core.String dartId) {
6740 var _url = null; 7072 var _url = null;
6741 var _queryParams = new core.Map(); 7073 var _queryParams = new core.Map();
6742 var _uploadMedia = null; 7074 var _uploadMedia = null;
6743 var _uploadOptions = null; 7075 var _uploadOptions = null;
6744 var _downloadOptions = commons.DownloadOptions.Metadata; 7076 var _downloadOptions = commons.DownloadOptions.Metadata;
6745 var _body = null; 7077 var _body = null;
6746 7078
6747 if (profileId == null) { 7079 if (profileId == null) {
6748 throw new core.ArgumentError("Parameter profileId is required."); 7080 throw new core.ArgumentError("Parameter profileId is required.");
6749 } 7081 }
6750 if (id == null) { 7082 if (dartId == null) {
6751 throw new core.ArgumentError("Parameter id is required."); 7083 throw new core.ArgumentError("Parameter dartId is required.");
6752 } 7084 }
6753 7085
6754 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups/' + commons.Escaper.ecapeVariable('$id'); 7086 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ope ratingSystems/' + commons.Escaper.ecapeVariable('$dartId');
6755 7087
6756 var _response = _requester.request(_url, 7088 var _response = _requester.request(_url,
6757 "GET", 7089 "GET",
6758 body: _body, 7090 body: _body,
6759 queryParams: _queryParams, 7091 queryParams: _queryParams,
6760 uploadOptions: _uploadOptions, 7092 uploadOptions: _uploadOptions,
6761 uploadMedia: _uploadMedia, 7093 uploadMedia: _uploadMedia,
6762 downloadOptions: _downloadOptions); 7094 downloadOptions: _downloadOptions);
6763 return _response.then((data) => new PlacementGroup.fromJson(data)); 7095 return _response.then((data) => new OperatingSystem.fromJson(data));
6764 } 7096 }
6765 7097
6766 /** 7098 /**
6767 * Inserts a new placement group. 7099 * Retrieves a list of operating systems.
6768 *
6769 * [request] - The metadata request object.
6770 * 7100 *
6771 * Request parameters: 7101 * Request parameters:
6772 * 7102 *
6773 * [profileId] - User profile ID associated with this request. 7103 * [profileId] - User profile ID associated with this request.
6774 * 7104 *
6775 * Completes with a [PlacementGroup]. 7105 * Completes with a [OperatingSystemsListResponse].
6776 * 7106 *
6777 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7107 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
6778 * error. 7108 * error.
6779 * 7109 *
6780 * If the used [http.Client] completes with an error when making a REST call, 7110 * If the used [http.Client] completes with an error when making a REST call,
6781 * this method will complete with the same error. 7111 * this method will complete with the same error.
6782 */ 7112 */
6783 async.Future<PlacementGroup> insert(PlacementGroup request, core.String profil eId) { 7113 async.Future<OperatingSystemsListResponse> list(core.String profileId) {
6784 var _url = null; 7114 var _url = null;
6785 var _queryParams = new core.Map(); 7115 var _queryParams = new core.Map();
6786 var _uploadMedia = null; 7116 var _uploadMedia = null;
6787 var _uploadOptions = null; 7117 var _uploadOptions = null;
6788 var _downloadOptions = commons.DownloadOptions.Metadata; 7118 var _downloadOptions = commons.DownloadOptions.Metadata;
6789 var _body = null; 7119 var _body = null;
6790 7120
6791 if (request != null) {
6792 _body = convert.JSON.encode((request).toJson());
6793 }
6794 if (profileId == null) { 7121 if (profileId == null) {
6795 throw new core.ArgumentError("Parameter profileId is required."); 7122 throw new core.ArgumentError("Parameter profileId is required.");
6796 } 7123 }
6797 7124
6798 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups'; 7125 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ope ratingSystems';
6799 7126
6800 var _response = _requester.request(_url, 7127 var _response = _requester.request(_url,
6801 "POST", 7128 "GET",
6802 body: _body, 7129 body: _body,
6803 queryParams: _queryParams, 7130 queryParams: _queryParams,
6804 uploadOptions: _uploadOptions, 7131 uploadOptions: _uploadOptions,
6805 uploadMedia: _uploadMedia, 7132 uploadMedia: _uploadMedia,
6806 downloadOptions: _downloadOptions); 7133 downloadOptions: _downloadOptions);
6807 return _response.then((data) => new PlacementGroup.fromJson(data)); 7134 return _response.then((data) => new OperatingSystemsListResponse.fromJson(da ta));
6808 } 7135 }
6809 7136
7137 }
7138
7139
7140 class OrderDocumentsResourceApi {
7141 final commons.ApiRequester _requester;
7142
7143 OrderDocumentsResourceApi(commons.ApiRequester client) :
7144 _requester = client;
7145
6810 /** 7146 /**
6811 * Retrieves a list of placement groups, possibly filtered. 7147 * Gets one order document by ID.
6812 * 7148 *
6813 * Request parameters: 7149 * Request parameters:
6814 * 7150 *
6815 * [profileId] - User profile ID associated with this request. 7151 * [profileId] - User profile ID associated with this request.
6816 * 7152 *
6817 * [advertiserIds] - Select only placement groups that belong to these 7153 * [projectId] - Project ID for order documents.
6818 * advertisers.
6819 * 7154 *
6820 * [archived] - Select only archived placements. Don't set this field to 7155 * [id] - Order document ID.
6821 * select both archived and non-archived placements.
6822 * 7156 *
6823 * [campaignIds] - Select only placement groups that belong to these 7157 * Completes with a [OrderDocument].
6824 * campaigns.
6825 * 7158 *
6826 * [contentCategoryIds] - Select only placement groups that are associated 7159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
6827 * with these content categories. 7160 * error.
6828 * 7161 *
6829 * [directorySiteIds] - Select only placement groups that are associated with 7162 * If the used [http.Client] completes with an error when making a REST call,
6830 * these directory sites. 7163 * this method will complete with the same error.
7164 */
7165 async.Future<OrderDocument> get(core.String profileId, core.String projectId, core.String id) {
7166 var _url = null;
7167 var _queryParams = new core.Map();
7168 var _uploadMedia = null;
7169 var _uploadOptions = null;
7170 var _downloadOptions = commons.DownloadOptions.Metadata;
7171 var _body = null;
7172
7173 if (profileId == null) {
7174 throw new core.ArgumentError("Parameter profileId is required.");
7175 }
7176 if (projectId == null) {
7177 throw new core.ArgumentError("Parameter projectId is required.");
7178 }
7179 if (id == null) {
7180 throw new core.ArgumentError("Parameter id is required.");
7181 }
7182
7183 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pro jects/' + commons.Escaper.ecapeVariable('$projectId') + '/orderDocuments/' + com mons.Escaper.ecapeVariable('$id');
7184
7185 var _response = _requester.request(_url,
7186 "GET",
7187 body: _body,
7188 queryParams: _queryParams,
7189 uploadOptions: _uploadOptions,
7190 uploadMedia: _uploadMedia,
7191 downloadOptions: _downloadOptions);
7192 return _response.then((data) => new OrderDocument.fromJson(data));
7193 }
7194
7195 /**
7196 * Retrieves a list of order documents, possibly filtered.
6831 * 7197 *
6832 * [ids] - Select only placement groups with these IDs. 7198 * Request parameters:
7199 *
7200 * [profileId] - User profile ID associated with this request.
7201 *
7202 * [projectId] - Project ID for order documents.
7203 *
7204 * [approved] - Select only order documents that have been approved by at
7205 * least one user.
7206 *
7207 * [ids] - Select only order documents with these IDs.
6833 * 7208 *
6834 * [maxResults] - Maximum number of results to return. 7209 * [maxResults] - Maximum number of results to return.
6835 * 7210 *
7211 * [orderId] - Select only order documents for specified orders.
7212 *
6836 * [pageToken] - Value of the nextPageToken from the previous result page. 7213 * [pageToken] - Value of the nextPageToken from the previous result page.
6837 * 7214 *
6838 * [placementGroupType] - Select only placement groups belonging with this 7215 * [searchString] - Allows searching for order documents by name or ID.
6839 * group type. A package is a simple group of placements that acts as a single 7216 * Wildcards (*) are allowed. For example, "orderdocument*2015" will return
6840 * pricing point for a group of tags. A roadblock is a group of placements 7217 * order documents with names like "orderdocument June 2015", "orderdocument
6841 * that not only acts as a single pricing point but also assumes that all the 7218 * April 2015", or simply "orderdocument 2015". Most of the searches also add
6842 * tags in it will be served at the same time. A roadblock requires one of its 7219 * wildcards implicitly at the start and the end of the search string. For
6843 * assigned placements to be marked as primary for reporting. 7220 * example, a search string of "orderdocument" will match order documents with
6844 * Possible string values are: 7221 * name "my orderdocument", "orderdocument 2015", or simply "orderdocument".
6845 * - "PLACEMENT_PACKAGE"
6846 * - "PLACEMENT_ROADBLOCK"
6847 * 7222 *
6848 * [placementStrategyIds] - Select only placement groups that are associated 7223 * [siteId] - Select only order documents that are associated with these
6849 * with these placement strategies.
6850 *
6851 * [pricingTypes] - Select only placement groups with these pricing types.
6852 *
6853 * [searchString] - Allows searching for placement groups by name or ID.
6854 * Wildcards (*) are allowed. For example, "placement*2015" will return
6855 * placement groups with names like "placement group June 2015", "placement
6856 * group May 2015", or simply "placements 2015". Most of the searches also add
6857 * wildcards implicitly at the start and the end of the search string. For
6858 * example, a search string of "placementgroup" will match placement groups
6859 * with name "my placementgroup", "placementgroup 2015", or simply
6860 * "placementgroup".
6861 *
6862 * [siteIds] - Select only placement groups that are associated with these
6863 * sites. 7224 * sites.
6864 * 7225 *
6865 * [sortField] - Field by which to sort the list. 7226 * [sortField] - Field by which to sort the list.
6866 * Possible string values are: 7227 * Possible string values are:
6867 * - "ID" 7228 * - "ID"
6868 * - "NAME" 7229 * - "NAME"
6869 * 7230 *
6870 * [sortOrder] - Order of sorted results, default is ASCENDING. 7231 * [sortOrder] - Order of sorted results, default is ASCENDING.
6871 * Possible string values are: 7232 * Possible string values are:
6872 * - "ASCENDING" 7233 * - "ASCENDING"
6873 * - "DESCENDING" 7234 * - "DESCENDING"
6874 * 7235 *
6875 * Completes with a [PlacementGroupsListResponse]. 7236 * Completes with a [OrderDocumentsListResponse].
6876 * 7237 *
6877 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7238 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
6878 * error. 7239 * error.
6879 * 7240 *
6880 * If the used [http.Client] completes with an error when making a REST call, 7241 * If the used [http.Client] completes with an error when making a REST call,
6881 * this method will complete with the same error. 7242 * this method will complete with the same error.
6882 */ 7243 */
6883 async.Future<PlacementGroupsListResponse> list(core.String profileId, {core.Li st<core.String> advertiserIds, core.bool archived, core.List<core.String> campai gnIds, core.List<core.String> contentCategoryIds, core.List<core.String> directo rySiteIds, core.List<core.String> ids, core.int maxResults, core.String pageToke n, core.String placementGroupType, core.List<core.String> placementStrategyIds, core.List<core.String> pricingTypes, core.String searchString, core.List<core.St ring> siteIds, core.String sortField, core.String sortOrder}) { 7244 async.Future<OrderDocumentsListResponse> list(core.String profileId, core.Stri ng projectId, {core.bool approved, core.List<core.String> ids, core.int maxResul ts, core.List<core.String> orderId, core.String pageToken, core.String searchStr ing, core.List<core.String> siteId, core.String sortField, core.String sortOrder }) {
6884 var _url = null; 7245 var _url = null;
6885 var _queryParams = new core.Map(); 7246 var _queryParams = new core.Map();
6886 var _uploadMedia = null; 7247 var _uploadMedia = null;
6887 var _uploadOptions = null; 7248 var _uploadOptions = null;
6888 var _downloadOptions = commons.DownloadOptions.Metadata; 7249 var _downloadOptions = commons.DownloadOptions.Metadata;
6889 var _body = null; 7250 var _body = null;
6890 7251
6891 if (profileId == null) { 7252 if (profileId == null) {
6892 throw new core.ArgumentError("Parameter profileId is required."); 7253 throw new core.ArgumentError("Parameter profileId is required.");
6893 } 7254 }
6894 if (advertiserIds != null) { 7255 if (projectId == null) {
6895 _queryParams["advertiserIds"] = advertiserIds; 7256 throw new core.ArgumentError("Parameter projectId is required.");
6896 } 7257 }
6897 if (archived != null) { 7258 if (approved != null) {
6898 _queryParams["archived"] = ["${archived}"]; 7259 _queryParams["approved"] = ["${approved}"];
6899 }
6900 if (campaignIds != null) {
6901 _queryParams["campaignIds"] = campaignIds;
6902 }
6903 if (contentCategoryIds != null) {
6904 _queryParams["contentCategoryIds"] = contentCategoryIds;
6905 }
6906 if (directorySiteIds != null) {
6907 _queryParams["directorySiteIds"] = directorySiteIds;
6908 } 7260 }
6909 if (ids != null) { 7261 if (ids != null) {
6910 _queryParams["ids"] = ids; 7262 _queryParams["ids"] = ids;
6911 } 7263 }
6912 if (maxResults != null) { 7264 if (maxResults != null) {
6913 _queryParams["maxResults"] = ["${maxResults}"]; 7265 _queryParams["maxResults"] = ["${maxResults}"];
6914 } 7266 }
7267 if (orderId != null) {
7268 _queryParams["orderId"] = orderId;
7269 }
6915 if (pageToken != null) { 7270 if (pageToken != null) {
6916 _queryParams["pageToken"] = [pageToken]; 7271 _queryParams["pageToken"] = [pageToken];
6917 } 7272 }
6918 if (placementGroupType != null) {
6919 _queryParams["placementGroupType"] = [placementGroupType];
6920 }
6921 if (placementStrategyIds != null) {
6922 _queryParams["placementStrategyIds"] = placementStrategyIds;
6923 }
6924 if (pricingTypes != null) {
6925 _queryParams["pricingTypes"] = pricingTypes;
6926 }
6927 if (searchString != null) { 7273 if (searchString != null) {
6928 _queryParams["searchString"] = [searchString]; 7274 _queryParams["searchString"] = [searchString];
6929 } 7275 }
6930 if (siteIds != null) { 7276 if (siteId != null) {
6931 _queryParams["siteIds"] = siteIds; 7277 _queryParams["siteId"] = siteId;
6932 } 7278 }
6933 if (sortField != null) { 7279 if (sortField != null) {
6934 _queryParams["sortField"] = [sortField]; 7280 _queryParams["sortField"] = [sortField];
6935 } 7281 }
6936 if (sortOrder != null) { 7282 if (sortOrder != null) {
6937 _queryParams["sortOrder"] = [sortOrder]; 7283 _queryParams["sortOrder"] = [sortOrder];
6938 } 7284 }
6939 7285
6940 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups'; 7286 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pro jects/' + commons.Escaper.ecapeVariable('$projectId') + '/orderDocuments';
6941 7287
6942 var _response = _requester.request(_url, 7288 var _response = _requester.request(_url,
6943 "GET", 7289 "GET",
6944 body: _body, 7290 body: _body,
6945 queryParams: _queryParams, 7291 queryParams: _queryParams,
6946 uploadOptions: _uploadOptions, 7292 uploadOptions: _uploadOptions,
6947 uploadMedia: _uploadMedia, 7293 uploadMedia: _uploadMedia,
6948 downloadOptions: _downloadOptions); 7294 downloadOptions: _downloadOptions);
6949 return _response.then((data) => new PlacementGroupsListResponse.fromJson(dat a)); 7295 return _response.then((data) => new OrderDocumentsListResponse.fromJson(data ));
6950 } 7296 }
6951 7297
7298 }
7299
7300
7301 class OrdersResourceApi {
7302 final commons.ApiRequester _requester;
7303
7304 OrdersResourceApi(commons.ApiRequester client) :
7305 _requester = client;
7306
6952 /** 7307 /**
6953 * Updates an existing placement group. This method supports patch semantics. 7308 * Gets one order by ID.
6954 *
6955 * [request] - The metadata request object.
6956 * 7309 *
6957 * Request parameters: 7310 * Request parameters:
6958 * 7311 *
6959 * [profileId] - User profile ID associated with this request. 7312 * [profileId] - User profile ID associated with this request.
6960 * 7313 *
6961 * [id] - Placement group ID. 7314 * [projectId] - Project ID for orders.
6962 * 7315 *
6963 * Completes with a [PlacementGroup]. 7316 * [id] - Order ID.
7317 *
7318 * Completes with a [Order].
6964 * 7319 *
6965 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7320 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
6966 * error. 7321 * error.
6967 * 7322 *
6968 * If the used [http.Client] completes with an error when making a REST call, 7323 * If the used [http.Client] completes with an error when making a REST call,
6969 * this method will complete with the same error. 7324 * this method will complete with the same error.
6970 */ 7325 */
6971 async.Future<PlacementGroup> patch(PlacementGroup request, core.String profile Id, core.String id) { 7326 async.Future<Order> get(core.String profileId, core.String projectId, core.Str ing id) {
6972 var _url = null; 7327 var _url = null;
6973 var _queryParams = new core.Map(); 7328 var _queryParams = new core.Map();
6974 var _uploadMedia = null; 7329 var _uploadMedia = null;
6975 var _uploadOptions = null; 7330 var _uploadOptions = null;
6976 var _downloadOptions = commons.DownloadOptions.Metadata; 7331 var _downloadOptions = commons.DownloadOptions.Metadata;
6977 var _body = null; 7332 var _body = null;
6978 7333
6979 if (request != null) {
6980 _body = convert.JSON.encode((request).toJson());
6981 }
6982 if (profileId == null) { 7334 if (profileId == null) {
6983 throw new core.ArgumentError("Parameter profileId is required."); 7335 throw new core.ArgumentError("Parameter profileId is required.");
6984 } 7336 }
7337 if (projectId == null) {
7338 throw new core.ArgumentError("Parameter projectId is required.");
7339 }
6985 if (id == null) { 7340 if (id == null) {
6986 throw new core.ArgumentError("Parameter id is required."); 7341 throw new core.ArgumentError("Parameter id is required.");
6987 } 7342 }
6988 _queryParams["id"] = [id];
6989 7343
6990 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups'; 7344 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pro jects/' + commons.Escaper.ecapeVariable('$projectId') + '/orders/' + commons.Esc aper.ecapeVariable('$id');
6991 7345
6992 var _response = _requester.request(_url, 7346 var _response = _requester.request(_url,
6993 "PATCH", 7347 "GET",
6994 body: _body, 7348 body: _body,
6995 queryParams: _queryParams, 7349 queryParams: _queryParams,
6996 uploadOptions: _uploadOptions, 7350 uploadOptions: _uploadOptions,
6997 uploadMedia: _uploadMedia, 7351 uploadMedia: _uploadMedia,
6998 downloadOptions: _downloadOptions); 7352 downloadOptions: _downloadOptions);
6999 return _response.then((data) => new PlacementGroup.fromJson(data)); 7353 return _response.then((data) => new Order.fromJson(data));
7000 } 7354 }
7001 7355
7002 /** 7356 /**
7003 * Updates an existing placement group. 7357 * Retrieves a list of orders, possibly filtered.
7004 *
7005 * [request] - The metadata request object.
7006 * 7358 *
7007 * Request parameters: 7359 * Request parameters:
7008 * 7360 *
7009 * [profileId] - User profile ID associated with this request. 7361 * [profileId] - User profile ID associated with this request.
7010 * 7362 *
7011 * Completes with a [PlacementGroup]. 7363 * [projectId] - Project ID for orders.
7364 *
7365 * [ids] - Select only orders with these IDs.
7366 *
7367 * [maxResults] - Maximum number of results to return.
7368 *
7369 * [pageToken] - Value of the nextPageToken from the previous result page.
7370 *
7371 * [searchString] - Allows searching for orders by name or ID. Wildcards (*)
7372 * are allowed. For example, "order*2015" will return orders with names like
7373 * "order June 2015", "order April 2015", or simply "order 2015". Most of the
7374 * searches also add wildcards implicitly at the start and the end of the
7375 * search string. For example, a search string of "order" will match orders
7376 * with name "my order", "order 2015", or simply "order".
7377 *
7378 * [siteId] - Select only orders that are associated with these site IDs.
7379 *
7380 * [sortField] - Field by which to sort the list.
7381 * Possible string values are:
7382 * - "ID"
7383 * - "NAME"
7384 *
7385 * [sortOrder] - Order of sorted results, default is ASCENDING.
7386 * Possible string values are:
7387 * - "ASCENDING"
7388 * - "DESCENDING"
7389 *
7390 * Completes with a [OrdersListResponse].
7012 * 7391 *
7013 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7392 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7014 * error. 7393 * error.
7015 * 7394 *
7016 * If the used [http.Client] completes with an error when making a REST call, 7395 * If the used [http.Client] completes with an error when making a REST call,
7017 * this method will complete with the same error. 7396 * this method will complete with the same error.
7018 */ 7397 */
7019 async.Future<PlacementGroup> update(PlacementGroup request, core.String profil eId) { 7398 async.Future<OrdersListResponse> list(core.String profileId, core.String proje ctId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, c ore.String searchString, core.List<core.String> siteId, core.String sortField, c ore.String sortOrder}) {
7020 var _url = null; 7399 var _url = null;
7021 var _queryParams = new core.Map(); 7400 var _queryParams = new core.Map();
7022 var _uploadMedia = null; 7401 var _uploadMedia = null;
7023 var _uploadOptions = null; 7402 var _uploadOptions = null;
7024 var _downloadOptions = commons.DownloadOptions.Metadata; 7403 var _downloadOptions = commons.DownloadOptions.Metadata;
7025 var _body = null; 7404 var _body = null;
7026 7405
7027 if (request != null) {
7028 _body = convert.JSON.encode((request).toJson());
7029 }
7030 if (profileId == null) {
7031 throw new core.ArgumentError("Parameter profileId is required.");
7032 }
7033
7034 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups';
7035
7036 var _response = _requester.request(_url,
7037 "PUT",
7038 body: _body,
7039 queryParams: _queryParams,
7040 uploadOptions: _uploadOptions,
7041 uploadMedia: _uploadMedia,
7042 downloadOptions: _downloadOptions);
7043 return _response.then((data) => new PlacementGroup.fromJson(data));
7044 }
7045
7046 }
7047
7048
7049 class PlacementStrategiesResourceApi {
7050 final commons.ApiRequester _requester;
7051
7052 PlacementStrategiesResourceApi(commons.ApiRequester client) :
7053 _requester = client;
7054
7055 /**
7056 * Deletes an existing placement strategy.
7057 *
7058 * Request parameters:
7059 *
7060 * [profileId] - User profile ID associated with this request.
7061 *
7062 * [id] - Placement strategy ID.
7063 *
7064 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7065 * error.
7066 *
7067 * If the used [http.Client] completes with an error when making a REST call,
7068 * this method will complete with the same error.
7069 */
7070 async.Future delete(core.String profileId, core.String id) {
7071 var _url = null;
7072 var _queryParams = new core.Map();
7073 var _uploadMedia = null;
7074 var _uploadOptions = null;
7075 var _downloadOptions = commons.DownloadOptions.Metadata;
7076 var _body = null;
7077
7078 if (profileId == null) { 7406 if (profileId == null) {
7079 throw new core.ArgumentError("Parameter profileId is required."); 7407 throw new core.ArgumentError("Parameter profileId is required.");
7080 } 7408 }
7081 if (id == null) { 7409 if (projectId == null) {
7082 throw new core.ArgumentError("Parameter id is required."); 7410 throw new core.ArgumentError("Parameter projectId is required.");
7411 }
7412 if (ids != null) {
7413 _queryParams["ids"] = ids;
7414 }
7415 if (maxResults != null) {
7416 _queryParams["maxResults"] = ["${maxResults}"];
7417 }
7418 if (pageToken != null) {
7419 _queryParams["pageToken"] = [pageToken];
7420 }
7421 if (searchString != null) {
7422 _queryParams["searchString"] = [searchString];
7423 }
7424 if (siteId != null) {
7425 _queryParams["siteId"] = siteId;
7426 }
7427 if (sortField != null) {
7428 _queryParams["sortField"] = [sortField];
7429 }
7430 if (sortOrder != null) {
7431 _queryParams["sortOrder"] = [sortOrder];
7083 } 7432 }
7084 7433
7085 _downloadOptions = null; 7434 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pro jects/' + commons.Escaper.ecapeVariable('$projectId') + '/orders';
7086
7087 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies/' + commons.Escaper.ecapeVariable('$id');
7088 7435
7089 var _response = _requester.request(_url, 7436 var _response = _requester.request(_url,
7090 "DELETE", 7437 "GET",
7091 body: _body, 7438 body: _body,
7092 queryParams: _queryParams, 7439 queryParams: _queryParams,
7093 uploadOptions: _uploadOptions, 7440 uploadOptions: _uploadOptions,
7094 uploadMedia: _uploadMedia, 7441 uploadMedia: _uploadMedia,
7095 downloadOptions: _downloadOptions); 7442 downloadOptions: _downloadOptions);
7096 return _response.then((data) => null); 7443 return _response.then((data) => new OrdersListResponse.fromJson(data));
7097 } 7444 }
7098 7445
7446 }
7447
7448
7449 class PlacementGroupsResourceApi {
7450 final commons.ApiRequester _requester;
7451
7452 PlacementGroupsResourceApi(commons.ApiRequester client) :
7453 _requester = client;
7454
7099 /** 7455 /**
7100 * Gets one placement strategy by ID. 7456 * Gets one placement group by ID.
7101 * 7457 *
7102 * Request parameters: 7458 * Request parameters:
7103 * 7459 *
7104 * [profileId] - User profile ID associated with this request. 7460 * [profileId] - User profile ID associated with this request.
7105 * 7461 *
7106 * [id] - Placement strategy ID. 7462 * [id] - Placement group ID.
7107 * 7463 *
7108 * Completes with a [PlacementStrategy]. 7464 * Completes with a [PlacementGroup].
7109 * 7465 *
7110 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7466 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7111 * error. 7467 * error.
7112 * 7468 *
7113 * If the used [http.Client] completes with an error when making a REST call, 7469 * If the used [http.Client] completes with an error when making a REST call,
7114 * this method will complete with the same error. 7470 * this method will complete with the same error.
7115 */ 7471 */
7116 async.Future<PlacementStrategy> get(core.String profileId, core.String id) { 7472 async.Future<PlacementGroup> get(core.String profileId, core.String id) {
7117 var _url = null; 7473 var _url = null;
7118 var _queryParams = new core.Map(); 7474 var _queryParams = new core.Map();
7119 var _uploadMedia = null; 7475 var _uploadMedia = null;
7120 var _uploadOptions = null; 7476 var _uploadOptions = null;
7121 var _downloadOptions = commons.DownloadOptions.Metadata; 7477 var _downloadOptions = commons.DownloadOptions.Metadata;
7122 var _body = null; 7478 var _body = null;
7123 7479
7124 if (profileId == null) { 7480 if (profileId == null) {
7125 throw new core.ArgumentError("Parameter profileId is required."); 7481 throw new core.ArgumentError("Parameter profileId is required.");
7126 } 7482 }
7127 if (id == null) { 7483 if (id == null) {
7128 throw new core.ArgumentError("Parameter id is required."); 7484 throw new core.ArgumentError("Parameter id is required.");
7129 } 7485 }
7130 7486
7131 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies/' + commons.Escaper.ecapeVariable('$id'); 7487 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups/' + commons.Escaper.ecapeVariable('$id');
7132 7488
7133 var _response = _requester.request(_url, 7489 var _response = _requester.request(_url,
7134 "GET", 7490 "GET",
7135 body: _body, 7491 body: _body,
7136 queryParams: _queryParams, 7492 queryParams: _queryParams,
7137 uploadOptions: _uploadOptions, 7493 uploadOptions: _uploadOptions,
7138 uploadMedia: _uploadMedia, 7494 uploadMedia: _uploadMedia,
7139 downloadOptions: _downloadOptions); 7495 downloadOptions: _downloadOptions);
7140 return _response.then((data) => new PlacementStrategy.fromJson(data)); 7496 return _response.then((data) => new PlacementGroup.fromJson(data));
7141 } 7497 }
7142 7498
7143 /** 7499 /**
7144 * Inserts a new placement strategy. 7500 * Inserts a new placement group.
7145 * 7501 *
7146 * [request] - The metadata request object. 7502 * [request] - The metadata request object.
7147 * 7503 *
7148 * Request parameters: 7504 * Request parameters:
7149 * 7505 *
7150 * [profileId] - User profile ID associated with this request. 7506 * [profileId] - User profile ID associated with this request.
7151 * 7507 *
7152 * Completes with a [PlacementStrategy]. 7508 * Completes with a [PlacementGroup].
7153 * 7509 *
7154 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7510 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7155 * error. 7511 * error.
7156 * 7512 *
7157 * If the used [http.Client] completes with an error when making a REST call, 7513 * If the used [http.Client] completes with an error when making a REST call,
7158 * this method will complete with the same error. 7514 * this method will complete with the same error.
7159 */ 7515 */
7160 async.Future<PlacementStrategy> insert(PlacementStrategy request, core.String profileId) { 7516 async.Future<PlacementGroup> insert(PlacementGroup request, core.String profil eId) {
7161 var _url = null; 7517 var _url = null;
7162 var _queryParams = new core.Map(); 7518 var _queryParams = new core.Map();
7163 var _uploadMedia = null; 7519 var _uploadMedia = null;
7164 var _uploadOptions = null; 7520 var _uploadOptions = null;
7165 var _downloadOptions = commons.DownloadOptions.Metadata; 7521 var _downloadOptions = commons.DownloadOptions.Metadata;
7166 var _body = null; 7522 var _body = null;
7167 7523
7168 if (request != null) { 7524 if (request != null) {
7169 _body = convert.JSON.encode((request).toJson()); 7525 _body = convert.JSON.encode((request).toJson());
7170 } 7526 }
7171 if (profileId == null) { 7527 if (profileId == null) {
7172 throw new core.ArgumentError("Parameter profileId is required."); 7528 throw new core.ArgumentError("Parameter profileId is required.");
7173 } 7529 }
7174 7530
7175 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies'; 7531 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups';
7176 7532
7177 var _response = _requester.request(_url, 7533 var _response = _requester.request(_url,
7178 "POST", 7534 "POST",
7179 body: _body, 7535 body: _body,
7180 queryParams: _queryParams, 7536 queryParams: _queryParams,
7181 uploadOptions: _uploadOptions, 7537 uploadOptions: _uploadOptions,
7182 uploadMedia: _uploadMedia, 7538 uploadMedia: _uploadMedia,
7183 downloadOptions: _downloadOptions); 7539 downloadOptions: _downloadOptions);
7184 return _response.then((data) => new PlacementStrategy.fromJson(data)); 7540 return _response.then((data) => new PlacementGroup.fromJson(data));
7185 } 7541 }
7186 7542
7187 /** 7543 /**
7188 * Retrieves a list of placement strategies, possibly filtered. 7544 * Retrieves a list of placement groups, possibly filtered.
7189 * 7545 *
7190 * Request parameters: 7546 * Request parameters:
7191 * 7547 *
7192 * [profileId] - User profile ID associated with this request. 7548 * [profileId] - User profile ID associated with this request.
7193 * 7549 *
7194 * [ids] - Select only placement strategies with these IDs. 7550 * [advertiserIds] - Select only placement groups that belong to these
7551 * advertisers.
7552 *
7553 * [archived] - Select only archived placements. Don't set this field to
7554 * select both archived and non-archived placements.
7555 *
7556 * [campaignIds] - Select only placement groups that belong to these
7557 * campaigns.
7558 *
7559 * [contentCategoryIds] - Select only placement groups that are associated
7560 * with these content categories.
7561 *
7562 * [directorySiteIds] - Select only placement groups that are associated with
7563 * these directory sites.
7564 *
7565 * [ids] - Select only placement groups with these IDs.
7566 *
7567 * [maxEndDate] - Select only placements or placement groups whose end date is
7568 * on or before the specified maxEndDate. The date should be formatted as
7569 * "yyyy-MM-dd".
7195 * 7570 *
7196 * [maxResults] - Maximum number of results to return. 7571 * [maxResults] - Maximum number of results to return.
7197 * 7572 *
7573 * [maxStartDate] - Select only placements or placement groups whose start
7574 * date is on or before the specified maxStartDate. The date should be
7575 * formatted as "yyyy-MM-dd".
7576 *
7577 * [minEndDate] - Select only placements or placement groups whose end date is
7578 * on or after the specified minEndDate. The date should be formatted as
7579 * "yyyy-MM-dd".
7580 *
7581 * [minStartDate] - Select only placements or placement groups whose start
7582 * date is on or after the specified minStartDate. The date should be
7583 * formatted as "yyyy-MM-dd".
7584 *
7198 * [pageToken] - Value of the nextPageToken from the previous result page. 7585 * [pageToken] - Value of the nextPageToken from the previous result page.
7199 * 7586 *
7200 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) 7587 * [placementGroupType] - Select only placement groups belonging with this
7201 * are allowed. For example, "placementstrategy*2015" will return objects with 7588 * group type. A package is a simple group of placements that acts as a single
7202 * names like "placementstrategy June 2015", "placementstrategy April 2015", 7589 * pricing point for a group of tags. A roadblock is a group of placements
7203 * or simply "placementstrategy 2015". Most of the searches also add wildcards 7590 * that not only acts as a single pricing point but also assumes that all the
7204 * implicitly at the start and the end of the search string. For example, a 7591 * tags in it will be served at the same time. A roadblock requires one of its
7205 * search string of "placementstrategy" will match objects with name "my 7592 * assigned placements to be marked as primary for reporting.
7206 * placementstrategy", "placementstrategy 2015", or simply 7593 * Possible string values are:
7207 * "placementstrategy". 7594 * - "PLACEMENT_PACKAGE"
7595 * - "PLACEMENT_ROADBLOCK"
7596 *
7597 * [placementStrategyIds] - Select only placement groups that are associated
7598 * with these placement strategies.
7599 *
7600 * [pricingTypes] - Select only placement groups with these pricing types.
7601 *
7602 * [searchString] - Allows searching for placement groups by name or ID.
7603 * Wildcards (*) are allowed. For example, "placement*2015" will return
7604 * placement groups with names like "placement group June 2015", "placement
7605 * group May 2015", or simply "placements 2015". Most of the searches also add
7606 * wildcards implicitly at the start and the end of the search string. For
7607 * example, a search string of "placementgroup" will match placement groups
7608 * with name "my placementgroup", "placementgroup 2015", or simply
7609 * "placementgroup".
7610 *
7611 * [siteIds] - Select only placement groups that are associated with these
7612 * sites.
7208 * 7613 *
7209 * [sortField] - Field by which to sort the list. 7614 * [sortField] - Field by which to sort the list.
7210 * Possible string values are: 7615 * Possible string values are:
7211 * - "ID" 7616 * - "ID"
7212 * - "NAME" 7617 * - "NAME"
7213 * 7618 *
7214 * [sortOrder] - Order of sorted results, default is ASCENDING. 7619 * [sortOrder] - Order of sorted results, default is ASCENDING.
7215 * Possible string values are: 7620 * Possible string values are:
7216 * - "ASCENDING" 7621 * - "ASCENDING"
7217 * - "DESCENDING" 7622 * - "DESCENDING"
7218 * 7623 *
7219 * Completes with a [PlacementStrategiesListResponse]. 7624 * Completes with a [PlacementGroupsListResponse].
7220 * 7625 *
7221 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7626 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7222 * error. 7627 * error.
7223 * 7628 *
7224 * If the used [http.Client] completes with an error when making a REST call, 7629 * If the used [http.Client] completes with an error when making a REST call,
7225 * this method will complete with the same error. 7630 * this method will complete with the same error.
7226 */ 7631 */
7227 async.Future<PlacementStrategiesListResponse> list(core.String profileId, {cor e.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { 7632 async.Future<PlacementGroupsListResponse> list(core.String profileId, {core.Li st<core.String> advertiserIds, core.bool archived, core.List<core.String> campai gnIds, core.List<core.String> contentCategoryIds, core.List<core.String> directo rySiteIds, core.List<core.String> ids, core.String maxEndDate, core.int maxResul ts, core.String maxStartDate, core.String minEndDate, core.String minStartDate, core.String pageToken, core.String placementGroupType, core.List<core.String> pl acementStrategyIds, core.List<core.String> pricingTypes, core.String searchStrin g, core.List<core.String> siteIds, core.String sortField, core.String sortOrder} ) {
7228 var _url = null; 7633 var _url = null;
7229 var _queryParams = new core.Map(); 7634 var _queryParams = new core.Map();
7230 var _uploadMedia = null; 7635 var _uploadMedia = null;
7231 var _uploadOptions = null; 7636 var _uploadOptions = null;
7232 var _downloadOptions = commons.DownloadOptions.Metadata; 7637 var _downloadOptions = commons.DownloadOptions.Metadata;
7233 var _body = null; 7638 var _body = null;
7234 7639
7235 if (profileId == null) { 7640 if (profileId == null) {
7236 throw new core.ArgumentError("Parameter profileId is required."); 7641 throw new core.ArgumentError("Parameter profileId is required.");
7237 } 7642 }
7643 if (advertiserIds != null) {
7644 _queryParams["advertiserIds"] = advertiserIds;
7645 }
7646 if (archived != null) {
7647 _queryParams["archived"] = ["${archived}"];
7648 }
7649 if (campaignIds != null) {
7650 _queryParams["campaignIds"] = campaignIds;
7651 }
7652 if (contentCategoryIds != null) {
7653 _queryParams["contentCategoryIds"] = contentCategoryIds;
7654 }
7655 if (directorySiteIds != null) {
7656 _queryParams["directorySiteIds"] = directorySiteIds;
7657 }
7238 if (ids != null) { 7658 if (ids != null) {
7239 _queryParams["ids"] = ids; 7659 _queryParams["ids"] = ids;
7240 } 7660 }
7661 if (maxEndDate != null) {
7662 _queryParams["maxEndDate"] = [maxEndDate];
7663 }
7241 if (maxResults != null) { 7664 if (maxResults != null) {
7242 _queryParams["maxResults"] = ["${maxResults}"]; 7665 _queryParams["maxResults"] = ["${maxResults}"];
7243 } 7666 }
7667 if (maxStartDate != null) {
7668 _queryParams["maxStartDate"] = [maxStartDate];
7669 }
7670 if (minEndDate != null) {
7671 _queryParams["minEndDate"] = [minEndDate];
7672 }
7673 if (minStartDate != null) {
7674 _queryParams["minStartDate"] = [minStartDate];
7675 }
7244 if (pageToken != null) { 7676 if (pageToken != null) {
7245 _queryParams["pageToken"] = [pageToken]; 7677 _queryParams["pageToken"] = [pageToken];
7246 } 7678 }
7679 if (placementGroupType != null) {
7680 _queryParams["placementGroupType"] = [placementGroupType];
7681 }
7682 if (placementStrategyIds != null) {
7683 _queryParams["placementStrategyIds"] = placementStrategyIds;
7684 }
7685 if (pricingTypes != null) {
7686 _queryParams["pricingTypes"] = pricingTypes;
7687 }
7247 if (searchString != null) { 7688 if (searchString != null) {
7248 _queryParams["searchString"] = [searchString]; 7689 _queryParams["searchString"] = [searchString];
7249 } 7690 }
7691 if (siteIds != null) {
7692 _queryParams["siteIds"] = siteIds;
7693 }
7250 if (sortField != null) { 7694 if (sortField != null) {
7251 _queryParams["sortField"] = [sortField]; 7695 _queryParams["sortField"] = [sortField];
7252 } 7696 }
7253 if (sortOrder != null) { 7697 if (sortOrder != null) {
7254 _queryParams["sortOrder"] = [sortOrder]; 7698 _queryParams["sortOrder"] = [sortOrder];
7255 } 7699 }
7256 7700
7257 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies'; 7701 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups';
7258 7702
7259 var _response = _requester.request(_url, 7703 var _response = _requester.request(_url,
7260 "GET", 7704 "GET",
7261 body: _body, 7705 body: _body,
7262 queryParams: _queryParams, 7706 queryParams: _queryParams,
7263 uploadOptions: _uploadOptions, 7707 uploadOptions: _uploadOptions,
7264 uploadMedia: _uploadMedia, 7708 uploadMedia: _uploadMedia,
7265 downloadOptions: _downloadOptions); 7709 downloadOptions: _downloadOptions);
7266 return _response.then((data) => new PlacementStrategiesListResponse.fromJson (data)); 7710 return _response.then((data) => new PlacementGroupsListResponse.fromJson(dat a));
7267 } 7711 }
7268 7712
7269 /** 7713 /**
7270 * Updates an existing placement strategy. This method supports patch 7714 * Updates an existing placement group. This method supports patch semantics.
7271 * semantics.
7272 * 7715 *
7273 * [request] - The metadata request object. 7716 * [request] - The metadata request object.
7274 * 7717 *
7275 * Request parameters: 7718 * Request parameters:
7276 * 7719 *
7277 * [profileId] - User profile ID associated with this request. 7720 * [profileId] - User profile ID associated with this request.
7278 * 7721 *
7279 * [id] - Placement strategy ID. 7722 * [id] - Placement group ID.
7280 * 7723 *
7281 * Completes with a [PlacementStrategy]. 7724 * Completes with a [PlacementGroup].
7282 * 7725 *
7283 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7726 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7284 * error. 7727 * error.
7285 * 7728 *
7286 * If the used [http.Client] completes with an error when making a REST call, 7729 * If the used [http.Client] completes with an error when making a REST call,
7287 * this method will complete with the same error. 7730 * this method will complete with the same error.
7288 */ 7731 */
7289 async.Future<PlacementStrategy> patch(PlacementStrategy request, core.String p rofileId, core.String id) { 7732 async.Future<PlacementGroup> patch(PlacementGroup request, core.String profile Id, core.String id) {
7290 var _url = null; 7733 var _url = null;
7291 var _queryParams = new core.Map(); 7734 var _queryParams = new core.Map();
7292 var _uploadMedia = null; 7735 var _uploadMedia = null;
7293 var _uploadOptions = null; 7736 var _uploadOptions = null;
7294 var _downloadOptions = commons.DownloadOptions.Metadata; 7737 var _downloadOptions = commons.DownloadOptions.Metadata;
7295 var _body = null; 7738 var _body = null;
7296 7739
7297 if (request != null) { 7740 if (request != null) {
7298 _body = convert.JSON.encode((request).toJson()); 7741 _body = convert.JSON.encode((request).toJson());
7299 } 7742 }
7300 if (profileId == null) { 7743 if (profileId == null) {
7301 throw new core.ArgumentError("Parameter profileId is required."); 7744 throw new core.ArgumentError("Parameter profileId is required.");
7302 } 7745 }
7303 if (id == null) { 7746 if (id == null) {
7304 throw new core.ArgumentError("Parameter id is required."); 7747 throw new core.ArgumentError("Parameter id is required.");
7305 } 7748 }
7306 _queryParams["id"] = [id]; 7749 _queryParams["id"] = [id];
7307 7750
7308 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies'; 7751 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups';
7309 7752
7310 var _response = _requester.request(_url, 7753 var _response = _requester.request(_url,
7311 "PATCH", 7754 "PATCH",
7312 body: _body, 7755 body: _body,
7313 queryParams: _queryParams, 7756 queryParams: _queryParams,
7314 uploadOptions: _uploadOptions, 7757 uploadOptions: _uploadOptions,
7315 uploadMedia: _uploadMedia, 7758 uploadMedia: _uploadMedia,
7316 downloadOptions: _downloadOptions); 7759 downloadOptions: _downloadOptions);
7317 return _response.then((data) => new PlacementStrategy.fromJson(data)); 7760 return _response.then((data) => new PlacementGroup.fromJson(data));
7318 } 7761 }
7319 7762
7320 /** 7763 /**
7321 * Updates an existing placement strategy. 7764 * Updates an existing placement group.
7322 * 7765 *
7323 * [request] - The metadata request object. 7766 * [request] - The metadata request object.
7324 * 7767 *
7325 * Request parameters: 7768 * Request parameters:
7326 * 7769 *
7327 * [profileId] - User profile ID associated with this request. 7770 * [profileId] - User profile ID associated with this request.
7328 * 7771 *
7329 * Completes with a [PlacementStrategy]. 7772 * Completes with a [PlacementGroup].
7330 * 7773 *
7331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7774 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7332 * error. 7775 * error.
7333 * 7776 *
7334 * If the used [http.Client] completes with an error when making a REST call, 7777 * If the used [http.Client] completes with an error when making a REST call,
7335 * this method will complete with the same error. 7778 * this method will complete with the same error.
7336 */ 7779 */
7337 async.Future<PlacementStrategy> update(PlacementStrategy request, core.String profileId) { 7780 async.Future<PlacementGroup> update(PlacementGroup request, core.String profil eId) {
7338 var _url = null; 7781 var _url = null;
7339 var _queryParams = new core.Map(); 7782 var _queryParams = new core.Map();
7340 var _uploadMedia = null; 7783 var _uploadMedia = null;
7341 var _uploadOptions = null; 7784 var _uploadOptions = null;
7342 var _downloadOptions = commons.DownloadOptions.Metadata; 7785 var _downloadOptions = commons.DownloadOptions.Metadata;
7343 var _body = null; 7786 var _body = null;
7344 7787
7345 if (request != null) { 7788 if (request != null) {
7346 _body = convert.JSON.encode((request).toJson()); 7789 _body = convert.JSON.encode((request).toJson());
7347 } 7790 }
7348 if (profileId == null) { 7791 if (profileId == null) {
7349 throw new core.ArgumentError("Parameter profileId is required."); 7792 throw new core.ArgumentError("Parameter profileId is required.");
7350 } 7793 }
7351 7794
7352 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies'; 7795 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups';
7353 7796
7354 var _response = _requester.request(_url, 7797 var _response = _requester.request(_url,
7355 "PUT", 7798 "PUT",
7356 body: _body, 7799 body: _body,
7357 queryParams: _queryParams, 7800 queryParams: _queryParams,
7358 uploadOptions: _uploadOptions, 7801 uploadOptions: _uploadOptions,
7359 uploadMedia: _uploadMedia, 7802 uploadMedia: _uploadMedia,
7360 downloadOptions: _downloadOptions); 7803 downloadOptions: _downloadOptions);
7361 return _response.then((data) => new PlacementStrategy.fromJson(data)); 7804 return _response.then((data) => new PlacementGroup.fromJson(data));
7362 } 7805 }
7363 7806
7364 } 7807 }
7365 7808
7366 7809
7367 class PlacementsResourceApi { 7810 class PlacementStrategiesResourceApi {
7368 final commons.ApiRequester _requester; 7811 final commons.ApiRequester _requester;
7369 7812
7370 PlacementsResourceApi(commons.ApiRequester client) : 7813 PlacementStrategiesResourceApi(commons.ApiRequester client) :
7371 _requester = client; 7814 _requester = client;
7372 7815
7373 /** 7816 /**
7374 * Generates tags for a placement. 7817 * Deletes an existing placement strategy.
7375 * 7818 *
7376 * Request parameters: 7819 * Request parameters:
7377 * 7820 *
7378 * [profileId] - User profile ID associated with this request. 7821 * [profileId] - User profile ID associated with this request.
7379 * 7822 *
7380 * [campaignId] - Generate placements belonging to this campaign. This is a 7823 * [id] - Placement strategy ID.
7381 * required field.
7382 *
7383 * [placementIds] - Generate tags for these placements.
7384 *
7385 * [tagFormats] - Tag formats to generate for these placements.
7386 *
7387 * Completes with a [PlacementsGenerateTagsResponse].
7388 * 7824 *
7389 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7825 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7390 * error. 7826 * error.
7391 * 7827 *
7392 * If the used [http.Client] completes with an error when making a REST call, 7828 * If the used [http.Client] completes with an error when making a REST call,
7393 * this method will complete with the same error. 7829 * this method will complete with the same error.
7394 */ 7830 */
7395 async.Future<PlacementsGenerateTagsResponse> generatetags(core.String profileI d, {core.String campaignId, core.List<core.String> placementIds, core.List<core. String> tagFormats}) { 7831 async.Future delete(core.String profileId, core.String id) {
7396 var _url = null; 7832 var _url = null;
7397 var _queryParams = new core.Map(); 7833 var _queryParams = new core.Map();
7398 var _uploadMedia = null; 7834 var _uploadMedia = null;
7399 var _uploadOptions = null; 7835 var _uploadOptions = null;
7400 var _downloadOptions = commons.DownloadOptions.Metadata; 7836 var _downloadOptions = commons.DownloadOptions.Metadata;
7401 var _body = null; 7837 var _body = null;
7402 7838
7403 if (profileId == null) { 7839 if (profileId == null) {
7404 throw new core.ArgumentError("Parameter profileId is required."); 7840 throw new core.ArgumentError("Parameter profileId is required.");
7405 } 7841 }
7406 if (campaignId != null) { 7842 if (id == null) {
7407 _queryParams["campaignId"] = [campaignId]; 7843 throw new core.ArgumentError("Parameter id is required.");
7408 }
7409 if (placementIds != null) {
7410 _queryParams["placementIds"] = placementIds;
7411 }
7412 if (tagFormats != null) {
7413 _queryParams["tagFormats"] = tagFormats;
7414 } 7844 }
7415 7845
7416 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements/generatetags'; 7846 _downloadOptions = null;
7847
7848 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies/' + commons.Escaper.ecapeVariable('$id');
7417 7849
7418 var _response = _requester.request(_url, 7850 var _response = _requester.request(_url,
7419 "POST", 7851 "DELETE",
7420 body: _body, 7852 body: _body,
7421 queryParams: _queryParams, 7853 queryParams: _queryParams,
7422 uploadOptions: _uploadOptions, 7854 uploadOptions: _uploadOptions,
7423 uploadMedia: _uploadMedia, 7855 uploadMedia: _uploadMedia,
7424 downloadOptions: _downloadOptions); 7856 downloadOptions: _downloadOptions);
7425 return _response.then((data) => new PlacementsGenerateTagsResponse.fromJson( data)); 7857 return _response.then((data) => null);
7426 } 7858 }
7427 7859
7428 /** 7860 /**
7429 * Gets one placement by ID. 7861 * Gets one placement strategy by ID.
7430 * 7862 *
7431 * Request parameters: 7863 * Request parameters:
7432 * 7864 *
7433 * [profileId] - User profile ID associated with this request. 7865 * [profileId] - User profile ID associated with this request.
7434 * 7866 *
7435 * [id] - Placement ID. 7867 * [id] - Placement strategy ID.
7436 * 7868 *
7437 * Completes with a [Placement]. 7869 * Completes with a [PlacementStrategy].
7438 * 7870 *
7439 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7871 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7440 * error. 7872 * error.
7441 * 7873 *
7442 * If the used [http.Client] completes with an error when making a REST call, 7874 * If the used [http.Client] completes with an error when making a REST call,
7443 * this method will complete with the same error. 7875 * this method will complete with the same error.
7444 */ 7876 */
7445 async.Future<Placement> get(core.String profileId, core.String id) { 7877 async.Future<PlacementStrategy> get(core.String profileId, core.String id) {
7446 var _url = null; 7878 var _url = null;
7447 var _queryParams = new core.Map(); 7879 var _queryParams = new core.Map();
7448 var _uploadMedia = null; 7880 var _uploadMedia = null;
7449 var _uploadOptions = null; 7881 var _uploadOptions = null;
7450 var _downloadOptions = commons.DownloadOptions.Metadata; 7882 var _downloadOptions = commons.DownloadOptions.Metadata;
7451 var _body = null; 7883 var _body = null;
7452 7884
7453 if (profileId == null) { 7885 if (profileId == null) {
7454 throw new core.ArgumentError("Parameter profileId is required."); 7886 throw new core.ArgumentError("Parameter profileId is required.");
7455 } 7887 }
7456 if (id == null) { 7888 if (id == null) {
7457 throw new core.ArgumentError("Parameter id is required."); 7889 throw new core.ArgumentError("Parameter id is required.");
7458 } 7890 }
7459 7891
7460 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements/' + commons.Escaper.ecapeVariable('$id'); 7892 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies/' + commons.Escaper.ecapeVariable('$id');
7461 7893
7462 var _response = _requester.request(_url, 7894 var _response = _requester.request(_url,
7463 "GET", 7895 "GET",
7464 body: _body, 7896 body: _body,
7465 queryParams: _queryParams, 7897 queryParams: _queryParams,
7466 uploadOptions: _uploadOptions, 7898 uploadOptions: _uploadOptions,
7467 uploadMedia: _uploadMedia, 7899 uploadMedia: _uploadMedia,
7468 downloadOptions: _downloadOptions); 7900 downloadOptions: _downloadOptions);
7469 return _response.then((data) => new Placement.fromJson(data)); 7901 return _response.then((data) => new PlacementStrategy.fromJson(data));
7470 } 7902 }
7471 7903
7472 /** 7904 /**
7473 * Inserts a new placement. 7905 * Inserts a new placement strategy.
7474 * 7906 *
7475 * [request] - The metadata request object. 7907 * [request] - The metadata request object.
7476 * 7908 *
7477 * Request parameters: 7909 * Request parameters:
7478 * 7910 *
7479 * [profileId] - User profile ID associated with this request. 7911 * [profileId] - User profile ID associated with this request.
7480 * 7912 *
7481 * Completes with a [Placement]. 7913 * Completes with a [PlacementStrategy].
7482 * 7914 *
7483 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7915 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7484 * error. 7916 * error.
7485 * 7917 *
7486 * If the used [http.Client] completes with an error when making a REST call, 7918 * If the used [http.Client] completes with an error when making a REST call,
7487 * this method will complete with the same error. 7919 * this method will complete with the same error.
7488 */ 7920 */
7489 async.Future<Placement> insert(Placement request, core.String profileId) { 7921 async.Future<PlacementStrategy> insert(PlacementStrategy request, core.String profileId) {
7490 var _url = null; 7922 var _url = null;
7491 var _queryParams = new core.Map(); 7923 var _queryParams = new core.Map();
7492 var _uploadMedia = null; 7924 var _uploadMedia = null;
7493 var _uploadOptions = null; 7925 var _uploadOptions = null;
7494 var _downloadOptions = commons.DownloadOptions.Metadata; 7926 var _downloadOptions = commons.DownloadOptions.Metadata;
7495 var _body = null; 7927 var _body = null;
7496 7928
7497 if (request != null) { 7929 if (request != null) {
7498 _body = convert.JSON.encode((request).toJson()); 7930 _body = convert.JSON.encode((request).toJson());
7499 } 7931 }
7500 if (profileId == null) { 7932 if (profileId == null) {
7501 throw new core.ArgumentError("Parameter profileId is required."); 7933 throw new core.ArgumentError("Parameter profileId is required.");
7502 } 7934 }
7503 7935
7504 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements'; 7936 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies';
7505 7937
7506 var _response = _requester.request(_url, 7938 var _response = _requester.request(_url,
7507 "POST", 7939 "POST",
7508 body: _body, 7940 body: _body,
7509 queryParams: _queryParams, 7941 queryParams: _queryParams,
7510 uploadOptions: _uploadOptions, 7942 uploadOptions: _uploadOptions,
7511 uploadMedia: _uploadMedia, 7943 uploadMedia: _uploadMedia,
7512 downloadOptions: _downloadOptions); 7944 downloadOptions: _downloadOptions);
7513 return _response.then((data) => new Placement.fromJson(data)); 7945 return _response.then((data) => new PlacementStrategy.fromJson(data));
7514 } 7946 }
7515 7947
7516 /** 7948 /**
7517 * Retrieves a list of placements, possibly filtered. 7949 * Retrieves a list of placement strategies, possibly filtered.
7518 * 7950 *
7519 * Request parameters: 7951 * Request parameters:
7520 * 7952 *
7521 * [profileId] - User profile ID associated with this request. 7953 * [profileId] - User profile ID associated with this request.
7522 * 7954 *
7523 * [advertiserIds] - Select only placements that belong to these advertisers. 7955 * [ids] - Select only placement strategies with these IDs.
7524 *
7525 * [archived] - Select only archived placements. Don't set this field to
7526 * select both archived and non-archived placements.
7527 *
7528 * [campaignIds] - Select only placements that belong to these campaigns.
7529 *
7530 * [compatibilities] - Select only placements that are associated with these
7531 * compatibilities. WEB and WEB_INTERSTITIAL refer to rendering either on
7532 * desktop or on mobile devices for regular or interstitial ads respectively.
7533 * APP and APP_INTERSTITIAL are for rendering in mobile apps.IN_STREAM_VIDEO
7534 * refers to rendering in in-stream video ads developed with the VAST
7535 * standard.
7536 *
7537 * [contentCategoryIds] - Select only placements that are associated with
7538 * these content categories.
7539 *
7540 * [directorySiteIds] - Select only placements that are associated with these
7541 * directory sites.
7542 *
7543 * [groupIds] - Select only placements that belong to these placement groups.
7544 *
7545 * [ids] - Select only placements with these IDs.
7546 * 7956 *
7547 * [maxResults] - Maximum number of results to return. 7957 * [maxResults] - Maximum number of results to return.
7548 * 7958 *
7549 * [pageToken] - Value of the nextPageToken from the previous result page. 7959 * [pageToken] - Value of the nextPageToken from the previous result page.
7550 * 7960 *
7551 * [paymentSource] - Select only placements with this payment source. 7961 * [searchString] - Allows searching for objects by name or ID. Wildcards (*)
7552 * Possible string values are: 7962 * are allowed. For example, "placementstrategy*2015" will return objects with
7553 * - "PLACEMENT_AGENCY_PAID" 7963 * names like "placementstrategy June 2015", "placementstrategy April 2015",
7554 * - "PLACEMENT_PUBLISHER_PAID" 7964 * or simply "placementstrategy 2015". Most of the searches also add wildcards
7555 * 7965 * implicitly at the start and the end of the search string. For example, a
7556 * [placementStrategyIds] - Select only placements that are associated with 7966 * search string of "placementstrategy" will match objects with name "my
7557 * these placement strategies. 7967 * placementstrategy", "placementstrategy 2015", or simply
7558 * 7968 * "placementstrategy".
7559 * [pricingTypes] - Select only placements with these pricing types.
7560 *
7561 * [searchString] - Allows searching for placements by name or ID. Wildcards
7562 * (*) are allowed. For example, "placement*2015" will return placements with
7563 * names like "placement June 2015", "placement May 2015", or simply
7564 * "placements 2015". Most of the searches also add wildcards implicitly at
7565 * the start and the end of the search string. For example, a search string of
7566 * "placement" will match placements with name "my placement", "placement
7567 * 2015", or simply "placement".
7568 *
7569 * [siteIds] - Select only placements that are associated with these sites.
7570 *
7571 * [sizeIds] - Select only placements that are associated with these sizes.
7572 * 7969 *
7573 * [sortField] - Field by which to sort the list. 7970 * [sortField] - Field by which to sort the list.
7574 * Possible string values are: 7971 * Possible string values are:
7575 * - "ID" 7972 * - "ID"
7576 * - "NAME" 7973 * - "NAME"
7577 * 7974 *
7578 * [sortOrder] - Order of sorted results, default is ASCENDING. 7975 * [sortOrder] - Order of sorted results, default is ASCENDING.
7579 * Possible string values are: 7976 * Possible string values are:
7580 * - "ASCENDING" 7977 * - "ASCENDING"
7581 * - "DESCENDING" 7978 * - "DESCENDING"
7582 * 7979 *
7583 * Completes with a [PlacementsListResponse]. 7980 * Completes with a [PlacementStrategiesListResponse].
7584 * 7981 *
7585 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7982 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7586 * error. 7983 * error.
7587 * 7984 *
7588 * If the used [http.Client] completes with an error when making a REST call, 7985 * If the used [http.Client] completes with an error when making a REST call,
7589 * this method will complete with the same error. 7986 * this method will complete with the same error.
7590 */ 7987 */
7591 async.Future<PlacementsListResponse> list(core.String profileId, {core.List<co re.String> advertiserIds, core.bool archived, core.List<core.String> campaignIds , core.List<core.String> compatibilities, core.List<core.String> contentCategory Ids, core.List<core.String> directorySiteIds, core.List<core.String> groupIds, c ore.List<core.String> ids, core.int maxResults, core.String pageToken, core.Stri ng paymentSource, core.List<core.String> placementStrategyIds, core.List<core.St ring> pricingTypes, core.String searchString, core.List<core.String> siteIds, co re.List<core.String> sizeIds, core.String sortField, core.String sortOrder}) { 7988 async.Future<PlacementStrategiesListResponse> list(core.String profileId, {cor e.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) {
7592 var _url = null; 7989 var _url = null;
7593 var _queryParams = new core.Map(); 7990 var _queryParams = new core.Map();
7594 var _uploadMedia = null; 7991 var _uploadMedia = null;
7595 var _uploadOptions = null; 7992 var _uploadOptions = null;
7596 var _downloadOptions = commons.DownloadOptions.Metadata; 7993 var _downloadOptions = commons.DownloadOptions.Metadata;
7597 var _body = null; 7994 var _body = null;
7598 7995
7599 if (profileId == null) { 7996 if (profileId == null) {
7600 throw new core.ArgumentError("Parameter profileId is required."); 7997 throw new core.ArgumentError("Parameter profileId is required.");
7601 } 7998 }
7602 if (advertiserIds != null) {
7603 _queryParams["advertiserIds"] = advertiserIds;
7604 }
7605 if (archived != null) {
7606 _queryParams["archived"] = ["${archived}"];
7607 }
7608 if (campaignIds != null) {
7609 _queryParams["campaignIds"] = campaignIds;
7610 }
7611 if (compatibilities != null) {
7612 _queryParams["compatibilities"] = compatibilities;
7613 }
7614 if (contentCategoryIds != null) {
7615 _queryParams["contentCategoryIds"] = contentCategoryIds;
7616 }
7617 if (directorySiteIds != null) {
7618 _queryParams["directorySiteIds"] = directorySiteIds;
7619 }
7620 if (groupIds != null) {
7621 _queryParams["groupIds"] = groupIds;
7622 }
7623 if (ids != null) { 7999 if (ids != null) {
7624 _queryParams["ids"] = ids; 8000 _queryParams["ids"] = ids;
7625 } 8001 }
7626 if (maxResults != null) { 8002 if (maxResults != null) {
7627 _queryParams["maxResults"] = ["${maxResults}"]; 8003 _queryParams["maxResults"] = ["${maxResults}"];
7628 } 8004 }
7629 if (pageToken != null) { 8005 if (pageToken != null) {
7630 _queryParams["pageToken"] = [pageToken]; 8006 _queryParams["pageToken"] = [pageToken];
7631 } 8007 }
7632 if (paymentSource != null) {
7633 _queryParams["paymentSource"] = [paymentSource];
7634 }
7635 if (placementStrategyIds != null) {
7636 _queryParams["placementStrategyIds"] = placementStrategyIds;
7637 }
7638 if (pricingTypes != null) {
7639 _queryParams["pricingTypes"] = pricingTypes;
7640 }
7641 if (searchString != null) { 8008 if (searchString != null) {
7642 _queryParams["searchString"] = [searchString]; 8009 _queryParams["searchString"] = [searchString];
7643 } 8010 }
7644 if (siteIds != null) {
7645 _queryParams["siteIds"] = siteIds;
7646 }
7647 if (sizeIds != null) {
7648 _queryParams["sizeIds"] = sizeIds;
7649 }
7650 if (sortField != null) { 8011 if (sortField != null) {
7651 _queryParams["sortField"] = [sortField]; 8012 _queryParams["sortField"] = [sortField];
7652 } 8013 }
7653 if (sortOrder != null) { 8014 if (sortOrder != null) {
7654 _queryParams["sortOrder"] = [sortOrder]; 8015 _queryParams["sortOrder"] = [sortOrder];
7655 } 8016 }
7656 8017
7657 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements'; 8018 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies';
7658 8019
7659 var _response = _requester.request(_url, 8020 var _response = _requester.request(_url,
7660 "GET", 8021 "GET",
7661 body: _body, 8022 body: _body,
7662 queryParams: _queryParams, 8023 queryParams: _queryParams,
7663 uploadOptions: _uploadOptions, 8024 uploadOptions: _uploadOptions,
7664 uploadMedia: _uploadMedia, 8025 uploadMedia: _uploadMedia,
7665 downloadOptions: _downloadOptions); 8026 downloadOptions: _downloadOptions);
7666 return _response.then((data) => new PlacementsListResponse.fromJson(data)); 8027 return _response.then((data) => new PlacementStrategiesListResponse.fromJson (data));
7667 } 8028 }
7668 8029
7669 /** 8030 /**
7670 * Updates an existing placement. This method supports patch semantics. 8031 * Updates an existing placement strategy. This method supports patch
8032 * semantics.
7671 * 8033 *
7672 * [request] - The metadata request object. 8034 * [request] - The metadata request object.
7673 * 8035 *
7674 * Request parameters: 8036 * Request parameters:
7675 * 8037 *
7676 * [profileId] - User profile ID associated with this request. 8038 * [profileId] - User profile ID associated with this request.
7677 * 8039 *
7678 * [id] - Placement ID. 8040 * [id] - Placement strategy ID.
7679 * 8041 *
7680 * Completes with a [Placement]. 8042 * Completes with a [PlacementStrategy].
7681 * 8043 *
7682 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8044 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7683 * error. 8045 * error.
7684 * 8046 *
7685 * If the used [http.Client] completes with an error when making a REST call, 8047 * If the used [http.Client] completes with an error when making a REST call,
7686 * this method will complete with the same error. 8048 * this method will complete with the same error.
7687 */ 8049 */
7688 async.Future<Placement> patch(Placement request, core.String profileId, core.S tring id) { 8050 async.Future<PlacementStrategy> patch(PlacementStrategy request, core.String p rofileId, core.String id) {
7689 var _url = null; 8051 var _url = null;
7690 var _queryParams = new core.Map(); 8052 var _queryParams = new core.Map();
7691 var _uploadMedia = null; 8053 var _uploadMedia = null;
7692 var _uploadOptions = null; 8054 var _uploadOptions = null;
7693 var _downloadOptions = commons.DownloadOptions.Metadata; 8055 var _downloadOptions = commons.DownloadOptions.Metadata;
7694 var _body = null; 8056 var _body = null;
7695 8057
7696 if (request != null) { 8058 if (request != null) {
7697 _body = convert.JSON.encode((request).toJson()); 8059 _body = convert.JSON.encode((request).toJson());
7698 } 8060 }
7699 if (profileId == null) { 8061 if (profileId == null) {
7700 throw new core.ArgumentError("Parameter profileId is required."); 8062 throw new core.ArgumentError("Parameter profileId is required.");
7701 } 8063 }
7702 if (id == null) { 8064 if (id == null) {
7703 throw new core.ArgumentError("Parameter id is required."); 8065 throw new core.ArgumentError("Parameter id is required.");
7704 } 8066 }
7705 _queryParams["id"] = [id]; 8067 _queryParams["id"] = [id];
7706 8068
7707 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements'; 8069 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies';
7708 8070
7709 var _response = _requester.request(_url, 8071 var _response = _requester.request(_url,
7710 "PATCH", 8072 "PATCH",
7711 body: _body, 8073 body: _body,
7712 queryParams: _queryParams, 8074 queryParams: _queryParams,
7713 uploadOptions: _uploadOptions, 8075 uploadOptions: _uploadOptions,
7714 uploadMedia: _uploadMedia, 8076 uploadMedia: _uploadMedia,
7715 downloadOptions: _downloadOptions); 8077 downloadOptions: _downloadOptions);
7716 return _response.then((data) => new Placement.fromJson(data)); 8078 return _response.then((data) => new PlacementStrategy.fromJson(data));
7717 } 8079 }
7718 8080
7719 /** 8081 /**
7720 * Updates an existing placement. 8082 * Updates an existing placement strategy.
7721 * 8083 *
7722 * [request] - The metadata request object. 8084 * [request] - The metadata request object.
7723 * 8085 *
7724 * Request parameters: 8086 * Request parameters:
7725 * 8087 *
7726 * [profileId] - User profile ID associated with this request. 8088 * [profileId] - User profile ID associated with this request.
7727 * 8089 *
7728 * Completes with a [Placement]. 8090 * Completes with a [PlacementStrategy].
7729 * 8091 *
7730 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8092 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7731 * error. 8093 * error.
7732 * 8094 *
7733 * If the used [http.Client] completes with an error when making a REST call, 8095 * If the used [http.Client] completes with an error when making a REST call,
7734 * this method will complete with the same error. 8096 * this method will complete with the same error.
7735 */ 8097 */
7736 async.Future<Placement> update(Placement request, core.String profileId) { 8098 async.Future<PlacementStrategy> update(PlacementStrategy request, core.String profileId) {
7737 var _url = null; 8099 var _url = null;
7738 var _queryParams = new core.Map(); 8100 var _queryParams = new core.Map();
7739 var _uploadMedia = null; 8101 var _uploadMedia = null;
7740 var _uploadOptions = null; 8102 var _uploadOptions = null;
7741 var _downloadOptions = commons.DownloadOptions.Metadata; 8103 var _downloadOptions = commons.DownloadOptions.Metadata;
7742 var _body = null; 8104 var _body = null;
7743 8105
7744 if (request != null) { 8106 if (request != null) {
7745 _body = convert.JSON.encode((request).toJson()); 8107 _body = convert.JSON.encode((request).toJson());
7746 } 8108 }
7747 if (profileId == null) { 8109 if (profileId == null) {
7748 throw new core.ArgumentError("Parameter profileId is required."); 8110 throw new core.ArgumentError("Parameter profileId is required.");
7749 } 8111 }
7750 8112
7751 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements'; 8113 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies';
7752 8114
7753 var _response = _requester.request(_url, 8115 var _response = _requester.request(_url,
7754 "PUT", 8116 "PUT",
7755 body: _body, 8117 body: _body,
7756 queryParams: _queryParams, 8118 queryParams: _queryParams,
7757 uploadOptions: _uploadOptions, 8119 uploadOptions: _uploadOptions,
7758 uploadMedia: _uploadMedia, 8120 uploadMedia: _uploadMedia,
7759 downloadOptions: _downloadOptions); 8121 downloadOptions: _downloadOptions);
7760 return _response.then((data) => new Placement.fromJson(data)); 8122 return _response.then((data) => new PlacementStrategy.fromJson(data));
7761 } 8123 }
7762 8124
7763 } 8125 }
7764 8126
7765 8127
7766 class PlatformTypesResourceApi { 8128 class PlacementsResourceApi {
7767 final commons.ApiRequester _requester; 8129 final commons.ApiRequester _requester;
7768 8130
7769 PlatformTypesResourceApi(commons.ApiRequester client) : 8131 PlacementsResourceApi(commons.ApiRequester client) :
7770 _requester = client; 8132 _requester = client;
7771 8133
7772 /** 8134 /**
7773 * Retrieves a list of platform types. 8135 * Generates tags for a placement.
7774 * 8136 *
7775 * Request parameters: 8137 * Request parameters:
7776 * 8138 *
7777 * [profileId] - User profile ID associated with this request. 8139 * [profileId] - User profile ID associated with this request.
7778 * 8140 *
7779 * Completes with a [PlatformTypesListResponse]. 8141 * [campaignId] - Generate placements belonging to this campaign. This is a
8142 * required field.
8143 *
8144 * [placementIds] - Generate tags for these placements.
8145 *
8146 * [tagFormats] - Tag formats to generate for these placements.
8147 *
8148 * Completes with a [PlacementsGenerateTagsResponse].
7780 * 8149 *
7781 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8150 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7782 * error. 8151 * error.
7783 * 8152 *
7784 * If the used [http.Client] completes with an error when making a REST call, 8153 * If the used [http.Client] completes with an error when making a REST call,
7785 * this method will complete with the same error. 8154 * this method will complete with the same error.
7786 */ 8155 */
7787 async.Future<PlatformTypesListResponse> list(core.String profileId) { 8156 async.Future<PlacementsGenerateTagsResponse> generatetags(core.String profileI d, {core.String campaignId, core.List<core.String> placementIds, core.List<core. String> tagFormats}) {
7788 var _url = null; 8157 var _url = null;
7789 var _queryParams = new core.Map(); 8158 var _queryParams = new core.Map();
7790 var _uploadMedia = null; 8159 var _uploadMedia = null;
7791 var _uploadOptions = null; 8160 var _uploadOptions = null;
7792 var _downloadOptions = commons.DownloadOptions.Metadata; 8161 var _downloadOptions = commons.DownloadOptions.Metadata;
7793 var _body = null; 8162 var _body = null;
7794 8163
7795 if (profileId == null) { 8164 if (profileId == null) {
7796 throw new core.ArgumentError("Parameter profileId is required."); 8165 throw new core.ArgumentError("Parameter profileId is required.");
7797 } 8166 }
8167 if (campaignId != null) {
8168 _queryParams["campaignId"] = [campaignId];
8169 }
8170 if (placementIds != null) {
8171 _queryParams["placementIds"] = placementIds;
8172 }
8173 if (tagFormats != null) {
8174 _queryParams["tagFormats"] = tagFormats;
8175 }
7798 8176
7799 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla tformTypes'; 8177 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements/generatetags';
7800 8178
7801 var _response = _requester.request(_url, 8179 var _response = _requester.request(_url,
7802 "GET", 8180 "POST",
7803 body: _body, 8181 body: _body,
7804 queryParams: _queryParams, 8182 queryParams: _queryParams,
7805 uploadOptions: _uploadOptions, 8183 uploadOptions: _uploadOptions,
7806 uploadMedia: _uploadMedia, 8184 uploadMedia: _uploadMedia,
7807 downloadOptions: _downloadOptions); 8185 downloadOptions: _downloadOptions);
7808 return _response.then((data) => new PlatformTypesListResponse.fromJson(data) ); 8186 return _response.then((data) => new PlacementsGenerateTagsResponse.fromJson( data));
7809 } 8187 }
7810 8188
7811 }
7812
7813
7814 class PostalCodesResourceApi {
7815 final commons.ApiRequester _requester;
7816
7817 PostalCodesResourceApi(commons.ApiRequester client) :
7818 _requester = client;
7819
7820 /** 8189 /**
7821 * Retrieves a list of postal codes. 8190 * Gets one placement by ID.
7822 * 8191 *
7823 * Request parameters: 8192 * Request parameters:
7824 * 8193 *
7825 * [profileId] - User profile ID associated with this request. 8194 * [profileId] - User profile ID associated with this request.
7826 * 8195 *
7827 * Completes with a [PostalCodesListResponse]. 8196 * [id] - Placement ID.
8197 *
8198 * Completes with a [Placement].
7828 * 8199 *
7829 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7830 * error. 8201 * error.
7831 * 8202 *
7832 * If the used [http.Client] completes with an error when making a REST call, 8203 * If the used [http.Client] completes with an error when making a REST call,
7833 * this method will complete with the same error. 8204 * this method will complete with the same error.
7834 */ 8205 */
7835 async.Future<PostalCodesListResponse> list(core.String profileId) { 8206 async.Future<Placement> get(core.String profileId, core.String id) {
7836 var _url = null; 8207 var _url = null;
7837 var _queryParams = new core.Map(); 8208 var _queryParams = new core.Map();
7838 var _uploadMedia = null; 8209 var _uploadMedia = null;
7839 var _uploadOptions = null; 8210 var _uploadOptions = null;
7840 var _downloadOptions = commons.DownloadOptions.Metadata; 8211 var _downloadOptions = commons.DownloadOptions.Metadata;
7841 var _body = null; 8212 var _body = null;
7842 8213
7843 if (profileId == null) { 8214 if (profileId == null) {
7844 throw new core.ArgumentError("Parameter profileId is required."); 8215 throw new core.ArgumentError("Parameter profileId is required.");
7845 } 8216 }
8217 if (id == null) {
8218 throw new core.ArgumentError("Parameter id is required.");
8219 }
7846 8220
7847 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pos talCodes'; 8221 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements/' + commons.Escaper.ecapeVariable('$id');
7848 8222
7849 var _response = _requester.request(_url, 8223 var _response = _requester.request(_url,
7850 "GET", 8224 "GET",
7851 body: _body, 8225 body: _body,
7852 queryParams: _queryParams, 8226 queryParams: _queryParams,
7853 uploadOptions: _uploadOptions, 8227 uploadOptions: _uploadOptions,
7854 uploadMedia: _uploadMedia, 8228 uploadMedia: _uploadMedia,
7855 downloadOptions: _downloadOptions); 8229 downloadOptions: _downloadOptions);
7856 return _response.then((data) => new PostalCodesListResponse.fromJson(data)); 8230 return _response.then((data) => new Placement.fromJson(data));
7857 } 8231 }
7858 8232
7859 }
7860
7861
7862 class RegionsResourceApi {
7863 final commons.ApiRequester _requester;
7864
7865 RegionsResourceApi(commons.ApiRequester client) :
7866 _requester = client;
7867
7868 /** 8233 /**
7869 * Retrieves a list of regions. 8234 * Inserts a new placement.
8235 *
8236 * [request] - The metadata request object.
7870 * 8237 *
7871 * Request parameters: 8238 * Request parameters:
7872 * 8239 *
7873 * [profileId] - User profile ID associated with this request. 8240 * [profileId] - User profile ID associated with this request.
7874 * 8241 *
7875 * Completes with a [RegionsListResponse]. 8242 * Completes with a [Placement].
7876 * 8243 *
7877 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8244 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7878 * error. 8245 * error.
7879 * 8246 *
7880 * If the used [http.Client] completes with an error when making a REST call, 8247 * If the used [http.Client] completes with an error when making a REST call,
7881 * this method will complete with the same error. 8248 * this method will complete with the same error.
7882 */ 8249 */
7883 async.Future<RegionsListResponse> list(core.String profileId) { 8250 async.Future<Placement> insert(Placement request, core.String profileId) {
7884 var _url = null; 8251 var _url = null;
7885 var _queryParams = new core.Map(); 8252 var _queryParams = new core.Map();
7886 var _uploadMedia = null; 8253 var _uploadMedia = null;
7887 var _uploadOptions = null; 8254 var _uploadOptions = null;
7888 var _downloadOptions = commons.DownloadOptions.Metadata; 8255 var _downloadOptions = commons.DownloadOptions.Metadata;
7889 var _body = null; 8256 var _body = null;
7890 8257
8258 if (request != null) {
8259 _body = convert.JSON.encode((request).toJson());
8260 }
7891 if (profileId == null) { 8261 if (profileId == null) {
7892 throw new core.ArgumentError("Parameter profileId is required."); 8262 throw new core.ArgumentError("Parameter profileId is required.");
7893 } 8263 }
7894 8264
7895 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reg ions'; 8265 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements';
7896 8266
7897 var _response = _requester.request(_url, 8267 var _response = _requester.request(_url,
7898 "GET", 8268 "POST",
7899 body: _body, 8269 body: _body,
7900 queryParams: _queryParams, 8270 queryParams: _queryParams,
7901 uploadOptions: _uploadOptions, 8271 uploadOptions: _uploadOptions,
7902 uploadMedia: _uploadMedia, 8272 uploadMedia: _uploadMedia,
7903 downloadOptions: _downloadOptions); 8273 downloadOptions: _downloadOptions);
7904 return _response.then((data) => new RegionsListResponse.fromJson(data)); 8274 return _response.then((data) => new Placement.fromJson(data));
7905 } 8275 }
7906 8276
7907 }
7908
7909
7910 class ReportsResourceApi {
7911 final commons.ApiRequester _requester;
7912
7913 ReportsCompatibleFieldsResourceApi get compatibleFields => new ReportsCompatib leFieldsResourceApi(_requester);
7914 ReportsFilesResourceApi get files => new ReportsFilesResourceApi(_requester);
7915
7916 ReportsResourceApi(commons.ApiRequester client) :
7917 _requester = client;
7918
7919 /** 8277 /**
7920 * Deletes a report by its ID. 8278 * Retrieves a list of placements, possibly filtered.
7921 * 8279 *
7922 * Request parameters: 8280 * Request parameters:
7923 * 8281 *
7924 * [profileId] - The DFA user profile ID. 8282 * [profileId] - User profile ID associated with this request.
7925 * 8283 *
7926 * [reportId] - The ID of the report. 8284 * [advertiserIds] - Select only placements that belong to these advertisers.
8285 *
8286 * [archived] - Select only archived placements. Don't set this field to
8287 * select both archived and non-archived placements.
8288 *
8289 * [campaignIds] - Select only placements that belong to these campaigns.
8290 *
8291 * [compatibilities] - Select only placements that are associated with these
8292 * compatibilities. WEB and WEB_INTERSTITIAL refer to rendering either on
8293 * desktop or on mobile devices for regular or interstitial ads respectively.
8294 * APP and APP_INTERSTITIAL are for rendering in mobile apps.IN_STREAM_VIDEO
8295 * refers to rendering in in-stream video ads developed with the VAST
8296 * standard.
8297 *
8298 * [contentCategoryIds] - Select only placements that are associated with
8299 * these content categories.
8300 *
8301 * [directorySiteIds] - Select only placements that are associated with these
8302 * directory sites.
8303 *
8304 * [groupIds] - Select only placements that belong to these placement groups.
8305 *
8306 * [ids] - Select only placements with these IDs.
8307 *
8308 * [maxEndDate] - Select only placements or placement groups whose end date is
8309 * on or before the specified maxEndDate. The date should be formatted as
8310 * "yyyy-MM-dd".
8311 *
8312 * [maxResults] - Maximum number of results to return.
8313 *
8314 * [maxStartDate] - Select only placements or placement groups whose start
8315 * date is on or before the specified maxStartDate. The date should be
8316 * formatted as "yyyy-MM-dd".
8317 *
8318 * [minEndDate] - Select only placements or placement groups whose end date is
8319 * on or after the specified minEndDate. The date should be formatted as
8320 * "yyyy-MM-dd".
8321 *
8322 * [minStartDate] - Select only placements or placement groups whose start
8323 * date is on or after the specified minStartDate. The date should be
8324 * formatted as "yyyy-MM-dd".
8325 *
8326 * [pageToken] - Value of the nextPageToken from the previous result page.
8327 *
8328 * [paymentSource] - Select only placements with this payment source.
8329 * Possible string values are:
8330 * - "PLACEMENT_AGENCY_PAID"
8331 * - "PLACEMENT_PUBLISHER_PAID"
8332 *
8333 * [placementStrategyIds] - Select only placements that are associated with
8334 * these placement strategies.
8335 *
8336 * [pricingTypes] - Select only placements with these pricing types.
8337 *
8338 * [searchString] - Allows searching for placements by name or ID. Wildcards
8339 * (*) are allowed. For example, "placement*2015" will return placements with
8340 * names like "placement June 2015", "placement May 2015", or simply
8341 * "placements 2015". Most of the searches also add wildcards implicitly at
8342 * the start and the end of the search string. For example, a search string of
8343 * "placement" will match placements with name "my placement", "placement
8344 * 2015", or simply "placement".
8345 *
8346 * [siteIds] - Select only placements that are associated with these sites.
8347 *
8348 * [sizeIds] - Select only placements that are associated with these sizes.
8349 *
8350 * [sortField] - Field by which to sort the list.
8351 * Possible string values are:
8352 * - "ID"
8353 * - "NAME"
8354 *
8355 * [sortOrder] - Order of sorted results, default is ASCENDING.
8356 * Possible string values are:
8357 * - "ASCENDING"
8358 * - "DESCENDING"
8359 *
8360 * Completes with a [PlacementsListResponse].
7927 * 8361 *
7928 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8362 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7929 * error. 8363 * error.
7930 *
7931 * If the used [http.Client] completes with an error when making a REST call,
7932 * this method will complete with the same error.
7933 */
7934 async.Future delete(core.String profileId, core.String reportId) {
7935 var _url = null;
7936 var _queryParams = new core.Map();
7937 var _uploadMedia = null;
7938 var _uploadOptions = null;
7939 var _downloadOptions = commons.DownloadOptions.Metadata;
7940 var _body = null;
7941
7942 if (profileId == null) {
7943 throw new core.ArgumentError("Parameter profileId is required.");
7944 }
7945 if (reportId == null) {
7946 throw new core.ArgumentError("Parameter reportId is required.");
7947 }
7948
7949 _downloadOptions = null;
7950
7951 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
7952
7953 var _response = _requester.request(_url,
7954 "DELETE",
7955 body: _body,
7956 queryParams: _queryParams,
7957 uploadOptions: _uploadOptions,
7958 uploadMedia: _uploadMedia,
7959 downloadOptions: _downloadOptions);
7960 return _response.then((data) => null);
7961 }
7962
7963 /**
7964 * Retrieves a report by its ID.
7965 *
7966 * Request parameters:
7967 *
7968 * [profileId] - The DFA user profile ID.
7969 *
7970 * [reportId] - The ID of the report.
7971 *
7972 * Completes with a [Report].
7973 *
7974 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7975 * error.
7976 * 8364 *
7977 * If the used [http.Client] completes with an error when making a REST call, 8365 * If the used [http.Client] completes with an error when making a REST call,
7978 * this method will complete with the same error. 8366 * this method will complete with the same error.
7979 */ 8367 */
7980 async.Future<Report> get(core.String profileId, core.String reportId) { 8368 async.Future<PlacementsListResponse> list(core.String profileId, {core.List<co re.String> advertiserIds, core.bool archived, core.List<core.String> campaignIds , core.List<core.String> compatibilities, core.List<core.String> contentCategory Ids, core.List<core.String> directorySiteIds, core.List<core.String> groupIds, c ore.List<core.String> ids, core.String maxEndDate, core.int maxResults, core.Str ing maxStartDate, core.String minEndDate, core.String minStartDate, core.String pageToken, core.String paymentSource, core.List<core.String> placementStrategyId s, core.List<core.String> pricingTypes, core.String searchString, core.List<core .String> siteIds, core.List<core.String> sizeIds, core.String sortField, core.St ring sortOrder}) {
7981 var _url = null; 8369 var _url = null;
7982 var _queryParams = new core.Map(); 8370 var _queryParams = new core.Map();
7983 var _uploadMedia = null; 8371 var _uploadMedia = null;
7984 var _uploadOptions = null; 8372 var _uploadOptions = null;
7985 var _downloadOptions = commons.DownloadOptions.Metadata; 8373 var _downloadOptions = commons.DownloadOptions.Metadata;
7986 var _body = null; 8374 var _body = null;
7987 8375
7988 if (profileId == null) { 8376 if (profileId == null) {
7989 throw new core.ArgumentError("Parameter profileId is required."); 8377 throw new core.ArgumentError("Parameter profileId is required.");
7990 } 8378 }
7991 if (reportId == null) { 8379 if (advertiserIds != null) {
7992 throw new core.ArgumentError("Parameter reportId is required."); 8380 _queryParams["advertiserIds"] = advertiserIds;
8381 }
8382 if (archived != null) {
8383 _queryParams["archived"] = ["${archived}"];
8384 }
8385 if (campaignIds != null) {
8386 _queryParams["campaignIds"] = campaignIds;
8387 }
8388 if (compatibilities != null) {
8389 _queryParams["compatibilities"] = compatibilities;
8390 }
8391 if (contentCategoryIds != null) {
8392 _queryParams["contentCategoryIds"] = contentCategoryIds;
8393 }
8394 if (directorySiteIds != null) {
8395 _queryParams["directorySiteIds"] = directorySiteIds;
8396 }
8397 if (groupIds != null) {
8398 _queryParams["groupIds"] = groupIds;
8399 }
8400 if (ids != null) {
8401 _queryParams["ids"] = ids;
8402 }
8403 if (maxEndDate != null) {
8404 _queryParams["maxEndDate"] = [maxEndDate];
8405 }
8406 if (maxResults != null) {
8407 _queryParams["maxResults"] = ["${maxResults}"];
8408 }
8409 if (maxStartDate != null) {
8410 _queryParams["maxStartDate"] = [maxStartDate];
8411 }
8412 if (minEndDate != null) {
8413 _queryParams["minEndDate"] = [minEndDate];
8414 }
8415 if (minStartDate != null) {
8416 _queryParams["minStartDate"] = [minStartDate];
8417 }
8418 if (pageToken != null) {
8419 _queryParams["pageToken"] = [pageToken];
8420 }
8421 if (paymentSource != null) {
8422 _queryParams["paymentSource"] = [paymentSource];
8423 }
8424 if (placementStrategyIds != null) {
8425 _queryParams["placementStrategyIds"] = placementStrategyIds;
8426 }
8427 if (pricingTypes != null) {
8428 _queryParams["pricingTypes"] = pricingTypes;
8429 }
8430 if (searchString != null) {
8431 _queryParams["searchString"] = [searchString];
8432 }
8433 if (siteIds != null) {
8434 _queryParams["siteIds"] = siteIds;
8435 }
8436 if (sizeIds != null) {
8437 _queryParams["sizeIds"] = sizeIds;
8438 }
8439 if (sortField != null) {
8440 _queryParams["sortField"] = [sortField];
8441 }
8442 if (sortOrder != null) {
8443 _queryParams["sortOrder"] = [sortOrder];
7993 } 8444 }
7994 8445
7995 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId'); 8446 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements';
7996 8447
7997 var _response = _requester.request(_url, 8448 var _response = _requester.request(_url,
7998 "GET", 8449 "GET",
7999 body: _body, 8450 body: _body,
8000 queryParams: _queryParams, 8451 queryParams: _queryParams,
8001 uploadOptions: _uploadOptions, 8452 uploadOptions: _uploadOptions,
8002 uploadMedia: _uploadMedia, 8453 uploadMedia: _uploadMedia,
8003 downloadOptions: _downloadOptions); 8454 downloadOptions: _downloadOptions);
8004 return _response.then((data) => new Report.fromJson(data)); 8455 return _response.then((data) => new PlacementsListResponse.fromJson(data));
8005 } 8456 }
8006 8457
8007 /** 8458 /**
8008 * Creates a report. 8459 * Updates an existing placement. This method supports patch semantics.
8009 * 8460 *
8010 * [request] - The metadata request object. 8461 * [request] - The metadata request object.
8011 * 8462 *
8012 * Request parameters: 8463 * Request parameters:
8013 * 8464 *
8014 * [profileId] - The DFA user profile ID. 8465 * [profileId] - User profile ID associated with this request.
8015 * 8466 *
8016 * Completes with a [Report]. 8467 * [id] - Placement ID.
8468 *
8469 * Completes with a [Placement].
8017 * 8470 *
8018 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8471 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8019 * error. 8472 * error.
8020 * 8473 *
8021 * If the used [http.Client] completes with an error when making a REST call, 8474 * If the used [http.Client] completes with an error when making a REST call,
8022 * this method will complete with the same error. 8475 * this method will complete with the same error.
8023 */ 8476 */
8024 async.Future<Report> insert(Report request, core.String profileId) { 8477 async.Future<Placement> patch(Placement request, core.String profileId, core.S tring id) {
8025 var _url = null; 8478 var _url = null;
8026 var _queryParams = new core.Map(); 8479 var _queryParams = new core.Map();
8027 var _uploadMedia = null; 8480 var _uploadMedia = null;
8028 var _uploadOptions = null; 8481 var _uploadOptions = null;
8029 var _downloadOptions = commons.DownloadOptions.Metadata; 8482 var _downloadOptions = commons.DownloadOptions.Metadata;
8030 var _body = null; 8483 var _body = null;
8031 8484
8032 if (request != null) { 8485 if (request != null) {
8033 _body = convert.JSON.encode((request).toJson()); 8486 _body = convert.JSON.encode((request).toJson());
8034 } 8487 }
8035 if (profileId == null) { 8488 if (profileId == null) {
8036 throw new core.ArgumentError("Parameter profileId is required."); 8489 throw new core.ArgumentError("Parameter profileId is required.");
8037 } 8490 }
8491 if (id == null) {
8492 throw new core.ArgumentError("Parameter id is required.");
8493 }
8494 _queryParams["id"] = [id];
8038 8495
8039 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts'; 8496 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements';
8040 8497
8041 var _response = _requester.request(_url, 8498 var _response = _requester.request(_url,
8042 "POST", 8499 "PATCH",
8043 body: _body, 8500 body: _body,
8044 queryParams: _queryParams, 8501 queryParams: _queryParams,
8045 uploadOptions: _uploadOptions, 8502 uploadOptions: _uploadOptions,
8046 uploadMedia: _uploadMedia, 8503 uploadMedia: _uploadMedia,
8047 downloadOptions: _downloadOptions); 8504 downloadOptions: _downloadOptions);
8048 return _response.then((data) => new Report.fromJson(data)); 8505 return _response.then((data) => new Placement.fromJson(data));
8049 } 8506 }
8050 8507
8051 /** 8508 /**
8052 * Retrieves list of reports. 8509 * Updates an existing placement.
8510 *
8511 * [request] - The metadata request object.
8053 * 8512 *
8054 * Request parameters: 8513 * Request parameters:
8055 * 8514 *
8056 * [profileId] - The DFA user profile ID. 8515 * [profileId] - User profile ID associated with this request.
8057 * 8516 *
8058 * [maxResults] - Maximum number of results to return. 8517 * Completes with a [Placement].
8059 * Value must be between "0" and "10".
8060 *
8061 * [pageToken] - The value of the nextToken from the previous result page.
8062 *
8063 * [scope] - The scope that defines which results are returned, default is
8064 * 'MINE'.
8065 * Possible string values are:
8066 * - "ALL" : All reports in account.
8067 * - "MINE" : My reports.
8068 *
8069 * [sortField] - The field by which to sort the list.
8070 * Possible string values are:
8071 * - "ID" : Sort by report ID.
8072 * - "LAST_MODIFIED_TIME" : Sort by 'lastModifiedTime' field.
8073 * - "NAME" : Sort by name of reports.
8074 *
8075 * [sortOrder] - Order of sorted results, default is 'DESCENDING'.
8076 * Possible string values are:
8077 * - "ASCENDING" : Ascending order.
8078 * - "DESCENDING" : Descending order.
8079 *
8080 * Completes with a [ReportList].
8081 * 8518 *
8082 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8519 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8083 * error. 8520 * error.
8084 * 8521 *
8085 * If the used [http.Client] completes with an error when making a REST call, 8522 * If the used [http.Client] completes with an error when making a REST call,
8086 * this method will complete with the same error. 8523 * this method will complete with the same error.
8087 */ 8524 */
8088 async.Future<ReportList> list(core.String profileId, {core.int maxResults, cor e.String pageToken, core.String scope, core.String sortField, core.String sortOr der}) { 8525 async.Future<Placement> update(Placement request, core.String profileId) {
8089 var _url = null; 8526 var _url = null;
8090 var _queryParams = new core.Map(); 8527 var _queryParams = new core.Map();
8091 var _uploadMedia = null; 8528 var _uploadMedia = null;
8092 var _uploadOptions = null; 8529 var _uploadOptions = null;
8093 var _downloadOptions = commons.DownloadOptions.Metadata; 8530 var _downloadOptions = commons.DownloadOptions.Metadata;
8094 var _body = null; 8531 var _body = null;
8095 8532
8533 if (request != null) {
8534 _body = convert.JSON.encode((request).toJson());
8535 }
8096 if (profileId == null) { 8536 if (profileId == null) {
8097 throw new core.ArgumentError("Parameter profileId is required."); 8537 throw new core.ArgumentError("Parameter profileId is required.");
8098 } 8538 }
8099 if (maxResults != null) {
8100 _queryParams["maxResults"] = ["${maxResults}"];
8101 }
8102 if (pageToken != null) {
8103 _queryParams["pageToken"] = [pageToken];
8104 }
8105 if (scope != null) {
8106 _queryParams["scope"] = [scope];
8107 }
8108 if (sortField != null) {
8109 _queryParams["sortField"] = [sortField];
8110 }
8111 if (sortOrder != null) {
8112 _queryParams["sortOrder"] = [sortOrder];
8113 }
8114 8539
8115 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts'; 8540 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements';
8116 8541
8117 var _response = _requester.request(_url, 8542 var _response = _requester.request(_url,
8118 "GET", 8543 "PUT",
8119 body: _body, 8544 body: _body,
8120 queryParams: _queryParams, 8545 queryParams: _queryParams,
8121 uploadOptions: _uploadOptions, 8546 uploadOptions: _uploadOptions,
8122 uploadMedia: _uploadMedia, 8547 uploadMedia: _uploadMedia,
8123 downloadOptions: _downloadOptions); 8548 downloadOptions: _downloadOptions);
8124 return _response.then((data) => new ReportList.fromJson(data)); 8549 return _response.then((data) => new Placement.fromJson(data));
8125 } 8550 }
8126 8551
8552 }
8553
8554
8555 class PlatformTypesResourceApi {
8556 final commons.ApiRequester _requester;
8557
8558 PlatformTypesResourceApi(commons.ApiRequester client) :
8559 _requester = client;
8560
8127 /** 8561 /**
8128 * Updates a report. This method supports patch semantics. 8562 * Gets one platform type by ID.
8129 *
8130 * [request] - The metadata request object.
8131 * 8563 *
8132 * Request parameters: 8564 * Request parameters:
8133 * 8565 *
8134 * [profileId] - The DFA user profile ID. 8566 * [profileId] - User profile ID associated with this request.
8135 * 8567 *
8136 * [reportId] - The ID of the report. 8568 * [id] - Platform type ID.
8137 * 8569 *
8138 * Completes with a [Report]. 8570 * Completes with a [PlatformType].
8139 * 8571 *
8140 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8572 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8141 * error. 8573 * error.
8142 * 8574 *
8143 * If the used [http.Client] completes with an error when making a REST call, 8575 * If the used [http.Client] completes with an error when making a REST call,
8144 * this method will complete with the same error. 8576 * this method will complete with the same error.
8145 */ 8577 */
8146 async.Future<Report> patch(Report request, core.String profileId, core.String reportId) { 8578 async.Future<PlatformType> get(core.String profileId, core.String id) {
8147 var _url = null; 8579 var _url = null;
8148 var _queryParams = new core.Map(); 8580 var _queryParams = new core.Map();
8149 var _uploadMedia = null; 8581 var _uploadMedia = null;
8150 var _uploadOptions = null; 8582 var _uploadOptions = null;
8151 var _downloadOptions = commons.DownloadOptions.Metadata; 8583 var _downloadOptions = commons.DownloadOptions.Metadata;
8152 var _body = null; 8584 var _body = null;
8153 8585
8154 if (request != null) {
8155 _body = convert.JSON.encode((request).toJson());
8156 }
8157 if (profileId == null) { 8586 if (profileId == null) {
8158 throw new core.ArgumentError("Parameter profileId is required."); 8587 throw new core.ArgumentError("Parameter profileId is required.");
8159 } 8588 }
8160 if (reportId == null) { 8589 if (id == null) {
8161 throw new core.ArgumentError("Parameter reportId is required."); 8590 throw new core.ArgumentError("Parameter id is required.");
8162 } 8591 }
8163 8592
8164 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId'); 8593 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla tformTypes/' + commons.Escaper.ecapeVariable('$id');
8165 8594
8166 var _response = _requester.request(_url, 8595 var _response = _requester.request(_url,
8167 "PATCH", 8596 "GET",
8168 body: _body, 8597 body: _body,
8169 queryParams: _queryParams, 8598 queryParams: _queryParams,
8170 uploadOptions: _uploadOptions, 8599 uploadOptions: _uploadOptions,
8171 uploadMedia: _uploadMedia, 8600 uploadMedia: _uploadMedia,
8172 downloadOptions: _downloadOptions); 8601 downloadOptions: _downloadOptions);
8173 return _response.then((data) => new Report.fromJson(data)); 8602 return _response.then((data) => new PlatformType.fromJson(data));
8174 } 8603 }
8175 8604
8176 /** 8605 /**
8177 * Runs a report. 8606 * Retrieves a list of platform types.
8178 * 8607 *
8179 * Request parameters: 8608 * Request parameters:
8180 * 8609 *
8181 * [profileId] - The DFA profile ID. 8610 * [profileId] - User profile ID associated with this request.
8182 * 8611 *
8183 * [reportId] - The ID of the report. 8612 * Completes with a [PlatformTypesListResponse].
8184 *
8185 * [synchronous] - If set and true, tries to run the report synchronously.
8186 *
8187 * Completes with a [File].
8188 * 8613 *
8189 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8614 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8190 * error. 8615 * error.
8191 * 8616 *
8192 * If the used [http.Client] completes with an error when making a REST call, 8617 * If the used [http.Client] completes with an error when making a REST call,
8193 * this method will complete with the same error. 8618 * this method will complete with the same error.
8194 */ 8619 */
8195 async.Future<File> run(core.String profileId, core.String reportId, {core.bool synchronous}) { 8620 async.Future<PlatformTypesListResponse> list(core.String profileId) {
8196 var _url = null; 8621 var _url = null;
8197 var _queryParams = new core.Map(); 8622 var _queryParams = new core.Map();
8198 var _uploadMedia = null; 8623 var _uploadMedia = null;
8199 var _uploadOptions = null; 8624 var _uploadOptions = null;
8200 var _downloadOptions = commons.DownloadOptions.Metadata; 8625 var _downloadOptions = commons.DownloadOptions.Metadata;
8201 var _body = null; 8626 var _body = null;
8202 8627
8203 if (profileId == null) { 8628 if (profileId == null) {
8204 throw new core.ArgumentError("Parameter profileId is required."); 8629 throw new core.ArgumentError("Parameter profileId is required.");
8205 } 8630 }
8206 if (reportId == null) {
8207 throw new core.ArgumentError("Parameter reportId is required.");
8208 }
8209 if (synchronous != null) {
8210 _queryParams["synchronous"] = ["${synchronous}"];
8211 }
8212 8631
8213 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/run'; 8632 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla tformTypes';
8214 8633
8215 var _response = _requester.request(_url, 8634 var _response = _requester.request(_url,
8216 "POST", 8635 "GET",
8217 body: _body, 8636 body: _body,
8218 queryParams: _queryParams, 8637 queryParams: _queryParams,
8219 uploadOptions: _uploadOptions, 8638 uploadOptions: _uploadOptions,
8220 uploadMedia: _uploadMedia, 8639 uploadMedia: _uploadMedia,
8221 downloadOptions: _downloadOptions); 8640 downloadOptions: _downloadOptions);
8222 return _response.then((data) => new File.fromJson(data)); 8641 return _response.then((data) => new PlatformTypesListResponse.fromJson(data) );
8223 } 8642 }
8224 8643
8644 }
8645
8646
8647 class PostalCodesResourceApi {
8648 final commons.ApiRequester _requester;
8649
8650 PostalCodesResourceApi(commons.ApiRequester client) :
8651 _requester = client;
8652
8225 /** 8653 /**
8226 * Updates a report. 8654 * Gets one postal code by ID.
8227 *
8228 * [request] - The metadata request object.
8229 * 8655 *
8230 * Request parameters: 8656 * Request parameters:
8231 * 8657 *
8232 * [profileId] - The DFA user profile ID. 8658 * [profileId] - User profile ID associated with this request.
8233 * 8659 *
8234 * [reportId] - The ID of the report. 8660 * [code] - Postal code ID.
8235 * 8661 *
8236 * Completes with a [Report]. 8662 * Completes with a [PostalCode].
8237 * 8663 *
8238 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8664 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8239 * error. 8665 * error.
8240 * 8666 *
8241 * If the used [http.Client] completes with an error when making a REST call, 8667 * If the used [http.Client] completes with an error when making a REST call,
8242 * this method will complete with the same error. 8668 * this method will complete with the same error.
8243 */ 8669 */
8244 async.Future<Report> update(Report request, core.String profileId, core.String reportId) { 8670 async.Future<PostalCode> get(core.String profileId, core.String code) {
8245 var _url = null; 8671 var _url = null;
8246 var _queryParams = new core.Map(); 8672 var _queryParams = new core.Map();
8247 var _uploadMedia = null; 8673 var _uploadMedia = null;
8248 var _uploadOptions = null; 8674 var _uploadOptions = null;
8249 var _downloadOptions = commons.DownloadOptions.Metadata; 8675 var _downloadOptions = commons.DownloadOptions.Metadata;
8250 var _body = null; 8676 var _body = null;
8251 8677
8252 if (request != null) {
8253 _body = convert.JSON.encode((request).toJson());
8254 }
8255 if (profileId == null) { 8678 if (profileId == null) {
8256 throw new core.ArgumentError("Parameter profileId is required."); 8679 throw new core.ArgumentError("Parameter profileId is required.");
8257 } 8680 }
8258 if (reportId == null) { 8681 if (code == null) {
8259 throw new core.ArgumentError("Parameter reportId is required."); 8682 throw new core.ArgumentError("Parameter code is required.");
8260 } 8683 }
8261 8684
8262 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId'); 8685 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pos talCodes/' + commons.Escaper.ecapeVariable('$code');
8263 8686
8264 var _response = _requester.request(_url, 8687 var _response = _requester.request(_url,
8265 "PUT", 8688 "GET",
8266 body: _body, 8689 body: _body,
8267 queryParams: _queryParams, 8690 queryParams: _queryParams,
8268 uploadOptions: _uploadOptions, 8691 uploadOptions: _uploadOptions,
8269 uploadMedia: _uploadMedia, 8692 uploadMedia: _uploadMedia,
8270 downloadOptions: _downloadOptions); 8693 downloadOptions: _downloadOptions);
8271 return _response.then((data) => new Report.fromJson(data)); 8694 return _response.then((data) => new PostalCode.fromJson(data));
8272 } 8695 }
8273 8696
8274 }
8275
8276
8277 class ReportsCompatibleFieldsResourceApi {
8278 final commons.ApiRequester _requester;
8279
8280 ReportsCompatibleFieldsResourceApi(commons.ApiRequester client) :
8281 _requester = client;
8282
8283 /** 8697 /**
8284 * Returns the fields that are compatible to be selected in the respective 8698 * Retrieves a list of postal codes.
8285 * sections of a report criteria, given the fields already selected in the
8286 * input report and user permissions.
8287 *
8288 * [request] - The metadata request object.
8289 * 8699 *
8290 * Request parameters: 8700 * Request parameters:
8291 * 8701 *
8292 * [profileId] - The DFA user profile ID. 8702 * [profileId] - User profile ID associated with this request.
8293 * 8703 *
8294 * Completes with a [CompatibleFields]. 8704 * Completes with a [PostalCodesListResponse].
8295 * 8705 *
8296 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8706 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8297 * error. 8707 * error.
8298 * 8708 *
8299 * If the used [http.Client] completes with an error when making a REST call, 8709 * If the used [http.Client] completes with an error when making a REST call,
8300 * this method will complete with the same error. 8710 * this method will complete with the same error.
8301 */ 8711 */
8302 async.Future<CompatibleFields> query(Report request, core.String profileId) { 8712 async.Future<PostalCodesListResponse> list(core.String profileId) {
8303 var _url = null; 8713 var _url = null;
8304 var _queryParams = new core.Map(); 8714 var _queryParams = new core.Map();
8305 var _uploadMedia = null; 8715 var _uploadMedia = null;
8306 var _uploadOptions = null; 8716 var _uploadOptions = null;
8307 var _downloadOptions = commons.DownloadOptions.Metadata; 8717 var _downloadOptions = commons.DownloadOptions.Metadata;
8308 var _body = null; 8718 var _body = null;
8309 8719
8310 if (request != null) {
8311 _body = convert.JSON.encode((request).toJson());
8312 }
8313 if (profileId == null) { 8720 if (profileId == null) {
8314 throw new core.ArgumentError("Parameter profileId is required."); 8721 throw new core.ArgumentError("Parameter profileId is required.");
8315 } 8722 }
8316 8723
8317 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/compatiblefields/query'; 8724 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pos talCodes';
8318 8725
8319 var _response = _requester.request(_url, 8726 var _response = _requester.request(_url,
8320 "POST", 8727 "GET",
8321 body: _body, 8728 body: _body,
8322 queryParams: _queryParams, 8729 queryParams: _queryParams,
8323 uploadOptions: _uploadOptions, 8730 uploadOptions: _uploadOptions,
8324 uploadMedia: _uploadMedia, 8731 uploadMedia: _uploadMedia,
8325 downloadOptions: _downloadOptions); 8732 downloadOptions: _downloadOptions);
8326 return _response.then((data) => new CompatibleFields.fromJson(data)); 8733 return _response.then((data) => new PostalCodesListResponse.fromJson(data));
8327 } 8734 }
8328 8735
8329 } 8736 }
8330 8737
8331 8738
8332 class ReportsFilesResourceApi { 8739 class ProjectsResourceApi {
8333 final commons.ApiRequester _requester; 8740 final commons.ApiRequester _requester;
8334 8741
8335 ReportsFilesResourceApi(commons.ApiRequester client) : 8742 ProjectsResourceApi(commons.ApiRequester client) :
8336 _requester = client; 8743 _requester = client;
8337 8744
8338 /** 8745 /**
8339 * Retrieves a report file. 8746 * Gets one project by ID.
8340 * 8747 *
8341 * Request parameters: 8748 * Request parameters:
8342 * 8749 *
8343 * [profileId] - The DFA profile ID. 8750 * [profileId] - User profile ID associated with this request.
8344 * 8751 *
8345 * [reportId] - The ID of the report. 8752 * [id] - Project ID.
8346 * 8753 *
8347 * [fileId] - The ID of the report file. 8754 * Completes with a [Project].
8348 *
8349 * [downloadOptions] - Options for downloading. A download can be either a
8350 * Metadata (default) or Media download. Partial Media downloads are possible
8351 * as well.
8352 *
8353 * Completes with a
8354 *
8355 * - [File] for Metadata downloads (see [downloadOptions]).
8356 *
8357 * - [commons.Media] for Media downloads (see [downloadOptions]).
8358 * 8755 *
8359 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8756 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8360 * error. 8757 * error.
8361 * 8758 *
8362 * If the used [http.Client] completes with an error when making a REST call, 8759 * If the used [http.Client] completes with an error when making a REST call,
8363 * this method will complete with the same error. 8760 * this method will complete with the same error.
8364 */ 8761 */
8365 async.Future get(core.String profileId, core.String reportId, core.String file Id, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { 8762 async.Future<Project> get(core.String profileId, core.String id) {
8366 var _url = null; 8763 var _url = null;
8367 var _queryParams = new core.Map(); 8764 var _queryParams = new core.Map();
8368 var _uploadMedia = null; 8765 var _uploadMedia = null;
8369 var _uploadOptions = null; 8766 var _uploadOptions = null;
8370 var _downloadOptions = commons.DownloadOptions.Metadata; 8767 var _downloadOptions = commons.DownloadOptions.Metadata;
8371 var _body = null; 8768 var _body = null;
8372 8769
8373 if (profileId == null) { 8770 if (profileId == null) {
8374 throw new core.ArgumentError("Parameter profileId is required."); 8771 throw new core.ArgumentError("Parameter profileId is required.");
8375 } 8772 }
8376 if (reportId == null) { 8773 if (id == null) {
8377 throw new core.ArgumentError("Parameter reportId is required."); 8774 throw new core.ArgumentError("Parameter id is required.");
8378 }
8379 if (fileId == null) {
8380 throw new core.ArgumentError("Parameter fileId is required.");
8381 } 8775 }
8382 8776
8383 _downloadOptions = downloadOptions; 8777 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pro jects/' + commons.Escaper.ecapeVariable('$id');
8384
8385 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escape r.ecapeVariable('$fileId');
8386 8778
8387 var _response = _requester.request(_url, 8779 var _response = _requester.request(_url,
8388 "GET", 8780 "GET",
8389 body: _body, 8781 body: _body,
8390 queryParams: _queryParams, 8782 queryParams: _queryParams,
8391 uploadOptions: _uploadOptions, 8783 uploadOptions: _uploadOptions,
8392 uploadMedia: _uploadMedia, 8784 uploadMedia: _uploadMedia,
8393 downloadOptions: _downloadOptions); 8785 downloadOptions: _downloadOptions);
8394 if (_downloadOptions == null || 8786 return _response.then((data) => new Project.fromJson(data));
8395 _downloadOptions == commons.DownloadOptions.Metadata) {
8396 return _response.then((data) => new File.fromJson(data));
8397 } else {
8398 return _response;
8399 }
8400 } 8787 }
8401 8788
8402 /** 8789 /**
8403 * Lists files for a report. 8790 * Retrieves a list of projects, possibly filtered.
8404 * 8791 *
8405 * Request parameters: 8792 * Request parameters:
8406 * 8793 *
8407 * [profileId] - The DFA profile ID. 8794 * [profileId] - User profile ID associated with this request.
8408 * 8795 *
8409 * [reportId] - The ID of the parent report. 8796 * [advertiserIds] - Select only projects with these advertiser IDs.
8797 *
8798 * [ids] - Select only projects with these IDs.
8410 * 8799 *
8411 * [maxResults] - Maximum number of results to return. 8800 * [maxResults] - Maximum number of results to return.
8412 * Value must be between "0" and "10".
8413 * 8801 *
8414 * [pageToken] - The value of the nextToken from the previous result page. 8802 * [pageToken] - Value of the nextPageToken from the previous result page.
8415 * 8803 *
8416 * [sortField] - The field by which to sort the list. 8804 * [searchString] - Allows searching for projects by name or ID. Wildcards (*)
8805 * are allowed. For example, "project*2015" will return projects with names
8806 * like "project June 2015", "project April 2015", or simply "project 2015".
8807 * Most of the searches also add wildcards implicitly at the start and the end
8808 * of the search string. For example, a search string of "project" will match
8809 * projects with name "my project", "project 2015", or simply "project".
8810 *
8811 * [sortField] - Field by which to sort the list.
8417 * Possible string values are: 8812 * Possible string values are:
8418 * - "ID" : Sort by file ID. 8813 * - "ID"
8419 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. 8814 * - "NAME"
8420 * 8815 *
8421 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. 8816 * [sortOrder] - Order of sorted results, default is ASCENDING.
8422 * Possible string values are: 8817 * Possible string values are:
8423 * - "ASCENDING" : Ascending order. 8818 * - "ASCENDING"
8424 * - "DESCENDING" : Descending order. 8819 * - "DESCENDING"
8425 * 8820 *
8426 * Completes with a [FileList]. 8821 * Completes with a [ProjectsListResponse].
8427 * 8822 *
8428 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8823 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8429 * error. 8824 * error.
8430 * 8825 *
8431 * If the used [http.Client] completes with an error when making a REST call, 8826 * If the used [http.Client] completes with an error when making a REST call,
8432 * this method will complete with the same error. 8827 * this method will complete with the same error.
8433 */ 8828 */
8434 async.Future<FileList> list(core.String profileId, core.String reportId, {core .int maxResults, core.String pageToken, core.String sortField, core.String sortO rder}) { 8829 async.Future<ProjectsListResponse> list(core.String profileId, {core.List<core .String> advertiserIds, core.List<core.String> ids, core.int maxResults, core.St ring pageToken, core.String searchString, core.String sortField, core.String sor tOrder}) {
8435 var _url = null; 8830 var _url = null;
8436 var _queryParams = new core.Map(); 8831 var _queryParams = new core.Map();
8437 var _uploadMedia = null; 8832 var _uploadMedia = null;
8438 var _uploadOptions = null; 8833 var _uploadOptions = null;
8439 var _downloadOptions = commons.DownloadOptions.Metadata; 8834 var _downloadOptions = commons.DownloadOptions.Metadata;
8440 var _body = null; 8835 var _body = null;
8441 8836
8442 if (profileId == null) { 8837 if (profileId == null) {
8443 throw new core.ArgumentError("Parameter profileId is required."); 8838 throw new core.ArgumentError("Parameter profileId is required.");
8444 } 8839 }
8445 if (reportId == null) { 8840 if (advertiserIds != null) {
8446 throw new core.ArgumentError("Parameter reportId is required."); 8841 _queryParams["advertiserIds"] = advertiserIds;
8842 }
8843 if (ids != null) {
8844 _queryParams["ids"] = ids;
8447 } 8845 }
8448 if (maxResults != null) { 8846 if (maxResults != null) {
8449 _queryParams["maxResults"] = ["${maxResults}"]; 8847 _queryParams["maxResults"] = ["${maxResults}"];
8450 } 8848 }
8451 if (pageToken != null) { 8849 if (pageToken != null) {
8452 _queryParams["pageToken"] = [pageToken]; 8850 _queryParams["pageToken"] = [pageToken];
8453 } 8851 }
8852 if (searchString != null) {
8853 _queryParams["searchString"] = [searchString];
8854 }
8454 if (sortField != null) { 8855 if (sortField != null) {
8455 _queryParams["sortField"] = [sortField]; 8856 _queryParams["sortField"] = [sortField];
8456 } 8857 }
8457 if (sortOrder != null) { 8858 if (sortOrder != null) {
8458 _queryParams["sortOrder"] = [sortOrder]; 8859 _queryParams["sortOrder"] = [sortOrder];
8459 } 8860 }
8460 8861
8461 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files'; 8862 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pro jects';
8462 8863
8463 var _response = _requester.request(_url, 8864 var _response = _requester.request(_url,
8464 "GET", 8865 "GET",
8465 body: _body, 8866 body: _body,
8466 queryParams: _queryParams, 8867 queryParams: _queryParams,
8467 uploadOptions: _uploadOptions, 8868 uploadOptions: _uploadOptions,
8468 uploadMedia: _uploadMedia, 8869 uploadMedia: _uploadMedia,
8469 downloadOptions: _downloadOptions); 8870 downloadOptions: _downloadOptions);
8470 return _response.then((data) => new FileList.fromJson(data)); 8871 return _response.then((data) => new ProjectsListResponse.fromJson(data));
8471 } 8872 }
8472 8873
8473 } 8874 }
8474 8875
8475 8876
8476 class SitesResourceApi { 8877 class RegionsResourceApi {
8477 final commons.ApiRequester _requester; 8878 final commons.ApiRequester _requester;
8478 8879
8479 SitesResourceApi(commons.ApiRequester client) : 8880 RegionsResourceApi(commons.ApiRequester client) :
8480 _requester = client; 8881 _requester = client;
8481 8882
8482 /** 8883 /**
8483 * Gets one site by ID. 8884 * Retrieves a list of regions.
8484 * 8885 *
8485 * Request parameters: 8886 * Request parameters:
8486 * 8887 *
8487 * [profileId] - User profile ID associated with this request. 8888 * [profileId] - User profile ID associated with this request.
8488 * 8889 *
8489 * [id] - Site ID. 8890 * Completes with a [RegionsListResponse].
8490 *
8491 * Completes with a [Site].
8492 * 8891 *
8493 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8892 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8494 * error. 8893 * error.
8495 * 8894 *
8496 * If the used [http.Client] completes with an error when making a REST call, 8895 * If the used [http.Client] completes with an error when making a REST call,
8497 * this method will complete with the same error. 8896 * this method will complete with the same error.
8498 */ 8897 */
8499 async.Future<Site> get(core.String profileId, core.String id) { 8898 async.Future<RegionsListResponse> list(core.String profileId) {
8500 var _url = null; 8899 var _url = null;
8501 var _queryParams = new core.Map(); 8900 var _queryParams = new core.Map();
8502 var _uploadMedia = null; 8901 var _uploadMedia = null;
8503 var _uploadOptions = null; 8902 var _uploadOptions = null;
8504 var _downloadOptions = commons.DownloadOptions.Metadata; 8903 var _downloadOptions = commons.DownloadOptions.Metadata;
8505 var _body = null; 8904 var _body = null;
8506 8905
8507 if (profileId == null) { 8906 if (profileId == null) {
8508 throw new core.ArgumentError("Parameter profileId is required."); 8907 throw new core.ArgumentError("Parameter profileId is required.");
8509 } 8908 }
8510 if (id == null) {
8511 throw new core.ArgumentError("Parameter id is required.");
8512 }
8513 8909
8514 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es/' + commons.Escaper.ecapeVariable('$id'); 8910 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reg ions';
8515 8911
8516 var _response = _requester.request(_url, 8912 var _response = _requester.request(_url,
8517 "GET", 8913 "GET",
8518 body: _body, 8914 body: _body,
8519 queryParams: _queryParams, 8915 queryParams: _queryParams,
8520 uploadOptions: _uploadOptions, 8916 uploadOptions: _uploadOptions,
8521 uploadMedia: _uploadMedia, 8917 uploadMedia: _uploadMedia,
8522 downloadOptions: _downloadOptions); 8918 downloadOptions: _downloadOptions);
8523 return _response.then((data) => new Site.fromJson(data)); 8919 return _response.then((data) => new RegionsListResponse.fromJson(data));
8524 } 8920 }
8525 8921
8922 }
8923
8924
8925 class RemarketingListSharesResourceApi {
8926 final commons.ApiRequester _requester;
8927
8928 RemarketingListSharesResourceApi(commons.ApiRequester client) :
8929 _requester = client;
8930
8526 /** 8931 /**
8527 * Inserts a new site. 8932 * Gets one remarketing list share by remarketing list ID.
8528 *
8529 * [request] - The metadata request object.
8530 * 8933 *
8531 * Request parameters: 8934 * Request parameters:
8532 * 8935 *
8533 * [profileId] - User profile ID associated with this request. 8936 * [profileId] - User profile ID associated with this request.
8534 * 8937 *
8535 * Completes with a [Site]. 8938 * [remarketingListId] - Remarketing list ID.
8939 *
8940 * Completes with a [RemarketingListShare].
8536 * 8941 *
8537 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8942 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8538 * error. 8943 * error.
8539 * 8944 *
8540 * If the used [http.Client] completes with an error when making a REST call, 8945 * If the used [http.Client] completes with an error when making a REST call,
8541 * this method will complete with the same error. 8946 * this method will complete with the same error.
8542 */ 8947 */
8543 async.Future<Site> insert(Site request, core.String profileId) { 8948 async.Future<RemarketingListShare> get(core.String profileId, core.String rema rketingListId) {
8544 var _url = null; 8949 var _url = null;
8545 var _queryParams = new core.Map(); 8950 var _queryParams = new core.Map();
8546 var _uploadMedia = null; 8951 var _uploadMedia = null;
8547 var _uploadOptions = null; 8952 var _uploadOptions = null;
8548 var _downloadOptions = commons.DownloadOptions.Metadata; 8953 var _downloadOptions = commons.DownloadOptions.Metadata;
8549 var _body = null; 8954 var _body = null;
8550 8955
8551 if (request != null) {
8552 _body = convert.JSON.encode((request).toJson());
8553 }
8554 if (profileId == null) { 8956 if (profileId == null) {
8555 throw new core.ArgumentError("Parameter profileId is required."); 8957 throw new core.ArgumentError("Parameter profileId is required.");
8556 } 8958 }
8959 if (remarketingListId == null) {
8960 throw new core.ArgumentError("Parameter remarketingListId is required.");
8961 }
8557 8962
8558 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es'; 8963 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingListShares/' + commons.Escaper.ecapeVariable('$remarketingListId');
8559 8964
8560 var _response = _requester.request(_url, 8965 var _response = _requester.request(_url,
8561 "POST", 8966 "GET",
8562 body: _body, 8967 body: _body,
8563 queryParams: _queryParams, 8968 queryParams: _queryParams,
8564 uploadOptions: _uploadOptions, 8969 uploadOptions: _uploadOptions,
8565 uploadMedia: _uploadMedia, 8970 uploadMedia: _uploadMedia,
8566 downloadOptions: _downloadOptions); 8971 downloadOptions: _downloadOptions);
8567 return _response.then((data) => new Site.fromJson(data)); 8972 return _response.then((data) => new RemarketingListShare.fromJson(data));
8568 } 8973 }
8569 8974
8570 /** 8975 /**
8571 * Retrieves a list of sites, possibly filtered. 8976 * Updates an existing remarketing list share. This method supports patch
8977 * semantics.
8978 *
8979 * [request] - The metadata request object.
8572 * 8980 *
8573 * Request parameters: 8981 * Request parameters:
8574 * 8982 *
8575 * [profileId] - User profile ID associated with this request. 8983 * [profileId] - User profile ID associated with this request.
8576 * 8984 *
8577 * [acceptsInStreamVideoPlacements] - This search filter is no longer 8985 * [remarketingListId] - Remarketing list ID.
8578 * supported and will have no effect on the results returned.
8579 * 8986 *
8580 * [acceptsInterstitialPlacements] - This search filter is no longer supported 8987 * Completes with a [RemarketingListShare].
8581 * and will have no effect on the results returned.
8582 *
8583 * [acceptsPublisherPaidPlacements] - Select only sites that accept publisher
8584 * paid placements.
8585 *
8586 * [adWordsSite] - Select only AdWords sites.
8587 *
8588 * [approved] - Select only approved sites.
8589 *
8590 * [campaignIds] - Select only sites with these campaign IDs.
8591 *
8592 * [directorySiteIds] - Select only sites with these directory site IDs.
8593 *
8594 * [ids] - Select only sites with these IDs.
8595 *
8596 * [maxResults] - Maximum number of results to return.
8597 *
8598 * [pageToken] - Value of the nextPageToken from the previous result page.
8599 *
8600 * [searchString] - Allows searching for objects by name, ID or keyName.
8601 * Wildcards (*) are allowed. For example, "site*2015" will return objects
8602 * with names like "site June 2015", "site April 2015", or simply "site 2015".
8603 * Most of the searches also add wildcards implicitly at the start and the end
8604 * of the search string. For example, a search string of "site" will match
8605 * objects with name "my site", "site 2015", or simply "site".
8606 *
8607 * [sortField] - Field by which to sort the list.
8608 * Possible string values are:
8609 * - "ID"
8610 * - "NAME"
8611 *
8612 * [sortOrder] - Order of sorted results, default is ASCENDING.
8613 * Possible string values are:
8614 * - "ASCENDING"
8615 * - "DESCENDING"
8616 *
8617 * [subaccountId] - Select only sites with this subaccount ID.
8618 *
8619 * [unmappedSite] - Select only sites that have not been mapped to a directory
8620 * site.
8621 *
8622 * Completes with a [SitesListResponse].
8623 * 8988 *
8624 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8989 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8625 * error. 8990 * error.
8626 * 8991 *
8627 * If the used [http.Client] completes with an error when making a REST call, 8992 * If the used [http.Client] completes with an error when making a REST call,
8628 * this method will complete with the same error. 8993 * this method will complete with the same error.
8629 */ 8994 */
8630 async.Future<SitesListResponse> list(core.String profileId, {core.bool accepts InStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.bool acce ptsPublisherPaidPlacements, core.bool adWordsSite, core.bool approved, core.List <core.String> campaignIds, core.List<core.String> directorySiteIds, core.List<co re.String> ids, core.int maxResults, core.String pageToken, core.String searchSt ring, core.String sortField, core.String sortOrder, core.String subaccountId, co re.bool unmappedSite}) { 8995 async.Future<RemarketingListShare> patch(RemarketingListShare request, core.St ring profileId, core.String remarketingListId) {
8631 var _url = null; 8996 var _url = null;
8632 var _queryParams = new core.Map(); 8997 var _queryParams = new core.Map();
8633 var _uploadMedia = null; 8998 var _uploadMedia = null;
8634 var _uploadOptions = null; 8999 var _uploadOptions = null;
8635 var _downloadOptions = commons.DownloadOptions.Metadata; 9000 var _downloadOptions = commons.DownloadOptions.Metadata;
8636 var _body = null; 9001 var _body = null;
8637 9002
8638 if (profileId == null) {
8639 throw new core.ArgumentError("Parameter profileId is required.");
8640 }
8641 if (acceptsInStreamVideoPlacements != null) {
8642 _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoP lacements}"];
8643 }
8644 if (acceptsInterstitialPlacements != null) {
8645 _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPla cements}"];
8646 }
8647 if (acceptsPublisherPaidPlacements != null) {
8648 _queryParams["acceptsPublisherPaidPlacements"] = ["${acceptsPublisherPaidP lacements}"];
8649 }
8650 if (adWordsSite != null) {
8651 _queryParams["adWordsSite"] = ["${adWordsSite}"];
8652 }
8653 if (approved != null) {
8654 _queryParams["approved"] = ["${approved}"];
8655 }
8656 if (campaignIds != null) {
8657 _queryParams["campaignIds"] = campaignIds;
8658 }
8659 if (directorySiteIds != null) {
8660 _queryParams["directorySiteIds"] = directorySiteIds;
8661 }
8662 if (ids != null) {
8663 _queryParams["ids"] = ids;
8664 }
8665 if (maxResults != null) {
8666 _queryParams["maxResults"] = ["${maxResults}"];
8667 }
8668 if (pageToken != null) {
8669 _queryParams["pageToken"] = [pageToken];
8670 }
8671 if (searchString != null) {
8672 _queryParams["searchString"] = [searchString];
8673 }
8674 if (sortField != null) {
8675 _queryParams["sortField"] = [sortField];
8676 }
8677 if (sortOrder != null) {
8678 _queryParams["sortOrder"] = [sortOrder];
8679 }
8680 if (subaccountId != null) {
8681 _queryParams["subaccountId"] = [subaccountId];
8682 }
8683 if (unmappedSite != null) {
8684 _queryParams["unmappedSite"] = ["${unmappedSite}"];
8685 }
8686
8687 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es';
8688
8689 var _response = _requester.request(_url,
8690 "GET",
8691 body: _body,
8692 queryParams: _queryParams,
8693 uploadOptions: _uploadOptions,
8694 uploadMedia: _uploadMedia,
8695 downloadOptions: _downloadOptions);
8696 return _response.then((data) => new SitesListResponse.fromJson(data));
8697 }
8698
8699 /**
8700 * Updates an existing site. This method supports patch semantics.
8701 *
8702 * [request] - The metadata request object.
8703 *
8704 * Request parameters:
8705 *
8706 * [profileId] - User profile ID associated with this request.
8707 *
8708 * [id] - Site ID.
8709 *
8710 * Completes with a [Site].
8711 *
8712 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8713 * error.
8714 *
8715 * If the used [http.Client] completes with an error when making a REST call,
8716 * this method will complete with the same error.
8717 */
8718 async.Future<Site> patch(Site request, core.String profileId, core.String id) {
8719 var _url = null;
8720 var _queryParams = new core.Map();
8721 var _uploadMedia = null;
8722 var _uploadOptions = null;
8723 var _downloadOptions = commons.DownloadOptions.Metadata;
8724 var _body = null;
8725
8726 if (request != null) { 9003 if (request != null) {
8727 _body = convert.JSON.encode((request).toJson()); 9004 _body = convert.JSON.encode((request).toJson());
8728 } 9005 }
8729 if (profileId == null) { 9006 if (profileId == null) {
8730 throw new core.ArgumentError("Parameter profileId is required."); 9007 throw new core.ArgumentError("Parameter profileId is required.");
8731 } 9008 }
8732 if (id == null) { 9009 if (remarketingListId == null) {
8733 throw new core.ArgumentError("Parameter id is required."); 9010 throw new core.ArgumentError("Parameter remarketingListId is required.");
8734 } 9011 }
8735 _queryParams["id"] = [id]; 9012 _queryParams["remarketingListId"] = [remarketingListId];
8736 9013
8737 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es'; 9014 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingListShares';
8738 9015
8739 var _response = _requester.request(_url, 9016 var _response = _requester.request(_url,
8740 "PATCH", 9017 "PATCH",
8741 body: _body, 9018 body: _body,
8742 queryParams: _queryParams, 9019 queryParams: _queryParams,
8743 uploadOptions: _uploadOptions, 9020 uploadOptions: _uploadOptions,
8744 uploadMedia: _uploadMedia, 9021 uploadMedia: _uploadMedia,
8745 downloadOptions: _downloadOptions); 9022 downloadOptions: _downloadOptions);
8746 return _response.then((data) => new Site.fromJson(data)); 9023 return _response.then((data) => new RemarketingListShare.fromJson(data));
8747 } 9024 }
8748 9025
8749 /** 9026 /**
8750 * Updates an existing site. 9027 * Updates an existing remarketing list share.
8751 * 9028 *
8752 * [request] - The metadata request object. 9029 * [request] - The metadata request object.
8753 * 9030 *
8754 * Request parameters: 9031 * Request parameters:
8755 * 9032 *
8756 * [profileId] - User profile ID associated with this request. 9033 * [profileId] - User profile ID associated with this request.
8757 * 9034 *
8758 * Completes with a [Site]. 9035 * Completes with a [RemarketingListShare].
8759 * 9036 *
8760 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9037 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8761 * error. 9038 * error.
8762 * 9039 *
8763 * If the used [http.Client] completes with an error when making a REST call, 9040 * If the used [http.Client] completes with an error when making a REST call,
8764 * this method will complete with the same error. 9041 * this method will complete with the same error.
8765 */ 9042 */
8766 async.Future<Site> update(Site request, core.String profileId) { 9043 async.Future<RemarketingListShare> update(RemarketingListShare request, core.S tring profileId) {
8767 var _url = null; 9044 var _url = null;
8768 var _queryParams = new core.Map(); 9045 var _queryParams = new core.Map();
8769 var _uploadMedia = null; 9046 var _uploadMedia = null;
8770 var _uploadOptions = null; 9047 var _uploadOptions = null;
8771 var _downloadOptions = commons.DownloadOptions.Metadata; 9048 var _downloadOptions = commons.DownloadOptions.Metadata;
8772 var _body = null; 9049 var _body = null;
8773 9050
8774 if (request != null) { 9051 if (request != null) {
8775 _body = convert.JSON.encode((request).toJson()); 9052 _body = convert.JSON.encode((request).toJson());
8776 } 9053 }
8777 if (profileId == null) { 9054 if (profileId == null) {
8778 throw new core.ArgumentError("Parameter profileId is required."); 9055 throw new core.ArgumentError("Parameter profileId is required.");
8779 } 9056 }
8780 9057
8781 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es'; 9058 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingListShares';
8782 9059
8783 var _response = _requester.request(_url, 9060 var _response = _requester.request(_url,
8784 "PUT", 9061 "PUT",
8785 body: _body, 9062 body: _body,
8786 queryParams: _queryParams, 9063 queryParams: _queryParams,
8787 uploadOptions: _uploadOptions, 9064 uploadOptions: _uploadOptions,
8788 uploadMedia: _uploadMedia, 9065 uploadMedia: _uploadMedia,
8789 downloadOptions: _downloadOptions); 9066 downloadOptions: _downloadOptions);
8790 return _response.then((data) => new Site.fromJson(data)); 9067 return _response.then((data) => new RemarketingListShare.fromJson(data));
8791 } 9068 }
8792 9069
8793 } 9070 }
8794 9071
8795 9072
8796 class SizesResourceApi { 9073 class RemarketingListsResourceApi {
8797 final commons.ApiRequester _requester; 9074 final commons.ApiRequester _requester;
8798 9075
8799 SizesResourceApi(commons.ApiRequester client) : 9076 RemarketingListsResourceApi(commons.ApiRequester client) :
8800 _requester = client; 9077 _requester = client;
8801 9078
8802 /** 9079 /**
8803 * Gets one size by ID. 9080 * Gets one remarketing list by ID.
8804 * 9081 *
8805 * Request parameters: 9082 * Request parameters:
8806 * 9083 *
8807 * [profileId] - User profile ID associated with this request. 9084 * [profileId] - User profile ID associated with this request.
8808 * 9085 *
8809 * [id] - Size ID. 9086 * [id] - Remarketing list ID.
8810 * 9087 *
8811 * Completes with a [Size]. 9088 * Completes with a [RemarketingList].
8812 * 9089 *
8813 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9090 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8814 * error. 9091 * error.
8815 * 9092 *
8816 * If the used [http.Client] completes with an error when making a REST call, 9093 * If the used [http.Client] completes with an error when making a REST call,
8817 * this method will complete with the same error. 9094 * this method will complete with the same error.
8818 */ 9095 */
8819 async.Future<Size> get(core.String profileId, core.String id) { 9096 async.Future<RemarketingList> get(core.String profileId, core.String id) {
8820 var _url = null; 9097 var _url = null;
8821 var _queryParams = new core.Map(); 9098 var _queryParams = new core.Map();
8822 var _uploadMedia = null; 9099 var _uploadMedia = null;
8823 var _uploadOptions = null; 9100 var _uploadOptions = null;
8824 var _downloadOptions = commons.DownloadOptions.Metadata; 9101 var _downloadOptions = commons.DownloadOptions.Metadata;
8825 var _body = null; 9102 var _body = null;
8826 9103
8827 if (profileId == null) { 9104 if (profileId == null) {
8828 throw new core.ArgumentError("Parameter profileId is required."); 9105 throw new core.ArgumentError("Parameter profileId is required.");
8829 } 9106 }
8830 if (id == null) { 9107 if (id == null) {
8831 throw new core.ArgumentError("Parameter id is required."); 9108 throw new core.ArgumentError("Parameter id is required.");
8832 } 9109 }
8833 9110
8834 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es/' + commons.Escaper.ecapeVariable('$id'); 9111 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingLists/' + commons.Escaper.ecapeVariable('$id');
8835 9112
8836 var _response = _requester.request(_url, 9113 var _response = _requester.request(_url,
8837 "GET", 9114 "GET",
8838 body: _body, 9115 body: _body,
8839 queryParams: _queryParams, 9116 queryParams: _queryParams,
8840 uploadOptions: _uploadOptions, 9117 uploadOptions: _uploadOptions,
8841 uploadMedia: _uploadMedia, 9118 uploadMedia: _uploadMedia,
8842 downloadOptions: _downloadOptions); 9119 downloadOptions: _downloadOptions);
8843 return _response.then((data) => new Size.fromJson(data)); 9120 return _response.then((data) => new RemarketingList.fromJson(data));
8844 } 9121 }
8845 9122
8846 /** 9123 /**
8847 * Inserts a new size. 9124 * Inserts a new remarketing list.
8848 * 9125 *
8849 * [request] - The metadata request object. 9126 * [request] - The metadata request object.
8850 * 9127 *
8851 * Request parameters: 9128 * Request parameters:
8852 * 9129 *
8853 * [profileId] - User profile ID associated with this request. 9130 * [profileId] - User profile ID associated with this request.
8854 * 9131 *
8855 * Completes with a [Size]. 9132 * Completes with a [RemarketingList].
8856 * 9133 *
8857 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9134 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8858 * error. 9135 * error.
8859 * 9136 *
8860 * If the used [http.Client] completes with an error when making a REST call, 9137 * If the used [http.Client] completes with an error when making a REST call,
8861 * this method will complete with the same error. 9138 * this method will complete with the same error.
8862 */ 9139 */
8863 async.Future<Size> insert(Size request, core.String profileId) { 9140 async.Future<RemarketingList> insert(RemarketingList request, core.String prof ileId) {
8864 var _url = null; 9141 var _url = null;
8865 var _queryParams = new core.Map(); 9142 var _queryParams = new core.Map();
8866 var _uploadMedia = null; 9143 var _uploadMedia = null;
8867 var _uploadOptions = null; 9144 var _uploadOptions = null;
8868 var _downloadOptions = commons.DownloadOptions.Metadata; 9145 var _downloadOptions = commons.DownloadOptions.Metadata;
8869 var _body = null; 9146 var _body = null;
8870 9147
8871 if (request != null) { 9148 if (request != null) {
8872 _body = convert.JSON.encode((request).toJson()); 9149 _body = convert.JSON.encode((request).toJson());
8873 } 9150 }
8874 if (profileId == null) { 9151 if (profileId == null) {
8875 throw new core.ArgumentError("Parameter profileId is required."); 9152 throw new core.ArgumentError("Parameter profileId is required.");
8876 } 9153 }
8877 9154
8878 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es'; 9155 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingLists';
8879 9156
8880 var _response = _requester.request(_url, 9157 var _response = _requester.request(_url,
8881 "POST", 9158 "POST",
8882 body: _body, 9159 body: _body,
8883 queryParams: _queryParams, 9160 queryParams: _queryParams,
8884 uploadOptions: _uploadOptions, 9161 uploadOptions: _uploadOptions,
8885 uploadMedia: _uploadMedia, 9162 uploadMedia: _uploadMedia,
8886 downloadOptions: _downloadOptions); 9163 downloadOptions: _downloadOptions);
8887 return _response.then((data) => new Size.fromJson(data)); 9164 return _response.then((data) => new RemarketingList.fromJson(data));
8888 } 9165 }
8889 9166
8890 /** 9167 /**
8891 * Retrieves a list of sizes, possibly filtered. 9168 * Retrieves a list of remarketing lists, possibly filtered.
8892 * 9169 *
8893 * Request parameters: 9170 * Request parameters:
8894 * 9171 *
8895 * [profileId] - User profile ID associated with this request. 9172 * [profileId] - User profile ID associated with this request.
8896 * 9173 *
8897 * [height] - Select only sizes with this height. 9174 * [advertiserId] - Select only remarketing lists owned by this advertiser.
8898 * 9175 *
8899 * [iabStandard] - Select only IAB standard sizes. 9176 * [active] - Select only active or only inactive remarketing lists.
8900 * 9177 *
8901 * [ids] - Select only sizes with these IDs. 9178 * [floodlightActivityId] - Select only remarketing lists that have this
9179 * floodlight activity ID.
8902 * 9180 *
8903 * [width] - Select only sizes with this width. 9181 * [maxResults] - Maximum number of results to return.
8904 * 9182 *
8905 * Completes with a [SizesListResponse]. 9183 * [name] - Allows searching for objects by name or ID. Wildcards (*) are
9184 * allowed. For example, "remarketing list*2015" will return objects with
9185 * names like "remarketing list June 2015", "remarketing list April 2015", or
9186 * simply "remarketing list 2015". Most of the searches also add wildcards
9187 * implicitly at the start and the end of the search string. For example, a
9188 * search string of "remarketing list" will match objects with name "my
9189 * remarketing list", "remarketing list 2015", or simply "remarketing list".
9190 *
9191 * [pageToken] - Value of the nextPageToken from the previous result page.
9192 *
9193 * [sortField] - Field by which to sort the list.
9194 * Possible string values are:
9195 * - "ID"
9196 * - "NAME"
9197 *
9198 * [sortOrder] - Order of sorted results, default is ASCENDING.
9199 * Possible string values are:
9200 * - "ASCENDING"
9201 * - "DESCENDING"
9202 *
9203 * Completes with a [RemarketingListsListResponse].
8906 * 9204 *
8907 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9205 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8908 * error. 9206 * error.
8909 * 9207 *
8910 * If the used [http.Client] completes with an error when making a REST call, 9208 * If the used [http.Client] completes with an error when making a REST call,
8911 * this method will complete with the same error. 9209 * this method will complete with the same error.
8912 */ 9210 */
8913 async.Future<SizesListResponse> list(core.String profileId, {core.int height, core.bool iabStandard, core.List<core.String> ids, core.int width}) { 9211 async.Future<RemarketingListsListResponse> list(core.String profileId, core.St ring advertiserId, {core.bool active, core.String floodlightActivityId, core.int maxResults, core.String name, core.String pageToken, core.String sortField, cor e.String sortOrder}) {
8914 var _url = null; 9212 var _url = null;
8915 var _queryParams = new core.Map(); 9213 var _queryParams = new core.Map();
8916 var _uploadMedia = null; 9214 var _uploadMedia = null;
8917 var _uploadOptions = null; 9215 var _uploadOptions = null;
8918 var _downloadOptions = commons.DownloadOptions.Metadata; 9216 var _downloadOptions = commons.DownloadOptions.Metadata;
8919 var _body = null; 9217 var _body = null;
8920 9218
8921 if (profileId == null) { 9219 if (profileId == null) {
8922 throw new core.ArgumentError("Parameter profileId is required."); 9220 throw new core.ArgumentError("Parameter profileId is required.");
8923 } 9221 }
8924 if (height != null) { 9222 if (advertiserId == null) {
8925 _queryParams["height"] = ["${height}"]; 9223 throw new core.ArgumentError("Parameter advertiserId is required.");
8926 } 9224 }
8927 if (iabStandard != null) { 9225 _queryParams["advertiserId"] = [advertiserId];
8928 _queryParams["iabStandard"] = ["${iabStandard}"]; 9226 if (active != null) {
9227 _queryParams["active"] = ["${active}"];
8929 } 9228 }
8930 if (ids != null) { 9229 if (floodlightActivityId != null) {
8931 _queryParams["ids"] = ids; 9230 _queryParams["floodlightActivityId"] = [floodlightActivityId];
8932 } 9231 }
8933 if (width != null) { 9232 if (maxResults != null) {
8934 _queryParams["width"] = ["${width}"]; 9233 _queryParams["maxResults"] = ["${maxResults}"];
9234 }
9235 if (name != null) {
9236 _queryParams["name"] = [name];
9237 }
9238 if (pageToken != null) {
9239 _queryParams["pageToken"] = [pageToken];
9240 }
9241 if (sortField != null) {
9242 _queryParams["sortField"] = [sortField];
9243 }
9244 if (sortOrder != null) {
9245 _queryParams["sortOrder"] = [sortOrder];
8935 } 9246 }
8936 9247
8937 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es'; 9248 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingLists';
8938 9249
8939 var _response = _requester.request(_url, 9250 var _response = _requester.request(_url,
8940 "GET", 9251 "GET",
8941 body: _body, 9252 body: _body,
8942 queryParams: _queryParams, 9253 queryParams: _queryParams,
8943 uploadOptions: _uploadOptions, 9254 uploadOptions: _uploadOptions,
8944 uploadMedia: _uploadMedia, 9255 uploadMedia: _uploadMedia,
8945 downloadOptions: _downloadOptions); 9256 downloadOptions: _downloadOptions);
8946 return _response.then((data) => new SizesListResponse.fromJson(data)); 9257 return _response.then((data) => new RemarketingListsListResponse.fromJson(da ta));
8947 } 9258 }
8948 9259
8949 }
8950
8951
8952 class SubaccountsResourceApi {
8953 final commons.ApiRequester _requester;
8954
8955 SubaccountsResourceApi(commons.ApiRequester client) :
8956 _requester = client;
8957
8958 /** 9260 /**
8959 * Gets one subaccount by ID. 9261 * Updates an existing remarketing list. This method supports patch semantics.
9262 *
9263 * [request] - The metadata request object.
8960 * 9264 *
8961 * Request parameters: 9265 * Request parameters:
8962 * 9266 *
8963 * [profileId] - User profile ID associated with this request. 9267 * [profileId] - User profile ID associated with this request.
8964 * 9268 *
8965 * [id] - Subaccount ID. 9269 * [id] - Remarketing list ID.
8966 * 9270 *
8967 * Completes with a [Subaccount]. 9271 * Completes with a [RemarketingList].
8968 * 9272 *
8969 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9273 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8970 * error. 9274 * error.
8971 * 9275 *
8972 * If the used [http.Client] completes with an error when making a REST call, 9276 * If the used [http.Client] completes with an error when making a REST call,
8973 * this method will complete with the same error. 9277 * this method will complete with the same error.
8974 */ 9278 */
8975 async.Future<Subaccount> get(core.String profileId, core.String id) { 9279 async.Future<RemarketingList> patch(RemarketingList request, core.String profi leId, core.String id) {
8976 var _url = null; 9280 var _url = null;
8977 var _queryParams = new core.Map(); 9281 var _queryParams = new core.Map();
8978 var _uploadMedia = null; 9282 var _uploadMedia = null;
8979 var _uploadOptions = null; 9283 var _uploadOptions = null;
8980 var _downloadOptions = commons.DownloadOptions.Metadata; 9284 var _downloadOptions = commons.DownloadOptions.Metadata;
8981 var _body = null; 9285 var _body = null;
8982 9286
9287 if (request != null) {
9288 _body = convert.JSON.encode((request).toJson());
9289 }
8983 if (profileId == null) { 9290 if (profileId == null) {
8984 throw new core.ArgumentError("Parameter profileId is required."); 9291 throw new core.ArgumentError("Parameter profileId is required.");
8985 } 9292 }
8986 if (id == null) { 9293 if (id == null) {
8987 throw new core.ArgumentError("Parameter id is required."); 9294 throw new core.ArgumentError("Parameter id is required.");
8988 } 9295 }
9296 _queryParams["id"] = [id];
8989 9297
8990 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts/' + commons.Escaper.ecapeVariable('$id'); 9298 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingLists';
8991 9299
8992 var _response = _requester.request(_url, 9300 var _response = _requester.request(_url,
8993 "GET", 9301 "PATCH",
8994 body: _body, 9302 body: _body,
8995 queryParams: _queryParams, 9303 queryParams: _queryParams,
8996 uploadOptions: _uploadOptions, 9304 uploadOptions: _uploadOptions,
8997 uploadMedia: _uploadMedia, 9305 uploadMedia: _uploadMedia,
8998 downloadOptions: _downloadOptions); 9306 downloadOptions: _downloadOptions);
8999 return _response.then((data) => new Subaccount.fromJson(data)); 9307 return _response.then((data) => new RemarketingList.fromJson(data));
9000 } 9308 }
9001 9309
9002 /** 9310 /**
9003 * Inserts a new subaccount. 9311 * Updates an existing remarketing list.
9004 * 9312 *
9005 * [request] - The metadata request object. 9313 * [request] - The metadata request object.
9006 * 9314 *
9007 * Request parameters: 9315 * Request parameters:
9008 * 9316 *
9009 * [profileId] - User profile ID associated with this request. 9317 * [profileId] - User profile ID associated with this request.
9010 * 9318 *
9011 * Completes with a [Subaccount]. 9319 * Completes with a [RemarketingList].
9012 * 9320 *
9013 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9321 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9014 * error. 9322 * error.
9015 * 9323 *
9016 * If the used [http.Client] completes with an error when making a REST call, 9324 * If the used [http.Client] completes with an error when making a REST call,
9017 * this method will complete with the same error. 9325 * this method will complete with the same error.
9018 */ 9326 */
9019 async.Future<Subaccount> insert(Subaccount request, core.String profileId) { 9327 async.Future<RemarketingList> update(RemarketingList request, core.String prof ileId) {
9020 var _url = null; 9328 var _url = null;
9021 var _queryParams = new core.Map(); 9329 var _queryParams = new core.Map();
9022 var _uploadMedia = null; 9330 var _uploadMedia = null;
9023 var _uploadOptions = null; 9331 var _uploadOptions = null;
9024 var _downloadOptions = commons.DownloadOptions.Metadata; 9332 var _downloadOptions = commons.DownloadOptions.Metadata;
9025 var _body = null; 9333 var _body = null;
9026 9334
9027 if (request != null) { 9335 if (request != null) {
9028 _body = convert.JSON.encode((request).toJson()); 9336 _body = convert.JSON.encode((request).toJson());
9029 } 9337 }
9030 if (profileId == null) { 9338 if (profileId == null) {
9031 throw new core.ArgumentError("Parameter profileId is required."); 9339 throw new core.ArgumentError("Parameter profileId is required.");
9032 } 9340 }
9033 9341
9034 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts'; 9342 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingLists';
9035 9343
9036 var _response = _requester.request(_url, 9344 var _response = _requester.request(_url,
9037 "POST", 9345 "PUT",
9038 body: _body, 9346 body: _body,
9039 queryParams: _queryParams, 9347 queryParams: _queryParams,
9040 uploadOptions: _uploadOptions, 9348 uploadOptions: _uploadOptions,
9041 uploadMedia: _uploadMedia, 9349 uploadMedia: _uploadMedia,
9042 downloadOptions: _downloadOptions); 9350 downloadOptions: _downloadOptions);
9043 return _response.then((data) => new Subaccount.fromJson(data)); 9351 return _response.then((data) => new RemarketingList.fromJson(data));
9044 } 9352 }
9045 9353
9354 }
9355
9356
9357 class ReportsResourceApi {
9358 final commons.ApiRequester _requester;
9359
9360 ReportsCompatibleFieldsResourceApi get compatibleFields => new ReportsCompatib leFieldsResourceApi(_requester);
9361 ReportsFilesResourceApi get files => new ReportsFilesResourceApi(_requester);
9362
9363 ReportsResourceApi(commons.ApiRequester client) :
9364 _requester = client;
9365
9046 /** 9366 /**
9047 * Gets a list of subaccounts, possibly filtered. 9367 * Deletes a report by its ID.
9048 * 9368 *
9049 * Request parameters: 9369 * Request parameters:
9050 * 9370 *
9051 * [profileId] - User profile ID associated with this request. 9371 * [profileId] - The DFA user profile ID.
9052 * 9372 *
9053 * [ids] - Select only subaccounts with these IDs. 9373 * [reportId] - The ID of the report.
9054 *
9055 * [maxResults] - Maximum number of results to return.
9056 *
9057 * [pageToken] - Value of the nextPageToken from the previous result page.
9058 *
9059 * [searchString] - Allows searching for objects by name or ID. Wildcards (*)
9060 * are allowed. For example, "subaccount*2015" will return objects with names
9061 * like "subaccount June 2015", "subaccount April 2015", or simply "subaccount
9062 * 2015". Most of the searches also add wildcards implicitly at the start and
9063 * the end of the search string. For example, a search string of "subaccount"
9064 * will match objects with name "my subaccount", "subaccount 2015", or simply
9065 * "subaccount".
9066 *
9067 * [sortField] - Field by which to sort the list.
9068 * Possible string values are:
9069 * - "ID"
9070 * - "NAME"
9071 *
9072 * [sortOrder] - Order of sorted results, default is ASCENDING.
9073 * Possible string values are:
9074 * - "ASCENDING"
9075 * - "DESCENDING"
9076 *
9077 * Completes with a [SubaccountsListResponse].
9078 * 9374 *
9079 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9080 * error. 9376 * error.
9081 * 9377 *
9082 * If the used [http.Client] completes with an error when making a REST call, 9378 * If the used [http.Client] completes with an error when making a REST call,
9083 * this method will complete with the same error. 9379 * this method will complete with the same error.
9084 */ 9380 */
9085 async.Future<SubaccountsListResponse> list(core.String profileId, {core.List<c ore.String> ids, core.int maxResults, core.String pageToken, core.String searchS tring, core.String sortField, core.String sortOrder}) { 9381 async.Future delete(core.String profileId, core.String reportId) {
9086 var _url = null; 9382 var _url = null;
9087 var _queryParams = new core.Map(); 9383 var _queryParams = new core.Map();
9088 var _uploadMedia = null; 9384 var _uploadMedia = null;
9089 var _uploadOptions = null; 9385 var _uploadOptions = null;
9090 var _downloadOptions = commons.DownloadOptions.Metadata; 9386 var _downloadOptions = commons.DownloadOptions.Metadata;
9091 var _body = null; 9387 var _body = null;
9092 9388
9093 if (profileId == null) { 9389 if (profileId == null) {
9094 throw new core.ArgumentError("Parameter profileId is required."); 9390 throw new core.ArgumentError("Parameter profileId is required.");
9095 } 9391 }
9096 if (ids != null) { 9392 if (reportId == null) {
9097 _queryParams["ids"] = ids; 9393 throw new core.ArgumentError("Parameter reportId is required.");
9098 }
9099 if (maxResults != null) {
9100 _queryParams["maxResults"] = ["${maxResults}"];
9101 }
9102 if (pageToken != null) {
9103 _queryParams["pageToken"] = [pageToken];
9104 }
9105 if (searchString != null) {
9106 _queryParams["searchString"] = [searchString];
9107 }
9108 if (sortField != null) {
9109 _queryParams["sortField"] = [sortField];
9110 }
9111 if (sortOrder != null) {
9112 _queryParams["sortOrder"] = [sortOrder];
9113 } 9394 }
9114 9395
9115 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts'; 9396 _downloadOptions = null;
9397
9398 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
9116 9399
9117 var _response = _requester.request(_url, 9400 var _response = _requester.request(_url,
9118 "GET", 9401 "DELETE",
9119 body: _body, 9402 body: _body,
9120 queryParams: _queryParams, 9403 queryParams: _queryParams,
9121 uploadOptions: _uploadOptions, 9404 uploadOptions: _uploadOptions,
9122 uploadMedia: _uploadMedia, 9405 uploadMedia: _uploadMedia,
9123 downloadOptions: _downloadOptions); 9406 downloadOptions: _downloadOptions);
9124 return _response.then((data) => new SubaccountsListResponse.fromJson(data)); 9407 return _response.then((data) => null);
9125 } 9408 }
9126 9409
9127 /** 9410 /**
9128 * Updates an existing subaccount. This method supports patch semantics. 9411 * Retrieves a report by its ID.
9129 *
9130 * [request] - The metadata request object.
9131 * 9412 *
9132 * Request parameters: 9413 * Request parameters:
9133 * 9414 *
9134 * [profileId] - User profile ID associated with this request. 9415 * [profileId] - The DFA user profile ID.
9135 * 9416 *
9136 * [id] - Subaccount ID. 9417 * [reportId] - The ID of the report.
9137 * 9418 *
9138 * Completes with a [Subaccount]. 9419 * Completes with a [Report].
9139 * 9420 *
9140 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9421 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9141 * error. 9422 * error.
9142 * 9423 *
9143 * If the used [http.Client] completes with an error when making a REST call, 9424 * If the used [http.Client] completes with an error when making a REST call,
9144 * this method will complete with the same error. 9425 * this method will complete with the same error.
9145 */ 9426 */
9146 async.Future<Subaccount> patch(Subaccount request, core.String profileId, core .String id) { 9427 async.Future<Report> get(core.String profileId, core.String reportId) {
9147 var _url = null; 9428 var _url = null;
9148 var _queryParams = new core.Map(); 9429 var _queryParams = new core.Map();
9149 var _uploadMedia = null; 9430 var _uploadMedia = null;
9150 var _uploadOptions = null; 9431 var _uploadOptions = null;
9151 var _downloadOptions = commons.DownloadOptions.Metadata; 9432 var _downloadOptions = commons.DownloadOptions.Metadata;
9152 var _body = null; 9433 var _body = null;
9153 9434
9154 if (request != null) {
9155 _body = convert.JSON.encode((request).toJson());
9156 }
9157 if (profileId == null) { 9435 if (profileId == null) {
9158 throw new core.ArgumentError("Parameter profileId is required."); 9436 throw new core.ArgumentError("Parameter profileId is required.");
9159 } 9437 }
9160 if (id == null) { 9438 if (reportId == null) {
9161 throw new core.ArgumentError("Parameter id is required."); 9439 throw new core.ArgumentError("Parameter reportId is required.");
9162 } 9440 }
9163 _queryParams["id"] = [id];
9164 9441
9165 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts'; 9442 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
9166 9443
9167 var _response = _requester.request(_url, 9444 var _response = _requester.request(_url,
9168 "PATCH", 9445 "GET",
9169 body: _body, 9446 body: _body,
9170 queryParams: _queryParams, 9447 queryParams: _queryParams,
9171 uploadOptions: _uploadOptions, 9448 uploadOptions: _uploadOptions,
9172 uploadMedia: _uploadMedia, 9449 uploadMedia: _uploadMedia,
9173 downloadOptions: _downloadOptions); 9450 downloadOptions: _downloadOptions);
9174 return _response.then((data) => new Subaccount.fromJson(data)); 9451 return _response.then((data) => new Report.fromJson(data));
9175 } 9452 }
9176 9453
9177 /** 9454 /**
9178 * Updates an existing subaccount. 9455 * Creates a report.
9179 * 9456 *
9180 * [request] - The metadata request object. 9457 * [request] - The metadata request object.
9181 * 9458 *
9182 * Request parameters: 9459 * Request parameters:
9183 * 9460 *
9184 * [profileId] - User profile ID associated with this request. 9461 * [profileId] - The DFA user profile ID.
9185 * 9462 *
9186 * Completes with a [Subaccount]. 9463 * Completes with a [Report].
9187 * 9464 *
9188 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9465 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9189 * error. 9466 * error.
9190 * 9467 *
9191 * If the used [http.Client] completes with an error when making a REST call, 9468 * If the used [http.Client] completes with an error when making a REST call,
9192 * this method will complete with the same error. 9469 * this method will complete with the same error.
9193 */ 9470 */
9194 async.Future<Subaccount> update(Subaccount request, core.String profileId) { 9471 async.Future<Report> insert(Report request, core.String profileId) {
9195 var _url = null; 9472 var _url = null;
9196 var _queryParams = new core.Map(); 9473 var _queryParams = new core.Map();
9197 var _uploadMedia = null; 9474 var _uploadMedia = null;
9198 var _uploadOptions = null; 9475 var _uploadOptions = null;
9199 var _downloadOptions = commons.DownloadOptions.Metadata; 9476 var _downloadOptions = commons.DownloadOptions.Metadata;
9200 var _body = null; 9477 var _body = null;
9201 9478
9202 if (request != null) { 9479 if (request != null) {
9203 _body = convert.JSON.encode((request).toJson()); 9480 _body = convert.JSON.encode((request).toJson());
9204 } 9481 }
9205 if (profileId == null) { 9482 if (profileId == null) {
9206 throw new core.ArgumentError("Parameter profileId is required."); 9483 throw new core.ArgumentError("Parameter profileId is required.");
9207 } 9484 }
9208 9485
9209 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts'; 9486 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts';
9210 9487
9211 var _response = _requester.request(_url, 9488 var _response = _requester.request(_url,
9212 "PUT", 9489 "POST",
9213 body: _body, 9490 body: _body,
9214 queryParams: _queryParams, 9491 queryParams: _queryParams,
9215 uploadOptions: _uploadOptions, 9492 uploadOptions: _uploadOptions,
9216 uploadMedia: _uploadMedia, 9493 uploadMedia: _uploadMedia,
9217 downloadOptions: _downloadOptions); 9494 downloadOptions: _downloadOptions);
9218 return _response.then((data) => new Subaccount.fromJson(data)); 9495 return _response.then((data) => new Report.fromJson(data));
9219 } 9496 }
9220 9497
9221 }
9222
9223
9224 class UserProfilesResourceApi {
9225 final commons.ApiRequester _requester;
9226
9227 UserProfilesResourceApi(commons.ApiRequester client) :
9228 _requester = client;
9229
9230 /** 9498 /**
9231 * Gets one user profile by ID. 9499 * Retrieves list of reports.
9232 * 9500 *
9233 * Request parameters: 9501 * Request parameters:
9234 * 9502 *
9235 * [profileId] - The user profile ID. 9503 * [profileId] - The DFA user profile ID.
9236 * 9504 *
9237 * Completes with a [UserProfile]. 9505 * [maxResults] - Maximum number of results to return.
9506 * Value must be between "0" and "10".
9507 *
9508 * [pageToken] - The value of the nextToken from the previous result page.
9509 *
9510 * [scope] - The scope that defines which results are returned, default is
9511 * 'MINE'.
9512 * Possible string values are:
9513 * - "ALL" : All reports in account.
9514 * - "MINE" : My reports.
9515 *
9516 * [sortField] - The field by which to sort the list.
9517 * Possible string values are:
9518 * - "ID" : Sort by report ID.
9519 * - "LAST_MODIFIED_TIME" : Sort by 'lastModifiedTime' field.
9520 * - "NAME" : Sort by name of reports.
9521 *
9522 * [sortOrder] - Order of sorted results, default is 'DESCENDING'.
9523 * Possible string values are:
9524 * - "ASCENDING" : Ascending order.
9525 * - "DESCENDING" : Descending order.
9526 *
9527 * Completes with a [ReportList].
9238 * 9528 *
9239 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9529 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9240 * error. 9530 * error.
9241 * 9531 *
9242 * If the used [http.Client] completes with an error when making a REST call, 9532 * If the used [http.Client] completes with an error when making a REST call,
9243 * this method will complete with the same error. 9533 * this method will complete with the same error.
9244 */ 9534 */
9245 async.Future<UserProfile> get(core.String profileId) { 9535 async.Future<ReportList> list(core.String profileId, {core.int maxResults, cor e.String pageToken, core.String scope, core.String sortField, core.String sortOr der}) {
9246 var _url = null; 9536 var _url = null;
9247 var _queryParams = new core.Map(); 9537 var _queryParams = new core.Map();
9248 var _uploadMedia = null; 9538 var _uploadMedia = null;
9249 var _uploadOptions = null; 9539 var _uploadOptions = null;
9250 var _downloadOptions = commons.DownloadOptions.Metadata; 9540 var _downloadOptions = commons.DownloadOptions.Metadata;
9251 var _body = null; 9541 var _body = null;
9252 9542
9253 if (profileId == null) { 9543 if (profileId == null) {
9254 throw new core.ArgumentError("Parameter profileId is required."); 9544 throw new core.ArgumentError("Parameter profileId is required.");
9255 } 9545 }
9546 if (maxResults != null) {
9547 _queryParams["maxResults"] = ["${maxResults}"];
9548 }
9549 if (pageToken != null) {
9550 _queryParams["pageToken"] = [pageToken];
9551 }
9552 if (scope != null) {
9553 _queryParams["scope"] = [scope];
9554 }
9555 if (sortField != null) {
9556 _queryParams["sortField"] = [sortField];
9557 }
9558 if (sortOrder != null) {
9559 _queryParams["sortOrder"] = [sortOrder];
9560 }
9256 9561
9257 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId'); 9562 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts';
9258 9563
9259 var _response = _requester.request(_url, 9564 var _response = _requester.request(_url,
9260 "GET", 9565 "GET",
9261 body: _body, 9566 body: _body,
9262 queryParams: _queryParams, 9567 queryParams: _queryParams,
9263 uploadOptions: _uploadOptions, 9568 uploadOptions: _uploadOptions,
9264 uploadMedia: _uploadMedia, 9569 uploadMedia: _uploadMedia,
9265 downloadOptions: _downloadOptions); 9570 downloadOptions: _downloadOptions);
9266 return _response.then((data) => new UserProfile.fromJson(data)); 9571 return _response.then((data) => new ReportList.fromJson(data));
9267 } 9572 }
9268 9573
9269 /** 9574 /**
9270 * Retrieves list of user profiles for a user. 9575 * Updates a report. This method supports patch semantics.
9576 *
9577 * [request] - The metadata request object.
9271 * 9578 *
9272 * Request parameters: 9579 * Request parameters:
9273 * 9580 *
9274 * Completes with a [UserProfileList]. 9581 * [profileId] - The DFA user profile ID.
9582 *
9583 * [reportId] - The ID of the report.
9584 *
9585 * Completes with a [Report].
9275 * 9586 *
9276 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9587 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9277 * error. 9588 * error.
9278 * 9589 *
9279 * If the used [http.Client] completes with an error when making a REST call, 9590 * If the used [http.Client] completes with an error when making a REST call,
9280 * this method will complete with the same error. 9591 * this method will complete with the same error.
9281 */ 9592 */
9282 async.Future<UserProfileList> list() { 9593 async.Future<Report> patch(Report request, core.String profileId, core.String reportId) {
9283 var _url = null; 9594 var _url = null;
9284 var _queryParams = new core.Map(); 9595 var _queryParams = new core.Map();
9285 var _uploadMedia = null; 9596 var _uploadMedia = null;
9286 var _uploadOptions = null; 9597 var _uploadOptions = null;
9287 var _downloadOptions = commons.DownloadOptions.Metadata; 9598 var _downloadOptions = commons.DownloadOptions.Metadata;
9288 var _body = null; 9599 var _body = null;
9289 9600
9601 if (request != null) {
9602 _body = convert.JSON.encode((request).toJson());
9603 }
9604 if (profileId == null) {
9605 throw new core.ArgumentError("Parameter profileId is required.");
9606 }
9607 if (reportId == null) {
9608 throw new core.ArgumentError("Parameter reportId is required.");
9609 }
9290 9610
9291 _url = 'userprofiles'; 9611 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
9292 9612
9293 var _response = _requester.request(_url, 9613 var _response = _requester.request(_url,
9294 "GET", 9614 "PATCH",
9295 body: _body, 9615 body: _body,
9296 queryParams: _queryParams, 9616 queryParams: _queryParams,
9297 uploadOptions: _uploadOptions, 9617 uploadOptions: _uploadOptions,
9298 uploadMedia: _uploadMedia, 9618 uploadMedia: _uploadMedia,
9299 downloadOptions: _downloadOptions); 9619 downloadOptions: _downloadOptions);
9300 return _response.then((data) => new UserProfileList.fromJson(data)); 9620 return _response.then((data) => new Report.fromJson(data));
9301 } 9621 }
9302 9622
9303 }
9304
9305
9306 class UserRolePermissionGroupsResourceApi {
9307 final commons.ApiRequester _requester;
9308
9309 UserRolePermissionGroupsResourceApi(commons.ApiRequester client) :
9310 _requester = client;
9311
9312 /** 9623 /**
9313 * Gets one user role permission group by ID. 9624 * Runs a report.
9314 * 9625 *
9315 * Request parameters: 9626 * Request parameters:
9316 * 9627 *
9317 * [profileId] - User profile ID associated with this request. 9628 * [profileId] - The DFA profile ID.
9318 * 9629 *
9319 * [id] - User role permission group ID. 9630 * [reportId] - The ID of the report.
9320 * 9631 *
9321 * Completes with a [UserRolePermissionGroup]. 9632 * [synchronous] - If set and true, tries to run the report synchronously.
9633 *
9634 * Completes with a [File].
9322 * 9635 *
9323 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9636 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9324 * error. 9637 * error.
9325 * 9638 *
9326 * If the used [http.Client] completes with an error when making a REST call, 9639 * If the used [http.Client] completes with an error when making a REST call,
9327 * this method will complete with the same error. 9640 * this method will complete with the same error.
9328 */ 9641 */
9329 async.Future<UserRolePermissionGroup> get(core.String profileId, core.String i d) { 9642 async.Future<File> run(core.String profileId, core.String reportId, {core.bool synchronous}) {
9330 var _url = null; 9643 var _url = null;
9331 var _queryParams = new core.Map(); 9644 var _queryParams = new core.Map();
9332 var _uploadMedia = null; 9645 var _uploadMedia = null;
9333 var _uploadOptions = null; 9646 var _uploadOptions = null;
9334 var _downloadOptions = commons.DownloadOptions.Metadata; 9647 var _downloadOptions = commons.DownloadOptions.Metadata;
9335 var _body = null; 9648 var _body = null;
9336 9649
9337 if (profileId == null) { 9650 if (profileId == null) {
9338 throw new core.ArgumentError("Parameter profileId is required."); 9651 throw new core.ArgumentError("Parameter profileId is required.");
9339 } 9652 }
9340 if (id == null) { 9653 if (reportId == null) {
9341 throw new core.ArgumentError("Parameter id is required."); 9654 throw new core.ArgumentError("Parameter reportId is required.");
9655 }
9656 if (synchronous != null) {
9657 _queryParams["synchronous"] = ["${synchronous}"];
9342 } 9658 }
9343 9659
9344 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissionGroups/' + commons.Escaper.ecapeVariable('$id'); 9660 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/run';
9345 9661
9346 var _response = _requester.request(_url, 9662 var _response = _requester.request(_url,
9347 "GET", 9663 "POST",
9348 body: _body, 9664 body: _body,
9349 queryParams: _queryParams, 9665 queryParams: _queryParams,
9350 uploadOptions: _uploadOptions, 9666 uploadOptions: _uploadOptions,
9351 uploadMedia: _uploadMedia, 9667 uploadMedia: _uploadMedia,
9352 downloadOptions: _downloadOptions); 9668 downloadOptions: _downloadOptions);
9353 return _response.then((data) => new UserRolePermissionGroup.fromJson(data)); 9669 return _response.then((data) => new File.fromJson(data));
9354 } 9670 }
9355 9671
9356 /** 9672 /**
9357 * Gets a list of all supported user role permission groups. 9673 * Updates a report.
9674 *
9675 * [request] - The metadata request object.
9358 * 9676 *
9359 * Request parameters: 9677 * Request parameters:
9360 * 9678 *
9361 * [profileId] - User profile ID associated with this request. 9679 * [profileId] - The DFA user profile ID.
9362 * 9680 *
9363 * Completes with a [UserRolePermissionGroupsListResponse]. 9681 * [reportId] - The ID of the report.
9682 *
9683 * Completes with a [Report].
9364 * 9684 *
9365 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9685 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9366 * error. 9686 * error.
9367 * 9687 *
9368 * If the used [http.Client] completes with an error when making a REST call, 9688 * If the used [http.Client] completes with an error when making a REST call,
9369 * this method will complete with the same error. 9689 * this method will complete with the same error.
9370 */ 9690 */
9371 async.Future<UserRolePermissionGroupsListResponse> list(core.String profileId) { 9691 async.Future<Report> update(Report request, core.String profileId, core.String reportId) {
9372 var _url = null; 9692 var _url = null;
9373 var _queryParams = new core.Map(); 9693 var _queryParams = new core.Map();
9374 var _uploadMedia = null; 9694 var _uploadMedia = null;
9375 var _uploadOptions = null; 9695 var _uploadOptions = null;
9376 var _downloadOptions = commons.DownloadOptions.Metadata; 9696 var _downloadOptions = commons.DownloadOptions.Metadata;
9377 var _body = null; 9697 var _body = null;
9378 9698
9699 if (request != null) {
9700 _body = convert.JSON.encode((request).toJson());
9701 }
9379 if (profileId == null) { 9702 if (profileId == null) {
9380 throw new core.ArgumentError("Parameter profileId is required."); 9703 throw new core.ArgumentError("Parameter profileId is required.");
9381 } 9704 }
9705 if (reportId == null) {
9706 throw new core.ArgumentError("Parameter reportId is required.");
9707 }
9382 9708
9383 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissionGroups'; 9709 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
9384 9710
9385 var _response = _requester.request(_url, 9711 var _response = _requester.request(_url,
9386 "GET", 9712 "PUT",
9387 body: _body, 9713 body: _body,
9388 queryParams: _queryParams, 9714 queryParams: _queryParams,
9389 uploadOptions: _uploadOptions, 9715 uploadOptions: _uploadOptions,
9390 uploadMedia: _uploadMedia, 9716 uploadMedia: _uploadMedia,
9391 downloadOptions: _downloadOptions); 9717 downloadOptions: _downloadOptions);
9392 return _response.then((data) => new UserRolePermissionGroupsListResponse.fro mJson(data)); 9718 return _response.then((data) => new Report.fromJson(data));
9393 } 9719 }
9394 9720
9395 } 9721 }
9396 9722
9397 9723
9398 class UserRolePermissionsResourceApi { 9724 class ReportsCompatibleFieldsResourceApi {
9399 final commons.ApiRequester _requester; 9725 final commons.ApiRequester _requester;
9400 9726
9401 UserRolePermissionsResourceApi(commons.ApiRequester client) : 9727 ReportsCompatibleFieldsResourceApi(commons.ApiRequester client) :
9402 _requester = client; 9728 _requester = client;
9403 9729
9404 /** 9730 /**
9405 * Gets one user role permission by ID. 9731 * Returns the fields that are compatible to be selected in the respective
9732 * sections of a report criteria, given the fields already selected in the
9733 * input report and user permissions.
9734 *
9735 * [request] - The metadata request object.
9406 * 9736 *
9407 * Request parameters: 9737 * Request parameters:
9408 * 9738 *
9409 * [profileId] - User profile ID associated with this request. 9739 * [profileId] - The DFA user profile ID.
9410 * 9740 *
9411 * [id] - User role permission ID. 9741 * Completes with a [CompatibleFields].
9412 *
9413 * Completes with a [UserRolePermission].
9414 * 9742 *
9415 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9743 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9416 * error. 9744 * error.
9417 * 9745 *
9418 * If the used [http.Client] completes with an error when making a REST call, 9746 * If the used [http.Client] completes with an error when making a REST call,
9419 * this method will complete with the same error. 9747 * this method will complete with the same error.
9420 */ 9748 */
9421 async.Future<UserRolePermission> get(core.String profileId, core.String id) { 9749 async.Future<CompatibleFields> query(Report request, core.String profileId) {
9422 var _url = null; 9750 var _url = null;
9423 var _queryParams = new core.Map(); 9751 var _queryParams = new core.Map();
9424 var _uploadMedia = null; 9752 var _uploadMedia = null;
9425 var _uploadOptions = null; 9753 var _uploadOptions = null;
9426 var _downloadOptions = commons.DownloadOptions.Metadata; 9754 var _downloadOptions = commons.DownloadOptions.Metadata;
9427 var _body = null; 9755 var _body = null;
9428 9756
9757 if (request != null) {
9758 _body = convert.JSON.encode((request).toJson());
9759 }
9429 if (profileId == null) { 9760 if (profileId == null) {
9430 throw new core.ArgumentError("Parameter profileId is required."); 9761 throw new core.ArgumentError("Parameter profileId is required.");
9431 } 9762 }
9432 if (id == null) {
9433 throw new core.ArgumentError("Parameter id is required.");
9434 }
9435 9763
9436 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissions/' + commons.Escaper.ecapeVariable('$id'); 9764 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/compatiblefields/query';
9437 9765
9438 var _response = _requester.request(_url, 9766 var _response = _requester.request(_url,
9439 "GET", 9767 "POST",
9440 body: _body, 9768 body: _body,
9441 queryParams: _queryParams, 9769 queryParams: _queryParams,
9442 uploadOptions: _uploadOptions, 9770 uploadOptions: _uploadOptions,
9443 uploadMedia: _uploadMedia, 9771 uploadMedia: _uploadMedia,
9444 downloadOptions: _downloadOptions); 9772 downloadOptions: _downloadOptions);
9445 return _response.then((data) => new UserRolePermission.fromJson(data)); 9773 return _response.then((data) => new CompatibleFields.fromJson(data));
9446 } 9774 }
9447 9775
9776 }
9777
9778
9779 class ReportsFilesResourceApi {
9780 final commons.ApiRequester _requester;
9781
9782 ReportsFilesResourceApi(commons.ApiRequester client) :
9783 _requester = client;
9784
9448 /** 9785 /**
9449 * Gets a list of user role permissions, possibly filtered. 9786 * Retrieves a report file.
9450 * 9787 *
9451 * Request parameters: 9788 * Request parameters:
9452 * 9789 *
9453 * [profileId] - User profile ID associated with this request. 9790 * [profileId] - The DFA profile ID.
9454 * 9791 *
9455 * [ids] - Select only user role permissions with these IDs. 9792 * [reportId] - The ID of the report.
9456 * 9793 *
9457 * Completes with a [UserRolePermissionsListResponse]. 9794 * [fileId] - The ID of the report file.
9795 *
9796 * [downloadOptions] - Options for downloading. A download can be either a
9797 * Metadata (default) or Media download. Partial Media downloads are possible
9798 * as well.
9799 *
9800 * Completes with a
9801 *
9802 * - [File] for Metadata downloads (see [downloadOptions]).
9803 *
9804 * - [commons.Media] for Media downloads (see [downloadOptions]).
9458 * 9805 *
9459 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9806 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9460 * error. 9807 * error.
9461 * 9808 *
9462 * If the used [http.Client] completes with an error when making a REST call, 9809 * If the used [http.Client] completes with an error when making a REST call,
9463 * this method will complete with the same error. 9810 * this method will complete with the same error.
9464 */ 9811 */
9465 async.Future<UserRolePermissionsListResponse> list(core.String profileId, {cor e.List<core.String> ids}) { 9812 async.Future get(core.String profileId, core.String reportId, core.String file Id, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) {
9466 var _url = null; 9813 var _url = null;
9467 var _queryParams = new core.Map(); 9814 var _queryParams = new core.Map();
9468 var _uploadMedia = null; 9815 var _uploadMedia = null;
9469 var _uploadOptions = null; 9816 var _uploadOptions = null;
9470 var _downloadOptions = commons.DownloadOptions.Metadata; 9817 var _downloadOptions = commons.DownloadOptions.Metadata;
9471 var _body = null; 9818 var _body = null;
9472 9819
9473 if (profileId == null) { 9820 if (profileId == null) {
9474 throw new core.ArgumentError("Parameter profileId is required."); 9821 throw new core.ArgumentError("Parameter profileId is required.");
9475 } 9822 }
9476 if (ids != null) { 9823 if (reportId == null) {
9477 _queryParams["ids"] = ids; 9824 throw new core.ArgumentError("Parameter reportId is required.");
9825 }
9826 if (fileId == null) {
9827 throw new core.ArgumentError("Parameter fileId is required.");
9478 } 9828 }
9479 9829
9480 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissions'; 9830 _downloadOptions = downloadOptions;
9831
9832 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escape r.ecapeVariable('$fileId');
9481 9833
9482 var _response = _requester.request(_url, 9834 var _response = _requester.request(_url,
9483 "GET", 9835 "GET",
9484 body: _body, 9836 body: _body,
9485 queryParams: _queryParams, 9837 queryParams: _queryParams,
9486 uploadOptions: _uploadOptions, 9838 uploadOptions: _uploadOptions,
9487 uploadMedia: _uploadMedia, 9839 uploadMedia: _uploadMedia,
9488 downloadOptions: _downloadOptions); 9840 downloadOptions: _downloadOptions);
9489 return _response.then((data) => new UserRolePermissionsListResponse.fromJson (data)); 9841 if (_downloadOptions == null ||
9842 _downloadOptions == commons.DownloadOptions.Metadata) {
9843 return _response.then((data) => new File.fromJson(data));
9844 } else {
9845 return _response;
9846 }
9490 } 9847 }
9491 9848
9492 }
9493
9494
9495 class UserRolesResourceApi {
9496 final commons.ApiRequester _requester;
9497
9498 UserRolesResourceApi(commons.ApiRequester client) :
9499 _requester = client;
9500
9501 /** 9849 /**
9502 * Deletes an existing user role. 9850 * Lists files for a report.
9503 * 9851 *
9504 * Request parameters: 9852 * Request parameters:
9505 * 9853 *
9506 * [profileId] - User profile ID associated with this request. 9854 * [profileId] - The DFA profile ID.
9507 * 9855 *
9508 * [id] - User role ID. 9856 * [reportId] - The ID of the parent report.
9857 *
9858 * [maxResults] - Maximum number of results to return.
9859 * Value must be between "0" and "10".
9860 *
9861 * [pageToken] - The value of the nextToken from the previous result page.
9862 *
9863 * [sortField] - The field by which to sort the list.
9864 * Possible string values are:
9865 * - "ID" : Sort by file ID.
9866 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field.
9867 *
9868 * [sortOrder] - Order of sorted results, default is 'DESCENDING'.
9869 * Possible string values are:
9870 * - "ASCENDING" : Ascending order.
9871 * - "DESCENDING" : Descending order.
9872 *
9873 * Completes with a [FileList].
9509 * 9874 *
9510 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9875 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9511 * error. 9876 * error.
9512 * 9877 *
9513 * If the used [http.Client] completes with an error when making a REST call, 9878 * If the used [http.Client] completes with an error when making a REST call,
9514 * this method will complete with the same error. 9879 * this method will complete with the same error.
9515 */ 9880 */
9516 async.Future delete(core.String profileId, core.String id) { 9881 async.Future<FileList> list(core.String profileId, core.String reportId, {core .int maxResults, core.String pageToken, core.String sortField, core.String sortO rder}) {
9517 var _url = null; 9882 var _url = null;
9518 var _queryParams = new core.Map(); 9883 var _queryParams = new core.Map();
9519 var _uploadMedia = null; 9884 var _uploadMedia = null;
9520 var _uploadOptions = null; 9885 var _uploadOptions = null;
9521 var _downloadOptions = commons.DownloadOptions.Metadata; 9886 var _downloadOptions = commons.DownloadOptions.Metadata;
9522 var _body = null; 9887 var _body = null;
9523 9888
9524 if (profileId == null) { 9889 if (profileId == null) {
9525 throw new core.ArgumentError("Parameter profileId is required."); 9890 throw new core.ArgumentError("Parameter profileId is required.");
9526 } 9891 }
9527 if (id == null) { 9892 if (reportId == null) {
9528 throw new core.ArgumentError("Parameter id is required."); 9893 throw new core.ArgumentError("Parameter reportId is required.");
9894 }
9895 if (maxResults != null) {
9896 _queryParams["maxResults"] = ["${maxResults}"];
9897 }
9898 if (pageToken != null) {
9899 _queryParams["pageToken"] = [pageToken];
9900 }
9901 if (sortField != null) {
9902 _queryParams["sortField"] = [sortField];
9903 }
9904 if (sortOrder != null) {
9905 _queryParams["sortOrder"] = [sortOrder];
9529 } 9906 }
9530 9907
9531 _downloadOptions = null; 9908 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files';
9532
9533 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles/' + commons.Escaper.ecapeVariable('$id');
9534 9909
9535 var _response = _requester.request(_url, 9910 var _response = _requester.request(_url,
9536 "DELETE", 9911 "GET",
9537 body: _body, 9912 body: _body,
9538 queryParams: _queryParams, 9913 queryParams: _queryParams,
9539 uploadOptions: _uploadOptions, 9914 uploadOptions: _uploadOptions,
9540 uploadMedia: _uploadMedia, 9915 uploadMedia: _uploadMedia,
9541 downloadOptions: _downloadOptions); 9916 downloadOptions: _downloadOptions);
9542 return _response.then((data) => null); 9917 return _response.then((data) => new FileList.fromJson(data));
9543 } 9918 }
9544 9919
9920 }
9921
9922
9923 class SitesResourceApi {
9924 final commons.ApiRequester _requester;
9925
9926 SitesResourceApi(commons.ApiRequester client) :
9927 _requester = client;
9928
9545 /** 9929 /**
9546 * Gets one user role by ID. 9930 * Gets one site by ID.
9547 * 9931 *
9548 * Request parameters: 9932 * Request parameters:
9549 * 9933 *
9550 * [profileId] - User profile ID associated with this request. 9934 * [profileId] - User profile ID associated with this request.
9551 * 9935 *
9552 * [id] - User role ID. 9936 * [id] - Site ID.
9553 * 9937 *
9554 * Completes with a [UserRole]. 9938 * Completes with a [Site].
9555 * 9939 *
9556 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9940 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9557 * error. 9941 * error.
9558 * 9942 *
9559 * If the used [http.Client] completes with an error when making a REST call, 9943 * If the used [http.Client] completes with an error when making a REST call,
9560 * this method will complete with the same error. 9944 * this method will complete with the same error.
9561 */ 9945 */
9562 async.Future<UserRole> get(core.String profileId, core.String id) { 9946 async.Future<Site> get(core.String profileId, core.String id) {
9563 var _url = null; 9947 var _url = null;
9564 var _queryParams = new core.Map(); 9948 var _queryParams = new core.Map();
9565 var _uploadMedia = null; 9949 var _uploadMedia = null;
9566 var _uploadOptions = null; 9950 var _uploadOptions = null;
9567 var _downloadOptions = commons.DownloadOptions.Metadata; 9951 var _downloadOptions = commons.DownloadOptions.Metadata;
9568 var _body = null; 9952 var _body = null;
9569 9953
9570 if (profileId == null) { 9954 if (profileId == null) {
9571 throw new core.ArgumentError("Parameter profileId is required."); 9955 throw new core.ArgumentError("Parameter profileId is required.");
9572 } 9956 }
9573 if (id == null) { 9957 if (id == null) {
9574 throw new core.ArgumentError("Parameter id is required."); 9958 throw new core.ArgumentError("Parameter id is required.");
9575 } 9959 }
9576 9960
9577 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles/' + commons.Escaper.ecapeVariable('$id'); 9961 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es/' + commons.Escaper.ecapeVariable('$id');
9578 9962
9579 var _response = _requester.request(_url, 9963 var _response = _requester.request(_url,
9580 "GET", 9964 "GET",
9581 body: _body, 9965 body: _body,
9582 queryParams: _queryParams, 9966 queryParams: _queryParams,
9583 uploadOptions: _uploadOptions, 9967 uploadOptions: _uploadOptions,
9584 uploadMedia: _uploadMedia, 9968 uploadMedia: _uploadMedia,
9585 downloadOptions: _downloadOptions); 9969 downloadOptions: _downloadOptions);
9586 return _response.then((data) => new UserRole.fromJson(data)); 9970 return _response.then((data) => new Site.fromJson(data));
9587 } 9971 }
9588 9972
9589 /** 9973 /**
9590 * Inserts a new user role. 9974 * Inserts a new site.
9591 * 9975 *
9592 * [request] - The metadata request object. 9976 * [request] - The metadata request object.
9593 * 9977 *
9594 * Request parameters: 9978 * Request parameters:
9595 * 9979 *
9596 * [profileId] - User profile ID associated with this request. 9980 * [profileId] - User profile ID associated with this request.
9597 * 9981 *
9598 * Completes with a [UserRole]. 9982 * Completes with a [Site].
9599 * 9983 *
9600 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9984 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9601 * error. 9985 * error.
9602 * 9986 *
9603 * If the used [http.Client] completes with an error when making a REST call, 9987 * If the used [http.Client] completes with an error when making a REST call,
9604 * this method will complete with the same error. 9988 * this method will complete with the same error.
9605 */ 9989 */
9606 async.Future<UserRole> insert(UserRole request, core.String profileId) { 9990 async.Future<Site> insert(Site request, core.String profileId) {
9607 var _url = null; 9991 var _url = null;
9608 var _queryParams = new core.Map(); 9992 var _queryParams = new core.Map();
9609 var _uploadMedia = null; 9993 var _uploadMedia = null;
9610 var _uploadOptions = null; 9994 var _uploadOptions = null;
9611 var _downloadOptions = commons.DownloadOptions.Metadata; 9995 var _downloadOptions = commons.DownloadOptions.Metadata;
9612 var _body = null; 9996 var _body = null;
9613 9997
9614 if (request != null) { 9998 if (request != null) {
9615 _body = convert.JSON.encode((request).toJson()); 9999 _body = convert.JSON.encode((request).toJson());
9616 } 10000 }
9617 if (profileId == null) { 10001 if (profileId == null) {
9618 throw new core.ArgumentError("Parameter profileId is required."); 10002 throw new core.ArgumentError("Parameter profileId is required.");
9619 } 10003 }
9620 10004
9621 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles'; 10005 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es';
9622 10006
9623 var _response = _requester.request(_url, 10007 var _response = _requester.request(_url,
9624 "POST", 10008 "POST",
9625 body: _body, 10009 body: _body,
9626 queryParams: _queryParams, 10010 queryParams: _queryParams,
9627 uploadOptions: _uploadOptions, 10011 uploadOptions: _uploadOptions,
9628 uploadMedia: _uploadMedia, 10012 uploadMedia: _uploadMedia,
9629 downloadOptions: _downloadOptions); 10013 downloadOptions: _downloadOptions);
9630 return _response.then((data) => new UserRole.fromJson(data)); 10014 return _response.then((data) => new Site.fromJson(data));
9631 } 10015 }
9632 10016
9633 /** 10017 /**
9634 * Retrieves a list of user roles, possibly filtered. 10018 * Retrieves a list of sites, possibly filtered.
9635 * 10019 *
9636 * Request parameters: 10020 * Request parameters:
9637 * 10021 *
9638 * [profileId] - User profile ID associated with this request. 10022 * [profileId] - User profile ID associated with this request.
9639 * 10023 *
9640 * [accountUserRoleOnly] - Select only account level user roles not associated 10024 * [acceptsInStreamVideoPlacements] - This search filter is no longer
9641 * with any specific subaccount. 10025 * supported and will have no effect on the results returned.
9642 * 10026 *
9643 * [ids] - Select only user roles with the specified IDs. 10027 * [acceptsInterstitialPlacements] - This search filter is no longer supported
10028 * and will have no effect on the results returned.
10029 *
10030 * [acceptsPublisherPaidPlacements] - Select only sites that accept publisher
10031 * paid placements.
10032 *
10033 * [adWordsSite] - Select only AdWords sites.
10034 *
10035 * [approved] - Select only approved sites.
10036 *
10037 * [campaignIds] - Select only sites with these campaign IDs.
10038 *
10039 * [directorySiteIds] - Select only sites with these directory site IDs.
10040 *
10041 * [ids] - Select only sites with these IDs.
9644 * 10042 *
9645 * [maxResults] - Maximum number of results to return. 10043 * [maxResults] - Maximum number of results to return.
9646 * 10044 *
9647 * [pageToken] - Value of the nextPageToken from the previous result page. 10045 * [pageToken] - Value of the nextPageToken from the previous result page.
9648 * 10046 *
9649 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) 10047 * [searchString] - Allows searching for objects by name, ID or keyName.
9650 * are allowed. For example, "userrole*2015" will return objects with names 10048 * Wildcards (*) are allowed. For example, "site*2015" will return objects
9651 * like "userrole June 2015", "userrole April 2015", or simply "userrole 10049 * with names like "site June 2015", "site April 2015", or simply "site 2015".
9652 * 2015". Most of the searches also add wildcards implicitly at the start and 10050 * Most of the searches also add wildcards implicitly at the start and the end
9653 * the end of the search string. For example, a search string of "userrole" 10051 * of the search string. For example, a search string of "site" will match
9654 * will match objects with name "my userrole", "userrole 2015", or simply 10052 * objects with name "my site", "site 2015", or simply "site".
9655 * "userrole".
9656 * 10053 *
9657 * [sortField] - Field by which to sort the list. 10054 * [sortField] - Field by which to sort the list.
9658 * Possible string values are: 10055 * Possible string values are:
9659 * - "ID" 10056 * - "ID"
9660 * - "NAME" 10057 * - "NAME"
9661 * 10058 *
9662 * [sortOrder] - Order of sorted results, default is ASCENDING. 10059 * [sortOrder] - Order of sorted results, default is ASCENDING.
9663 * Possible string values are: 10060 * Possible string values are:
9664 * - "ASCENDING" 10061 * - "ASCENDING"
9665 * - "DESCENDING" 10062 * - "DESCENDING"
9666 * 10063 *
9667 * [subaccountId] - Select only user roles that belong to this subaccount. 10064 * [subaccountId] - Select only sites with this subaccount ID.
9668 * 10065 *
9669 * Completes with a [UserRolesListResponse]. 10066 * [unmappedSite] - Select only sites that have not been mapped to a directory
10067 * site.
10068 *
10069 * Completes with a [SitesListResponse].
9670 * 10070 *
9671 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 10071 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9672 * error. 10072 * error.
9673 * 10073 *
9674 * If the used [http.Client] completes with an error when making a REST call, 10074 * If the used [http.Client] completes with an error when making a REST call,
9675 * this method will complete with the same error. 10075 * this method will complete with the same error.
9676 */ 10076 */
9677 async.Future<UserRolesListResponse> list(core.String profileId, {core.bool acc ountUserRoleOnly, core.List<core.String> ids, core.int maxResults, core.String p ageToken, core.String searchString, core.String sortField, core.String sortOrder , core.String subaccountId}) { 10077 async.Future<SitesListResponse> list(core.String profileId, {core.bool accepts InStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.bool acce ptsPublisherPaidPlacements, core.bool adWordsSite, core.bool approved, core.List <core.String> campaignIds, core.List<core.String> directorySiteIds, core.List<co re.String> ids, core.int maxResults, core.String pageToken, core.String searchSt ring, core.String sortField, core.String sortOrder, core.String subaccountId, co re.bool unmappedSite}) {
9678 var _url = null; 10078 var _url = null;
9679 var _queryParams = new core.Map(); 10079 var _queryParams = new core.Map();
9680 var _uploadMedia = null; 10080 var _uploadMedia = null;
9681 var _uploadOptions = null; 10081 var _uploadOptions = null;
9682 var _downloadOptions = commons.DownloadOptions.Metadata; 10082 var _downloadOptions = commons.DownloadOptions.Metadata;
9683 var _body = null; 10083 var _body = null;
9684 10084
9685 if (profileId == null) { 10085 if (profileId == null) {
9686 throw new core.ArgumentError("Parameter profileId is required."); 10086 throw new core.ArgumentError("Parameter profileId is required.");
9687 } 10087 }
9688 if (accountUserRoleOnly != null) { 10088 if (acceptsInStreamVideoPlacements != null) {
9689 _queryParams["accountUserRoleOnly"] = ["${accountUserRoleOnly}"]; 10089 _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoP lacements}"];
10090 }
10091 if (acceptsInterstitialPlacements != null) {
10092 _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPla cements}"];
10093 }
10094 if (acceptsPublisherPaidPlacements != null) {
10095 _queryParams["acceptsPublisherPaidPlacements"] = ["${acceptsPublisherPaidP lacements}"];
10096 }
10097 if (adWordsSite != null) {
10098 _queryParams["adWordsSite"] = ["${adWordsSite}"];
10099 }
10100 if (approved != null) {
10101 _queryParams["approved"] = ["${approved}"];
10102 }
10103 if (campaignIds != null) {
10104 _queryParams["campaignIds"] = campaignIds;
10105 }
10106 if (directorySiteIds != null) {
10107 _queryParams["directorySiteIds"] = directorySiteIds;
9690 } 10108 }
9691 if (ids != null) { 10109 if (ids != null) {
9692 _queryParams["ids"] = ids; 10110 _queryParams["ids"] = ids;
9693 } 10111 }
9694 if (maxResults != null) { 10112 if (maxResults != null) {
9695 _queryParams["maxResults"] = ["${maxResults}"]; 10113 _queryParams["maxResults"] = ["${maxResults}"];
9696 } 10114 }
9697 if (pageToken != null) { 10115 if (pageToken != null) {
9698 _queryParams["pageToken"] = [pageToken]; 10116 _queryParams["pageToken"] = [pageToken];
9699 } 10117 }
9700 if (searchString != null) { 10118 if (searchString != null) {
9701 _queryParams["searchString"] = [searchString]; 10119 _queryParams["searchString"] = [searchString];
9702 } 10120 }
9703 if (sortField != null) { 10121 if (sortField != null) {
9704 _queryParams["sortField"] = [sortField]; 10122 _queryParams["sortField"] = [sortField];
9705 } 10123 }
9706 if (sortOrder != null) { 10124 if (sortOrder != null) {
9707 _queryParams["sortOrder"] = [sortOrder]; 10125 _queryParams["sortOrder"] = [sortOrder];
9708 } 10126 }
9709 if (subaccountId != null) { 10127 if (subaccountId != null) {
9710 _queryParams["subaccountId"] = [subaccountId]; 10128 _queryParams["subaccountId"] = [subaccountId];
9711 } 10129 }
10130 if (unmappedSite != null) {
10131 _queryParams["unmappedSite"] = ["${unmappedSite}"];
10132 }
9712 10133
9713 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles'; 10134 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es';
9714 10135
9715 var _response = _requester.request(_url, 10136 var _response = _requester.request(_url,
9716 "GET", 10137 "GET",
9717 body: _body, 10138 body: _body,
9718 queryParams: _queryParams, 10139 queryParams: _queryParams,
9719 uploadOptions: _uploadOptions, 10140 uploadOptions: _uploadOptions,
9720 uploadMedia: _uploadMedia, 10141 uploadMedia: _uploadMedia,
9721 downloadOptions: _downloadOptions); 10142 downloadOptions: _downloadOptions);
9722 return _response.then((data) => new UserRolesListResponse.fromJson(data)); 10143 return _response.then((data) => new SitesListResponse.fromJson(data));
9723 } 10144 }
9724 10145
9725 /** 10146 /**
9726 * Updates an existing user role. This method supports patch semantics. 10147 * Updates an existing site. This method supports patch semantics.
9727 * 10148 *
9728 * [request] - The metadata request object. 10149 * [request] - The metadata request object.
9729 * 10150 *
9730 * Request parameters: 10151 * Request parameters:
9731 * 10152 *
9732 * [profileId] - User profile ID associated with this request. 10153 * [profileId] - User profile ID associated with this request.
9733 * 10154 *
9734 * [id] - User role ID. 10155 * [id] - Site ID.
9735 * 10156 *
9736 * Completes with a [UserRole]. 10157 * Completes with a [Site].
9737 * 10158 *
9738 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 10159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9739 * error. 10160 * error.
9740 * 10161 *
9741 * If the used [http.Client] completes with an error when making a REST call, 10162 * If the used [http.Client] completes with an error when making a REST call,
9742 * this method will complete with the same error. 10163 * this method will complete with the same error.
9743 */ 10164 */
9744 async.Future<UserRole> patch(UserRole request, core.String profileId, core.Str ing id) { 10165 async.Future<Site> patch(Site request, core.String profileId, core.String id) {
9745 var _url = null; 10166 var _url = null;
9746 var _queryParams = new core.Map(); 10167 var _queryParams = new core.Map();
9747 var _uploadMedia = null; 10168 var _uploadMedia = null;
9748 var _uploadOptions = null; 10169 var _uploadOptions = null;
9749 var _downloadOptions = commons.DownloadOptions.Metadata; 10170 var _downloadOptions = commons.DownloadOptions.Metadata;
9750 var _body = null; 10171 var _body = null;
9751 10172
9752 if (request != null) { 10173 if (request != null) {
9753 _body = convert.JSON.encode((request).toJson()); 10174 _body = convert.JSON.encode((request).toJson());
9754 } 10175 }
9755 if (profileId == null) { 10176 if (profileId == null) {
9756 throw new core.ArgumentError("Parameter profileId is required."); 10177 throw new core.ArgumentError("Parameter profileId is required.");
9757 } 10178 }
9758 if (id == null) { 10179 if (id == null) {
9759 throw new core.ArgumentError("Parameter id is required."); 10180 throw new core.ArgumentError("Parameter id is required.");
9760 } 10181 }
9761 _queryParams["id"] = [id]; 10182 _queryParams["id"] = [id];
9762 10183
9763 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles'; 10184 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es';
9764 10185
9765 var _response = _requester.request(_url, 10186 var _response = _requester.request(_url,
9766 "PATCH", 10187 "PATCH",
9767 body: _body, 10188 body: _body,
9768 queryParams: _queryParams, 10189 queryParams: _queryParams,
9769 uploadOptions: _uploadOptions, 10190 uploadOptions: _uploadOptions,
9770 uploadMedia: _uploadMedia, 10191 uploadMedia: _uploadMedia,
9771 downloadOptions: _downloadOptions); 10192 downloadOptions: _downloadOptions);
9772 return _response.then((data) => new UserRole.fromJson(data)); 10193 return _response.then((data) => new Site.fromJson(data));
9773 } 10194 }
9774 10195
9775 /** 10196 /**
9776 * Updates an existing user role. 10197 * Updates an existing site.
9777 * 10198 *
9778 * [request] - The metadata request object. 10199 * [request] - The metadata request object.
9779 * 10200 *
9780 * Request parameters: 10201 * Request parameters:
9781 * 10202 *
9782 * [profileId] - User profile ID associated with this request. 10203 * [profileId] - User profile ID associated with this request.
9783 * 10204 *
9784 * Completes with a [UserRole]. 10205 * Completes with a [Site].
9785 * 10206 *
9786 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 10207 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9787 * error. 10208 * error.
9788 * 10209 *
9789 * If the used [http.Client] completes with an error when making a REST call, 10210 * If the used [http.Client] completes with an error when making a REST call,
9790 * this method will complete with the same error. 10211 * this method will complete with the same error.
9791 */ 10212 */
9792 async.Future<UserRole> update(UserRole request, core.String profileId) { 10213 async.Future<Site> update(Site request, core.String profileId) {
9793 var _url = null; 10214 var _url = null;
9794 var _queryParams = new core.Map(); 10215 var _queryParams = new core.Map();
9795 var _uploadMedia = null; 10216 var _uploadMedia = null;
9796 var _uploadOptions = null; 10217 var _uploadOptions = null;
9797 var _downloadOptions = commons.DownloadOptions.Metadata; 10218 var _downloadOptions = commons.DownloadOptions.Metadata;
9798 var _body = null; 10219 var _body = null;
9799 10220
9800 if (request != null) { 10221 if (request != null) {
9801 _body = convert.JSON.encode((request).toJson()); 10222 _body = convert.JSON.encode((request).toJson());
9802 } 10223 }
9803 if (profileId == null) { 10224 if (profileId == null) {
9804 throw new core.ArgumentError("Parameter profileId is required."); 10225 throw new core.ArgumentError("Parameter profileId is required.");
9805 } 10226 }
9806 10227
9807 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles'; 10228 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es';
9808 10229
9809 var _response = _requester.request(_url, 10230 var _response = _requester.request(_url,
9810 "PUT", 10231 "PUT",
9811 body: _body, 10232 body: _body,
9812 queryParams: _queryParams, 10233 queryParams: _queryParams,
9813 uploadOptions: _uploadOptions, 10234 uploadOptions: _uploadOptions,
9814 uploadMedia: _uploadMedia, 10235 uploadMedia: _uploadMedia,
9815 downloadOptions: _downloadOptions); 10236 downloadOptions: _downloadOptions);
10237 return _response.then((data) => new Site.fromJson(data));
10238 }
10239
10240 }
10241
10242
10243 class SizesResourceApi {
10244 final commons.ApiRequester _requester;
10245
10246 SizesResourceApi(commons.ApiRequester client) :
10247 _requester = client;
10248
10249 /**
10250 * Gets one size by ID.
10251 *
10252 * Request parameters:
10253 *
10254 * [profileId] - User profile ID associated with this request.
10255 *
10256 * [id] - Size ID.
10257 *
10258 * Completes with a [Size].
10259 *
10260 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10261 * error.
10262 *
10263 * If the used [http.Client] completes with an error when making a REST call,
10264 * this method will complete with the same error.
10265 */
10266 async.Future<Size> get(core.String profileId, core.String id) {
10267 var _url = null;
10268 var _queryParams = new core.Map();
10269 var _uploadMedia = null;
10270 var _uploadOptions = null;
10271 var _downloadOptions = commons.DownloadOptions.Metadata;
10272 var _body = null;
10273
10274 if (profileId == null) {
10275 throw new core.ArgumentError("Parameter profileId is required.");
10276 }
10277 if (id == null) {
10278 throw new core.ArgumentError("Parameter id is required.");
10279 }
10280
10281 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es/' + commons.Escaper.ecapeVariable('$id');
10282
10283 var _response = _requester.request(_url,
10284 "GET",
10285 body: _body,
10286 queryParams: _queryParams,
10287 uploadOptions: _uploadOptions,
10288 uploadMedia: _uploadMedia,
10289 downloadOptions: _downloadOptions);
10290 return _response.then((data) => new Size.fromJson(data));
10291 }
10292
10293 /**
10294 * Inserts a new size.
10295 *
10296 * [request] - The metadata request object.
10297 *
10298 * Request parameters:
10299 *
10300 * [profileId] - User profile ID associated with this request.
10301 *
10302 * Completes with a [Size].
10303 *
10304 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10305 * error.
10306 *
10307 * If the used [http.Client] completes with an error when making a REST call,
10308 * this method will complete with the same error.
10309 */
10310 async.Future<Size> insert(Size request, core.String profileId) {
10311 var _url = null;
10312 var _queryParams = new core.Map();
10313 var _uploadMedia = null;
10314 var _uploadOptions = null;
10315 var _downloadOptions = commons.DownloadOptions.Metadata;
10316 var _body = null;
10317
10318 if (request != null) {
10319 _body = convert.JSON.encode((request).toJson());
10320 }
10321 if (profileId == null) {
10322 throw new core.ArgumentError("Parameter profileId is required.");
10323 }
10324
10325 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es';
10326
10327 var _response = _requester.request(_url,
10328 "POST",
10329 body: _body,
10330 queryParams: _queryParams,
10331 uploadOptions: _uploadOptions,
10332 uploadMedia: _uploadMedia,
10333 downloadOptions: _downloadOptions);
10334 return _response.then((data) => new Size.fromJson(data));
10335 }
10336
10337 /**
10338 * Retrieves a list of sizes, possibly filtered.
10339 *
10340 * Request parameters:
10341 *
10342 * [profileId] - User profile ID associated with this request.
10343 *
10344 * [height] - Select only sizes with this height.
10345 *
10346 * [iabStandard] - Select only IAB standard sizes.
10347 *
10348 * [ids] - Select only sizes with these IDs.
10349 *
10350 * [width] - Select only sizes with this width.
10351 *
10352 * Completes with a [SizesListResponse].
10353 *
10354 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10355 * error.
10356 *
10357 * If the used [http.Client] completes with an error when making a REST call,
10358 * this method will complete with the same error.
10359 */
10360 async.Future<SizesListResponse> list(core.String profileId, {core.int height, core.bool iabStandard, core.List<core.String> ids, core.int width}) {
10361 var _url = null;
10362 var _queryParams = new core.Map();
10363 var _uploadMedia = null;
10364 var _uploadOptions = null;
10365 var _downloadOptions = commons.DownloadOptions.Metadata;
10366 var _body = null;
10367
10368 if (profileId == null) {
10369 throw new core.ArgumentError("Parameter profileId is required.");
10370 }
10371 if (height != null) {
10372 _queryParams["height"] = ["${height}"];
10373 }
10374 if (iabStandard != null) {
10375 _queryParams["iabStandard"] = ["${iabStandard}"];
10376 }
10377 if (ids != null) {
10378 _queryParams["ids"] = ids;
10379 }
10380 if (width != null) {
10381 _queryParams["width"] = ["${width}"];
10382 }
10383
10384 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es';
10385
10386 var _response = _requester.request(_url,
10387 "GET",
10388 body: _body,
10389 queryParams: _queryParams,
10390 uploadOptions: _uploadOptions,
10391 uploadMedia: _uploadMedia,
10392 downloadOptions: _downloadOptions);
10393 return _response.then((data) => new SizesListResponse.fromJson(data));
10394 }
10395
10396 }
10397
10398
10399 class SubaccountsResourceApi {
10400 final commons.ApiRequester _requester;
10401
10402 SubaccountsResourceApi(commons.ApiRequester client) :
10403 _requester = client;
10404
10405 /**
10406 * Gets one subaccount by ID.
10407 *
10408 * Request parameters:
10409 *
10410 * [profileId] - User profile ID associated with this request.
10411 *
10412 * [id] - Subaccount ID.
10413 *
10414 * Completes with a [Subaccount].
10415 *
10416 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10417 * error.
10418 *
10419 * If the used [http.Client] completes with an error when making a REST call,
10420 * this method will complete with the same error.
10421 */
10422 async.Future<Subaccount> get(core.String profileId, core.String id) {
10423 var _url = null;
10424 var _queryParams = new core.Map();
10425 var _uploadMedia = null;
10426 var _uploadOptions = null;
10427 var _downloadOptions = commons.DownloadOptions.Metadata;
10428 var _body = null;
10429
10430 if (profileId == null) {
10431 throw new core.ArgumentError("Parameter profileId is required.");
10432 }
10433 if (id == null) {
10434 throw new core.ArgumentError("Parameter id is required.");
10435 }
10436
10437 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts/' + commons.Escaper.ecapeVariable('$id');
10438
10439 var _response = _requester.request(_url,
10440 "GET",
10441 body: _body,
10442 queryParams: _queryParams,
10443 uploadOptions: _uploadOptions,
10444 uploadMedia: _uploadMedia,
10445 downloadOptions: _downloadOptions);
10446 return _response.then((data) => new Subaccount.fromJson(data));
10447 }
10448
10449 /**
10450 * Inserts a new subaccount.
10451 *
10452 * [request] - The metadata request object.
10453 *
10454 * Request parameters:
10455 *
10456 * [profileId] - User profile ID associated with this request.
10457 *
10458 * Completes with a [Subaccount].
10459 *
10460 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10461 * error.
10462 *
10463 * If the used [http.Client] completes with an error when making a REST call,
10464 * this method will complete with the same error.
10465 */
10466 async.Future<Subaccount> insert(Subaccount request, core.String profileId) {
10467 var _url = null;
10468 var _queryParams = new core.Map();
10469 var _uploadMedia = null;
10470 var _uploadOptions = null;
10471 var _downloadOptions = commons.DownloadOptions.Metadata;
10472 var _body = null;
10473
10474 if (request != null) {
10475 _body = convert.JSON.encode((request).toJson());
10476 }
10477 if (profileId == null) {
10478 throw new core.ArgumentError("Parameter profileId is required.");
10479 }
10480
10481 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts';
10482
10483 var _response = _requester.request(_url,
10484 "POST",
10485 body: _body,
10486 queryParams: _queryParams,
10487 uploadOptions: _uploadOptions,
10488 uploadMedia: _uploadMedia,
10489 downloadOptions: _downloadOptions);
10490 return _response.then((data) => new Subaccount.fromJson(data));
10491 }
10492
10493 /**
10494 * Gets a list of subaccounts, possibly filtered.
10495 *
10496 * Request parameters:
10497 *
10498 * [profileId] - User profile ID associated with this request.
10499 *
10500 * [ids] - Select only subaccounts with these IDs.
10501 *
10502 * [maxResults] - Maximum number of results to return.
10503 *
10504 * [pageToken] - Value of the nextPageToken from the previous result page.
10505 *
10506 * [searchString] - Allows searching for objects by name or ID. Wildcards (*)
10507 * are allowed. For example, "subaccount*2015" will return objects with names
10508 * like "subaccount June 2015", "subaccount April 2015", or simply "subaccount
10509 * 2015". Most of the searches also add wildcards implicitly at the start and
10510 * the end of the search string. For example, a search string of "subaccount"
10511 * will match objects with name "my subaccount", "subaccount 2015", or simply
10512 * "subaccount".
10513 *
10514 * [sortField] - Field by which to sort the list.
10515 * Possible string values are:
10516 * - "ID"
10517 * - "NAME"
10518 *
10519 * [sortOrder] - Order of sorted results, default is ASCENDING.
10520 * Possible string values are:
10521 * - "ASCENDING"
10522 * - "DESCENDING"
10523 *
10524 * Completes with a [SubaccountsListResponse].
10525 *
10526 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10527 * error.
10528 *
10529 * If the used [http.Client] completes with an error when making a REST call,
10530 * this method will complete with the same error.
10531 */
10532 async.Future<SubaccountsListResponse> list(core.String profileId, {core.List<c ore.String> ids, core.int maxResults, core.String pageToken, core.String searchS tring, core.String sortField, core.String sortOrder}) {
10533 var _url = null;
10534 var _queryParams = new core.Map();
10535 var _uploadMedia = null;
10536 var _uploadOptions = null;
10537 var _downloadOptions = commons.DownloadOptions.Metadata;
10538 var _body = null;
10539
10540 if (profileId == null) {
10541 throw new core.ArgumentError("Parameter profileId is required.");
10542 }
10543 if (ids != null) {
10544 _queryParams["ids"] = ids;
10545 }
10546 if (maxResults != null) {
10547 _queryParams["maxResults"] = ["${maxResults}"];
10548 }
10549 if (pageToken != null) {
10550 _queryParams["pageToken"] = [pageToken];
10551 }
10552 if (searchString != null) {
10553 _queryParams["searchString"] = [searchString];
10554 }
10555 if (sortField != null) {
10556 _queryParams["sortField"] = [sortField];
10557 }
10558 if (sortOrder != null) {
10559 _queryParams["sortOrder"] = [sortOrder];
10560 }
10561
10562 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts';
10563
10564 var _response = _requester.request(_url,
10565 "GET",
10566 body: _body,
10567 queryParams: _queryParams,
10568 uploadOptions: _uploadOptions,
10569 uploadMedia: _uploadMedia,
10570 downloadOptions: _downloadOptions);
10571 return _response.then((data) => new SubaccountsListResponse.fromJson(data));
10572 }
10573
10574 /**
10575 * Updates an existing subaccount. This method supports patch semantics.
10576 *
10577 * [request] - The metadata request object.
10578 *
10579 * Request parameters:
10580 *
10581 * [profileId] - User profile ID associated with this request.
10582 *
10583 * [id] - Subaccount ID.
10584 *
10585 * Completes with a [Subaccount].
10586 *
10587 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10588 * error.
10589 *
10590 * If the used [http.Client] completes with an error when making a REST call,
10591 * this method will complete with the same error.
10592 */
10593 async.Future<Subaccount> patch(Subaccount request, core.String profileId, core .String id) {
10594 var _url = null;
10595 var _queryParams = new core.Map();
10596 var _uploadMedia = null;
10597 var _uploadOptions = null;
10598 var _downloadOptions = commons.DownloadOptions.Metadata;
10599 var _body = null;
10600
10601 if (request != null) {
10602 _body = convert.JSON.encode((request).toJson());
10603 }
10604 if (profileId == null) {
10605 throw new core.ArgumentError("Parameter profileId is required.");
10606 }
10607 if (id == null) {
10608 throw new core.ArgumentError("Parameter id is required.");
10609 }
10610 _queryParams["id"] = [id];
10611
10612 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts';
10613
10614 var _response = _requester.request(_url,
10615 "PATCH",
10616 body: _body,
10617 queryParams: _queryParams,
10618 uploadOptions: _uploadOptions,
10619 uploadMedia: _uploadMedia,
10620 downloadOptions: _downloadOptions);
10621 return _response.then((data) => new Subaccount.fromJson(data));
10622 }
10623
10624 /**
10625 * Updates an existing subaccount.
10626 *
10627 * [request] - The metadata request object.
10628 *
10629 * Request parameters:
10630 *
10631 * [profileId] - User profile ID associated with this request.
10632 *
10633 * Completes with a [Subaccount].
10634 *
10635 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10636 * error.
10637 *
10638 * If the used [http.Client] completes with an error when making a REST call,
10639 * this method will complete with the same error.
10640 */
10641 async.Future<Subaccount> update(Subaccount request, core.String profileId) {
10642 var _url = null;
10643 var _queryParams = new core.Map();
10644 var _uploadMedia = null;
10645 var _uploadOptions = null;
10646 var _downloadOptions = commons.DownloadOptions.Metadata;
10647 var _body = null;
10648
10649 if (request != null) {
10650 _body = convert.JSON.encode((request).toJson());
10651 }
10652 if (profileId == null) {
10653 throw new core.ArgumentError("Parameter profileId is required.");
10654 }
10655
10656 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts';
10657
10658 var _response = _requester.request(_url,
10659 "PUT",
10660 body: _body,
10661 queryParams: _queryParams,
10662 uploadOptions: _uploadOptions,
10663 uploadMedia: _uploadMedia,
10664 downloadOptions: _downloadOptions);
10665 return _response.then((data) => new Subaccount.fromJson(data));
10666 }
10667
10668 }
10669
10670
10671 class TargetableRemarketingListsResourceApi {
10672 final commons.ApiRequester _requester;
10673
10674 TargetableRemarketingListsResourceApi(commons.ApiRequester client) :
10675 _requester = client;
10676
10677 /**
10678 * Gets one remarketing list by ID.
10679 *
10680 * Request parameters:
10681 *
10682 * [profileId] - User profile ID associated with this request.
10683 *
10684 * [id] - Remarketing list ID.
10685 *
10686 * Completes with a [TargetableRemarketingList].
10687 *
10688 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10689 * error.
10690 *
10691 * If the used [http.Client] completes with an error when making a REST call,
10692 * this method will complete with the same error.
10693 */
10694 async.Future<TargetableRemarketingList> get(core.String profileId, core.String id) {
10695 var _url = null;
10696 var _queryParams = new core.Map();
10697 var _uploadMedia = null;
10698 var _uploadOptions = null;
10699 var _downloadOptions = commons.DownloadOptions.Metadata;
10700 var _body = null;
10701
10702 if (profileId == null) {
10703 throw new core.ArgumentError("Parameter profileId is required.");
10704 }
10705 if (id == null) {
10706 throw new core.ArgumentError("Parameter id is required.");
10707 }
10708
10709 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/tar getableRemarketingLists/' + commons.Escaper.ecapeVariable('$id');
10710
10711 var _response = _requester.request(_url,
10712 "GET",
10713 body: _body,
10714 queryParams: _queryParams,
10715 uploadOptions: _uploadOptions,
10716 uploadMedia: _uploadMedia,
10717 downloadOptions: _downloadOptions);
10718 return _response.then((data) => new TargetableRemarketingList.fromJson(data) );
10719 }
10720
10721 /**
10722 * Retrieves a list of targetable remarketing lists, possibly filtered.
10723 *
10724 * Request parameters:
10725 *
10726 * [profileId] - User profile ID associated with this request.
10727 *
10728 * [advertiserId] - Select only targetable remarketing lists targetable by
10729 * these advertisers.
10730 *
10731 * [active] - Select only active or only inactive targetable remarketing
10732 * lists.
10733 *
10734 * [maxResults] - Maximum number of results to return.
10735 *
10736 * [name] - Allows searching for objects by name or ID. Wildcards (*) are
10737 * allowed. For example, "remarketing list*2015" will return objects with
10738 * names like "remarketing list June 2015", "remarketing list April 2015", or
10739 * simply "remarketing list 2015". Most of the searches also add wildcards
10740 * implicitly at the start and the end of the search string. For example, a
10741 * search string of "remarketing list" will match objects with name "my
10742 * remarketing list", "remarketing list 2015", or simply "remarketing list".
10743 *
10744 * [pageToken] - Value of the nextPageToken from the previous result page.
10745 *
10746 * [sortField] - Field by which to sort the list.
10747 * Possible string values are:
10748 * - "ID"
10749 * - "NAME"
10750 *
10751 * [sortOrder] - Order of sorted results, default is ASCENDING.
10752 * Possible string values are:
10753 * - "ASCENDING"
10754 * - "DESCENDING"
10755 *
10756 * Completes with a [TargetableRemarketingListsListResponse].
10757 *
10758 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10759 * error.
10760 *
10761 * If the used [http.Client] completes with an error when making a REST call,
10762 * this method will complete with the same error.
10763 */
10764 async.Future<TargetableRemarketingListsListResponse> list(core.String profileI d, core.String advertiserId, {core.bool active, core.int maxResults, core.String name, core.String pageToken, core.String sortField, core.String sortOrder}) {
10765 var _url = null;
10766 var _queryParams = new core.Map();
10767 var _uploadMedia = null;
10768 var _uploadOptions = null;
10769 var _downloadOptions = commons.DownloadOptions.Metadata;
10770 var _body = null;
10771
10772 if (profileId == null) {
10773 throw new core.ArgumentError("Parameter profileId is required.");
10774 }
10775 if (advertiserId == null) {
10776 throw new core.ArgumentError("Parameter advertiserId is required.");
10777 }
10778 _queryParams["advertiserId"] = [advertiserId];
10779 if (active != null) {
10780 _queryParams["active"] = ["${active}"];
10781 }
10782 if (maxResults != null) {
10783 _queryParams["maxResults"] = ["${maxResults}"];
10784 }
10785 if (name != null) {
10786 _queryParams["name"] = [name];
10787 }
10788 if (pageToken != null) {
10789 _queryParams["pageToken"] = [pageToken];
10790 }
10791 if (sortField != null) {
10792 _queryParams["sortField"] = [sortField];
10793 }
10794 if (sortOrder != null) {
10795 _queryParams["sortOrder"] = [sortOrder];
10796 }
10797
10798 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/tar getableRemarketingLists';
10799
10800 var _response = _requester.request(_url,
10801 "GET",
10802 body: _body,
10803 queryParams: _queryParams,
10804 uploadOptions: _uploadOptions,
10805 uploadMedia: _uploadMedia,
10806 downloadOptions: _downloadOptions);
10807 return _response.then((data) => new TargetableRemarketingListsListResponse.f romJson(data));
10808 }
10809
10810 }
10811
10812
10813 class UserProfilesResourceApi {
10814 final commons.ApiRequester _requester;
10815
10816 UserProfilesResourceApi(commons.ApiRequester client) :
10817 _requester = client;
10818
10819 /**
10820 * Gets one user profile by ID.
10821 *
10822 * Request parameters:
10823 *
10824 * [profileId] - The user profile ID.
10825 *
10826 * Completes with a [UserProfile].
10827 *
10828 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10829 * error.
10830 *
10831 * If the used [http.Client] completes with an error when making a REST call,
10832 * this method will complete with the same error.
10833 */
10834 async.Future<UserProfile> get(core.String profileId) {
10835 var _url = null;
10836 var _queryParams = new core.Map();
10837 var _uploadMedia = null;
10838 var _uploadOptions = null;
10839 var _downloadOptions = commons.DownloadOptions.Metadata;
10840 var _body = null;
10841
10842 if (profileId == null) {
10843 throw new core.ArgumentError("Parameter profileId is required.");
10844 }
10845
10846 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId');
10847
10848 var _response = _requester.request(_url,
10849 "GET",
10850 body: _body,
10851 queryParams: _queryParams,
10852 uploadOptions: _uploadOptions,
10853 uploadMedia: _uploadMedia,
10854 downloadOptions: _downloadOptions);
10855 return _response.then((data) => new UserProfile.fromJson(data));
10856 }
10857
10858 /**
10859 * Retrieves list of user profiles for a user.
10860 *
10861 * Request parameters:
10862 *
10863 * Completes with a [UserProfileList].
10864 *
10865 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10866 * error.
10867 *
10868 * If the used [http.Client] completes with an error when making a REST call,
10869 * this method will complete with the same error.
10870 */
10871 async.Future<UserProfileList> list() {
10872 var _url = null;
10873 var _queryParams = new core.Map();
10874 var _uploadMedia = null;
10875 var _uploadOptions = null;
10876 var _downloadOptions = commons.DownloadOptions.Metadata;
10877 var _body = null;
10878
10879
10880 _url = 'userprofiles';
10881
10882 var _response = _requester.request(_url,
10883 "GET",
10884 body: _body,
10885 queryParams: _queryParams,
10886 uploadOptions: _uploadOptions,
10887 uploadMedia: _uploadMedia,
10888 downloadOptions: _downloadOptions);
10889 return _response.then((data) => new UserProfileList.fromJson(data));
10890 }
10891
10892 }
10893
10894
10895 class UserRolePermissionGroupsResourceApi {
10896 final commons.ApiRequester _requester;
10897
10898 UserRolePermissionGroupsResourceApi(commons.ApiRequester client) :
10899 _requester = client;
10900
10901 /**
10902 * Gets one user role permission group by ID.
10903 *
10904 * Request parameters:
10905 *
10906 * [profileId] - User profile ID associated with this request.
10907 *
10908 * [id] - User role permission group ID.
10909 *
10910 * Completes with a [UserRolePermissionGroup].
10911 *
10912 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10913 * error.
10914 *
10915 * If the used [http.Client] completes with an error when making a REST call,
10916 * this method will complete with the same error.
10917 */
10918 async.Future<UserRolePermissionGroup> get(core.String profileId, core.String i d) {
10919 var _url = null;
10920 var _queryParams = new core.Map();
10921 var _uploadMedia = null;
10922 var _uploadOptions = null;
10923 var _downloadOptions = commons.DownloadOptions.Metadata;
10924 var _body = null;
10925
10926 if (profileId == null) {
10927 throw new core.ArgumentError("Parameter profileId is required.");
10928 }
10929 if (id == null) {
10930 throw new core.ArgumentError("Parameter id is required.");
10931 }
10932
10933 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissionGroups/' + commons.Escaper.ecapeVariable('$id');
10934
10935 var _response = _requester.request(_url,
10936 "GET",
10937 body: _body,
10938 queryParams: _queryParams,
10939 uploadOptions: _uploadOptions,
10940 uploadMedia: _uploadMedia,
10941 downloadOptions: _downloadOptions);
10942 return _response.then((data) => new UserRolePermissionGroup.fromJson(data));
10943 }
10944
10945 /**
10946 * Gets a list of all supported user role permission groups.
10947 *
10948 * Request parameters:
10949 *
10950 * [profileId] - User profile ID associated with this request.
10951 *
10952 * Completes with a [UserRolePermissionGroupsListResponse].
10953 *
10954 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10955 * error.
10956 *
10957 * If the used [http.Client] completes with an error when making a REST call,
10958 * this method will complete with the same error.
10959 */
10960 async.Future<UserRolePermissionGroupsListResponse> list(core.String profileId) {
10961 var _url = null;
10962 var _queryParams = new core.Map();
10963 var _uploadMedia = null;
10964 var _uploadOptions = null;
10965 var _downloadOptions = commons.DownloadOptions.Metadata;
10966 var _body = null;
10967
10968 if (profileId == null) {
10969 throw new core.ArgumentError("Parameter profileId is required.");
10970 }
10971
10972 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissionGroups';
10973
10974 var _response = _requester.request(_url,
10975 "GET",
10976 body: _body,
10977 queryParams: _queryParams,
10978 uploadOptions: _uploadOptions,
10979 uploadMedia: _uploadMedia,
10980 downloadOptions: _downloadOptions);
10981 return _response.then((data) => new UserRolePermissionGroupsListResponse.fro mJson(data));
10982 }
10983
10984 }
10985
10986
10987 class UserRolePermissionsResourceApi {
10988 final commons.ApiRequester _requester;
10989
10990 UserRolePermissionsResourceApi(commons.ApiRequester client) :
10991 _requester = client;
10992
10993 /**
10994 * Gets one user role permission by ID.
10995 *
10996 * Request parameters:
10997 *
10998 * [profileId] - User profile ID associated with this request.
10999 *
11000 * [id] - User role permission ID.
11001 *
11002 * Completes with a [UserRolePermission].
11003 *
11004 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11005 * error.
11006 *
11007 * If the used [http.Client] completes with an error when making a REST call,
11008 * this method will complete with the same error.
11009 */
11010 async.Future<UserRolePermission> get(core.String profileId, core.String id) {
11011 var _url = null;
11012 var _queryParams = new core.Map();
11013 var _uploadMedia = null;
11014 var _uploadOptions = null;
11015 var _downloadOptions = commons.DownloadOptions.Metadata;
11016 var _body = null;
11017
11018 if (profileId == null) {
11019 throw new core.ArgumentError("Parameter profileId is required.");
11020 }
11021 if (id == null) {
11022 throw new core.ArgumentError("Parameter id is required.");
11023 }
11024
11025 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissions/' + commons.Escaper.ecapeVariable('$id');
11026
11027 var _response = _requester.request(_url,
11028 "GET",
11029 body: _body,
11030 queryParams: _queryParams,
11031 uploadOptions: _uploadOptions,
11032 uploadMedia: _uploadMedia,
11033 downloadOptions: _downloadOptions);
11034 return _response.then((data) => new UserRolePermission.fromJson(data));
11035 }
11036
11037 /**
11038 * Gets a list of user role permissions, possibly filtered.
11039 *
11040 * Request parameters:
11041 *
11042 * [profileId] - User profile ID associated with this request.
11043 *
11044 * [ids] - Select only user role permissions with these IDs.
11045 *
11046 * Completes with a [UserRolePermissionsListResponse].
11047 *
11048 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11049 * error.
11050 *
11051 * If the used [http.Client] completes with an error when making a REST call,
11052 * this method will complete with the same error.
11053 */
11054 async.Future<UserRolePermissionsListResponse> list(core.String profileId, {cor e.List<core.String> ids}) {
11055 var _url = null;
11056 var _queryParams = new core.Map();
11057 var _uploadMedia = null;
11058 var _uploadOptions = null;
11059 var _downloadOptions = commons.DownloadOptions.Metadata;
11060 var _body = null;
11061
11062 if (profileId == null) {
11063 throw new core.ArgumentError("Parameter profileId is required.");
11064 }
11065 if (ids != null) {
11066 _queryParams["ids"] = ids;
11067 }
11068
11069 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissions';
11070
11071 var _response = _requester.request(_url,
11072 "GET",
11073 body: _body,
11074 queryParams: _queryParams,
11075 uploadOptions: _uploadOptions,
11076 uploadMedia: _uploadMedia,
11077 downloadOptions: _downloadOptions);
11078 return _response.then((data) => new UserRolePermissionsListResponse.fromJson (data));
11079 }
11080
11081 }
11082
11083
11084 class UserRolesResourceApi {
11085 final commons.ApiRequester _requester;
11086
11087 UserRolesResourceApi(commons.ApiRequester client) :
11088 _requester = client;
11089
11090 /**
11091 * Deletes an existing user role.
11092 *
11093 * Request parameters:
11094 *
11095 * [profileId] - User profile ID associated with this request.
11096 *
11097 * [id] - User role ID.
11098 *
11099 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11100 * error.
11101 *
11102 * If the used [http.Client] completes with an error when making a REST call,
11103 * this method will complete with the same error.
11104 */
11105 async.Future delete(core.String profileId, core.String id) {
11106 var _url = null;
11107 var _queryParams = new core.Map();
11108 var _uploadMedia = null;
11109 var _uploadOptions = null;
11110 var _downloadOptions = commons.DownloadOptions.Metadata;
11111 var _body = null;
11112
11113 if (profileId == null) {
11114 throw new core.ArgumentError("Parameter profileId is required.");
11115 }
11116 if (id == null) {
11117 throw new core.ArgumentError("Parameter id is required.");
11118 }
11119
11120 _downloadOptions = null;
11121
11122 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles/' + commons.Escaper.ecapeVariable('$id');
11123
11124 var _response = _requester.request(_url,
11125 "DELETE",
11126 body: _body,
11127 queryParams: _queryParams,
11128 uploadOptions: _uploadOptions,
11129 uploadMedia: _uploadMedia,
11130 downloadOptions: _downloadOptions);
11131 return _response.then((data) => null);
11132 }
11133
11134 /**
11135 * Gets one user role by ID.
11136 *
11137 * Request parameters:
11138 *
11139 * [profileId] - User profile ID associated with this request.
11140 *
11141 * [id] - User role ID.
11142 *
11143 * Completes with a [UserRole].
11144 *
11145 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11146 * error.
11147 *
11148 * If the used [http.Client] completes with an error when making a REST call,
11149 * this method will complete with the same error.
11150 */
11151 async.Future<UserRole> get(core.String profileId, core.String id) {
11152 var _url = null;
11153 var _queryParams = new core.Map();
11154 var _uploadMedia = null;
11155 var _uploadOptions = null;
11156 var _downloadOptions = commons.DownloadOptions.Metadata;
11157 var _body = null;
11158
11159 if (profileId == null) {
11160 throw new core.ArgumentError("Parameter profileId is required.");
11161 }
11162 if (id == null) {
11163 throw new core.ArgumentError("Parameter id is required.");
11164 }
11165
11166 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles/' + commons.Escaper.ecapeVariable('$id');
11167
11168 var _response = _requester.request(_url,
11169 "GET",
11170 body: _body,
11171 queryParams: _queryParams,
11172 uploadOptions: _uploadOptions,
11173 uploadMedia: _uploadMedia,
11174 downloadOptions: _downloadOptions);
11175 return _response.then((data) => new UserRole.fromJson(data));
11176 }
11177
11178 /**
11179 * Inserts a new user role.
11180 *
11181 * [request] - The metadata request object.
11182 *
11183 * Request parameters:
11184 *
11185 * [profileId] - User profile ID associated with this request.
11186 *
11187 * Completes with a [UserRole].
11188 *
11189 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11190 * error.
11191 *
11192 * If the used [http.Client] completes with an error when making a REST call,
11193 * this method will complete with the same error.
11194 */
11195 async.Future<UserRole> insert(UserRole request, core.String profileId) {
11196 var _url = null;
11197 var _queryParams = new core.Map();
11198 var _uploadMedia = null;
11199 var _uploadOptions = null;
11200 var _downloadOptions = commons.DownloadOptions.Metadata;
11201 var _body = null;
11202
11203 if (request != null) {
11204 _body = convert.JSON.encode((request).toJson());
11205 }
11206 if (profileId == null) {
11207 throw new core.ArgumentError("Parameter profileId is required.");
11208 }
11209
11210 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles';
11211
11212 var _response = _requester.request(_url,
11213 "POST",
11214 body: _body,
11215 queryParams: _queryParams,
11216 uploadOptions: _uploadOptions,
11217 uploadMedia: _uploadMedia,
11218 downloadOptions: _downloadOptions);
11219 return _response.then((data) => new UserRole.fromJson(data));
11220 }
11221
11222 /**
11223 * Retrieves a list of user roles, possibly filtered.
11224 *
11225 * Request parameters:
11226 *
11227 * [profileId] - User profile ID associated with this request.
11228 *
11229 * [accountUserRoleOnly] - Select only account level user roles not associated
11230 * with any specific subaccount.
11231 *
11232 * [ids] - Select only user roles with the specified IDs.
11233 *
11234 * [maxResults] - Maximum number of results to return.
11235 *
11236 * [pageToken] - Value of the nextPageToken from the previous result page.
11237 *
11238 * [searchString] - Allows searching for objects by name or ID. Wildcards (*)
11239 * are allowed. For example, "userrole*2015" will return objects with names
11240 * like "userrole June 2015", "userrole April 2015", or simply "userrole
11241 * 2015". Most of the searches also add wildcards implicitly at the start and
11242 * the end of the search string. For example, a search string of "userrole"
11243 * will match objects with name "my userrole", "userrole 2015", or simply
11244 * "userrole".
11245 *
11246 * [sortField] - Field by which to sort the list.
11247 * Possible string values are:
11248 * - "ID"
11249 * - "NAME"
11250 *
11251 * [sortOrder] - Order of sorted results, default is ASCENDING.
11252 * Possible string values are:
11253 * - "ASCENDING"
11254 * - "DESCENDING"
11255 *
11256 * [subaccountId] - Select only user roles that belong to this subaccount.
11257 *
11258 * Completes with a [UserRolesListResponse].
11259 *
11260 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11261 * error.
11262 *
11263 * If the used [http.Client] completes with an error when making a REST call,
11264 * this method will complete with the same error.
11265 */
11266 async.Future<UserRolesListResponse> list(core.String profileId, {core.bool acc ountUserRoleOnly, core.List<core.String> ids, core.int maxResults, core.String p ageToken, core.String searchString, core.String sortField, core.String sortOrder , core.String subaccountId}) {
11267 var _url = null;
11268 var _queryParams = new core.Map();
11269 var _uploadMedia = null;
11270 var _uploadOptions = null;
11271 var _downloadOptions = commons.DownloadOptions.Metadata;
11272 var _body = null;
11273
11274 if (profileId == null) {
11275 throw new core.ArgumentError("Parameter profileId is required.");
11276 }
11277 if (accountUserRoleOnly != null) {
11278 _queryParams["accountUserRoleOnly"] = ["${accountUserRoleOnly}"];
11279 }
11280 if (ids != null) {
11281 _queryParams["ids"] = ids;
11282 }
11283 if (maxResults != null) {
11284 _queryParams["maxResults"] = ["${maxResults}"];
11285 }
11286 if (pageToken != null) {
11287 _queryParams["pageToken"] = [pageToken];
11288 }
11289 if (searchString != null) {
11290 _queryParams["searchString"] = [searchString];
11291 }
11292 if (sortField != null) {
11293 _queryParams["sortField"] = [sortField];
11294 }
11295 if (sortOrder != null) {
11296 _queryParams["sortOrder"] = [sortOrder];
11297 }
11298 if (subaccountId != null) {
11299 _queryParams["subaccountId"] = [subaccountId];
11300 }
11301
11302 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles';
11303
11304 var _response = _requester.request(_url,
11305 "GET",
11306 body: _body,
11307 queryParams: _queryParams,
11308 uploadOptions: _uploadOptions,
11309 uploadMedia: _uploadMedia,
11310 downloadOptions: _downloadOptions);
11311 return _response.then((data) => new UserRolesListResponse.fromJson(data));
11312 }
11313
11314 /**
11315 * Updates an existing user role. This method supports patch semantics.
11316 *
11317 * [request] - The metadata request object.
11318 *
11319 * Request parameters:
11320 *
11321 * [profileId] - User profile ID associated with this request.
11322 *
11323 * [id] - User role ID.
11324 *
11325 * Completes with a [UserRole].
11326 *
11327 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11328 * error.
11329 *
11330 * If the used [http.Client] completes with an error when making a REST call,
11331 * this method will complete with the same error.
11332 */
11333 async.Future<UserRole> patch(UserRole request, core.String profileId, core.Str ing id) {
11334 var _url = null;
11335 var _queryParams = new core.Map();
11336 var _uploadMedia = null;
11337 var _uploadOptions = null;
11338 var _downloadOptions = commons.DownloadOptions.Metadata;
11339 var _body = null;
11340
11341 if (request != null) {
11342 _body = convert.JSON.encode((request).toJson());
11343 }
11344 if (profileId == null) {
11345 throw new core.ArgumentError("Parameter profileId is required.");
11346 }
11347 if (id == null) {
11348 throw new core.ArgumentError("Parameter id is required.");
11349 }
11350 _queryParams["id"] = [id];
11351
11352 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles';
11353
11354 var _response = _requester.request(_url,
11355 "PATCH",
11356 body: _body,
11357 queryParams: _queryParams,
11358 uploadOptions: _uploadOptions,
11359 uploadMedia: _uploadMedia,
11360 downloadOptions: _downloadOptions);
11361 return _response.then((data) => new UserRole.fromJson(data));
11362 }
11363
11364 /**
11365 * Updates an existing user role.
11366 *
11367 * [request] - The metadata request object.
11368 *
11369 * Request parameters:
11370 *
11371 * [profileId] - User profile ID associated with this request.
11372 *
11373 * Completes with a [UserRole].
11374 *
11375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11376 * error.
11377 *
11378 * If the used [http.Client] completes with an error when making a REST call,
11379 * this method will complete with the same error.
11380 */
11381 async.Future<UserRole> update(UserRole request, core.String profileId) {
11382 var _url = null;
11383 var _queryParams = new core.Map();
11384 var _uploadMedia = null;
11385 var _uploadOptions = null;
11386 var _downloadOptions = commons.DownloadOptions.Metadata;
11387 var _body = null;
11388
11389 if (request != null) {
11390 _body = convert.JSON.encode((request).toJson());
11391 }
11392 if (profileId == null) {
11393 throw new core.ArgumentError("Parameter profileId is required.");
11394 }
11395
11396 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles';
11397
11398 var _response = _requester.request(_url,
11399 "PUT",
11400 body: _body,
11401 queryParams: _queryParams,
11402 uploadOptions: _uploadOptions,
11403 uploadMedia: _uploadMedia,
11404 downloadOptions: _downloadOptions);
9816 return _response.then((data) => new UserRole.fromJson(data)); 11405 return _response.then((data) => new UserRole.fromJson(data));
9817 } 11406 }
9818 11407
9819 } 11408 }
9820 11409
9821 11410
9822 11411
9823 /** Contains properties of a DCM account. */ 11412 /** Contains properties of a DCM account. */
9824 class Account { 11413 class Account {
9825 /** Account permissions assigned to this account. */ 11414 /** Account permissions assigned to this account. */
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
10911 } 12500 }
10912 if (_json.containsKey("lastModifiedInfo")) { 12501 if (_json.containsKey("lastModifiedInfo")) {
10913 lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"] ); 12502 lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"] );
10914 } 12503 }
10915 if (_json.containsKey("name")) { 12504 if (_json.containsKey("name")) {
10916 name = _json["name"]; 12505 name = _json["name"];
10917 } 12506 }
10918 if (_json.containsKey("placementAssignments")) { 12507 if (_json.containsKey("placementAssignments")) {
10919 placementAssignments = _json["placementAssignments"].map((value) => new Pl acementAssignment.fromJson(value)).toList(); 12508 placementAssignments = _json["placementAssignments"].map((value) => new Pl acementAssignment.fromJson(value)).toList();
10920 } 12509 }
10921 if (_json.containsKey("remarketing_list_expression")) { 12510 if (_json.containsKey("remarketingListExpression")) {
10922 remarketingListExpression = new ListTargetingExpression.fromJson(_json["re marketing_list_expression"]); 12511 remarketingListExpression = new ListTargetingExpression.fromJson(_json["re marketingListExpression"]);
10923 } 12512 }
10924 if (_json.containsKey("size")) { 12513 if (_json.containsKey("size")) {
10925 size = new Size.fromJson(_json["size"]); 12514 size = new Size.fromJson(_json["size"]);
10926 } 12515 }
10927 if (_json.containsKey("sslCompliant")) { 12516 if (_json.containsKey("sslCompliant")) {
10928 sslCompliant = _json["sslCompliant"]; 12517 sslCompliant = _json["sslCompliant"];
10929 } 12518 }
10930 if (_json.containsKey("sslRequired")) { 12519 if (_json.containsKey("sslRequired")) {
10931 sslRequired = _json["sslRequired"]; 12520 sslRequired = _json["sslRequired"];
10932 } 12521 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
11027 if (lastModifiedInfo != null) { 12616 if (lastModifiedInfo != null) {
11028 _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); 12617 _json["lastModifiedInfo"] = (lastModifiedInfo).toJson();
11029 } 12618 }
11030 if (name != null) { 12619 if (name != null) {
11031 _json["name"] = name; 12620 _json["name"] = name;
11032 } 12621 }
11033 if (placementAssignments != null) { 12622 if (placementAssignments != null) {
11034 _json["placementAssignments"] = placementAssignments.map((value) => (value ).toJson()).toList(); 12623 _json["placementAssignments"] = placementAssignments.map((value) => (value ).toJson()).toList();
11035 } 12624 }
11036 if (remarketingListExpression != null) { 12625 if (remarketingListExpression != null) {
11037 _json["remarketing_list_expression"] = (remarketingListExpression).toJson( ); 12626 _json["remarketingListExpression"] = (remarketingListExpression).toJson();
11038 } 12627 }
11039 if (size != null) { 12628 if (size != null) {
11040 _json["size"] = (size).toJson(); 12629 _json["size"] = (size).toJson();
11041 } 12630 }
11042 if (sslCompliant != null) { 12631 if (sslCompliant != null) {
11043 _json["sslCompliant"] = sslCompliant; 12632 _json["sslCompliant"] = sslCompliant;
11044 } 12633 }
11045 if (sslRequired != null) { 12634 if (sslRequired != null) {
11046 _json["sslRequired"] = sslRequired; 12635 _json["sslRequired"] = sslRequired;
11047 } 12636 }
11048 if (startTime != null) { 12637 if (startTime != null) {
11049 _json["startTime"] = (startTime).toIso8601String(); 12638 _json["startTime"] = (startTime).toIso8601String();
11050 } 12639 }
11051 if (subaccountId != null) { 12640 if (subaccountId != null) {
11052 _json["subaccountId"] = subaccountId; 12641 _json["subaccountId"] = subaccountId;
11053 } 12642 }
11054 if (technologyTargeting != null) { 12643 if (technologyTargeting != null) {
11055 _json["technologyTargeting"] = (technologyTargeting).toJson(); 12644 _json["technologyTargeting"] = (technologyTargeting).toJson();
11056 } 12645 }
11057 if (type != null) { 12646 if (type != null) {
11058 _json["type"] = type; 12647 _json["type"] = type;
11059 } 12648 }
11060 return _json; 12649 return _json;
11061 } 12650 }
11062 } 12651 }
11063 12652
12653 /** Ad Slot */
12654 class AdSlot {
12655 /** Comment for this ad slot. */
12656 core.String comment;
12657 /**
12658 * Ad slot compatibility. WEB and WEB_INTERSTITIAL refer to rendering either
12659 * on desktop or on mobile devices for regular or interstitial ads
12660 * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps.
12661 * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with
12662 * the VAST standard.
12663 * Possible string values are:
12664 * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_APP"
12665 * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_APP_INTERSTITIAL"
12666 * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_IN_STREAM_VIDEO"
12667 * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_WEB"
12668 * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_WEB_INTERSTITIAL"
12669 */
12670 core.String compatibility;
12671 /** Height of this ad slot. */
12672 core.String height;
12673 /**
12674 * ID of the placement from an external platform that is linked to this ad
12675 * slot.
12676 */
12677 core.String linkedPlacementId;
12678 /** Name of this ad slot. */
12679 core.String name;
12680 /**
12681 * Payment source type of this ad slot.
12682 * Possible string values are:
12683 * - "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID"
12684 * - "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID"
12685 */
12686 core.String paymentSourceType;
12687 /** Primary ad slot of a roadblock inventory item. */
12688 core.bool primary;
12689 /** Width of this ad slot. */
12690 core.String width;
12691
12692 AdSlot();
12693
12694 AdSlot.fromJson(core.Map _json) {
12695 if (_json.containsKey("comment")) {
12696 comment = _json["comment"];
12697 }
12698 if (_json.containsKey("compatibility")) {
12699 compatibility = _json["compatibility"];
12700 }
12701 if (_json.containsKey("height")) {
12702 height = _json["height"];
12703 }
12704 if (_json.containsKey("linkedPlacementId")) {
12705 linkedPlacementId = _json["linkedPlacementId"];
12706 }
12707 if (_json.containsKey("name")) {
12708 name = _json["name"];
12709 }
12710 if (_json.containsKey("paymentSourceType")) {
12711 paymentSourceType = _json["paymentSourceType"];
12712 }
12713 if (_json.containsKey("primary")) {
12714 primary = _json["primary"];
12715 }
12716 if (_json.containsKey("width")) {
12717 width = _json["width"];
12718 }
12719 }
12720
12721 core.Map toJson() {
12722 var _json = new core.Map();
12723 if (comment != null) {
12724 _json["comment"] = comment;
12725 }
12726 if (compatibility != null) {
12727 _json["compatibility"] = compatibility;
12728 }
12729 if (height != null) {
12730 _json["height"] = height;
12731 }
12732 if (linkedPlacementId != null) {
12733 _json["linkedPlacementId"] = linkedPlacementId;
12734 }
12735 if (name != null) {
12736 _json["name"] = name;
12737 }
12738 if (paymentSourceType != null) {
12739 _json["paymentSourceType"] = paymentSourceType;
12740 }
12741 if (primary != null) {
12742 _json["primary"] = primary;
12743 }
12744 if (width != null) {
12745 _json["width"] = width;
12746 }
12747 return _json;
12748 }
12749 }
12750
11064 /** Ad List Response */ 12751 /** Ad List Response */
11065 class AdsListResponse { 12752 class AdsListResponse {
11066 /** Ad collection. */ 12753 /** Ad collection. */
11067 core.List<Ad> ads; 12754 core.List<Ad> ads;
11068 /** 12755 /**
11069 * Identifies what kind of resource this is. Value: the fixed string 12756 * Identifies what kind of resource this is. Value: the fixed string
11070 * "dfareporting#adsListResponse". 12757 * "dfareporting#adsListResponse".
11071 */ 12758 */
11072 core.String kind; 12759 core.String kind;
11073 /** Pagination token to be used for the next list operation. */ 12760 /** Pagination token to be used for the next list operation. */
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
11155 * Identifies what kind of resource this is. Value: the fixed string 12842 * Identifies what kind of resource this is. Value: the fixed string
11156 * "dfareporting#advertiser". 12843 * "dfareporting#advertiser".
11157 */ 12844 */
11158 core.String kind; 12845 core.String kind;
11159 /** 12846 /**
11160 * Name of this advertiser. This is a required field and must be less than 256 12847 * Name of this advertiser. This is a required field and must be less than 256
11161 * characters long and unique among advertisers of the same account. 12848 * characters long and unique among advertisers of the same account.
11162 */ 12849 */
11163 core.String name; 12850 core.String name;
11164 /** 12851 /**
12852 * Original floodlight configuration before any sharing occurred. Set the
12853 * floodlightConfigurationId of this advertiser to
12854 * originalFloodlightConfigurationId to unshare the advertiser's current
12855 * floodlight configuration. You cannot unshare an advertiser's floodlight
12856 * configuration if the shared configuration has activities associated with
12857 * any campaign or placement.
12858 */
12859 core.String originalFloodlightConfigurationId;
12860 /**
11165 * Status of this advertiser. 12861 * Status of this advertiser.
11166 * Possible string values are: 12862 * Possible string values are:
11167 * - "APPROVED" 12863 * - "APPROVED"
11168 * - "ON_HOLD" 12864 * - "ON_HOLD"
11169 */ 12865 */
11170 core.String status; 12866 core.String status;
11171 /** 12867 /**
11172 * Subaccount ID of this advertiser.This is a read-only field that can be left 12868 * Subaccount ID of this advertiser.This is a read-only field that can be left
11173 * blank. 12869 * blank.
11174 */ 12870 */
11175 core.String subaccountId; 12871 core.String subaccountId;
12872 /** Suspension status of this advertiser. */
12873 core.bool suspended;
11176 12874
11177 Advertiser(); 12875 Advertiser();
11178 12876
11179 Advertiser.fromJson(core.Map _json) { 12877 Advertiser.fromJson(core.Map _json) {
11180 if (_json.containsKey("accountId")) { 12878 if (_json.containsKey("accountId")) {
11181 accountId = _json["accountId"]; 12879 accountId = _json["accountId"];
11182 } 12880 }
11183 if (_json.containsKey("advertiserGroupId")) { 12881 if (_json.containsKey("advertiserGroupId")) {
11184 advertiserGroupId = _json["advertiserGroupId"]; 12882 advertiserGroupId = _json["advertiserGroupId"];
11185 } 12883 }
(...skipping 17 matching lines...) Expand all
11203 } 12901 }
11204 if (_json.containsKey("idDimensionValue")) { 12902 if (_json.containsKey("idDimensionValue")) {
11205 idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); 12903 idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]);
11206 } 12904 }
11207 if (_json.containsKey("kind")) { 12905 if (_json.containsKey("kind")) {
11208 kind = _json["kind"]; 12906 kind = _json["kind"];
11209 } 12907 }
11210 if (_json.containsKey("name")) { 12908 if (_json.containsKey("name")) {
11211 name = _json["name"]; 12909 name = _json["name"];
11212 } 12910 }
12911 if (_json.containsKey("originalFloodlightConfigurationId")) {
12912 originalFloodlightConfigurationId = _json["originalFloodlightConfiguration Id"];
12913 }
11213 if (_json.containsKey("status")) { 12914 if (_json.containsKey("status")) {
11214 status = _json["status"]; 12915 status = _json["status"];
11215 } 12916 }
11216 if (_json.containsKey("subaccountId")) { 12917 if (_json.containsKey("subaccountId")) {
11217 subaccountId = _json["subaccountId"]; 12918 subaccountId = _json["subaccountId"];
11218 } 12919 }
12920 if (_json.containsKey("suspended")) {
12921 suspended = _json["suspended"];
12922 }
11219 } 12923 }
11220 12924
11221 core.Map toJson() { 12925 core.Map toJson() {
11222 var _json = new core.Map(); 12926 var _json = new core.Map();
11223 if (accountId != null) { 12927 if (accountId != null) {
11224 _json["accountId"] = accountId; 12928 _json["accountId"] = accountId;
11225 } 12929 }
11226 if (advertiserGroupId != null) { 12930 if (advertiserGroupId != null) {
11227 _json["advertiserGroupId"] = advertiserGroupId; 12931 _json["advertiserGroupId"] = advertiserGroupId;
11228 } 12932 }
(...skipping 17 matching lines...) Expand all
11246 } 12950 }
11247 if (idDimensionValue != null) { 12951 if (idDimensionValue != null) {
11248 _json["idDimensionValue"] = (idDimensionValue).toJson(); 12952 _json["idDimensionValue"] = (idDimensionValue).toJson();
11249 } 12953 }
11250 if (kind != null) { 12954 if (kind != null) {
11251 _json["kind"] = kind; 12955 _json["kind"] = kind;
11252 } 12956 }
11253 if (name != null) { 12957 if (name != null) {
11254 _json["name"] = name; 12958 _json["name"] = name;
11255 } 12959 }
12960 if (originalFloodlightConfigurationId != null) {
12961 _json["originalFloodlightConfigurationId"] = originalFloodlightConfigurati onId;
12962 }
11256 if (status != null) { 12963 if (status != null) {
11257 _json["status"] = status; 12964 _json["status"] = status;
11258 } 12965 }
11259 if (subaccountId != null) { 12966 if (subaccountId != null) {
11260 _json["subaccountId"] = subaccountId; 12967 _json["subaccountId"] = subaccountId;
11261 } 12968 }
12969 if (suspended != null) {
12970 _json["suspended"] = suspended;
12971 }
11262 return _json; 12972 return _json;
11263 } 12973 }
11264 } 12974 }
11265 12975
11266 /** 12976 /**
11267 * Groups advertisers together so that reports can be generated for the entire 12977 * Groups advertisers together so that reports can be generated for the entire
11268 * group at once. 12978 * group at once.
11269 */ 12979 */
11270 class AdvertiserGroup { 12980 class AdvertiserGroup {
11271 /** 12981 /**
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
12367 if (value != null) { 14077 if (value != null) {
12368 _json["value"] = value; 14078 _json["value"] = value;
12369 } 14079 }
12370 return _json; 14080 return _json;
12371 } 14081 }
12372 } 14082 }
12373 14083
12374 /** Click-through URL */ 14084 /** Click-through URL */
12375 class ClickThroughUrl { 14085 class ClickThroughUrl {
12376 /** 14086 /**
14087 * Read-only convenience field representing the actual URL that will be used
14088 * for this click-through. The URL is computed as follows:
14089 * - If defaultLandingPage is enabled then the campaign's default landing page
14090 * URL is assigned to this field.
14091 * - If defaultLandingPage is not enabled and a landingPageId is specified
14092 * then that landing page's URL is assigned to this field.
14093 * - If neither of the above cases apply, then the customClickThroughUrl is
14094 * assigned to this field.
14095 */
14096 core.String computedClickThroughUrl;
14097 /**
12377 * Custom click-through URL. Applicable if the defaultLandingPage field is set 14098 * Custom click-through URL. Applicable if the defaultLandingPage field is set
12378 * to false and the landingPageId field is left unset. 14099 * to false and the landingPageId field is left unset.
12379 */ 14100 */
12380 core.String customClickThroughUrl; 14101 core.String customClickThroughUrl;
12381 /** Whether the campaign default landing page is used. */ 14102 /** Whether the campaign default landing page is used. */
12382 core.bool defaultLandingPage; 14103 core.bool defaultLandingPage;
12383 /** 14104 /**
12384 * ID of the landing page for the click-through URL. Applicable if the 14105 * ID of the landing page for the click-through URL. Applicable if the
12385 * defaultLandingPage field is set to false. 14106 * defaultLandingPage field is set to false.
12386 */ 14107 */
12387 core.String landingPageId; 14108 core.String landingPageId;
12388 14109
12389 ClickThroughUrl(); 14110 ClickThroughUrl();
12390 14111
12391 ClickThroughUrl.fromJson(core.Map _json) { 14112 ClickThroughUrl.fromJson(core.Map _json) {
14113 if (_json.containsKey("computedClickThroughUrl")) {
14114 computedClickThroughUrl = _json["computedClickThroughUrl"];
14115 }
12392 if (_json.containsKey("customClickThroughUrl")) { 14116 if (_json.containsKey("customClickThroughUrl")) {
12393 customClickThroughUrl = _json["customClickThroughUrl"]; 14117 customClickThroughUrl = _json["customClickThroughUrl"];
12394 } 14118 }
12395 if (_json.containsKey("defaultLandingPage")) { 14119 if (_json.containsKey("defaultLandingPage")) {
12396 defaultLandingPage = _json["defaultLandingPage"]; 14120 defaultLandingPage = _json["defaultLandingPage"];
12397 } 14121 }
12398 if (_json.containsKey("landingPageId")) { 14122 if (_json.containsKey("landingPageId")) {
12399 landingPageId = _json["landingPageId"]; 14123 landingPageId = _json["landingPageId"];
12400 } 14124 }
12401 } 14125 }
12402 14126
12403 core.Map toJson() { 14127 core.Map toJson() {
12404 var _json = new core.Map(); 14128 var _json = new core.Map();
14129 if (computedClickThroughUrl != null) {
14130 _json["computedClickThroughUrl"] = computedClickThroughUrl;
14131 }
12405 if (customClickThroughUrl != null) { 14132 if (customClickThroughUrl != null) {
12406 _json["customClickThroughUrl"] = customClickThroughUrl; 14133 _json["customClickThroughUrl"] = customClickThroughUrl;
12407 } 14134 }
12408 if (defaultLandingPage != null) { 14135 if (defaultLandingPage != null) {
12409 _json["defaultLandingPage"] = defaultLandingPage; 14136 _json["defaultLandingPage"] = defaultLandingPage;
12410 } 14137 }
12411 if (landingPageId != null) { 14138 if (landingPageId != null) {
12412 _json["landingPageId"] = landingPageId; 14139 _json["landingPageId"] = landingPageId;
12413 } 14140 }
12414 return _json; 14141 return _json;
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
12681 14408
12682 /** 14409 /**
12683 * Organizes placements according to the contents of their associated webpages. 14410 * Organizes placements according to the contents of their associated webpages.
12684 */ 14411 */
12685 class ContentCategory { 14412 class ContentCategory {
12686 /** 14413 /**
12687 * Account ID of this content category. This is a read-only field that can be 14414 * Account ID of this content category. This is a read-only field that can be
12688 * left blank. 14415 * left blank.
12689 */ 14416 */
12690 core.String accountId; 14417 core.String accountId;
12691 /** Description of this content category. */
12692 core.String description;
12693 /** 14418 /**
12694 * ID of this content category. This is a read-only, auto-generated field. 14419 * ID of this content category. This is a read-only, auto-generated field.
12695 */ 14420 */
12696 core.String id; 14421 core.String id;
12697 /** 14422 /**
12698 * Identifies what kind of resource this is. Value: the fixed string 14423 * Identifies what kind of resource this is. Value: the fixed string
12699 * "dfareporting#contentCategory". 14424 * "dfareporting#contentCategory".
12700 */ 14425 */
12701 core.String kind; 14426 core.String kind;
12702 /** 14427 /**
12703 * Name of this content category. This is a required field and must be less 14428 * Name of this content category. This is a required field and must be less
12704 * than 256 characters long and unique among content categories of the same 14429 * than 256 characters long and unique among content categories of the same
12705 * account. 14430 * account.
12706 */ 14431 */
12707 core.String name; 14432 core.String name;
12708 14433
12709 ContentCategory(); 14434 ContentCategory();
12710 14435
12711 ContentCategory.fromJson(core.Map _json) { 14436 ContentCategory.fromJson(core.Map _json) {
12712 if (_json.containsKey("accountId")) { 14437 if (_json.containsKey("accountId")) {
12713 accountId = _json["accountId"]; 14438 accountId = _json["accountId"];
12714 } 14439 }
12715 if (_json.containsKey("description")) {
12716 description = _json["description"];
12717 }
12718 if (_json.containsKey("id")) { 14440 if (_json.containsKey("id")) {
12719 id = _json["id"]; 14441 id = _json["id"];
12720 } 14442 }
12721 if (_json.containsKey("kind")) { 14443 if (_json.containsKey("kind")) {
12722 kind = _json["kind"]; 14444 kind = _json["kind"];
12723 } 14445 }
12724 if (_json.containsKey("name")) { 14446 if (_json.containsKey("name")) {
12725 name = _json["name"]; 14447 name = _json["name"];
12726 } 14448 }
12727 } 14449 }
12728 14450
12729 core.Map toJson() { 14451 core.Map toJson() {
12730 var _json = new core.Map(); 14452 var _json = new core.Map();
12731 if (accountId != null) { 14453 if (accountId != null) {
12732 _json["accountId"] = accountId; 14454 _json["accountId"] = accountId;
12733 } 14455 }
12734 if (description != null) {
12735 _json["description"] = description;
12736 }
12737 if (id != null) { 14456 if (id != null) {
12738 _json["id"] = id; 14457 _json["id"] = id;
12739 } 14458 }
12740 if (kind != null) { 14459 if (kind != null) {
12741 _json["kind"] = kind; 14460 _json["kind"] = kind;
12742 } 14461 }
12743 if (name != null) { 14462 if (name != null) {
12744 _json["name"] = name; 14463 _json["name"] = name;
12745 } 14464 }
12746 return _json; 14465 return _json;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
12965 * 14684 *
12966 * Acceptable values are: 14685 * Acceptable values are:
12967 * - "APP" 14686 * - "APP"
12968 * - "APP_INTERSTITIAL" 14687 * - "APP_INTERSTITIAL"
12969 * - "IN_STREAM_VIDEO" 14688 * - "IN_STREAM_VIDEO"
12970 * - "WEB" 14689 * - "WEB"
12971 * - "WEB_INTERSTITIAL" 14690 * - "WEB_INTERSTITIAL"
12972 */ 14691 */
12973 core.List<core.String> compatibility; 14692 core.List<core.String> compatibility;
12974 /** 14693 /**
14694 * Whether Flash assets associated with the creative need to be automatically
14695 * converted to HTML5. This flag is enabled by default and users can choose to
14696 * disable it if they don't want the system to generate and use HTML5 asset
14697 * for this creative. Applicable to the following creative types:
14698 * ENHANCED_BANNER and FLASH_INPAGE.
14699 */
14700 core.bool convertFlashToHtml5;
14701 /**
12975 * List of counter events configured for the creative. Applicable to the 14702 * List of counter events configured for the creative. Applicable to the
12976 * following creative types: all RICH_MEDIA, and all VPAID. 14703 * following creative types: all RICH_MEDIA, and all VPAID.
12977 */ 14704 */
12978 core.List<CreativeCustomEvent> counterCustomEvents; 14705 core.List<CreativeCustomEvent> counterCustomEvents;
12979 /** 14706 /**
12980 * Assets associated with a creative. Applicable to all but the following 14707 * Assets associated with a creative. Applicable to all but the following
12981 * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and 14708 * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and
12982 * REDIRECT 14709 * REDIRECT
12983 */ 14710 */
12984 core.List<CreativeAsset> creativeAssets; 14711 core.List<CreativeAsset> creativeAssets;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
13098 * Whether the user can choose to skip the creative. Applicable to the 14825 * Whether the user can choose to skip the creative. Applicable to the
13099 * following creative types: INSTREAM_VIDEO. 14826 * following creative types: INSTREAM_VIDEO.
13100 */ 14827 */
13101 core.bool skippable; 14828 core.bool skippable;
13102 /** 14829 /**
13103 * Whether the creative is SSL-compliant. This is a read-only field. 14830 * Whether the creative is SSL-compliant. This is a read-only field.
13104 * Applicable to all creative types. 14831 * Applicable to all creative types.
13105 */ 14832 */
13106 core.bool sslCompliant; 14833 core.bool sslCompliant;
13107 /** 14834 /**
14835 * Whether creative should be treated as SSL compliant even if the system scan
14836 * shows it's not.
14837 */
14838 core.bool sslOverride;
14839 /**
13108 * Studio advertiser ID associated with rich media and VPAID creatives. This 14840 * Studio advertiser ID associated with rich media and VPAID creatives. This
13109 * is a read-only field. Applicable to the following creative types: all 14841 * is a read-only field. Applicable to the following creative types: all
13110 * RICH_MEDIA, and all VPAID. 14842 * RICH_MEDIA, and all VPAID.
13111 */ 14843 */
13112 core.String studioAdvertiserId; 14844 core.String studioAdvertiserId;
13113 /** 14845 /**
13114 * Studio creative ID associated with rich media and VPAID creatives. This is 14846 * Studio creative ID associated with rich media and VPAID creatives. This is
13115 * a read-only field. Applicable to the following creative types: all 14847 * a read-only field. Applicable to the following creative types: all
13116 * RICH_MEDIA, and all VPAID. 14848 * RICH_MEDIA, and all VPAID.
13117 */ 14849 */
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
13171 * - "REDIRECT" 14903 * - "REDIRECT"
13172 * - "RICH_MEDIA_EXPANDING" 14904 * - "RICH_MEDIA_EXPANDING"
13173 * - "RICH_MEDIA_IM_EXPAND" 14905 * - "RICH_MEDIA_IM_EXPAND"
13174 * - "RICH_MEDIA_INPAGE" 14906 * - "RICH_MEDIA_INPAGE"
13175 * - "RICH_MEDIA_INPAGE_FLOATING" 14907 * - "RICH_MEDIA_INPAGE_FLOATING"
13176 * - "RICH_MEDIA_INTERSTITIAL_FLOAT" 14908 * - "RICH_MEDIA_INTERSTITIAL_FLOAT"
13177 * - "RICH_MEDIA_MOBILE_IN_APP" 14909 * - "RICH_MEDIA_MOBILE_IN_APP"
13178 * - "RICH_MEDIA_MULTI_FLOATING" 14910 * - "RICH_MEDIA_MULTI_FLOATING"
13179 * - "RICH_MEDIA_PEEL_DOWN" 14911 * - "RICH_MEDIA_PEEL_DOWN"
13180 * - "TRACKING_TEXT" 14912 * - "TRACKING_TEXT"
14913 * - "VAST_REDIRECT"
13181 * - "VPAID_LINEAR" 14914 * - "VPAID_LINEAR"
13182 * - "VPAID_NON_LINEAR" 14915 * - "VPAID_NON_LINEAR"
13183 */ 14916 */
13184 core.String type; 14917 core.String type;
13185 /** 14918 /**
13186 * The version number helps you keep track of multiple versions of your 14919 * The version number helps you keep track of multiple versions of your
13187 * creative in your reports. The version number will always be auto-generated 14920 * creative in your reports. The version number will always be auto-generated
13188 * during insert operations to start at 1. For tracking creatives the version 14921 * during insert operations to start at 1. For tracking creatives the version
13189 * cannot be incremented and will always remain at 1. For all other creative 14922 * cannot be incremented and will always remain at 1. For all other creative
13190 * types the version can be incremented only by 1 during update operations. In 14923 * types the version can be incremented only by 1 during update operations. In
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
13257 } 14990 }
13258 if (_json.containsKey("commercialId")) { 14991 if (_json.containsKey("commercialId")) {
13259 commercialId = _json["commercialId"]; 14992 commercialId = _json["commercialId"];
13260 } 14993 }
13261 if (_json.containsKey("companionCreatives")) { 14994 if (_json.containsKey("companionCreatives")) {
13262 companionCreatives = _json["companionCreatives"]; 14995 companionCreatives = _json["companionCreatives"];
13263 } 14996 }
13264 if (_json.containsKey("compatibility")) { 14997 if (_json.containsKey("compatibility")) {
13265 compatibility = _json["compatibility"]; 14998 compatibility = _json["compatibility"];
13266 } 14999 }
15000 if (_json.containsKey("convertFlashToHtml5")) {
15001 convertFlashToHtml5 = _json["convertFlashToHtml5"];
15002 }
13267 if (_json.containsKey("counterCustomEvents")) { 15003 if (_json.containsKey("counterCustomEvents")) {
13268 counterCustomEvents = _json["counterCustomEvents"].map((value) => new Crea tiveCustomEvent.fromJson(value)).toList(); 15004 counterCustomEvents = _json["counterCustomEvents"].map((value) => new Crea tiveCustomEvent.fromJson(value)).toList();
13269 } 15005 }
13270 if (_json.containsKey("creativeAssets")) { 15006 if (_json.containsKey("creativeAssets")) {
13271 creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset. fromJson(value)).toList(); 15007 creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset. fromJson(value)).toList();
13272 } 15008 }
13273 if (_json.containsKey("creativeFieldAssignments")) { 15009 if (_json.containsKey("creativeFieldAssignments")) {
13274 creativeFieldAssignments = _json["creativeFieldAssignments"].map((value) = > new CreativeFieldAssignment.fromJson(value)).toList(); 15010 creativeFieldAssignments = _json["creativeFieldAssignments"].map((value) = > new CreativeFieldAssignment.fromJson(value)).toList();
13275 } 15011 }
13276 if (_json.containsKey("customKeyValues")) { 15012 if (_json.containsKey("customKeyValues")) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
13326 } 15062 }
13327 if (_json.containsKey("size")) { 15063 if (_json.containsKey("size")) {
13328 size = new Size.fromJson(_json["size"]); 15064 size = new Size.fromJson(_json["size"]);
13329 } 15065 }
13330 if (_json.containsKey("skippable")) { 15066 if (_json.containsKey("skippable")) {
13331 skippable = _json["skippable"]; 15067 skippable = _json["skippable"];
13332 } 15068 }
13333 if (_json.containsKey("sslCompliant")) { 15069 if (_json.containsKey("sslCompliant")) {
13334 sslCompliant = _json["sslCompliant"]; 15070 sslCompliant = _json["sslCompliant"];
13335 } 15071 }
15072 if (_json.containsKey("sslOverride")) {
15073 sslOverride = _json["sslOverride"];
15074 }
13336 if (_json.containsKey("studioAdvertiserId")) { 15075 if (_json.containsKey("studioAdvertiserId")) {
13337 studioAdvertiserId = _json["studioAdvertiserId"]; 15076 studioAdvertiserId = _json["studioAdvertiserId"];
13338 } 15077 }
13339 if (_json.containsKey("studioCreativeId")) { 15078 if (_json.containsKey("studioCreativeId")) {
13340 studioCreativeId = _json["studioCreativeId"]; 15079 studioCreativeId = _json["studioCreativeId"];
13341 } 15080 }
13342 if (_json.containsKey("studioTraffickedCreativeId")) { 15081 if (_json.containsKey("studioTraffickedCreativeId")) {
13343 studioTraffickedCreativeId = _json["studioTraffickedCreativeId"]; 15082 studioTraffickedCreativeId = _json["studioTraffickedCreativeId"];
13344 } 15083 }
13345 if (_json.containsKey("subaccountId")) { 15084 if (_json.containsKey("subaccountId")) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
13426 } 15165 }
13427 if (commercialId != null) { 15166 if (commercialId != null) {
13428 _json["commercialId"] = commercialId; 15167 _json["commercialId"] = commercialId;
13429 } 15168 }
13430 if (companionCreatives != null) { 15169 if (companionCreatives != null) {
13431 _json["companionCreatives"] = companionCreatives; 15170 _json["companionCreatives"] = companionCreatives;
13432 } 15171 }
13433 if (compatibility != null) { 15172 if (compatibility != null) {
13434 _json["compatibility"] = compatibility; 15173 _json["compatibility"] = compatibility;
13435 } 15174 }
15175 if (convertFlashToHtml5 != null) {
15176 _json["convertFlashToHtml5"] = convertFlashToHtml5;
15177 }
13436 if (counterCustomEvents != null) { 15178 if (counterCustomEvents != null) {
13437 _json["counterCustomEvents"] = counterCustomEvents.map((value) => (value). toJson()).toList(); 15179 _json["counterCustomEvents"] = counterCustomEvents.map((value) => (value). toJson()).toList();
13438 } 15180 }
13439 if (creativeAssets != null) { 15181 if (creativeAssets != null) {
13440 _json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()). toList(); 15182 _json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()). toList();
13441 } 15183 }
13442 if (creativeFieldAssignments != null) { 15184 if (creativeFieldAssignments != null) {
13443 _json["creativeFieldAssignments"] = creativeFieldAssignments.map((value) = > (value).toJson()).toList(); 15185 _json["creativeFieldAssignments"] = creativeFieldAssignments.map((value) = > (value).toJson()).toList();
13444 } 15186 }
13445 if (customKeyValues != null) { 15187 if (customKeyValues != null) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
13495 } 15237 }
13496 if (size != null) { 15238 if (size != null) {
13497 _json["size"] = (size).toJson(); 15239 _json["size"] = (size).toJson();
13498 } 15240 }
13499 if (skippable != null) { 15241 if (skippable != null) {
13500 _json["skippable"] = skippable; 15242 _json["skippable"] = skippable;
13501 } 15243 }
13502 if (sslCompliant != null) { 15244 if (sslCompliant != null) {
13503 _json["sslCompliant"] = sslCompliant; 15245 _json["sslCompliant"] = sslCompliant;
13504 } 15246 }
15247 if (sslOverride != null) {
15248 _json["sslOverride"] = sslOverride;
15249 }
13505 if (studioAdvertiserId != null) { 15250 if (studioAdvertiserId != null) {
13506 _json["studioAdvertiserId"] = studioAdvertiserId; 15251 _json["studioAdvertiserId"] = studioAdvertiserId;
13507 } 15252 }
13508 if (studioCreativeId != null) { 15253 if (studioCreativeId != null) {
13509 _json["studioCreativeId"] = studioCreativeId; 15254 _json["studioCreativeId"] = studioCreativeId;
13510 } 15255 }
13511 if (studioTraffickedCreativeId != null) { 15256 if (studioTraffickedCreativeId != null) {
13512 _json["studioTraffickedCreativeId"] = studioTraffickedCreativeId; 15257 _json["studioTraffickedCreativeId"] = studioTraffickedCreativeId;
13513 } 15258 }
13514 if (subaccountId != null) { 15259 if (subaccountId != null) {
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
14415 } 16160 }
14416 if (weight != null) { 16161 if (weight != null) {
14417 _json["weight"] = weight; 16162 _json["weight"] = weight;
14418 } 16163 }
14419 return _json; 16164 return _json;
14420 } 16165 }
14421 } 16166 }
14422 16167
14423 /** Creative Custom Event. */ 16168 /** Creative Custom Event. */
14424 class CreativeCustomEvent { 16169 class CreativeCustomEvent {
14425 /** Whether the event is active. */
14426 core.bool active;
14427 /** User-entered name for the event. */ 16170 /** User-entered name for the event. */
14428 core.String advertiserCustomEventName; 16171 core.String advertiserCustomEventName;
14429 /** 16172 /**
14430 * Type of the event. This is a read-only field. 16173 * Type of the event. This is a read-only field.
14431 * Possible string values are: 16174 * Possible string values are:
14432 * - "ADVERTISER_EVENT_COUNTER" 16175 * - "ADVERTISER_EVENT_COUNTER"
14433 * - "ADVERTISER_EVENT_EXIT" 16176 * - "ADVERTISER_EVENT_EXIT"
14434 * - "ADVERTISER_EVENT_TIMER" 16177 * - "ADVERTISER_EVENT_TIMER"
14435 */ 16178 */
14436 core.String advertiserCustomEventType; 16179 core.String advertiserCustomEventType;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
14470 */ 16213 */
14471 core.String targetType; 16214 core.String targetType;
14472 /** 16215 /**
14473 * Reporting ID, used to differentiate multiple videos in a single creative. 16216 * Reporting ID, used to differentiate multiple videos in a single creative.
14474 */ 16217 */
14475 core.String videoReportingId; 16218 core.String videoReportingId;
14476 16219
14477 CreativeCustomEvent(); 16220 CreativeCustomEvent();
14478 16221
14479 CreativeCustomEvent.fromJson(core.Map _json) { 16222 CreativeCustomEvent.fromJson(core.Map _json) {
14480 if (_json.containsKey("active")) {
14481 active = _json["active"];
14482 }
14483 if (_json.containsKey("advertiserCustomEventName")) { 16223 if (_json.containsKey("advertiserCustomEventName")) {
14484 advertiserCustomEventName = _json["advertiserCustomEventName"]; 16224 advertiserCustomEventName = _json["advertiserCustomEventName"];
14485 } 16225 }
14486 if (_json.containsKey("advertiserCustomEventType")) { 16226 if (_json.containsKey("advertiserCustomEventType")) {
14487 advertiserCustomEventType = _json["advertiserCustomEventType"]; 16227 advertiserCustomEventType = _json["advertiserCustomEventType"];
14488 } 16228 }
14489 if (_json.containsKey("artworkLabel")) { 16229 if (_json.containsKey("artworkLabel")) {
14490 artworkLabel = _json["artworkLabel"]; 16230 artworkLabel = _json["artworkLabel"];
14491 } 16231 }
14492 if (_json.containsKey("artworkType")) { 16232 if (_json.containsKey("artworkType")) {
(...skipping 11 matching lines...) Expand all
14504 if (_json.containsKey("targetType")) { 16244 if (_json.containsKey("targetType")) {
14505 targetType = _json["targetType"]; 16245 targetType = _json["targetType"];
14506 } 16246 }
14507 if (_json.containsKey("videoReportingId")) { 16247 if (_json.containsKey("videoReportingId")) {
14508 videoReportingId = _json["videoReportingId"]; 16248 videoReportingId = _json["videoReportingId"];
14509 } 16249 }
14510 } 16250 }
14511 16251
14512 core.Map toJson() { 16252 core.Map toJson() {
14513 var _json = new core.Map(); 16253 var _json = new core.Map();
14514 if (active != null) {
14515 _json["active"] = active;
14516 }
14517 if (advertiserCustomEventName != null) { 16254 if (advertiserCustomEventName != null) {
14518 _json["advertiserCustomEventName"] = advertiserCustomEventName; 16255 _json["advertiserCustomEventName"] = advertiserCustomEventName;
14519 } 16256 }
14520 if (advertiserCustomEventType != null) { 16257 if (advertiserCustomEventType != null) {
14521 _json["advertiserCustomEventType"] = advertiserCustomEventType; 16258 _json["advertiserCustomEventType"] = advertiserCustomEventType;
14522 } 16259 }
14523 if (artworkLabel != null) { 16260 if (artworkLabel != null) {
14524 _json["artworkLabel"] = artworkLabel; 16261 _json["artworkLabel"] = artworkLabel;
14525 } 16262 }
14526 if (artworkType != null) { 16263 if (artworkType != null) {
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after
16031 } 17768 }
16032 if (url != null) { 17769 if (url != null) {
16033 _json["url"] = url; 17770 _json["url"] = url;
16034 } 17771 }
16035 return _json; 17772 return _json;
16036 } 17773 }
16037 } 17774 }
16038 17775
16039 /** Contains properties of a Site Directory contact. */ 17776 /** Contains properties of a Site Directory contact. */
16040 class DirectorySiteContact { 17777 class DirectorySiteContact {
17778 /** Address of this directory site contact. */
17779 core.String address;
16041 /** Email address of this directory site contact. */ 17780 /** Email address of this directory site contact. */
16042 core.String email; 17781 core.String email;
16043 /** First name of this directory site contact. */ 17782 /** First name of this directory site contact. */
16044 core.String firstName; 17783 core.String firstName;
16045 /** 17784 /**
16046 * ID of this directory site contact. This is a read-only, auto-generated 17785 * ID of this directory site contact. This is a read-only, auto-generated
16047 * field. 17786 * field.
16048 */ 17787 */
16049 core.String id; 17788 core.String id;
16050 /** 17789 /**
16051 * Identifies what kind of resource this is. Value: the fixed string 17790 * Identifies what kind of resource this is. Value: the fixed string
16052 * "dfareporting#directorySiteContact". 17791 * "dfareporting#directorySiteContact".
16053 */ 17792 */
16054 core.String kind; 17793 core.String kind;
16055 /** Last name of this directory site contact. */ 17794 /** Last name of this directory site contact. */
16056 core.String lastName; 17795 core.String lastName;
17796 /** Phone number of this directory site contact. */
17797 core.String phone;
16057 /** 17798 /**
16058 * Directory site contact role. 17799 * Directory site contact role.
16059 * Possible string values are: 17800 * Possible string values are:
16060 * - "ADMIN" 17801 * - "ADMIN"
16061 * - "EDIT" 17802 * - "EDIT"
16062 * - "VIEW" 17803 * - "VIEW"
16063 */ 17804 */
16064 core.String role; 17805 core.String role;
17806 /** Title or designation of this directory site contact. */
17807 core.String title;
16065 /** 17808 /**
16066 * Directory site contact type. 17809 * Directory site contact type.
16067 * Possible string values are: 17810 * Possible string values are:
16068 * - "BILLING" 17811 * - "BILLING"
16069 * - "OTHER" 17812 * - "OTHER"
16070 * - "SALES" 17813 * - "SALES"
16071 * - "TECHNICAL" 17814 * - "TECHNICAL"
16072 */ 17815 */
16073 core.String type; 17816 core.String type;
16074 17817
16075 DirectorySiteContact(); 17818 DirectorySiteContact();
16076 17819
16077 DirectorySiteContact.fromJson(core.Map _json) { 17820 DirectorySiteContact.fromJson(core.Map _json) {
17821 if (_json.containsKey("address")) {
17822 address = _json["address"];
17823 }
16078 if (_json.containsKey("email")) { 17824 if (_json.containsKey("email")) {
16079 email = _json["email"]; 17825 email = _json["email"];
16080 } 17826 }
16081 if (_json.containsKey("firstName")) { 17827 if (_json.containsKey("firstName")) {
16082 firstName = _json["firstName"]; 17828 firstName = _json["firstName"];
16083 } 17829 }
16084 if (_json.containsKey("id")) { 17830 if (_json.containsKey("id")) {
16085 id = _json["id"]; 17831 id = _json["id"];
16086 } 17832 }
16087 if (_json.containsKey("kind")) { 17833 if (_json.containsKey("kind")) {
16088 kind = _json["kind"]; 17834 kind = _json["kind"];
16089 } 17835 }
16090 if (_json.containsKey("lastName")) { 17836 if (_json.containsKey("lastName")) {
16091 lastName = _json["lastName"]; 17837 lastName = _json["lastName"];
16092 } 17838 }
17839 if (_json.containsKey("phone")) {
17840 phone = _json["phone"];
17841 }
16093 if (_json.containsKey("role")) { 17842 if (_json.containsKey("role")) {
16094 role = _json["role"]; 17843 role = _json["role"];
16095 } 17844 }
17845 if (_json.containsKey("title")) {
17846 title = _json["title"];
17847 }
16096 if (_json.containsKey("type")) { 17848 if (_json.containsKey("type")) {
16097 type = _json["type"]; 17849 type = _json["type"];
16098 } 17850 }
16099 } 17851 }
16100 17852
16101 core.Map toJson() { 17853 core.Map toJson() {
16102 var _json = new core.Map(); 17854 var _json = new core.Map();
17855 if (address != null) {
17856 _json["address"] = address;
17857 }
16103 if (email != null) { 17858 if (email != null) {
16104 _json["email"] = email; 17859 _json["email"] = email;
16105 } 17860 }
16106 if (firstName != null) { 17861 if (firstName != null) {
16107 _json["firstName"] = firstName; 17862 _json["firstName"] = firstName;
16108 } 17863 }
16109 if (id != null) { 17864 if (id != null) {
16110 _json["id"] = id; 17865 _json["id"] = id;
16111 } 17866 }
16112 if (kind != null) { 17867 if (kind != null) {
16113 _json["kind"] = kind; 17868 _json["kind"] = kind;
16114 } 17869 }
16115 if (lastName != null) { 17870 if (lastName != null) {
16116 _json["lastName"] = lastName; 17871 _json["lastName"] = lastName;
16117 } 17872 }
17873 if (phone != null) {
17874 _json["phone"] = phone;
17875 }
16118 if (role != null) { 17876 if (role != null) {
16119 _json["role"] = role; 17877 _json["role"] = role;
16120 } 17878 }
17879 if (title != null) {
17880 _json["title"] = title;
17881 }
16121 if (type != null) { 17882 if (type != null) {
16122 _json["type"] = type; 17883 _json["type"] = type;
16123 } 17884 }
16124 return _json; 17885 return _json;
16125 } 17886 }
16126 } 17887 }
16127 17888
16128 /** Directory Site Contact Assignment */ 17889 /** Directory Site Contact Assignment */
16129 class DirectorySiteContactAssignment { 17890 class DirectorySiteContactAssignment {
16130 /** 17891 /**
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
16348 /** 18109 /**
16349 * Dimension value for the ID of the campaign. This is a read-only, 18110 * Dimension value for the ID of the campaign. This is a read-only,
16350 * auto-generated field. 18111 * auto-generated field.
16351 */ 18112 */
16352 DimensionValue campaignIdDimensionValue; 18113 DimensionValue campaignIdDimensionValue;
16353 /** 18114 /**
16354 * Whether this event tag should be automatically enabled for all of the 18115 * Whether this event tag should be automatically enabled for all of the
16355 * advertiser's campaigns and ads. 18116 * advertiser's campaigns and ads.
16356 */ 18117 */
16357 core.bool enabledByDefault; 18118 core.bool enabledByDefault;
18119 /**
18120 * Whether to remove this event tag from ads that are trafficked through
18121 * DoubleClick Bid Manager to Ad Exchange. This may be useful if the event tag
18122 * uses a pixel that is unapproved for Ad Exchange bids on one or more
18123 * networks, such as the Google Display Network.
18124 */
18125 core.bool excludeFromAdxRequests;
16358 /** ID of this event tag. This is a read-only, auto-generated field. */ 18126 /** ID of this event tag. This is a read-only, auto-generated field. */
16359 core.String id; 18127 core.String id;
16360 /** 18128 /**
16361 * Identifies what kind of resource this is. Value: the fixed string 18129 * Identifies what kind of resource this is. Value: the fixed string
16362 * "dfareporting#eventTag". 18130 * "dfareporting#eventTag".
16363 */ 18131 */
16364 core.String kind; 18132 core.String kind;
16365 /** 18133 /**
16366 * Name of this event tag. This is a required field and must be less than 256 18134 * Name of this event tag. This is a required field and must be less than 256
16367 * characters long. 18135 * characters long.
16368 */ 18136 */
16369 core.String name; 18137 core.String name;
16370 /** 18138 /**
16371 * Site filter type for this event tag. If no type is specified then the event 18139 * Site filter type for this event tag. If no type is specified then the event
16372 * tag will be applied to all sites. 18140 * tag will be applied to all sites.
16373 * Possible string values are: 18141 * Possible string values are:
16374 * - "BLACKLIST" 18142 * - "BLACKLIST"
16375 * - "WHITELIST" 18143 * - "WHITELIST"
16376 */ 18144 */
16377 core.String siteFilterType; 18145 core.String siteFilterType;
16378 /** 18146 /**
16379 * Filter list of site IDs associated with this event tag. The siteFilterType 18147 * Filter list of site IDs associated with this event tag. The siteFilterType
16380 * determines whether this is a whitelist or blacklist filter. 18148 * determines whether this is a whitelist or blacklist filter.
16381 */ 18149 */
16382 core.List<core.String> siteIds; 18150 core.List<core.String> siteIds;
16383 /** Whether this tag is SSL-compliant or not. */ 18151 /** Whether this tag is SSL-compliant or not. This is a read-only field. */
16384 core.bool sslCompliant; 18152 core.bool sslCompliant;
16385 /** 18153 /**
16386 * Status of this event tag. Must be ENABLED for this event tag to fire. This 18154 * Status of this event tag. Must be ENABLED for this event tag to fire. This
16387 * is a required field. 18155 * is a required field.
16388 * Possible string values are: 18156 * Possible string values are:
16389 * - "DISABLED" 18157 * - "DISABLED"
16390 * - "ENABLED" 18158 * - "ENABLED"
16391 */ 18159 */
16392 core.String status; 18160 core.String status;
16393 /** 18161 /**
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
16432 } 18200 }
16433 if (_json.containsKey("campaignId")) { 18201 if (_json.containsKey("campaignId")) {
16434 campaignId = _json["campaignId"]; 18202 campaignId = _json["campaignId"];
16435 } 18203 }
16436 if (_json.containsKey("campaignIdDimensionValue")) { 18204 if (_json.containsKey("campaignIdDimensionValue")) {
16437 campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDi mensionValue"]); 18205 campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDi mensionValue"]);
16438 } 18206 }
16439 if (_json.containsKey("enabledByDefault")) { 18207 if (_json.containsKey("enabledByDefault")) {
16440 enabledByDefault = _json["enabledByDefault"]; 18208 enabledByDefault = _json["enabledByDefault"];
16441 } 18209 }
18210 if (_json.containsKey("excludeFromAdxRequests")) {
18211 excludeFromAdxRequests = _json["excludeFromAdxRequests"];
18212 }
16442 if (_json.containsKey("id")) { 18213 if (_json.containsKey("id")) {
16443 id = _json["id"]; 18214 id = _json["id"];
16444 } 18215 }
16445 if (_json.containsKey("kind")) { 18216 if (_json.containsKey("kind")) {
16446 kind = _json["kind"]; 18217 kind = _json["kind"];
16447 } 18218 }
16448 if (_json.containsKey("name")) { 18219 if (_json.containsKey("name")) {
16449 name = _json["name"]; 18220 name = _json["name"];
16450 } 18221 }
16451 if (_json.containsKey("siteFilterType")) { 18222 if (_json.containsKey("siteFilterType")) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
16487 } 18258 }
16488 if (campaignId != null) { 18259 if (campaignId != null) {
16489 _json["campaignId"] = campaignId; 18260 _json["campaignId"] = campaignId;
16490 } 18261 }
16491 if (campaignIdDimensionValue != null) { 18262 if (campaignIdDimensionValue != null) {
16492 _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); 18263 _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson();
16493 } 18264 }
16494 if (enabledByDefault != null) { 18265 if (enabledByDefault != null) {
16495 _json["enabledByDefault"] = enabledByDefault; 18266 _json["enabledByDefault"] = enabledByDefault;
16496 } 18267 }
18268 if (excludeFromAdxRequests != null) {
18269 _json["excludeFromAdxRequests"] = excludeFromAdxRequests;
18270 }
16497 if (id != null) { 18271 if (id != null) {
16498 _json["id"] = id; 18272 _json["id"] = id;
16499 } 18273 }
16500 if (kind != null) { 18274 if (kind != null) {
16501 _json["kind"] = kind; 18275 _json["kind"] = kind;
16502 } 18276 }
16503 if (name != null) { 18277 if (name != null) {
16504 _json["name"] = name; 18278 _json["name"] = name;
16505 } 18279 }
16506 if (siteFilterType != null) { 18280 if (siteFilterType != null) {
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
16785 if (kind != null) { 18559 if (kind != null) {
16786 _json["kind"] = kind; 18560 _json["kind"] = kind;
16787 } 18561 }
16788 if (nextPageToken != null) { 18562 if (nextPageToken != null) {
16789 _json["nextPageToken"] = nextPageToken; 18563 _json["nextPageToken"] = nextPageToken;
16790 } 18564 }
16791 return _json; 18565 return _json;
16792 } 18566 }
16793 } 18567 }
16794 18568
18569 /** Flight */
18570 class Flight {
18571 /** Inventory item flight end date. */
18572 core.DateTime endDate;
18573 /** Rate or cost of this flight. */
18574 core.String rateOrCost;
18575 /** Inventory item flight start date. */
18576 core.DateTime startDate;
18577 /** Units of this flight. */
18578 core.String units;
18579
18580 Flight();
18581
18582 Flight.fromJson(core.Map _json) {
18583 if (_json.containsKey("endDate")) {
18584 endDate = core.DateTime.parse(_json["endDate"]);
18585 }
18586 if (_json.containsKey("rateOrCost")) {
18587 rateOrCost = _json["rateOrCost"];
18588 }
18589 if (_json.containsKey("startDate")) {
18590 startDate = core.DateTime.parse(_json["startDate"]);
18591 }
18592 if (_json.containsKey("units")) {
18593 units = _json["units"];
18594 }
18595 }
18596
18597 core.Map toJson() {
18598 var _json = new core.Map();
18599 if (endDate != null) {
18600 _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDat e).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')} ";
18601 }
18602 if (rateOrCost != null) {
18603 _json["rateOrCost"] = rateOrCost;
18604 }
18605 if (startDate != null) {
18606 _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(st artDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft( 2, '0')}";
18607 }
18608 if (units != null) {
18609 _json["units"] = units;
18610 }
18611 return _json;
18612 }
18613 }
18614
16795 /** Floodlight Activity GenerateTag Response */ 18615 /** Floodlight Activity GenerateTag Response */
16796 class FloodlightActivitiesGenerateTagResponse { 18616 class FloodlightActivitiesGenerateTagResponse {
16797 /** Generated tag for this floodlight activity. */ 18617 /** Generated tag for this floodlight activity. */
16798 core.String floodlightActivityTag; 18618 core.String floodlightActivityTag;
16799 /** 18619 /**
16800 * Identifies what kind of resource this is. Value: the fixed string 18620 * Identifies what kind of resource this is. Value: the fixed string
16801 * "dfareporting#floodlightActivitiesGenerateTagResponse". 18621 * "dfareporting#floodlightActivitiesGenerateTagResponse".
16802 */ 18622 */
16803 core.String kind; 18623 core.String kind;
16804 18624
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
17550 /** 19370 /**
17551 * ID of this floodlight configuration. This is a read-only, auto-generated 19371 * ID of this floodlight configuration. This is a read-only, auto-generated
17552 * field. 19372 * field.
17553 */ 19373 */
17554 core.String id; 19374 core.String id;
17555 /** 19375 /**
17556 * Dimension value for the ID of this floodlight configuration. This is a 19376 * Dimension value for the ID of this floodlight configuration. This is a
17557 * read-only, auto-generated field. 19377 * read-only, auto-generated field.
17558 */ 19378 */
17559 DimensionValue idDimensionValue; 19379 DimensionValue idDimensionValue;
19380 /** Whether in-app attribution tracking is enabled. */
19381 core.bool inAppAttributionTrackingEnabled;
17560 /** 19382 /**
17561 * Identifies what kind of resource this is. Value: the fixed string 19383 * Identifies what kind of resource this is. Value: the fixed string
17562 * "dfareporting#floodlightConfiguration". 19384 * "dfareporting#floodlightConfiguration".
17563 */ 19385 */
17564 core.String kind; 19386 core.String kind;
17565 /** Lookback window settings for this floodlight configuration. */ 19387 /** Lookback window settings for this floodlight configuration. */
17566 LookbackConfiguration lookbackConfiguration; 19388 LookbackConfiguration lookbackConfiguration;
17567 /** 19389 /**
17568 * Types of attribution options for natural search conversions. 19390 * Types of attribution options for natural search conversions.
17569 * Possible string values are: 19391 * Possible string values are:
(...skipping 17 matching lines...) Expand all
17587 * - "NUM" 19409 * - "NUM"
17588 */ 19410 */
17589 core.List<core.String> standardVariableTypes; 19411 core.List<core.String> standardVariableTypes;
17590 /** 19412 /**
17591 * Subaccount ID of this floodlight configuration. This is a read-only field 19413 * Subaccount ID of this floodlight configuration. This is a read-only field
17592 * that can be left blank. 19414 * that can be left blank.
17593 */ 19415 */
17594 core.String subaccountId; 19416 core.String subaccountId;
17595 /** Configuration settings for dynamic and image floodlight tags. */ 19417 /** Configuration settings for dynamic and image floodlight tags. */
17596 TagSettings tagSettings; 19418 TagSettings tagSettings;
19419 /**
19420 * List of third-party authentication tokens enabled for this configuration.
19421 */
19422 core.List<ThirdPartyAuthenticationToken> thirdPartyAuthenticationTokens;
17597 /** List of user defined variables enabled for this configuration. */ 19423 /** List of user defined variables enabled for this configuration. */
17598 core.List<UserDefinedVariableConfiguration> userDefinedVariableConfigurations; 19424 core.List<UserDefinedVariableConfiguration> userDefinedVariableConfigurations;
17599 19425
17600 FloodlightConfiguration(); 19426 FloodlightConfiguration();
17601 19427
17602 FloodlightConfiguration.fromJson(core.Map _json) { 19428 FloodlightConfiguration.fromJson(core.Map _json) {
17603 if (_json.containsKey("accountId")) { 19429 if (_json.containsKey("accountId")) {
17604 accountId = _json["accountId"]; 19430 accountId = _json["accountId"];
17605 } 19431 }
17606 if (_json.containsKey("advertiserId")) { 19432 if (_json.containsKey("advertiserId")) {
(...skipping 10 matching lines...) Expand all
17617 } 19443 }
17618 if (_json.containsKey("firstDayOfWeek")) { 19444 if (_json.containsKey("firstDayOfWeek")) {
17619 firstDayOfWeek = _json["firstDayOfWeek"]; 19445 firstDayOfWeek = _json["firstDayOfWeek"];
17620 } 19446 }
17621 if (_json.containsKey("id")) { 19447 if (_json.containsKey("id")) {
17622 id = _json["id"]; 19448 id = _json["id"];
17623 } 19449 }
17624 if (_json.containsKey("idDimensionValue")) { 19450 if (_json.containsKey("idDimensionValue")) {
17625 idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); 19451 idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]);
17626 } 19452 }
19453 if (_json.containsKey("inAppAttributionTrackingEnabled")) {
19454 inAppAttributionTrackingEnabled = _json["inAppAttributionTrackingEnabled"] ;
19455 }
17627 if (_json.containsKey("kind")) { 19456 if (_json.containsKey("kind")) {
17628 kind = _json["kind"]; 19457 kind = _json["kind"];
17629 } 19458 }
17630 if (_json.containsKey("lookbackConfiguration")) { 19459 if (_json.containsKey("lookbackConfiguration")) {
17631 lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookback Configuration"]); 19460 lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookback Configuration"]);
17632 } 19461 }
17633 if (_json.containsKey("naturalSearchConversionAttributionOption")) { 19462 if (_json.containsKey("naturalSearchConversionAttributionOption")) {
17634 naturalSearchConversionAttributionOption = _json["naturalSearchConversionA ttributionOption"]; 19463 naturalSearchConversionAttributionOption = _json["naturalSearchConversionA ttributionOption"];
17635 } 19464 }
17636 if (_json.containsKey("omnitureSettings")) { 19465 if (_json.containsKey("omnitureSettings")) {
17637 omnitureSettings = new OmnitureSettings.fromJson(_json["omnitureSettings"] ); 19466 omnitureSettings = new OmnitureSettings.fromJson(_json["omnitureSettings"] );
17638 } 19467 }
17639 if (_json.containsKey("sslRequired")) { 19468 if (_json.containsKey("sslRequired")) {
17640 sslRequired = _json["sslRequired"]; 19469 sslRequired = _json["sslRequired"];
17641 } 19470 }
17642 if (_json.containsKey("standardVariableTypes")) { 19471 if (_json.containsKey("standardVariableTypes")) {
17643 standardVariableTypes = _json["standardVariableTypes"]; 19472 standardVariableTypes = _json["standardVariableTypes"];
17644 } 19473 }
17645 if (_json.containsKey("subaccountId")) { 19474 if (_json.containsKey("subaccountId")) {
17646 subaccountId = _json["subaccountId"]; 19475 subaccountId = _json["subaccountId"];
17647 } 19476 }
17648 if (_json.containsKey("tagSettings")) { 19477 if (_json.containsKey("tagSettings")) {
17649 tagSettings = new TagSettings.fromJson(_json["tagSettings"]); 19478 tagSettings = new TagSettings.fromJson(_json["tagSettings"]);
17650 } 19479 }
19480 if (_json.containsKey("thirdPartyAuthenticationTokens")) {
19481 thirdPartyAuthenticationTokens = _json["thirdPartyAuthenticationTokens"].m ap((value) => new ThirdPartyAuthenticationToken.fromJson(value)).toList();
19482 }
17651 if (_json.containsKey("userDefinedVariableConfigurations")) { 19483 if (_json.containsKey("userDefinedVariableConfigurations")) {
17652 userDefinedVariableConfigurations = _json["userDefinedVariableConfiguratio ns"].map((value) => new UserDefinedVariableConfiguration.fromJson(value)).toList (); 19484 userDefinedVariableConfigurations = _json["userDefinedVariableConfiguratio ns"].map((value) => new UserDefinedVariableConfiguration.fromJson(value)).toList ();
17653 } 19485 }
17654 } 19486 }
17655 19487
17656 core.Map toJson() { 19488 core.Map toJson() {
17657 var _json = new core.Map(); 19489 var _json = new core.Map();
17658 if (accountId != null) { 19490 if (accountId != null) {
17659 _json["accountId"] = accountId; 19491 _json["accountId"] = accountId;
17660 } 19492 }
(...skipping 11 matching lines...) Expand all
17672 } 19504 }
17673 if (firstDayOfWeek != null) { 19505 if (firstDayOfWeek != null) {
17674 _json["firstDayOfWeek"] = firstDayOfWeek; 19506 _json["firstDayOfWeek"] = firstDayOfWeek;
17675 } 19507 }
17676 if (id != null) { 19508 if (id != null) {
17677 _json["id"] = id; 19509 _json["id"] = id;
17678 } 19510 }
17679 if (idDimensionValue != null) { 19511 if (idDimensionValue != null) {
17680 _json["idDimensionValue"] = (idDimensionValue).toJson(); 19512 _json["idDimensionValue"] = (idDimensionValue).toJson();
17681 } 19513 }
19514 if (inAppAttributionTrackingEnabled != null) {
19515 _json["inAppAttributionTrackingEnabled"] = inAppAttributionTrackingEnabled ;
19516 }
17682 if (kind != null) { 19517 if (kind != null) {
17683 _json["kind"] = kind; 19518 _json["kind"] = kind;
17684 } 19519 }
17685 if (lookbackConfiguration != null) { 19520 if (lookbackConfiguration != null) {
17686 _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); 19521 _json["lookbackConfiguration"] = (lookbackConfiguration).toJson();
17687 } 19522 }
17688 if (naturalSearchConversionAttributionOption != null) { 19523 if (naturalSearchConversionAttributionOption != null) {
17689 _json["naturalSearchConversionAttributionOption"] = naturalSearchConversio nAttributionOption; 19524 _json["naturalSearchConversionAttributionOption"] = naturalSearchConversio nAttributionOption;
17690 } 19525 }
17691 if (omnitureSettings != null) { 19526 if (omnitureSettings != null) {
17692 _json["omnitureSettings"] = (omnitureSettings).toJson(); 19527 _json["omnitureSettings"] = (omnitureSettings).toJson();
17693 } 19528 }
17694 if (sslRequired != null) { 19529 if (sslRequired != null) {
17695 _json["sslRequired"] = sslRequired; 19530 _json["sslRequired"] = sslRequired;
17696 } 19531 }
17697 if (standardVariableTypes != null) { 19532 if (standardVariableTypes != null) {
17698 _json["standardVariableTypes"] = standardVariableTypes; 19533 _json["standardVariableTypes"] = standardVariableTypes;
17699 } 19534 }
17700 if (subaccountId != null) { 19535 if (subaccountId != null) {
17701 _json["subaccountId"] = subaccountId; 19536 _json["subaccountId"] = subaccountId;
17702 } 19537 }
17703 if (tagSettings != null) { 19538 if (tagSettings != null) {
17704 _json["tagSettings"] = (tagSettings).toJson(); 19539 _json["tagSettings"] = (tagSettings).toJson();
17705 } 19540 }
19541 if (thirdPartyAuthenticationTokens != null) {
19542 _json["thirdPartyAuthenticationTokens"] = thirdPartyAuthenticationTokens.m ap((value) => (value).toJson()).toList();
19543 }
17706 if (userDefinedVariableConfigurations != null) { 19544 if (userDefinedVariableConfigurations != null) {
17707 _json["userDefinedVariableConfigurations"] = userDefinedVariableConfigurat ions.map((value) => (value).toJson()).toList(); 19545 _json["userDefinedVariableConfigurations"] = userDefinedVariableConfigurat ions.map((value) => (value).toJson()).toList();
17708 } 19546 }
17709 return _json; 19547 return _json;
17710 } 19548 }
17711 } 19549 }
17712 19550
17713 /** Floodlight Configuration List Response */ 19551 /** Floodlight Configuration List Response */
17714 class FloodlightConfigurationsListResponse { 19552 class FloodlightConfigurationsListResponse {
17715 /** Floodlight configuration collection. */ 19553 /** Floodlight configuration collection. */
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
17988 if (postalCodes != null) { 19826 if (postalCodes != null) {
17989 _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList (); 19827 _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList ();
17990 } 19828 }
17991 if (regions != null) { 19829 if (regions != null) {
17992 _json["regions"] = regions.map((value) => (value).toJson()).toList(); 19830 _json["regions"] = regions.map((value) => (value).toJson()).toList();
17993 } 19831 }
17994 return _json; 19832 return _json;
17995 } 19833 }
17996 } 19834 }
17997 19835
19836 /** Represents a buy from the DoubleClick Planning inventory store. */
19837 class InventoryItem {
19838 /** Account ID of this inventory item. */
19839 core.String accountId;
19840 /**
19841 * Ad slots of this inventory item. If this inventory item represents a
19842 * standalone placement, there will be exactly one ad slot. If this inventory
19843 * item represents a placement group, there will be more than one ad slot,
19844 * each representing one child placement in that placement group.
19845 */
19846 core.List<AdSlot> adSlots;
19847 /** Advertiser ID of this inventory item. */
19848 core.String advertiserId;
19849 /** Content category ID of this inventory item. */
19850 core.String contentCategoryId;
19851 /** Estimated click-through rate of this inventory item. */
19852 core.String estimatedClickThroughRate;
19853 /** Estimated conversion rate of this inventory item. */
19854 core.String estimatedConversionRate;
19855 /** ID of this inventory item. */
19856 core.String id;
19857 /** Whether this inventory item is in plan. */
19858 core.bool inPlan;
19859 /**
19860 * Identifies what kind of resource this is. Value: the fixed string
19861 * "dfareporting#inventoryItem".
19862 */
19863 core.String kind;
19864 /** Information about the most recent modification of this inventory item. */
19865 LastModifiedInfo lastModifiedInfo;
19866 /**
19867 * Name of this inventory item. For standalone inventory items, this is the
19868 * same name as that of its only ad slot. For group inventory items, this can
19869 * differ from the name of any of its ad slots.
19870 */
19871 core.String name;
19872 /** Negotiation channel ID of this inventory item. */
19873 core.String negotiationChannelId;
19874 /** Order ID of this inventory item. */
19875 core.String orderId;
19876 /** Placement strategy ID of this inventory item. */
19877 core.String placementStrategyId;
19878 /** Pricing of this inventory item. */
19879 Pricing pricing;
19880 /** Project ID of this inventory item. */
19881 core.String projectId;
19882 /** RFP ID of this inventory item. */
19883 core.String rfpId;
19884 /** ID of the site this inventory item is associated with. */
19885 core.String siteId;
19886 /** Subaccount ID of this inventory item. */
19887 core.String subaccountId;
19888
19889 InventoryItem();
19890
19891 InventoryItem.fromJson(core.Map _json) {
19892 if (_json.containsKey("accountId")) {
19893 accountId = _json["accountId"];
19894 }
19895 if (_json.containsKey("adSlots")) {
19896 adSlots = _json["adSlots"].map((value) => new AdSlot.fromJson(value)).toLi st();
19897 }
19898 if (_json.containsKey("advertiserId")) {
19899 advertiserId = _json["advertiserId"];
19900 }
19901 if (_json.containsKey("contentCategoryId")) {
19902 contentCategoryId = _json["contentCategoryId"];
19903 }
19904 if (_json.containsKey("estimatedClickThroughRate")) {
19905 estimatedClickThroughRate = _json["estimatedClickThroughRate"];
19906 }
19907 if (_json.containsKey("estimatedConversionRate")) {
19908 estimatedConversionRate = _json["estimatedConversionRate"];
19909 }
19910 if (_json.containsKey("id")) {
19911 id = _json["id"];
19912 }
19913 if (_json.containsKey("inPlan")) {
19914 inPlan = _json["inPlan"];
19915 }
19916 if (_json.containsKey("kind")) {
19917 kind = _json["kind"];
19918 }
19919 if (_json.containsKey("lastModifiedInfo")) {
19920 lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"] );
19921 }
19922 if (_json.containsKey("name")) {
19923 name = _json["name"];
19924 }
19925 if (_json.containsKey("negotiationChannelId")) {
19926 negotiationChannelId = _json["negotiationChannelId"];
19927 }
19928 if (_json.containsKey("orderId")) {
19929 orderId = _json["orderId"];
19930 }
19931 if (_json.containsKey("placementStrategyId")) {
19932 placementStrategyId = _json["placementStrategyId"];
19933 }
19934 if (_json.containsKey("pricing")) {
19935 pricing = new Pricing.fromJson(_json["pricing"]);
19936 }
19937 if (_json.containsKey("projectId")) {
19938 projectId = _json["projectId"];
19939 }
19940 if (_json.containsKey("rfpId")) {
19941 rfpId = _json["rfpId"];
19942 }
19943 if (_json.containsKey("siteId")) {
19944 siteId = _json["siteId"];
19945 }
19946 if (_json.containsKey("subaccountId")) {
19947 subaccountId = _json["subaccountId"];
19948 }
19949 }
19950
19951 core.Map toJson() {
19952 var _json = new core.Map();
19953 if (accountId != null) {
19954 _json["accountId"] = accountId;
19955 }
19956 if (adSlots != null) {
19957 _json["adSlots"] = adSlots.map((value) => (value).toJson()).toList();
19958 }
19959 if (advertiserId != null) {
19960 _json["advertiserId"] = advertiserId;
19961 }
19962 if (contentCategoryId != null) {
19963 _json["contentCategoryId"] = contentCategoryId;
19964 }
19965 if (estimatedClickThroughRate != null) {
19966 _json["estimatedClickThroughRate"] = estimatedClickThroughRate;
19967 }
19968 if (estimatedConversionRate != null) {
19969 _json["estimatedConversionRate"] = estimatedConversionRate;
19970 }
19971 if (id != null) {
19972 _json["id"] = id;
19973 }
19974 if (inPlan != null) {
19975 _json["inPlan"] = inPlan;
19976 }
19977 if (kind != null) {
19978 _json["kind"] = kind;
19979 }
19980 if (lastModifiedInfo != null) {
19981 _json["lastModifiedInfo"] = (lastModifiedInfo).toJson();
19982 }
19983 if (name != null) {
19984 _json["name"] = name;
19985 }
19986 if (negotiationChannelId != null) {
19987 _json["negotiationChannelId"] = negotiationChannelId;
19988 }
19989 if (orderId != null) {
19990 _json["orderId"] = orderId;
19991 }
19992 if (placementStrategyId != null) {
19993 _json["placementStrategyId"] = placementStrategyId;
19994 }
19995 if (pricing != null) {
19996 _json["pricing"] = (pricing).toJson();
19997 }
19998 if (projectId != null) {
19999 _json["projectId"] = projectId;
20000 }
20001 if (rfpId != null) {
20002 _json["rfpId"] = rfpId;
20003 }
20004 if (siteId != null) {
20005 _json["siteId"] = siteId;
20006 }
20007 if (subaccountId != null) {
20008 _json["subaccountId"] = subaccountId;
20009 }
20010 return _json;
20011 }
20012 }
20013
20014 /** Inventory item List Response */
20015 class InventoryItemsListResponse {
20016 /** Inventory item collection */
20017 core.List<InventoryItem> inventoryItems;
20018 /**
20019 * Identifies what kind of resource this is. Value: the fixed string
20020 * "dfareporting#inventoryItemsListResponse".
20021 */
20022 core.String kind;
20023 /** Pagination token to be used for the next list operation. */
20024 core.String nextPageToken;
20025
20026 InventoryItemsListResponse();
20027
20028 InventoryItemsListResponse.fromJson(core.Map _json) {
20029 if (_json.containsKey("inventoryItems")) {
20030 inventoryItems = _json["inventoryItems"].map((value) => new InventoryItem. fromJson(value)).toList();
20031 }
20032 if (_json.containsKey("kind")) {
20033 kind = _json["kind"];
20034 }
20035 if (_json.containsKey("nextPageToken")) {
20036 nextPageToken = _json["nextPageToken"];
20037 }
20038 }
20039
20040 core.Map toJson() {
20041 var _json = new core.Map();
20042 if (inventoryItems != null) {
20043 _json["inventoryItems"] = inventoryItems.map((value) => (value).toJson()). toList();
20044 }
20045 if (kind != null) {
20046 _json["kind"] = kind;
20047 }
20048 if (nextPageToken != null) {
20049 _json["nextPageToken"] = nextPageToken;
20050 }
20051 return _json;
20052 }
20053 }
20054
17998 /** Key Value Targeting Expression. */ 20055 /** Key Value Targeting Expression. */
17999 class KeyValueTargetingExpression { 20056 class KeyValueTargetingExpression {
18000 /** Keyword expression being targeted by the ad. */ 20057 /** Keyword expression being targeted by the ad. */
18001 core.String expression; 20058 core.String expression;
18002 20059
18003 KeyValueTargetingExpression(); 20060 KeyValueTargetingExpression();
18004 20061
18005 KeyValueTargetingExpression.fromJson(core.Map _json) { 20062 KeyValueTargetingExpression.fromJson(core.Map _json) {
18006 if (_json.containsKey("expression")) { 20063 if (_json.containsKey("expression")) {
18007 expression = _json["expression"]; 20064 expression = _json["expression"];
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
18131 } 20188 }
18132 } 20189 }
18133 20190
18134 core.Map toJson() { 20191 core.Map toJson() {
18135 var _json = new core.Map(); 20192 var _json = new core.Map();
18136 if (time != null) { 20193 if (time != null) {
18137 _json["time"] = time; 20194 _json["time"] = time;
18138 } 20195 }
18139 return _json; 20196 return _json;
18140 } 20197 }
20198 }
20199
20200 /**
20201 * A group clause made up of list population terms representing constraints
20202 * joined by ORs.
20203 */
20204 class ListPopulationClause {
20205 /**
20206 * Terms of this list population clause. Each clause is made up of list
20207 * population terms representing constraints and are joined by ORs.
20208 */
20209 core.List<ListPopulationTerm> terms;
20210
20211 ListPopulationClause();
20212
20213 ListPopulationClause.fromJson(core.Map _json) {
20214 if (_json.containsKey("terms")) {
20215 terms = _json["terms"].map((value) => new ListPopulationTerm.fromJson(valu e)).toList();
20216 }
20217 }
20218
20219 core.Map toJson() {
20220 var _json = new core.Map();
20221 if (terms != null) {
20222 _json["terms"] = terms.map((value) => (value).toJson()).toList();
20223 }
20224 return _json;
20225 }
20226 }
20227
20228 /** Remarketing List Population Rule. */
20229 class ListPopulationRule {
20230 /**
20231 * Floodlight activity ID associated with this rule. This field can be left
20232 * blank.
20233 */
20234 core.String floodlightActivityId;
20235 /**
20236 * Name of floodlight activity associated with this rule. This is a read-only,
20237 * auto-generated field.
20238 */
20239 core.String floodlightActivityName;
20240 /**
20241 * Clauses that make up this list population rule. Clauses are joined by ANDs,
20242 * and the clauses themselves are made up of list population terms which are
20243 * joined by ORs.
20244 */
20245 core.List<ListPopulationClause> listPopulationClauses;
20246
20247 ListPopulationRule();
20248
20249 ListPopulationRule.fromJson(core.Map _json) {
20250 if (_json.containsKey("floodlightActivityId")) {
20251 floodlightActivityId = _json["floodlightActivityId"];
20252 }
20253 if (_json.containsKey("floodlightActivityName")) {
20254 floodlightActivityName = _json["floodlightActivityName"];
20255 }
20256 if (_json.containsKey("listPopulationClauses")) {
20257 listPopulationClauses = _json["listPopulationClauses"].map((value) => new ListPopulationClause.fromJson(value)).toList();
20258 }
20259 }
20260
20261 core.Map toJson() {
20262 var _json = new core.Map();
20263 if (floodlightActivityId != null) {
20264 _json["floodlightActivityId"] = floodlightActivityId;
20265 }
20266 if (floodlightActivityName != null) {
20267 _json["floodlightActivityName"] = floodlightActivityName;
20268 }
20269 if (listPopulationClauses != null) {
20270 _json["listPopulationClauses"] = listPopulationClauses.map((value) => (val ue).toJson()).toList();
20271 }
20272 return _json;
20273 }
20274 }
20275
20276 /** Remarketing List Population Rule Term. */
20277 class ListPopulationTerm {
20278 /**
20279 * Will be true if the term should check if the user is in the list and false
20280 * if the term should check if the user is not in the list. This field is only
20281 * relevant when type is set to LIST_MEMBERSHIP_TERM. False by default.
20282 */
20283 core.bool contains;
20284 /**
20285 * Whether to negate the comparison result of this term during rule
20286 * evaluation. This field is only relevant when type is left unset or set to
20287 * CUSTOM_VARIABLE_TERM or REFERRER_TERM.
20288 */
20289 core.bool negation;
20290 /**
20291 * Comparison operator of this term. This field is only relevant when type is
20292 * left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM.
20293 * Possible string values are:
20294 * - "NUM_EQUALS"
20295 * - "NUM_GREATER_THAN"
20296 * - "NUM_GREATER_THAN_EQUAL"
20297 * - "NUM_LESS_THAN"
20298 * - "NUM_LESS_THAN_EQUAL"
20299 * - "STRING_CONTAINS"
20300 * - "STRING_EQUALS"
20301 */
20302 core.String operator;
20303 /**
20304 * ID of the list in question. This field is only relevant when type is set to
20305 * LIST_MEMBERSHIP_TERM.
20306 */
20307 core.String remarketingListId;
20308 /**
20309 * List population term type determines the applicable fields in this object.
20310 * If left unset or set to CUSTOM_VARIABLE_TERM, then variableName,
20311 * variableFriendlyName, operator, value, and negation are applicable. If set
20312 * to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable.
20313 * If set to REFERRER_TERM then operator, value, and negation are applicable.
20314 * Possible string values are:
20315 * - "CUSTOM_VARIABLE_TERM"
20316 * - "LIST_MEMBERSHIP_TERM"
20317 * - "REFERRER_TERM"
20318 */
20319 core.String type;
20320 /**
20321 * Literal to compare the variable to. This field is only relevant when type
20322 * is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM.
20323 */
20324 core.String value;
20325 /**
20326 * Friendly name of this term's variable. This is a read-only, auto-generated
20327 * field. This field is only relevant when type is left unset or set to
20328 * CUSTOM_VARIABLE_TERM.
20329 */
20330 core.String variableFriendlyName;
20331 /**
20332 * Name of the variable (U1, U2, etc.) being compared in this term. This field
20333 * is only relevant when type is set to null, CUSTOM_VARIABLE_TERM or
20334 * REFERRER_TERM.
20335 */
20336 core.String variableName;
20337
20338 ListPopulationTerm();
20339
20340 ListPopulationTerm.fromJson(core.Map _json) {
20341 if (_json.containsKey("contains")) {
20342 contains = _json["contains"];
20343 }
20344 if (_json.containsKey("negation")) {
20345 negation = _json["negation"];
20346 }
20347 if (_json.containsKey("operator")) {
20348 operator = _json["operator"];
20349 }
20350 if (_json.containsKey("remarketingListId")) {
20351 remarketingListId = _json["remarketingListId"];
20352 }
20353 if (_json.containsKey("type")) {
20354 type = _json["type"];
20355 }
20356 if (_json.containsKey("value")) {
20357 value = _json["value"];
20358 }
20359 if (_json.containsKey("variableFriendlyName")) {
20360 variableFriendlyName = _json["variableFriendlyName"];
20361 }
20362 if (_json.containsKey("variableName")) {
20363 variableName = _json["variableName"];
20364 }
20365 }
20366
20367 core.Map toJson() {
20368 var _json = new core.Map();
20369 if (contains != null) {
20370 _json["contains"] = contains;
20371 }
20372 if (negation != null) {
20373 _json["negation"] = negation;
20374 }
20375 if (operator != null) {
20376 _json["operator"] = operator;
20377 }
20378 if (remarketingListId != null) {
20379 _json["remarketingListId"] = remarketingListId;
20380 }
20381 if (type != null) {
20382 _json["type"] = type;
20383 }
20384 if (value != null) {
20385 _json["value"] = value;
20386 }
20387 if (variableFriendlyName != null) {
20388 _json["variableFriendlyName"] = variableFriendlyName;
20389 }
20390 if (variableName != null) {
20391 _json["variableName"] = variableName;
20392 }
20393 return _json;
20394 }
18141 } 20395 }
18142 20396
18143 /** Remarketing List Targeting Expression. */ 20397 /** Remarketing List Targeting Expression. */
18144 class ListTargetingExpression { 20398 class ListTargetingExpression {
18145 /** Expression describing which lists are being targeted by the ad. */ 20399 /** Expression describing which lists are being targeted by the ad. */
18146 core.String expression; 20400 core.String expression;
18147 20401
18148 ListTargetingExpression(); 20402 ListTargetingExpression();
18149 20403
18150 ListTargetingExpression.fromJson(core.Map _json) { 20404 ListTargetingExpression.fromJson(core.Map _json) {
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
18693 20947
18694 OperatingSystemVersionsListResponse.fromJson(core.Map _json) { 20948 OperatingSystemVersionsListResponse.fromJson(core.Map _json) {
18695 if (_json.containsKey("kind")) { 20949 if (_json.containsKey("kind")) {
18696 kind = _json["kind"]; 20950 kind = _json["kind"];
18697 } 20951 }
18698 if (_json.containsKey("operatingSystemVersions")) { 20952 if (_json.containsKey("operatingSystemVersions")) {
18699 operatingSystemVersions = _json["operatingSystemVersions"].map((value) => new OperatingSystemVersion.fromJson(value)).toList(); 20953 operatingSystemVersions = _json["operatingSystemVersions"].map((value) => new OperatingSystemVersion.fromJson(value)).toList();
18700 } 20954 }
18701 } 20955 }
18702 20956
20957 core.Map toJson() {
20958 var _json = new core.Map();
20959 if (kind != null) {
20960 _json["kind"] = kind;
20961 }
20962 if (operatingSystemVersions != null) {
20963 _json["operatingSystemVersions"] = operatingSystemVersions.map((value) => (value).toJson()).toList();
20964 }
20965 return _json;
20966 }
20967 }
20968
20969 /** Operating System List Response */
20970 class OperatingSystemsListResponse {
20971 /**
20972 * Identifies what kind of resource this is. Value: the fixed string
20973 * "dfareporting#operatingSystemsListResponse".
20974 */
20975 core.String kind;
20976 /** Operating system collection. */
20977 core.List<OperatingSystem> operatingSystems;
20978
20979 OperatingSystemsListResponse();
20980
20981 OperatingSystemsListResponse.fromJson(core.Map _json) {
20982 if (_json.containsKey("kind")) {
20983 kind = _json["kind"];
20984 }
20985 if (_json.containsKey("operatingSystems")) {
20986 operatingSystems = _json["operatingSystems"].map((value) => new OperatingS ystem.fromJson(value)).toList();
20987 }
20988 }
20989
20990 core.Map toJson() {
20991 var _json = new core.Map();
20992 if (kind != null) {
20993 _json["kind"] = kind;
20994 }
20995 if (operatingSystems != null) {
20996 _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson ()).toList();
20997 }
20998 return _json;
20999 }
21000 }
21001
21002 /** Creative optimization activity. */
21003 class OptimizationActivity {
21004 /**
21005 * Floodlight activity ID of this optimization activity. This is a required
21006 * field.
21007 */
21008 core.String floodlightActivityId;
21009 /**
21010 * Dimension value for the ID of the floodlight activity. This is a read-only,
21011 * auto-generated field.
21012 */
21013 DimensionValue floodlightActivityIdDimensionValue;
21014 /**
21015 * Weight associated with this optimization. Must be greater than 1. The
21016 * weight assigned will be understood in proportion to the weights assigned to
21017 * the other optimization activities.
21018 */
21019 core.int weight;
21020
21021 OptimizationActivity();
21022
21023 OptimizationActivity.fromJson(core.Map _json) {
21024 if (_json.containsKey("floodlightActivityId")) {
21025 floodlightActivityId = _json["floodlightActivityId"];
21026 }
21027 if (_json.containsKey("floodlightActivityIdDimensionValue")) {
21028 floodlightActivityIdDimensionValue = new DimensionValue.fromJson(_json["fl oodlightActivityIdDimensionValue"]);
21029 }
21030 if (_json.containsKey("weight")) {
21031 weight = _json["weight"];
21032 }
21033 }
21034
21035 core.Map toJson() {
21036 var _json = new core.Map();
21037 if (floodlightActivityId != null) {
21038 _json["floodlightActivityId"] = floodlightActivityId;
21039 }
21040 if (floodlightActivityIdDimensionValue != null) {
21041 _json["floodlightActivityIdDimensionValue"] = (floodlightActivityIdDimensi onValue).toJson();
21042 }
21043 if (weight != null) {
21044 _json["weight"] = weight;
21045 }
21046 return _json;
21047 }
21048 }
21049
21050 /** Describes properties of a DoubleClick Planning order. */
21051 class Order {
21052 /** Account ID of this order. */
21053 core.String accountId;
21054 /** Advertiser ID of this order. */
21055 core.String advertiserId;
21056 /** IDs for users that have to approve documents created for this order. */
21057 core.List<core.String> approverUserProfileIds;
21058 /** Buyer invoice ID associated with this order. */
21059 core.String buyerInvoiceId;
21060 /** Name of the buyer organization. */
21061 core.String buyerOrganizationName;
21062 /** Comments in this order. */
21063 core.String comments;
21064 /** Contacts for this order. */
21065 core.List<OrderContact> contacts;
21066 /** ID of this order. This is a read-only, auto-generated field. */
21067 core.String id;
21068 /**
21069 * Identifies what kind of resource this is. Value: the fixed string
21070 * "dfareporting#order".
21071 */
21072 core.String kind;
21073 /** Information about the most recent modification of this order. */
21074 LastModifiedInfo lastModifiedInfo;
21075 /** Name of this order. */
21076 core.String name;
21077 /** Notes of this order. */
21078 core.String notes;
21079 /** ID of the terms and conditions template used in this order. */
21080 core.String planningTermId;
21081 /** Project ID of this order. */
21082 core.String projectId;
21083 /** Seller order ID associated with this order. */
21084 core.String sellerOrderId;
21085 /** Name of the seller organization. */
21086 core.String sellerOrganizationName;
21087 /** Site IDs this order is associated with. */
21088 core.List<core.String> siteId;
21089 /** Free-form site names this order is associated with. */
21090 core.List<core.String> siteNames;
21091 /** Subaccount ID of this order. */
21092 core.String subaccountId;
21093 /** Terms and conditions of this order. */
21094 core.String termsAndConditions;
21095
21096 Order();
21097
21098 Order.fromJson(core.Map _json) {
21099 if (_json.containsKey("accountId")) {
21100 accountId = _json["accountId"];
21101 }
21102 if (_json.containsKey("advertiserId")) {
21103 advertiserId = _json["advertiserId"];
21104 }
21105 if (_json.containsKey("approverUserProfileIds")) {
21106 approverUserProfileIds = _json["approverUserProfileIds"];
21107 }
21108 if (_json.containsKey("buyerInvoiceId")) {
21109 buyerInvoiceId = _json["buyerInvoiceId"];
21110 }
21111 if (_json.containsKey("buyerOrganizationName")) {
21112 buyerOrganizationName = _json["buyerOrganizationName"];
21113 }
21114 if (_json.containsKey("comments")) {
21115 comments = _json["comments"];
21116 }
21117 if (_json.containsKey("contacts")) {
21118 contacts = _json["contacts"].map((value) => new OrderContact.fromJson(valu e)).toList();
21119 }
21120 if (_json.containsKey("id")) {
21121 id = _json["id"];
21122 }
21123 if (_json.containsKey("kind")) {
21124 kind = _json["kind"];
21125 }
21126 if (_json.containsKey("lastModifiedInfo")) {
21127 lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"] );
21128 }
21129 if (_json.containsKey("name")) {
21130 name = _json["name"];
21131 }
21132 if (_json.containsKey("notes")) {
21133 notes = _json["notes"];
21134 }
21135 if (_json.containsKey("planningTermId")) {
21136 planningTermId = _json["planningTermId"];
21137 }
21138 if (_json.containsKey("projectId")) {
21139 projectId = _json["projectId"];
21140 }
21141 if (_json.containsKey("sellerOrderId")) {
21142 sellerOrderId = _json["sellerOrderId"];
21143 }
21144 if (_json.containsKey("sellerOrganizationName")) {
21145 sellerOrganizationName = _json["sellerOrganizationName"];
21146 }
21147 if (_json.containsKey("siteId")) {
21148 siteId = _json["siteId"];
21149 }
21150 if (_json.containsKey("siteNames")) {
21151 siteNames = _json["siteNames"];
21152 }
21153 if (_json.containsKey("subaccountId")) {
21154 subaccountId = _json["subaccountId"];
21155 }
21156 if (_json.containsKey("termsAndConditions")) {
21157 termsAndConditions = _json["termsAndConditions"];
21158 }
21159 }
21160
21161 core.Map toJson() {
21162 var _json = new core.Map();
21163 if (accountId != null) {
21164 _json["accountId"] = accountId;
21165 }
21166 if (advertiserId != null) {
21167 _json["advertiserId"] = advertiserId;
21168 }
21169 if (approverUserProfileIds != null) {
21170 _json["approverUserProfileIds"] = approverUserProfileIds;
21171 }
21172 if (buyerInvoiceId != null) {
21173 _json["buyerInvoiceId"] = buyerInvoiceId;
21174 }
21175 if (buyerOrganizationName != null) {
21176 _json["buyerOrganizationName"] = buyerOrganizationName;
21177 }
21178 if (comments != null) {
21179 _json["comments"] = comments;
21180 }
21181 if (contacts != null) {
21182 _json["contacts"] = contacts.map((value) => (value).toJson()).toList();
21183 }
21184 if (id != null) {
21185 _json["id"] = id;
21186 }
21187 if (kind != null) {
21188 _json["kind"] = kind;
21189 }
21190 if (lastModifiedInfo != null) {
21191 _json["lastModifiedInfo"] = (lastModifiedInfo).toJson();
21192 }
21193 if (name != null) {
21194 _json["name"] = name;
21195 }
21196 if (notes != null) {
21197 _json["notes"] = notes;
21198 }
21199 if (planningTermId != null) {
21200 _json["planningTermId"] = planningTermId;
21201 }
21202 if (projectId != null) {
21203 _json["projectId"] = projectId;
21204 }
21205 if (sellerOrderId != null) {
21206 _json["sellerOrderId"] = sellerOrderId;
21207 }
21208 if (sellerOrganizationName != null) {
21209 _json["sellerOrganizationName"] = sellerOrganizationName;
21210 }
21211 if (siteId != null) {
21212 _json["siteId"] = siteId;
21213 }
21214 if (siteNames != null) {
21215 _json["siteNames"] = siteNames;
21216 }
21217 if (subaccountId != null) {
21218 _json["subaccountId"] = subaccountId;
21219 }
21220 if (termsAndConditions != null) {
21221 _json["termsAndConditions"] = termsAndConditions;
21222 }
21223 return _json;
21224 }
21225 }
21226
21227 /** Contact of an order. */
21228 class OrderContact {
21229 /**
21230 * Free-form information about this contact. It could be any information
21231 * related to this contact in addition to type, title, name, and signature
21232 * user profile ID.
21233 */
21234 core.String contactInfo;
21235 /** Name of this contact. */
21236 core.String contactName;
21237 /** Title of this contact. */
21238 core.String contactTitle;
21239 /**
21240 * Type of this contact.
21241 * Possible string values are:
21242 * - "PLANNING_ORDER_CONTACT_BUYER_BILLING_CONTACT"
21243 * - "PLANNING_ORDER_CONTACT_BUYER_CONTACT"
21244 * - "PLANNING_ORDER_CONTACT_SELLER_CONTACT"
21245 */
21246 core.String contactType;
21247 /**
21248 * ID of the user profile containing the signature that will be embedded into
21249 * order documents.
21250 */
21251 core.String signatureUserProfileId;
21252
21253 OrderContact();
21254
21255 OrderContact.fromJson(core.Map _json) {
21256 if (_json.containsKey("contactInfo")) {
21257 contactInfo = _json["contactInfo"];
21258 }
21259 if (_json.containsKey("contactName")) {
21260 contactName = _json["contactName"];
21261 }
21262 if (_json.containsKey("contactTitle")) {
21263 contactTitle = _json["contactTitle"];
21264 }
21265 if (_json.containsKey("contactType")) {
21266 contactType = _json["contactType"];
21267 }
21268 if (_json.containsKey("signatureUserProfileId")) {
21269 signatureUserProfileId = _json["signatureUserProfileId"];
21270 }
21271 }
21272
21273 core.Map toJson() {
21274 var _json = new core.Map();
21275 if (contactInfo != null) {
21276 _json["contactInfo"] = contactInfo;
21277 }
21278 if (contactName != null) {
21279 _json["contactName"] = contactName;
21280 }
21281 if (contactTitle != null) {
21282 _json["contactTitle"] = contactTitle;
21283 }
21284 if (contactType != null) {
21285 _json["contactType"] = contactType;
21286 }
21287 if (signatureUserProfileId != null) {
21288 _json["signatureUserProfileId"] = signatureUserProfileId;
21289 }
21290 return _json;
21291 }
21292 }
21293
21294 /** Contains properties of a DoubleClick Planning order document. */
21295 class OrderDocument {
21296 /** Account ID of this order document. */
21297 core.String accountId;
21298 /** Advertiser ID of this order document. */
21299 core.String advertiserId;
21300 /**
21301 * The amended order document ID of this order document. An order document can
21302 * be created by optionally amending another order document so that the change
21303 * history can be preserved.
21304 */
21305 core.String amendedOrderDocumentId;
21306 /** IDs of users who have approved this order document. */
21307 core.List<core.String> approvedByUserProfileIds;
21308 /** Whether this order document is cancelled. */
21309 core.bool cancelled;
21310 /** Information about the creation of this order document. */
21311 LastModifiedInfo createdInfo;
21312 /** Effective date of this order document. */
21313 core.DateTime effectiveDate;
21314 /** ID of this order document. */
21315 core.String id;
21316 /**
21317 * Identifies what kind of resource this is. Value: the fixed string
21318 * "dfareporting#orderDocument".
21319 */
21320 core.String kind;
21321 /** List of email addresses that received the last sent document. */
21322 core.List<core.String> lastSentRecipients;
21323 /** Timestamp of the last email sent with this order document. */
21324 core.DateTime lastSentTime;
21325 /** ID of the order from which this order document is created. */
21326 core.String orderId;
21327 /** Project ID of this order document. */
21328 core.String projectId;
21329 /** Whether this order document has been signed. */
21330 core.bool signed;
21331 /** Subaccount ID of this order document. */
21332 core.String subaccountId;
21333 /** Title of this order document. */
21334 core.String title;
21335 /**
21336 * Type of this order document
21337 * Possible string values are:
21338 * - "PLANNING_ORDER_TYPE_CHANGE_ORDER"
21339 * - "PLANNING_ORDER_TYPE_INSERTION_ORDER"
21340 */
21341 core.String type;
21342
21343 OrderDocument();
21344
21345 OrderDocument.fromJson(core.Map _json) {
21346 if (_json.containsKey("accountId")) {
21347 accountId = _json["accountId"];
21348 }
21349 if (_json.containsKey("advertiserId")) {
21350 advertiserId = _json["advertiserId"];
21351 }
21352 if (_json.containsKey("amendedOrderDocumentId")) {
21353 amendedOrderDocumentId = _json["amendedOrderDocumentId"];
21354 }
21355 if (_json.containsKey("approvedByUserProfileIds")) {
21356 approvedByUserProfileIds = _json["approvedByUserProfileIds"];
21357 }
21358 if (_json.containsKey("cancelled")) {
21359 cancelled = _json["cancelled"];
21360 }
21361 if (_json.containsKey("createdInfo")) {
21362 createdInfo = new LastModifiedInfo.fromJson(_json["createdInfo"]);
21363 }
21364 if (_json.containsKey("effectiveDate")) {
21365 effectiveDate = core.DateTime.parse(_json["effectiveDate"]);
21366 }
21367 if (_json.containsKey("id")) {
21368 id = _json["id"];
21369 }
21370 if (_json.containsKey("kind")) {
21371 kind = _json["kind"];
21372 }
21373 if (_json.containsKey("lastSentRecipients")) {
21374 lastSentRecipients = _json["lastSentRecipients"];
21375 }
21376 if (_json.containsKey("lastSentTime")) {
21377 lastSentTime = core.DateTime.parse(_json["lastSentTime"]);
21378 }
21379 if (_json.containsKey("orderId")) {
21380 orderId = _json["orderId"];
21381 }
21382 if (_json.containsKey("projectId")) {
21383 projectId = _json["projectId"];
21384 }
21385 if (_json.containsKey("signed")) {
21386 signed = _json["signed"];
21387 }
21388 if (_json.containsKey("subaccountId")) {
21389 subaccountId = _json["subaccountId"];
21390 }
21391 if (_json.containsKey("title")) {
21392 title = _json["title"];
21393 }
21394 if (_json.containsKey("type")) {
21395 type = _json["type"];
21396 }
21397 }
21398
21399 core.Map toJson() {
21400 var _json = new core.Map();
21401 if (accountId != null) {
21402 _json["accountId"] = accountId;
21403 }
21404 if (advertiserId != null) {
21405 _json["advertiserId"] = advertiserId;
21406 }
21407 if (amendedOrderDocumentId != null) {
21408 _json["amendedOrderDocumentId"] = amendedOrderDocumentId;
21409 }
21410 if (approvedByUserProfileIds != null) {
21411 _json["approvedByUserProfileIds"] = approvedByUserProfileIds;
21412 }
21413 if (cancelled != null) {
21414 _json["cancelled"] = cancelled;
21415 }
21416 if (createdInfo != null) {
21417 _json["createdInfo"] = (createdInfo).toJson();
21418 }
21419 if (effectiveDate != null) {
21420 _json["effectiveDate"] = "${(effectiveDate).year.toString().padLeft(4, '0' )}-${(effectiveDate).month.toString().padLeft(2, '0')}-${(effectiveDate).day.toS tring().padLeft(2, '0')}";
21421 }
21422 if (id != null) {
21423 _json["id"] = id;
21424 }
21425 if (kind != null) {
21426 _json["kind"] = kind;
21427 }
21428 if (lastSentRecipients != null) {
21429 _json["lastSentRecipients"] = lastSentRecipients;
21430 }
21431 if (lastSentTime != null) {
21432 _json["lastSentTime"] = (lastSentTime).toIso8601String();
21433 }
21434 if (orderId != null) {
21435 _json["orderId"] = orderId;
21436 }
21437 if (projectId != null) {
21438 _json["projectId"] = projectId;
21439 }
21440 if (signed != null) {
21441 _json["signed"] = signed;
21442 }
21443 if (subaccountId != null) {
21444 _json["subaccountId"] = subaccountId;
21445 }
21446 if (title != null) {
21447 _json["title"] = title;
21448 }
21449 if (type != null) {
21450 _json["type"] = type;
21451 }
21452 return _json;
21453 }
21454 }
21455
21456 /** Order document List Response */
21457 class OrderDocumentsListResponse {
21458 /**
21459 * Identifies what kind of resource this is. Value: the fixed string
21460 * "dfareporting#orderDocumentsListResponse".
21461 */
21462 core.String kind;
21463 /** Pagination token to be used for the next list operation. */
21464 core.String nextPageToken;
21465 /** Order document collection */
21466 core.List<OrderDocument> orderDocuments;
21467
21468 OrderDocumentsListResponse();
21469
21470 OrderDocumentsListResponse.fromJson(core.Map _json) {
21471 if (_json.containsKey("kind")) {
21472 kind = _json["kind"];
21473 }
21474 if (_json.containsKey("nextPageToken")) {
21475 nextPageToken = _json["nextPageToken"];
21476 }
21477 if (_json.containsKey("orderDocuments")) {
21478 orderDocuments = _json["orderDocuments"].map((value) => new OrderDocument. fromJson(value)).toList();
21479 }
21480 }
21481
18703 core.Map toJson() { 21482 core.Map toJson() {
18704 var _json = new core.Map(); 21483 var _json = new core.Map();
18705 if (kind != null) { 21484 if (kind != null) {
18706 _json["kind"] = kind; 21485 _json["kind"] = kind;
18707 } 21486 }
18708 if (operatingSystemVersions != null) { 21487 if (nextPageToken != null) {
18709 _json["operatingSystemVersions"] = operatingSystemVersions.map((value) => (value).toJson()).toList(); 21488 _json["nextPageToken"] = nextPageToken;
21489 }
21490 if (orderDocuments != null) {
21491 _json["orderDocuments"] = orderDocuments.map((value) => (value).toJson()). toList();
18710 } 21492 }
18711 return _json; 21493 return _json;
18712 } 21494 }
18713 } 21495 }
18714 21496
18715 /** Operating System List Response */ 21497 /** Order List Response */
18716 class OperatingSystemsListResponse { 21498 class OrdersListResponse {
18717 /** 21499 /**
18718 * Identifies what kind of resource this is. Value: the fixed string 21500 * Identifies what kind of resource this is. Value: the fixed string
18719 * "dfareporting#operatingSystemsListResponse". 21501 * "dfareporting#ordersListResponse".
18720 */ 21502 */
18721 core.String kind; 21503 core.String kind;
18722 /** Operating system collection. */ 21504 /** Pagination token to be used for the next list operation. */
18723 core.List<OperatingSystem> operatingSystems; 21505 core.String nextPageToken;
21506 /** Order collection. */
21507 core.List<Order> orders;
18724 21508
18725 OperatingSystemsListResponse(); 21509 OrdersListResponse();
18726 21510
18727 OperatingSystemsListResponse.fromJson(core.Map _json) { 21511 OrdersListResponse.fromJson(core.Map _json) {
18728 if (_json.containsKey("kind")) { 21512 if (_json.containsKey("kind")) {
18729 kind = _json["kind"]; 21513 kind = _json["kind"];
18730 } 21514 }
18731 if (_json.containsKey("operatingSystems")) { 21515 if (_json.containsKey("nextPageToken")) {
18732 operatingSystems = _json["operatingSystems"].map((value) => new OperatingS ystem.fromJson(value)).toList(); 21516 nextPageToken = _json["nextPageToken"];
21517 }
21518 if (_json.containsKey("orders")) {
21519 orders = _json["orders"].map((value) => new Order.fromJson(value)).toList( );
18733 } 21520 }
18734 } 21521 }
18735 21522
18736 core.Map toJson() { 21523 core.Map toJson() {
18737 var _json = new core.Map(); 21524 var _json = new core.Map();
18738 if (kind != null) { 21525 if (kind != null) {
18739 _json["kind"] = kind; 21526 _json["kind"] = kind;
18740 } 21527 }
18741 if (operatingSystems != null) { 21528 if (nextPageToken != null) {
18742 _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson ()).toList(); 21529 _json["nextPageToken"] = nextPageToken;
21530 }
21531 if (orders != null) {
21532 _json["orders"] = orders.map((value) => (value).toJson()).toList();
18743 } 21533 }
18744 return _json; 21534 return _json;
18745 } 21535 }
18746 }
18747
18748 /** Creative optimization activity. */
18749 class OptimizationActivity {
18750 /**
18751 * Floodlight activity ID of this optimization activity. This is a required
18752 * field.
18753 */
18754 core.String floodlightActivityId;
18755 /**
18756 * Dimension value for the ID of the floodlight activity. This is a read-only,
18757 * auto-generated field.
18758 */
18759 DimensionValue floodlightActivityIdDimensionValue;
18760 /**
18761 * Weight associated with this optimization. Must be greater than 1. The
18762 * weight assigned will be understood in proportion to the weights assigned to
18763 * the other optimization activities.
18764 */
18765 core.int weight;
18766
18767 OptimizationActivity();
18768
18769 OptimizationActivity.fromJson(core.Map _json) {
18770 if (_json.containsKey("floodlightActivityId")) {
18771 floodlightActivityId = _json["floodlightActivityId"];
18772 }
18773 if (_json.containsKey("floodlightActivityIdDimensionValue")) {
18774 floodlightActivityIdDimensionValue = new DimensionValue.fromJson(_json["fl oodlightActivityIdDimensionValue"]);
18775 }
18776 if (_json.containsKey("weight")) {
18777 weight = _json["weight"];
18778 }
18779 }
18780
18781 core.Map toJson() {
18782 var _json = new core.Map();
18783 if (floodlightActivityId != null) {
18784 _json["floodlightActivityId"] = floodlightActivityId;
18785 }
18786 if (floodlightActivityIdDimensionValue != null) {
18787 _json["floodlightActivityIdDimensionValue"] = (floodlightActivityIdDimensi onValue).toJson();
18788 }
18789 if (weight != null) {
18790 _json["weight"] = weight;
18791 }
18792 return _json;
18793 }
18794 } 21536 }
18795 21537
18796 /** 21538 /**
18797 * Represents fields that are compatible to be selected for a report of type 21539 * Represents fields that are compatible to be selected for a report of type
18798 * "PATH_TO_CONVERSION". 21540 * "PATH_TO_CONVERSION".
18799 */ 21541 */
18800 class PathToConversionReportCompatibleFields { 21542 class PathToConversionReportCompatibleFields {
18801 /** 21543 /**
18802 * Conversion dimensions which are compatible to be selected in the 21544 * Conversion dimensions which are compatible to be selected in the
18803 * "conversionDimensions" section of the report. 21545 * "conversionDimensions" section of the report.
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
19425 * ID of the primary placement, used to calculate the media cost of a 22167 * ID of the primary placement, used to calculate the media cost of a
19426 * roadblock (placement group). Modifying this field will automatically modify 22168 * roadblock (placement group). Modifying this field will automatically modify
19427 * the primary field on all affected roadblock child placements. 22169 * the primary field on all affected roadblock child placements.
19428 */ 22170 */
19429 core.String primaryPlacementId; 22171 core.String primaryPlacementId;
19430 /** 22172 /**
19431 * Dimension value for the ID of the primary placement. This is a read-only, 22173 * Dimension value for the ID of the primary placement. This is a read-only,
19432 * auto-generated field. 22174 * auto-generated field.
19433 */ 22175 */
19434 DimensionValue primaryPlacementIdDimensionValue; 22176 DimensionValue primaryPlacementIdDimensionValue;
19435 /** Settings for a programmatic placement. */
19436 ProgrammaticSetting programmaticSetting;
19437 /** 22177 /**
19438 * Site ID associated with this placement group. On insert, you must set 22178 * Site ID associated with this placement group. On insert, you must set
19439 * either this field or the directorySiteId field to specify the site 22179 * either this field or the directorySiteId field to specify the site
19440 * associated with this placement group. This is a required field that is 22180 * associated with this placement group. This is a required field that is
19441 * read-only after insertion. 22181 * read-only after insertion.
19442 */ 22182 */
19443 core.String siteId; 22183 core.String siteId;
19444 /** 22184 /**
19445 * Dimension value for the ID of the site. This is a read-only, auto-generated 22185 * Dimension value for the ID of the site. This is a read-only, auto-generated
19446 * field. 22186 * field.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
19517 } 22257 }
19518 if (_json.containsKey("pricingSchedule")) { 22258 if (_json.containsKey("pricingSchedule")) {
19519 pricingSchedule = new PricingSchedule.fromJson(_json["pricingSchedule"]); 22259 pricingSchedule = new PricingSchedule.fromJson(_json["pricingSchedule"]);
19520 } 22260 }
19521 if (_json.containsKey("primaryPlacementId")) { 22261 if (_json.containsKey("primaryPlacementId")) {
19522 primaryPlacementId = _json["primaryPlacementId"]; 22262 primaryPlacementId = _json["primaryPlacementId"];
19523 } 22263 }
19524 if (_json.containsKey("primaryPlacementIdDimensionValue")) { 22264 if (_json.containsKey("primaryPlacementIdDimensionValue")) {
19525 primaryPlacementIdDimensionValue = new DimensionValue.fromJson(_json["prim aryPlacementIdDimensionValue"]); 22265 primaryPlacementIdDimensionValue = new DimensionValue.fromJson(_json["prim aryPlacementIdDimensionValue"]);
19526 } 22266 }
19527 if (_json.containsKey("programmaticSetting")) {
19528 programmaticSetting = new ProgrammaticSetting.fromJson(_json["programmatic Setting"]);
19529 }
19530 if (_json.containsKey("siteId")) { 22267 if (_json.containsKey("siteId")) {
19531 siteId = _json["siteId"]; 22268 siteId = _json["siteId"];
19532 } 22269 }
19533 if (_json.containsKey("siteIdDimensionValue")) { 22270 if (_json.containsKey("siteIdDimensionValue")) {
19534 siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionV alue"]); 22271 siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionV alue"]);
19535 } 22272 }
19536 if (_json.containsKey("subaccountId")) { 22273 if (_json.containsKey("subaccountId")) {
19537 subaccountId = _json["subaccountId"]; 22274 subaccountId = _json["subaccountId"];
19538 } 22275 }
19539 } 22276 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
19602 } 22339 }
19603 if (pricingSchedule != null) { 22340 if (pricingSchedule != null) {
19604 _json["pricingSchedule"] = (pricingSchedule).toJson(); 22341 _json["pricingSchedule"] = (pricingSchedule).toJson();
19605 } 22342 }
19606 if (primaryPlacementId != null) { 22343 if (primaryPlacementId != null) {
19607 _json["primaryPlacementId"] = primaryPlacementId; 22344 _json["primaryPlacementId"] = primaryPlacementId;
19608 } 22345 }
19609 if (primaryPlacementIdDimensionValue != null) { 22346 if (primaryPlacementIdDimensionValue != null) {
19610 _json["primaryPlacementIdDimensionValue"] = (primaryPlacementIdDimensionVa lue).toJson(); 22347 _json["primaryPlacementIdDimensionValue"] = (primaryPlacementIdDimensionVa lue).toJson();
19611 } 22348 }
19612 if (programmaticSetting != null) {
19613 _json["programmaticSetting"] = (programmaticSetting).toJson();
19614 }
19615 if (siteId != null) { 22349 if (siteId != null) {
19616 _json["siteId"] = siteId; 22350 _json["siteId"] = siteId;
19617 } 22351 }
19618 if (siteIdDimensionValue != null) { 22352 if (siteIdDimensionValue != null) {
19619 _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson(); 22353 _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson();
19620 } 22354 }
19621 if (subaccountId != null) { 22355 if (subaccountId != null) {
19622 _json["subaccountId"] = subaccountId; 22356 _json["subaccountId"] = subaccountId;
19623 } 22357 }
19624 return _json; 22358 return _json;
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
20035 } 22769 }
20036 if (title != null) { 22770 if (title != null) {
20037 _json["title"] = title; 22771 _json["title"] = title;
20038 } 22772 }
20039 return _json; 22773 return _json;
20040 } 22774 }
20041 } 22775 }
20042 22776
20043 /** Contains information about a postal code that can be targeted by ads. */ 22777 /** Contains information about a postal code that can be targeted by ads. */
20044 class PostalCode { 22778 class PostalCode {
22779 /** Postal code. This is equivalent to the id field. */
22780 core.String code;
20045 /** Country code of the country to which this postal code belongs. */ 22781 /** Country code of the country to which this postal code belongs. */
20046 core.String countryCode; 22782 core.String countryCode;
20047 /** DART ID of the country to which this postal code belongs. */ 22783 /** DART ID of the country to which this postal code belongs. */
20048 core.String countryDartId; 22784 core.String countryDartId;
20049 /** ID of this postal code. */ 22785 /** ID of this postal code. */
20050 core.String id; 22786 core.String id;
20051 /** 22787 /**
20052 * Identifies what kind of resource this is. Value: the fixed string 22788 * Identifies what kind of resource this is. Value: the fixed string
20053 * "dfareporting#postalCode". 22789 * "dfareporting#postalCode".
20054 */ 22790 */
20055 core.String kind; 22791 core.String kind;
20056 22792
20057 PostalCode(); 22793 PostalCode();
20058 22794
20059 PostalCode.fromJson(core.Map _json) { 22795 PostalCode.fromJson(core.Map _json) {
22796 if (_json.containsKey("code")) {
22797 code = _json["code"];
22798 }
20060 if (_json.containsKey("countryCode")) { 22799 if (_json.containsKey("countryCode")) {
20061 countryCode = _json["countryCode"]; 22800 countryCode = _json["countryCode"];
20062 } 22801 }
20063 if (_json.containsKey("countryDartId")) { 22802 if (_json.containsKey("countryDartId")) {
20064 countryDartId = _json["countryDartId"]; 22803 countryDartId = _json["countryDartId"];
20065 } 22804 }
20066 if (_json.containsKey("id")) { 22805 if (_json.containsKey("id")) {
20067 id = _json["id"]; 22806 id = _json["id"];
20068 } 22807 }
20069 if (_json.containsKey("kind")) { 22808 if (_json.containsKey("kind")) {
20070 kind = _json["kind"]; 22809 kind = _json["kind"];
20071 } 22810 }
20072 } 22811 }
20073 22812
20074 core.Map toJson() { 22813 core.Map toJson() {
20075 var _json = new core.Map(); 22814 var _json = new core.Map();
22815 if (code != null) {
22816 _json["code"] = code;
22817 }
20076 if (countryCode != null) { 22818 if (countryCode != null) {
20077 _json["countryCode"] = countryCode; 22819 _json["countryCode"] = countryCode;
20078 } 22820 }
20079 if (countryDartId != null) { 22821 if (countryDartId != null) {
20080 _json["countryDartId"] = countryDartId; 22822 _json["countryDartId"] = countryDartId;
20081 } 22823 }
20082 if (id != null) { 22824 if (id != null) {
20083 _json["id"] = id; 22825 _json["id"] = id;
20084 } 22826 }
20085 if (kind != null) { 22827 if (kind != null) {
(...skipping 29 matching lines...) Expand all
20115 if (kind != null) { 22857 if (kind != null) {
20116 _json["kind"] = kind; 22858 _json["kind"] = kind;
20117 } 22859 }
20118 if (postalCodes != null) { 22860 if (postalCodes != null) {
20119 _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList (); 22861 _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList ();
20120 } 22862 }
20121 return _json; 22863 return _json;
20122 } 22864 }
20123 } 22865 }
20124 22866
22867 /** Pricing Information */
22868 class Pricing {
22869 /**
22870 * Cap cost type of this inventory item.
22871 * Possible string values are:
22872 * - "PLANNING_PLACEMENT_CAP_COST_TYPE_CUMULATIVE"
22873 * - "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY"
22874 * - "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE"
22875 */
22876 core.String capCostType;
22877 /** End date of this inventory item. */
22878 core.DateTime endDate;
22879 /**
22880 * Flights of this inventory item. A flight (a.k.a. pricing period) represents
22881 * the inventory item pricing information for a specific period of time.
22882 */
22883 core.List<Flight> flights;
22884 /**
22885 * Group type of this inventory item if it represents a placement group. Is
22886 * null otherwise. There are two type of placement groups:
22887 * PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items
22888 * that acts as a single pricing point for a group of tags.
22889 * PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that
22890 * not only acts as a single pricing point, but also assumes that all the tags
22891 * in it will be served at the same time. A roadblock requires one of its
22892 * assigned inventory items to be marked as primary.
22893 * Possible string values are:
22894 * - "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE"
22895 * - "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK"
22896 */
22897 core.String groupType;
22898 /**
22899 * Pricing type of this inventory item.
22900 * Possible string values are:
22901 * - "PLANNING_PLACEMENT_PRICING_TYPE_CLICKS"
22902 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPA"
22903 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPC"
22904 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM"
22905 * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS"
22906 * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS"
22907 * - "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS"
22908 */
22909 core.String pricingType;
22910 /** Start date of this inventory item. */
22911 core.DateTime startDate;
22912
22913 Pricing();
22914
22915 Pricing.fromJson(core.Map _json) {
22916 if (_json.containsKey("capCostType")) {
22917 capCostType = _json["capCostType"];
22918 }
22919 if (_json.containsKey("endDate")) {
22920 endDate = core.DateTime.parse(_json["endDate"]);
22921 }
22922 if (_json.containsKey("flights")) {
22923 flights = _json["flights"].map((value) => new Flight.fromJson(value)).toLi st();
22924 }
22925 if (_json.containsKey("groupType")) {
22926 groupType = _json["groupType"];
22927 }
22928 if (_json.containsKey("pricingType")) {
22929 pricingType = _json["pricingType"];
22930 }
22931 if (_json.containsKey("startDate")) {
22932 startDate = core.DateTime.parse(_json["startDate"]);
22933 }
22934 }
22935
22936 core.Map toJson() {
22937 var _json = new core.Map();
22938 if (capCostType != null) {
22939 _json["capCostType"] = capCostType;
22940 }
22941 if (endDate != null) {
22942 _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDat e).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')} ";
22943 }
22944 if (flights != null) {
22945 _json["flights"] = flights.map((value) => (value).toJson()).toList();
22946 }
22947 if (groupType != null) {
22948 _json["groupType"] = groupType;
22949 }
22950 if (pricingType != null) {
22951 _json["pricingType"] = pricingType;
22952 }
22953 if (startDate != null) {
22954 _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(st artDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft( 2, '0')}";
22955 }
22956 return _json;
22957 }
22958 }
22959
20125 /** Pricing Schedule */ 22960 /** Pricing Schedule */
20126 class PricingSchedule { 22961 class PricingSchedule {
20127 /** 22962 /**
20128 * Placement cap cost option. 22963 * Placement cap cost option.
20129 * Possible string values are: 22964 * Possible string values are:
20130 * - "CAP_COST_CUMULATIVE" 22965 * - "CAP_COST_CUMULATIVE"
20131 * - "CAP_COST_MONTHLY" 22966 * - "CAP_COST_MONTHLY"
20132 * - "CAP_COST_NONE" 22967 * - "CAP_COST_NONE"
20133 */ 22968 */
20134 core.String capCostOption; 22969 core.String capCostOption;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
20302 if (startDate != null) { 23137 if (startDate != null) {
20303 _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(st artDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft( 2, '0')}"; 23138 _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(st artDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft( 2, '0')}";
20304 } 23139 }
20305 if (units != null) { 23140 if (units != null) {
20306 _json["units"] = units; 23141 _json["units"] = units;
20307 } 23142 }
20308 return _json; 23143 return _json;
20309 } 23144 }
20310 } 23145 }
20311 23146
20312 /** Programmatic Setting */ 23147 /** Contains properties of a DoubleClick Planning project. */
20313 class ProgrammaticSetting { 23148 class Project {
20314 /** Adx deal IDs assigned to the placement. */ 23149 /** Account ID of this project. */
20315 core.List<core.String> adxDealIds; 23150 core.String accountId;
20316 /** Insertion order ID. */ 23151 /** Advertiser ID of this project. */
20317 core.String insertionOrderId; 23152 core.String advertiserId;
20318 /** 23153 /**
20319 * Whether insertion order ID has been placed in DFP. This is a read-only 23154 * Audience age group of this project.
20320 * field. 23155 * Possible string values are:
20321 */ 23156 * - "PLANNING_AUDIENCE_AGE_18_24"
20322 core.bool insertionOrderIdStatus; 23157 * - "PLANNING_AUDIENCE_AGE_25_34"
20323 /** Media cost for the programmatic placement. */ 23158 * - "PLANNING_AUDIENCE_AGE_35_44"
20324 core.String mediaCostNanos; 23159 * - "PLANNING_AUDIENCE_AGE_45_54"
20325 /** Whether programmatic is enabled. */ 23160 * - "PLANNING_AUDIENCE_AGE_55_64"
20326 core.bool programmatic; 23161 * - "PLANNING_AUDIENCE_AGE_65_OR_MORE"
20327 /** Trafficker emails assigned to the placement. */ 23162 * - "PLANNING_AUDIENCE_AGE_UNKNOWN"
20328 core.List<core.String> traffickerEmails; 23163 */
20329 23164 core.String audienceAgeGroup;
20330 ProgrammaticSetting(); 23165 /**
20331 23166 * Audience gender of this project.
20332 ProgrammaticSetting.fromJson(core.Map _json) { 23167 * Possible string values are:
20333 if (_json.containsKey("adxDealIds")) { 23168 * - "PLANNING_AUDIENCE_GENDER_FEMALE"
20334 adxDealIds = _json["adxDealIds"]; 23169 * - "PLANNING_AUDIENCE_GENDER_MALE"
20335 } 23170 */
20336 if (_json.containsKey("insertionOrderId")) { 23171 core.String audienceGender;
20337 insertionOrderId = _json["insertionOrderId"]; 23172 /**
20338 } 23173 * Budget of this project in the currency specified by the current account.
20339 if (_json.containsKey("insertionOrderIdStatus")) { 23174 * The value stored in this field represents only the non-fractional amount.
20340 insertionOrderIdStatus = _json["insertionOrderIdStatus"]; 23175 * For example, for USD, the smallest value that can be represented by this
20341 } 23176 * field is 1 US dollar.
20342 if (_json.containsKey("mediaCostNanos")) { 23177 */
20343 mediaCostNanos = _json["mediaCostNanos"]; 23178 core.String budget;
20344 } 23179 /** Client billing code of this project. */
20345 if (_json.containsKey("programmatic")) { 23180 core.String clientBillingCode;
20346 programmatic = _json["programmatic"]; 23181 /** Name of the project client. */
20347 } 23182 core.String clientName;
20348 if (_json.containsKey("traffickerEmails")) { 23183 /** End date of the project. */
20349 traffickerEmails = _json["traffickerEmails"]; 23184 core.DateTime endDate;
23185 /** ID of this project. This is a read-only, auto-generated field. */
23186 core.String id;
23187 /**
23188 * Identifies what kind of resource this is. Value: the fixed string
23189 * "dfareporting#project".
23190 */
23191 core.String kind;
23192 /** Information about the most recent modification of this project. */
23193 LastModifiedInfo lastModifiedInfo;
23194 /** Name of this project. */
23195 core.String name;
23196 /** Overview of this project. */
23197 core.String overview;
23198 /** Start date of the project. */
23199 core.DateTime startDate;
23200 /** Subaccount ID of this project. */
23201 core.String subaccountId;
23202 /** Number of clicks that the advertiser is targeting. */
23203 core.String targetClicks;
23204 /** Number of conversions that the advertiser is targeting. */
23205 core.String targetConversions;
23206 /** CPA that the advertiser is targeting. */
23207 core.String targetCpaNanos;
23208 /** CPC that the advertiser is targeting. */
23209 core.String targetCpcNanos;
23210 /** CPM that the advertiser is targeting. */
23211 core.String targetCpmNanos;
23212 /** Number of impressions that the advertiser is targeting. */
23213 core.String targetImpressions;
23214
23215 Project();
23216
23217 Project.fromJson(core.Map _json) {
23218 if (_json.containsKey("accountId")) {
23219 accountId = _json["accountId"];
23220 }
23221 if (_json.containsKey("advertiserId")) {
23222 advertiserId = _json["advertiserId"];
23223 }
23224 if (_json.containsKey("audienceAgeGroup")) {
23225 audienceAgeGroup = _json["audienceAgeGroup"];
23226 }
23227 if (_json.containsKey("audienceGender")) {
23228 audienceGender = _json["audienceGender"];
23229 }
23230 if (_json.containsKey("budget")) {
23231 budget = _json["budget"];
23232 }
23233 if (_json.containsKey("clientBillingCode")) {
23234 clientBillingCode = _json["clientBillingCode"];
23235 }
23236 if (_json.containsKey("clientName")) {
23237 clientName = _json["clientName"];
23238 }
23239 if (_json.containsKey("endDate")) {
23240 endDate = core.DateTime.parse(_json["endDate"]);
23241 }
23242 if (_json.containsKey("id")) {
23243 id = _json["id"];
23244 }
23245 if (_json.containsKey("kind")) {
23246 kind = _json["kind"];
23247 }
23248 if (_json.containsKey("lastModifiedInfo")) {
23249 lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"] );
23250 }
23251 if (_json.containsKey("name")) {
23252 name = _json["name"];
23253 }
23254 if (_json.containsKey("overview")) {
23255 overview = _json["overview"];
23256 }
23257 if (_json.containsKey("startDate")) {
23258 startDate = core.DateTime.parse(_json["startDate"]);
23259 }
23260 if (_json.containsKey("subaccountId")) {
23261 subaccountId = _json["subaccountId"];
23262 }
23263 if (_json.containsKey("targetClicks")) {
23264 targetClicks = _json["targetClicks"];
23265 }
23266 if (_json.containsKey("targetConversions")) {
23267 targetConversions = _json["targetConversions"];
23268 }
23269 if (_json.containsKey("targetCpaNanos")) {
23270 targetCpaNanos = _json["targetCpaNanos"];
23271 }
23272 if (_json.containsKey("targetCpcNanos")) {
23273 targetCpcNanos = _json["targetCpcNanos"];
23274 }
23275 if (_json.containsKey("targetCpmNanos")) {
23276 targetCpmNanos = _json["targetCpmNanos"];
23277 }
23278 if (_json.containsKey("targetImpressions")) {
23279 targetImpressions = _json["targetImpressions"];
20350 } 23280 }
20351 } 23281 }
20352 23282
20353 core.Map toJson() { 23283 core.Map toJson() {
20354 var _json = new core.Map(); 23284 var _json = new core.Map();
20355 if (adxDealIds != null) { 23285 if (accountId != null) {
20356 _json["adxDealIds"] = adxDealIds; 23286 _json["accountId"] = accountId;
20357 } 23287 }
20358 if (insertionOrderId != null) { 23288 if (advertiserId != null) {
20359 _json["insertionOrderId"] = insertionOrderId; 23289 _json["advertiserId"] = advertiserId;
20360 } 23290 }
20361 if (insertionOrderIdStatus != null) { 23291 if (audienceAgeGroup != null) {
20362 _json["insertionOrderIdStatus"] = insertionOrderIdStatus; 23292 _json["audienceAgeGroup"] = audienceAgeGroup;
20363 } 23293 }
20364 if (mediaCostNanos != null) { 23294 if (audienceGender != null) {
20365 _json["mediaCostNanos"] = mediaCostNanos; 23295 _json["audienceGender"] = audienceGender;
20366 } 23296 }
20367 if (programmatic != null) { 23297 if (budget != null) {
20368 _json["programmatic"] = programmatic; 23298 _json["budget"] = budget;
20369 } 23299 }
20370 if (traffickerEmails != null) { 23300 if (clientBillingCode != null) {
20371 _json["traffickerEmails"] = traffickerEmails; 23301 _json["clientBillingCode"] = clientBillingCode;
23302 }
23303 if (clientName != null) {
23304 _json["clientName"] = clientName;
23305 }
23306 if (endDate != null) {
23307 _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDat e).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')} ";
23308 }
23309 if (id != null) {
23310 _json["id"] = id;
23311 }
23312 if (kind != null) {
23313 _json["kind"] = kind;
23314 }
23315 if (lastModifiedInfo != null) {
23316 _json["lastModifiedInfo"] = (lastModifiedInfo).toJson();
23317 }
23318 if (name != null) {
23319 _json["name"] = name;
23320 }
23321 if (overview != null) {
23322 _json["overview"] = overview;
23323 }
23324 if (startDate != null) {
23325 _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(st artDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft( 2, '0')}";
23326 }
23327 if (subaccountId != null) {
23328 _json["subaccountId"] = subaccountId;
23329 }
23330 if (targetClicks != null) {
23331 _json["targetClicks"] = targetClicks;
23332 }
23333 if (targetConversions != null) {
23334 _json["targetConversions"] = targetConversions;
23335 }
23336 if (targetCpaNanos != null) {
23337 _json["targetCpaNanos"] = targetCpaNanos;
23338 }
23339 if (targetCpcNanos != null) {
23340 _json["targetCpcNanos"] = targetCpcNanos;
23341 }
23342 if (targetCpmNanos != null) {
23343 _json["targetCpmNanos"] = targetCpmNanos;
23344 }
23345 if (targetImpressions != null) {
23346 _json["targetImpressions"] = targetImpressions;
20372 } 23347 }
20373 return _json; 23348 return _json;
20374 } 23349 }
23350 }
23351
23352 /** Project List Response */
23353 class ProjectsListResponse {
23354 /**
23355 * Identifies what kind of resource this is. Value: the fixed string
23356 * "dfareporting#projectsListResponse".
23357 */
23358 core.String kind;
23359 /** Pagination token to be used for the next list operation. */
23360 core.String nextPageToken;
23361 /** Project collection. */
23362 core.List<Project> projects;
23363
23364 ProjectsListResponse();
23365
23366 ProjectsListResponse.fromJson(core.Map _json) {
23367 if (_json.containsKey("kind")) {
23368 kind = _json["kind"];
23369 }
23370 if (_json.containsKey("nextPageToken")) {
23371 nextPageToken = _json["nextPageToken"];
23372 }
23373 if (_json.containsKey("projects")) {
23374 projects = _json["projects"].map((value) => new Project.fromJson(value)).t oList();
23375 }
23376 }
23377
23378 core.Map toJson() {
23379 var _json = new core.Map();
23380 if (kind != null) {
23381 _json["kind"] = kind;
23382 }
23383 if (nextPageToken != null) {
23384 _json["nextPageToken"] = nextPageToken;
23385 }
23386 if (projects != null) {
23387 _json["projects"] = projects.map((value) => (value).toJson()).toList();
23388 }
23389 return _json;
23390 }
20375 } 23391 }
20376 23392
20377 /** 23393 /**
20378 * Represents fields that are compatible to be selected for a report of type 23394 * Represents fields that are compatible to be selected for a report of type
20379 * "REACH". 23395 * "REACH".
20380 */ 23396 */
20381 class ReachReportCompatibleFields { 23397 class ReachReportCompatibleFields {
20382 /** 23398 /**
20383 * Dimensions which are compatible to be selected in the "dimensionFilters" 23399 * Dimensions which are compatible to be selected in the "dimensionFilters"
20384 * section of the report. 23400 * section of the report.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
20579 23595
20580 RegionsListResponse.fromJson(core.Map _json) { 23596 RegionsListResponse.fromJson(core.Map _json) {
20581 if (_json.containsKey("kind")) { 23597 if (_json.containsKey("kind")) {
20582 kind = _json["kind"]; 23598 kind = _json["kind"];
20583 } 23599 }
20584 if (_json.containsKey("regions")) { 23600 if (_json.containsKey("regions")) {
20585 regions = _json["regions"].map((value) => new Region.fromJson(value)).toLi st(); 23601 regions = _json["regions"].map((value) => new Region.fromJson(value)).toLi st();
20586 } 23602 }
20587 } 23603 }
20588 23604
23605 core.Map toJson() {
23606 var _json = new core.Map();
23607 if (kind != null) {
23608 _json["kind"] = kind;
23609 }
23610 if (regions != null) {
23611 _json["regions"] = regions.map((value) => (value).toJson()).toList();
23612 }
23613 return _json;
23614 }
23615 }
23616
23617 /**
23618 * Contains properties of a remarketing list. Remarketing enables you to create
23619 * lists of users who have performed specific actions on a site, then target ads
23620 * to members of those lists. This resource can be used to manage remarketing
23621 * lists that are owned by your advertisers. To see all remarketing lists that
23622 * are visible to your advertisers, including those that are shared to your
23623 * advertiser or account, use the TargetableRemarketingLists resource.
23624 */
23625 class RemarketingList {
23626 /**
23627 * Account ID of this remarketing list. This is a read-only, auto-generated
23628 * field that is only returned in GET requests.
23629 */
23630 core.String accountId;
23631 /** Whether this remarketing list is active. */
23632 core.bool active;
23633 /**
23634 * Dimension value for the advertiser ID that owns this remarketing list. This
23635 * is a required field.
23636 */
23637 core.String advertiserId;
23638 /**
23639 * Dimension value for the ID of the advertiser. This is a read-only,
23640 * auto-generated field.
23641 */
23642 DimensionValue advertiserIdDimensionValue;
23643 /** Remarketing list description. */
23644 core.String description;
23645 /** Remarketing list ID. This is a read-only, auto-generated field. */
23646 core.String id;
23647 /**
23648 * Identifies what kind of resource this is. Value: the fixed string
23649 * "dfareporting#remarketingList".
23650 */
23651 core.String kind;
23652 /**
23653 * Number of days that a user should remain in the remarketing list without an
23654 * impression.
23655 */
23656 core.String lifeSpan;
23657 /** Rule used to populate the remarketing list with users. */
23658 ListPopulationRule listPopulationRule;
23659 /** Number of users currently in the list. This is a read-only field. */
23660 core.String listSize;
23661 /**
23662 * Product from which this remarketing list was originated.
23663 * Possible string values are:
23664 * - "REMARKETING_LIST_SOURCE_DBM"
23665 * - "REMARKETING_LIST_SOURCE_DFA"
23666 * - "REMARKETING_LIST_SOURCE_DMP"
23667 * - "REMARKETING_LIST_SOURCE_GA"
23668 * - "REMARKETING_LIST_SOURCE_OTHER"
23669 */
23670 core.String listSource;
23671 /**
23672 * Name of the remarketing list. This is a required field. Must be no greater
23673 * than 128 characters long.
23674 */
23675 core.String name;
23676 /**
23677 * Subaccount ID of this remarketing list. This is a read-only, auto-generated
23678 * field that is only returned in GET requests.
23679 */
23680 core.String subaccountId;
23681
23682 RemarketingList();
23683
23684 RemarketingList.fromJson(core.Map _json) {
23685 if (_json.containsKey("accountId")) {
23686 accountId = _json["accountId"];
23687 }
23688 if (_json.containsKey("active")) {
23689 active = _json["active"];
23690 }
23691 if (_json.containsKey("advertiserId")) {
23692 advertiserId = _json["advertiserId"];
23693 }
23694 if (_json.containsKey("advertiserIdDimensionValue")) {
23695 advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiser IdDimensionValue"]);
23696 }
23697 if (_json.containsKey("description")) {
23698 description = _json["description"];
23699 }
23700 if (_json.containsKey("id")) {
23701 id = _json["id"];
23702 }
23703 if (_json.containsKey("kind")) {
23704 kind = _json["kind"];
23705 }
23706 if (_json.containsKey("lifeSpan")) {
23707 lifeSpan = _json["lifeSpan"];
23708 }
23709 if (_json.containsKey("listPopulationRule")) {
23710 listPopulationRule = new ListPopulationRule.fromJson(_json["listPopulation Rule"]);
23711 }
23712 if (_json.containsKey("listSize")) {
23713 listSize = _json["listSize"];
23714 }
23715 if (_json.containsKey("listSource")) {
23716 listSource = _json["listSource"];
23717 }
23718 if (_json.containsKey("name")) {
23719 name = _json["name"];
23720 }
23721 if (_json.containsKey("subaccountId")) {
23722 subaccountId = _json["subaccountId"];
23723 }
23724 }
23725
23726 core.Map toJson() {
23727 var _json = new core.Map();
23728 if (accountId != null) {
23729 _json["accountId"] = accountId;
23730 }
23731 if (active != null) {
23732 _json["active"] = active;
23733 }
23734 if (advertiserId != null) {
23735 _json["advertiserId"] = advertiserId;
23736 }
23737 if (advertiserIdDimensionValue != null) {
23738 _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson( );
23739 }
23740 if (description != null) {
23741 _json["description"] = description;
23742 }
23743 if (id != null) {
23744 _json["id"] = id;
23745 }
23746 if (kind != null) {
23747 _json["kind"] = kind;
23748 }
23749 if (lifeSpan != null) {
23750 _json["lifeSpan"] = lifeSpan;
23751 }
23752 if (listPopulationRule != null) {
23753 _json["listPopulationRule"] = (listPopulationRule).toJson();
23754 }
23755 if (listSize != null) {
23756 _json["listSize"] = listSize;
23757 }
23758 if (listSource != null) {
23759 _json["listSource"] = listSource;
23760 }
23761 if (name != null) {
23762 _json["name"] = name;
23763 }
23764 if (subaccountId != null) {
23765 _json["subaccountId"] = subaccountId;
23766 }
23767 return _json;
23768 }
23769 }
23770
23771 /**
23772 * Contains properties of a remarketing list's sharing information. Sharing
23773 * allows other accounts or advertisers to target to your remarketing lists.
23774 * This resource can be used to manage remarketing list sharing to other
23775 * accounts and advertisers.
23776 */
23777 class RemarketingListShare {
23778 /**
23779 * Identifies what kind of resource this is. Value: the fixed string
23780 * "dfareporting#remarketingListShare".
23781 */
23782 core.String kind;
23783 /** Remarketing list ID. This is a read-only, auto-generated field. */
23784 core.String remarketingListId;
23785 /** Accounts that the remarketing list is shared with. */
23786 core.List<core.String> sharedAccountIds;
23787 /** Advertisers that the remarketing list is shared with. */
23788 core.List<core.String> sharedAdvertiserIds;
23789
23790 RemarketingListShare();
23791
23792 RemarketingListShare.fromJson(core.Map _json) {
23793 if (_json.containsKey("kind")) {
23794 kind = _json["kind"];
23795 }
23796 if (_json.containsKey("remarketingListId")) {
23797 remarketingListId = _json["remarketingListId"];
23798 }
23799 if (_json.containsKey("sharedAccountIds")) {
23800 sharedAccountIds = _json["sharedAccountIds"];
23801 }
23802 if (_json.containsKey("sharedAdvertiserIds")) {
23803 sharedAdvertiserIds = _json["sharedAdvertiserIds"];
23804 }
23805 }
23806
23807 core.Map toJson() {
23808 var _json = new core.Map();
23809 if (kind != null) {
23810 _json["kind"] = kind;
23811 }
23812 if (remarketingListId != null) {
23813 _json["remarketingListId"] = remarketingListId;
23814 }
23815 if (sharedAccountIds != null) {
23816 _json["sharedAccountIds"] = sharedAccountIds;
23817 }
23818 if (sharedAdvertiserIds != null) {
23819 _json["sharedAdvertiserIds"] = sharedAdvertiserIds;
23820 }
23821 return _json;
23822 }
23823 }
23824
23825 /** Remarketing list response */
23826 class RemarketingListsListResponse {
23827 /**
23828 * Identifies what kind of resource this is. Value: the fixed string
23829 * "dfareporting#remarketingListsListResponse".
23830 */
23831 core.String kind;
23832 /** Pagination token to be used for the next list operation. */
23833 core.String nextPageToken;
23834 /** Remarketing list collection. */
23835 core.List<RemarketingList> remarketingLists;
23836
23837 RemarketingListsListResponse();
23838
23839 RemarketingListsListResponse.fromJson(core.Map _json) {
23840 if (_json.containsKey("kind")) {
23841 kind = _json["kind"];
23842 }
23843 if (_json.containsKey("nextPageToken")) {
23844 nextPageToken = _json["nextPageToken"];
23845 }
23846 if (_json.containsKey("remarketingLists")) {
23847 remarketingLists = _json["remarketingLists"].map((value) => new Remarketin gList.fromJson(value)).toList();
23848 }
23849 }
23850
20589 core.Map toJson() { 23851 core.Map toJson() {
20590 var _json = new core.Map(); 23852 var _json = new core.Map();
20591 if (kind != null) { 23853 if (kind != null) {
20592 _json["kind"] = kind; 23854 _json["kind"] = kind;
20593 } 23855 }
20594 if (regions != null) { 23856 if (nextPageToken != null) {
20595 _json["regions"] = regions.map((value) => (value).toJson()).toList(); 23857 _json["nextPageToken"] = nextPageToken;
23858 }
23859 if (remarketingLists != null) {
23860 _json["remarketingLists"] = remarketingLists.map((value) => (value).toJson ()).toList();
20596 } 23861 }
20597 return _json; 23862 return _json;
20598 } 23863 }
20599 } 23864 }
20600 23865
20601 /** The report criteria for a report of type "STANDARD". */ 23866 /** The report criteria for a report of type "STANDARD". */
20602 class ReportCriteria { 23867 class ReportCriteria {
20603 /** Activity group. */ 23868 /** Activity group. */
20604 Activities activities; 23869 Activities activities;
20605 /** Custom Rich Media Events group. */ 23870 /** Custom Rich Media Events group. */
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
21838 } 25103 }
21839 if (subaccountId != null) { 25104 if (subaccountId != null) {
21840 _json["subaccountId"] = subaccountId; 25105 _json["subaccountId"] = subaccountId;
21841 } 25106 }
21842 return _json; 25107 return _json;
21843 } 25108 }
21844 } 25109 }
21845 25110
21846 /** Site Contact */ 25111 /** Site Contact */
21847 class SiteContact { 25112 class SiteContact {
25113 /** Address of this site contact. */
25114 core.String address;
21848 /** 25115 /**
21849 * Site contact type. 25116 * Site contact type.
21850 * Possible string values are: 25117 * Possible string values are:
21851 * - "SALES_PERSON" 25118 * - "SALES_PERSON"
21852 * - "TRAFFICKER" 25119 * - "TRAFFICKER"
21853 */ 25120 */
21854 core.String contactType; 25121 core.String contactType;
21855 /** Email address of this site contact. This is a required field. */ 25122 /** Email address of this site contact. This is a required field. */
21856 core.String email; 25123 core.String email;
21857 /** First name of this site contact. */ 25124 /** First name of this site contact. */
21858 core.String firstName; 25125 core.String firstName;
21859 /** ID of this site contact. This is a read-only, auto-generated field. */ 25126 /** ID of this site contact. This is a read-only, auto-generated field. */
21860 core.String id; 25127 core.String id;
21861 /** Last name of this site contact. */ 25128 /** Last name of this site contact. */
21862 core.String lastName; 25129 core.String lastName;
25130 /** Primary phone number of this site contact. */
25131 core.String phone;
25132 /** Title or designation of this site contact. */
25133 core.String title;
21863 25134
21864 SiteContact(); 25135 SiteContact();
21865 25136
21866 SiteContact.fromJson(core.Map _json) { 25137 SiteContact.fromJson(core.Map _json) {
25138 if (_json.containsKey("address")) {
25139 address = _json["address"];
25140 }
21867 if (_json.containsKey("contactType")) { 25141 if (_json.containsKey("contactType")) {
21868 contactType = _json["contactType"]; 25142 contactType = _json["contactType"];
21869 } 25143 }
21870 if (_json.containsKey("email")) { 25144 if (_json.containsKey("email")) {
21871 email = _json["email"]; 25145 email = _json["email"];
21872 } 25146 }
21873 if (_json.containsKey("firstName")) { 25147 if (_json.containsKey("firstName")) {
21874 firstName = _json["firstName"]; 25148 firstName = _json["firstName"];
21875 } 25149 }
21876 if (_json.containsKey("id")) { 25150 if (_json.containsKey("id")) {
21877 id = _json["id"]; 25151 id = _json["id"];
21878 } 25152 }
21879 if (_json.containsKey("lastName")) { 25153 if (_json.containsKey("lastName")) {
21880 lastName = _json["lastName"]; 25154 lastName = _json["lastName"];
21881 } 25155 }
25156 if (_json.containsKey("phone")) {
25157 phone = _json["phone"];
25158 }
25159 if (_json.containsKey("title")) {
25160 title = _json["title"];
25161 }
21882 } 25162 }
21883 25163
21884 core.Map toJson() { 25164 core.Map toJson() {
21885 var _json = new core.Map(); 25165 var _json = new core.Map();
25166 if (address != null) {
25167 _json["address"] = address;
25168 }
21886 if (contactType != null) { 25169 if (contactType != null) {
21887 _json["contactType"] = contactType; 25170 _json["contactType"] = contactType;
21888 } 25171 }
21889 if (email != null) { 25172 if (email != null) {
21890 _json["email"] = email; 25173 _json["email"] = email;
21891 } 25174 }
21892 if (firstName != null) { 25175 if (firstName != null) {
21893 _json["firstName"] = firstName; 25176 _json["firstName"] = firstName;
21894 } 25177 }
21895 if (id != null) { 25178 if (id != null) {
21896 _json["id"] = id; 25179 _json["id"] = id;
21897 } 25180 }
21898 if (lastName != null) { 25181 if (lastName != null) {
21899 _json["lastName"] = lastName; 25182 _json["lastName"] = lastName;
21900 } 25183 }
25184 if (phone != null) {
25185 _json["phone"] = phone;
25186 }
25187 if (title != null) {
25188 _json["title"] = title;
25189 }
21901 return _json; 25190 return _json;
21902 } 25191 }
21903 } 25192 }
21904 25193
21905 /** Site Settings */ 25194 /** Site Settings */
21906 class SiteSettings { 25195 class SiteSettings {
21907 /** Whether active view creatives are disabled for this site. */ 25196 /** Whether active view creatives are disabled for this site. */
21908 core.bool activeViewOptOut; 25197 core.bool activeViewOptOut;
21909 /** Site-wide creative settings. */ 25198 /** Site-wide creative settings. */
21910 CreativeSettings creativeSettings; 25199 CreativeSettings creativeSettings;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
21966 25255
21967 /** Site List Response */ 25256 /** Site List Response */
21968 class SitesListResponse { 25257 class SitesListResponse {
21969 /** 25258 /**
21970 * Identifies what kind of resource this is. Value: the fixed string 25259 * Identifies what kind of resource this is. Value: the fixed string
21971 * "dfareporting#sitesListResponse". 25260 * "dfareporting#sitesListResponse".
21972 */ 25261 */
21973 core.String kind; 25262 core.String kind;
21974 /** Pagination token to be used for the next list operation. */ 25263 /** Pagination token to be used for the next list operation. */
21975 core.String nextPageToken; 25264 core.String nextPageToken;
21976 /** Site collection */ 25265 /** Site collection. */
21977 core.List<Site> sites; 25266 core.List<Site> sites;
21978 25267
21979 SitesListResponse(); 25268 SitesListResponse();
21980 25269
21981 SitesListResponse.fromJson(core.Map _json) { 25270 SitesListResponse.fromJson(core.Map _json) {
21982 if (_json.containsKey("kind")) { 25271 if (_json.containsKey("kind")) {
21983 kind = _json["kind"]; 25272 kind = _json["kind"];
21984 } 25273 }
21985 if (_json.containsKey("nextPageToken")) { 25274 if (_json.containsKey("nextPageToken")) {
21986 nextPageToken = _json["nextPageToken"]; 25275 nextPageToken = _json["nextPageToken"];
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
22253 /** Tag string to record a click. */ 25542 /** Tag string to record a click. */
22254 core.String clickTag; 25543 core.String clickTag;
22255 /** Creative associated with this placement tag. */ 25544 /** Creative associated with this placement tag. */
22256 core.String creativeId; 25545 core.String creativeId;
22257 /** 25546 /**
22258 * TagData tag format of this tag. 25547 * TagData tag format of this tag.
22259 * Possible string values are: 25548 * Possible string values are:
22260 * - "PLACEMENT_TAG_CLICK_COMMANDS" 25549 * - "PLACEMENT_TAG_CLICK_COMMANDS"
22261 * - "PLACEMENT_TAG_IFRAME_ILAYER" 25550 * - "PLACEMENT_TAG_IFRAME_ILAYER"
22262 * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" 25551 * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
25552 * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY"
22263 * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" 25553 * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
25554 * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
22264 * - "PLACEMENT_TAG_INTERNAL_REDIRECT" 25555 * - "PLACEMENT_TAG_INTERNAL_REDIRECT"
22265 * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" 25556 * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
25557 * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY"
22266 * - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" 25558 * - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
22267 * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" 25559 * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
25560 * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY"
22268 * - "PLACEMENT_TAG_JAVASCRIPT" 25561 * - "PLACEMENT_TAG_JAVASCRIPT"
25562 * - "PLACEMENT_TAG_JAVASCRIPT_LEGACY"
22269 * - "PLACEMENT_TAG_STANDARD" 25563 * - "PLACEMENT_TAG_STANDARD"
22270 * - "PLACEMENT_TAG_TRACKING" 25564 * - "PLACEMENT_TAG_TRACKING"
22271 * - "PLACEMENT_TAG_TRACKING_IFRAME" 25565 * - "PLACEMENT_TAG_TRACKING_IFRAME"
22272 * - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" 25566 * - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
22273 */ 25567 */
22274 core.String format; 25568 core.String format;
22275 /** Tag string for serving an ad. */ 25569 /** Tag string for serving an ad. */
22276 core.String impressionTag; 25570 core.String impressionTag;
22277 25571
22278 TagData(); 25572 TagData();
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
22438 if (customHtml != null) { 25732 if (customHtml != null) {
22439 _json["customHtml"] = customHtml; 25733 _json["customHtml"] = customHtml;
22440 } 25734 }
22441 if (targetWindowOption != null) { 25735 if (targetWindowOption != null) {
22442 _json["targetWindowOption"] = targetWindowOption; 25736 _json["targetWindowOption"] = targetWindowOption;
22443 } 25737 }
22444 return _json; 25738 return _json;
22445 } 25739 }
22446 } 25740 }
22447 25741
25742 /**
25743 * Contains properties of a targetable remarketing list. Remarketing enables you
25744 * to create lists of users who have performed specific actions on a site, then
25745 * target ads to members of those lists. This resource is a read-only view of a
25746 * remarketing list to be used to faciliate targeting ads to specific lists.
25747 * Remarketing lists that are owned by your advertisers and those that are
25748 * shared to your advertisers or account are accessible via this resource. To
25749 * manage remarketing lists that are owned by your advertisers, use the
25750 * RemarketingLists resource.
25751 */
25752 class TargetableRemarketingList {
25753 /**
25754 * Account ID of this remarketing list. This is a read-only, auto-generated
25755 * field that is only returned in GET requests.
25756 */
25757 core.String accountId;
25758 /** Whether this targetable remarketing list is active. */
25759 core.bool active;
25760 /**
25761 * Dimension value for the advertiser ID that owns this targetable remarketing
25762 * list.
25763 */
25764 core.String advertiserId;
25765 /** Dimension value for the ID of the advertiser. */
25766 DimensionValue advertiserIdDimensionValue;
25767 /** Targetable remarketing list description. */
25768 core.String description;
25769 /** Targetable remarketing list ID. */
25770 core.String id;
25771 /**
25772 * Identifies what kind of resource this is. Value: the fixed string
25773 * "dfareporting#targetableRemarketingList".
25774 */
25775 core.String kind;
25776 /**
25777 * Number of days that a user should remain in the targetable remarketing list
25778 * without an impression.
25779 */
25780 core.String lifeSpan;
25781 /** Number of users currently in the list. This is a read-only field. */
25782 core.String listSize;
25783 /**
25784 * Product from which this targetable remarketing list was originated.
25785 * Possible string values are:
25786 * - "REMARKETING_LIST_SOURCE_DBM"
25787 * - "REMARKETING_LIST_SOURCE_DFA"
25788 * - "REMARKETING_LIST_SOURCE_DMP"
25789 * - "REMARKETING_LIST_SOURCE_GA"
25790 * - "REMARKETING_LIST_SOURCE_OTHER"
25791 */
25792 core.String listSource;
25793 /**
25794 * Name of the targetable remarketing list. Is no greater than 128 characters
25795 * long.
25796 */
25797 core.String name;
25798 /**
25799 * Subaccount ID of this remarketing list. This is a read-only, auto-generated
25800 * field that is only returned in GET requests.
25801 */
25802 core.String subaccountId;
25803
25804 TargetableRemarketingList();
25805
25806 TargetableRemarketingList.fromJson(core.Map _json) {
25807 if (_json.containsKey("accountId")) {
25808 accountId = _json["accountId"];
25809 }
25810 if (_json.containsKey("active")) {
25811 active = _json["active"];
25812 }
25813 if (_json.containsKey("advertiserId")) {
25814 advertiserId = _json["advertiserId"];
25815 }
25816 if (_json.containsKey("advertiserIdDimensionValue")) {
25817 advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiser IdDimensionValue"]);
25818 }
25819 if (_json.containsKey("description")) {
25820 description = _json["description"];
25821 }
25822 if (_json.containsKey("id")) {
25823 id = _json["id"];
25824 }
25825 if (_json.containsKey("kind")) {
25826 kind = _json["kind"];
25827 }
25828 if (_json.containsKey("lifeSpan")) {
25829 lifeSpan = _json["lifeSpan"];
25830 }
25831 if (_json.containsKey("listSize")) {
25832 listSize = _json["listSize"];
25833 }
25834 if (_json.containsKey("listSource")) {
25835 listSource = _json["listSource"];
25836 }
25837 if (_json.containsKey("name")) {
25838 name = _json["name"];
25839 }
25840 if (_json.containsKey("subaccountId")) {
25841 subaccountId = _json["subaccountId"];
25842 }
25843 }
25844
25845 core.Map toJson() {
25846 var _json = new core.Map();
25847 if (accountId != null) {
25848 _json["accountId"] = accountId;
25849 }
25850 if (active != null) {
25851 _json["active"] = active;
25852 }
25853 if (advertiserId != null) {
25854 _json["advertiserId"] = advertiserId;
25855 }
25856 if (advertiserIdDimensionValue != null) {
25857 _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson( );
25858 }
25859 if (description != null) {
25860 _json["description"] = description;
25861 }
25862 if (id != null) {
25863 _json["id"] = id;
25864 }
25865 if (kind != null) {
25866 _json["kind"] = kind;
25867 }
25868 if (lifeSpan != null) {
25869 _json["lifeSpan"] = lifeSpan;
25870 }
25871 if (listSize != null) {
25872 _json["listSize"] = listSize;
25873 }
25874 if (listSource != null) {
25875 _json["listSource"] = listSource;
25876 }
25877 if (name != null) {
25878 _json["name"] = name;
25879 }
25880 if (subaccountId != null) {
25881 _json["subaccountId"] = subaccountId;
25882 }
25883 return _json;
25884 }
25885 }
25886
25887 /** Targetable remarketing list response */
25888 class TargetableRemarketingListsListResponse {
25889 /**
25890 * Identifies what kind of resource this is. Value: the fixed string
25891 * "dfareporting#targetableRemarketingListsListResponse".
25892 */
25893 core.String kind;
25894 /** Pagination token to be used for the next list operation. */
25895 core.String nextPageToken;
25896 /** Targetable remarketing list collection. */
25897 core.List<TargetableRemarketingList> targetableRemarketingLists;
25898
25899 TargetableRemarketingListsListResponse();
25900
25901 TargetableRemarketingListsListResponse.fromJson(core.Map _json) {
25902 if (_json.containsKey("kind")) {
25903 kind = _json["kind"];
25904 }
25905 if (_json.containsKey("nextPageToken")) {
25906 nextPageToken = _json["nextPageToken"];
25907 }
25908 if (_json.containsKey("targetableRemarketingLists")) {
25909 targetableRemarketingLists = _json["targetableRemarketingLists"].map((valu e) => new TargetableRemarketingList.fromJson(value)).toList();
25910 }
25911 }
25912
25913 core.Map toJson() {
25914 var _json = new core.Map();
25915 if (kind != null) {
25916 _json["kind"] = kind;
25917 }
25918 if (nextPageToken != null) {
25919 _json["nextPageToken"] = nextPageToken;
25920 }
25921 if (targetableRemarketingLists != null) {
25922 _json["targetableRemarketingLists"] = targetableRemarketingLists.map((valu e) => (value).toJson()).toList();
25923 }
25924 return _json;
25925 }
25926 }
25927
22448 /** Technology Targeting. */ 25928 /** Technology Targeting. */
22449 class TechnologyTargeting { 25929 class TechnologyTargeting {
22450 /** 25930 /**
22451 * Browsers that this ad targets. For each browser either set browserVersionId 25931 * Browsers that this ad targets. For each browser either set browserVersionId
22452 * or dartId along with the version numbers. If both are specified, only 25932 * or dartId along with the version numbers. If both are specified, only
22453 * browserVersionId will be used.The other fields are populated automatically 25933 * browserVersionId will be used.The other fields are populated automatically
22454 * when the ad is inserted or updated. 25934 * when the ad is inserted or updated.
22455 */ 25935 */
22456 core.List<Browser> browsers; 25936 core.List<Browser> browsers;
22457 /** 25937 /**
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
22530 if (operatingSystems != null) { 26010 if (operatingSystems != null) {
22531 _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson ()).toList(); 26011 _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson ()).toList();
22532 } 26012 }
22533 if (platformTypes != null) { 26013 if (platformTypes != null) {
22534 _json["platformTypes"] = platformTypes.map((value) => (value).toJson()).to List(); 26014 _json["platformTypes"] = platformTypes.map((value) => (value).toJson()).to List();
22535 } 26015 }
22536 return _json; 26016 return _json;
22537 } 26017 }
22538 } 26018 }
22539 26019
26020 /** Third Party Authentication Token */
26021 class ThirdPartyAuthenticationToken {
26022 /** Name of the third-party authentication token. */
26023 core.String name;
26024 /**
26025 * Value of the third-party authentication token. This is a read-only,
26026 * auto-generated field.
26027 */
26028 core.String value;
26029
26030 ThirdPartyAuthenticationToken();
26031
26032 ThirdPartyAuthenticationToken.fromJson(core.Map _json) {
26033 if (_json.containsKey("name")) {
26034 name = _json["name"];
26035 }
26036 if (_json.containsKey("value")) {
26037 value = _json["value"];
26038 }
26039 }
26040
26041 core.Map toJson() {
26042 var _json = new core.Map();
26043 if (name != null) {
26044 _json["name"] = name;
26045 }
26046 if (value != null) {
26047 _json["value"] = value;
26048 }
26049 return _json;
26050 }
26051 }
26052
22540 /** Third-party Tracking URL. */ 26053 /** Third-party Tracking URL. */
22541 class ThirdPartyTrackingUrl { 26054 class ThirdPartyTrackingUrl {
22542 /** 26055 /**
22543 * Third-party URL type for in-stream video creatives. 26056 * Third-party URL type for in-stream video creatives.
22544 * Possible string values are: 26057 * Possible string values are:
22545 * - "CLICK_TRACKING" 26058 * - "CLICK_TRACKING"
22546 * - "IMPRESSION" 26059 * - "IMPRESSION"
22547 * - "RICH_MEDIA_BACKUP_IMPRESSION" 26060 * - "RICH_MEDIA_BACKUP_IMPRESSION"
22548 * - "RICH_MEDIA_IMPRESSION" 26061 * - "RICH_MEDIA_IMPRESSION"
22549 * - "RICH_MEDIA_RM_IMPRESSION" 26062 * - "RICH_MEDIA_RM_IMPRESSION"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
22600 * User-friendly name for the variable which will appear in reports. This is a 26113 * User-friendly name for the variable which will appear in reports. This is a
22601 * required field, must be less than 64 characters long, and cannot contain 26114 * required field, must be less than 64 characters long, and cannot contain
22602 * the following characters: ""<>". 26115 * the following characters: ""<>".
22603 */ 26116 */
22604 core.String reportName; 26117 core.String reportName;
22605 /** 26118 /**
22606 * Variable name in the tag. This is a required field. 26119 * Variable name in the tag. This is a required field.
22607 * Possible string values are: 26120 * Possible string values are:
22608 * - "U1" 26121 * - "U1"
22609 * - "U10" 26122 * - "U10"
22610 * - "U100"
22611 * - "U11" 26123 * - "U11"
22612 * - "U12" 26124 * - "U12"
22613 * - "U13" 26125 * - "U13"
22614 * - "U14" 26126 * - "U14"
22615 * - "U15" 26127 * - "U15"
22616 * - "U16" 26128 * - "U16"
22617 * - "U17" 26129 * - "U17"
22618 * - "U18" 26130 * - "U18"
22619 * - "U19" 26131 * - "U19"
22620 * - "U2" 26132 * - "U2"
22621 * - "U20" 26133 * - "U20"
22622 * - "U21"
22623 * - "U22"
22624 * - "U23"
22625 * - "U24"
22626 * - "U25"
22627 * - "U26"
22628 * - "U27"
22629 * - "U28"
22630 * - "U29"
22631 * - "U3" 26134 * - "U3"
22632 * - "U30"
22633 * - "U31"
22634 * - "U32"
22635 * - "U33"
22636 * - "U34"
22637 * - "U35"
22638 * - "U36"
22639 * - "U37"
22640 * - "U38"
22641 * - "U39"
22642 * - "U4" 26135 * - "U4"
22643 * - "U40"
22644 * - "U41"
22645 * - "U42"
22646 * - "U43"
22647 * - "U44"
22648 * - "U45"
22649 * - "U46"
22650 * - "U47"
22651 * - "U48"
22652 * - "U49"
22653 * - "U5" 26136 * - "U5"
22654 * - "U50"
22655 * - "U51"
22656 * - "U52"
22657 * - "U53"
22658 * - "U54"
22659 * - "U55"
22660 * - "U56"
22661 * - "U57"
22662 * - "U58"
22663 * - "U59"
22664 * - "U6" 26137 * - "U6"
22665 * - "U60"
22666 * - "U61"
22667 * - "U62"
22668 * - "U63"
22669 * - "U64"
22670 * - "U65"
22671 * - "U66"
22672 * - "U67"
22673 * - "U68"
22674 * - "U69"
22675 * - "U7" 26138 * - "U7"
22676 * - "U70"
22677 * - "U71"
22678 * - "U72"
22679 * - "U73"
22680 * - "U74"
22681 * - "U75"
22682 * - "U76"
22683 * - "U77"
22684 * - "U78"
22685 * - "U79"
22686 * - "U8" 26139 * - "U8"
22687 * - "U80"
22688 * - "U81"
22689 * - "U82"
22690 * - "U83"
22691 * - "U84"
22692 * - "U85"
22693 * - "U86"
22694 * - "U87"
22695 * - "U88"
22696 * - "U89"
22697 * - "U9" 26140 * - "U9"
22698 * - "U90"
22699 * - "U91"
22700 * - "U92"
22701 * - "U93"
22702 * - "U94"
22703 * - "U95"
22704 * - "U96"
22705 * - "U97"
22706 * - "U98"
22707 * - "U99"
22708 */ 26141 */
22709 core.String variableType; 26142 core.String variableType;
22710 26143
22711 UserDefinedVariableConfiguration(); 26144 UserDefinedVariableConfiguration();
22712 26145
22713 UserDefinedVariableConfiguration.fromJson(core.Map _json) { 26146 UserDefinedVariableConfiguration.fromJson(core.Map _json) {
22714 if (_json.containsKey("dataType")) { 26147 if (_json.containsKey("dataType")) {
22715 dataType = _json["dataType"]; 26148 dataType = _json["dataType"];
22716 } 26149 }
22717 if (_json.containsKey("reportName")) { 26150 if (_json.containsKey("reportName")) {
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
23158 } 26591 }
23159 if (nextPageToken != null) { 26592 if (nextPageToken != null) {
23160 _json["nextPageToken"] = nextPageToken; 26593 _json["nextPageToken"] = nextPageToken;
23161 } 26594 }
23162 if (userRoles != null) { 26595 if (userRoles != null) {
23163 _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList(); 26596 _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList();
23164 } 26597 }
23165 return _json; 26598 return _json;
23166 } 26599 }
23167 } 26600 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698