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

Side by Side Diff: generated/googleapis/lib/dfareporting/v2_1.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_1;
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.1';
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.1/"}) :
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.1/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.1/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.
7195 * 7566 *
7196 * [maxResults] - Maximum number of results to return. 7567 * [maxResults] - Maximum number of results to return.
7197 * 7568 *
7198 * [pageToken] - Value of the nextPageToken from the previous result page. 7569 * [pageToken] - Value of the nextPageToken from the previous result page.
7199 * 7570 *
7200 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) 7571 * [placementGroupType] - Select only placement groups belonging with this
7201 * are allowed. For example, "placementstrategy*2015" will return objects with 7572 * group type. A package is a simple group of placements that acts as a single
7202 * names like "placementstrategy June 2015", "placementstrategy April 2015", 7573 * 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 7574 * 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 7575 * 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 7576 * assigned placements to be marked as primary for reporting.
7206 * placementstrategy", "placementstrategy 2015", or simply 7577 * Possible string values are:
7207 * "placementstrategy". 7578 * - "PLACEMENT_PACKAGE"
7579 * - "PLACEMENT_ROADBLOCK"
7580 *
7581 * [placementStrategyIds] - Select only placement groups that are associated
7582 * with these placement strategies.
7583 *
7584 * [pricingTypes] - Select only placement groups with these pricing types.
7585 *
7586 * [searchString] - Allows searching for placement groups by name or ID.
7587 * Wildcards (*) are allowed. For example, "placement*2015" will return
7588 * placement groups with names like "placement group June 2015", "placement
7589 * group May 2015", or simply "placements 2015". Most of the searches also add
7590 * wildcards implicitly at the start and the end of the search string. For
7591 * example, a search string of "placementgroup" will match placement groups
7592 * with name "my placementgroup", "placementgroup 2015", or simply
7593 * "placementgroup".
7594 *
7595 * [siteIds] - Select only placement groups that are associated with these
7596 * sites.
7208 * 7597 *
7209 * [sortField] - Field by which to sort the list. 7598 * [sortField] - Field by which to sort the list.
7210 * Possible string values are: 7599 * Possible string values are:
7211 * - "ID" 7600 * - "ID"
7212 * - "NAME" 7601 * - "NAME"
7213 * 7602 *
7214 * [sortOrder] - Order of sorted results, default is ASCENDING. 7603 * [sortOrder] - Order of sorted results, default is ASCENDING.
7215 * Possible string values are: 7604 * Possible string values are:
7216 * - "ASCENDING" 7605 * - "ASCENDING"
7217 * - "DESCENDING" 7606 * - "DESCENDING"
7218 * 7607 *
7219 * Completes with a [PlacementStrategiesListResponse]. 7608 * Completes with a [PlacementGroupsListResponse].
7220 * 7609 *
7221 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7610 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7222 * error. 7611 * error.
7223 * 7612 *
7224 * If the used [http.Client] completes with an error when making a REST call, 7613 * If the used [http.Client] completes with an error when making a REST call,
7225 * this method will complete with the same error. 7614 * this method will complete with the same error.
7226 */ 7615 */
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}) { 7616 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}) {
7228 var _url = null; 7617 var _url = null;
7229 var _queryParams = new core.Map(); 7618 var _queryParams = new core.Map();
7230 var _uploadMedia = null; 7619 var _uploadMedia = null;
7231 var _uploadOptions = null; 7620 var _uploadOptions = null;
7232 var _downloadOptions = commons.DownloadOptions.Metadata; 7621 var _downloadOptions = commons.DownloadOptions.Metadata;
7233 var _body = null; 7622 var _body = null;
7234 7623
7235 if (profileId == null) { 7624 if (profileId == null) {
7236 throw new core.ArgumentError("Parameter profileId is required."); 7625 throw new core.ArgumentError("Parameter profileId is required.");
7237 } 7626 }
7627 if (advertiserIds != null) {
7628 _queryParams["advertiserIds"] = advertiserIds;
7629 }
7630 if (archived != null) {
7631 _queryParams["archived"] = ["${archived}"];
7632 }
7633 if (campaignIds != null) {
7634 _queryParams["campaignIds"] = campaignIds;
7635 }
7636 if (contentCategoryIds != null) {
7637 _queryParams["contentCategoryIds"] = contentCategoryIds;
7638 }
7639 if (directorySiteIds != null) {
7640 _queryParams["directorySiteIds"] = directorySiteIds;
7641 }
7238 if (ids != null) { 7642 if (ids != null) {
7239 _queryParams["ids"] = ids; 7643 _queryParams["ids"] = ids;
7240 } 7644 }
7241 if (maxResults != null) { 7645 if (maxResults != null) {
7242 _queryParams["maxResults"] = ["${maxResults}"]; 7646 _queryParams["maxResults"] = ["${maxResults}"];
7243 } 7647 }
7244 if (pageToken != null) { 7648 if (pageToken != null) {
7245 _queryParams["pageToken"] = [pageToken]; 7649 _queryParams["pageToken"] = [pageToken];
7246 } 7650 }
7651 if (placementGroupType != null) {
7652 _queryParams["placementGroupType"] = [placementGroupType];
7653 }
7654 if (placementStrategyIds != null) {
7655 _queryParams["placementStrategyIds"] = placementStrategyIds;
7656 }
7657 if (pricingTypes != null) {
7658 _queryParams["pricingTypes"] = pricingTypes;
7659 }
7247 if (searchString != null) { 7660 if (searchString != null) {
7248 _queryParams["searchString"] = [searchString]; 7661 _queryParams["searchString"] = [searchString];
7249 } 7662 }
7663 if (siteIds != null) {
7664 _queryParams["siteIds"] = siteIds;
7665 }
7250 if (sortField != null) { 7666 if (sortField != null) {
7251 _queryParams["sortField"] = [sortField]; 7667 _queryParams["sortField"] = [sortField];
7252 } 7668 }
7253 if (sortOrder != null) { 7669 if (sortOrder != null) {
7254 _queryParams["sortOrder"] = [sortOrder]; 7670 _queryParams["sortOrder"] = [sortOrder];
7255 } 7671 }
7256 7672
7257 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies'; 7673 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups';
7258 7674
7259 var _response = _requester.request(_url, 7675 var _response = _requester.request(_url,
7260 "GET", 7676 "GET",
7261 body: _body, 7677 body: _body,
7262 queryParams: _queryParams, 7678 queryParams: _queryParams,
7263 uploadOptions: _uploadOptions, 7679 uploadOptions: _uploadOptions,
7264 uploadMedia: _uploadMedia, 7680 uploadMedia: _uploadMedia,
7265 downloadOptions: _downloadOptions); 7681 downloadOptions: _downloadOptions);
7266 return _response.then((data) => new PlacementStrategiesListResponse.fromJson (data)); 7682 return _response.then((data) => new PlacementGroupsListResponse.fromJson(dat a));
7267 } 7683 }
7268 7684
7269 /** 7685 /**
7270 * Updates an existing placement strategy. This method supports patch 7686 * Updates an existing placement group. This method supports patch semantics.
7271 * semantics.
7272 * 7687 *
7273 * [request] - The metadata request object. 7688 * [request] - The metadata request object.
7274 * 7689 *
7275 * Request parameters: 7690 * Request parameters:
7276 * 7691 *
7277 * [profileId] - User profile ID associated with this request. 7692 * [profileId] - User profile ID associated with this request.
7278 * 7693 *
7279 * [id] - Placement strategy ID. 7694 * [id] - Placement group ID.
7280 * 7695 *
7281 * Completes with a [PlacementStrategy]. 7696 * Completes with a [PlacementGroup].
7282 * 7697 *
7283 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7698 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7284 * error. 7699 * error.
7285 * 7700 *
7286 * If the used [http.Client] completes with an error when making a REST call, 7701 * If the used [http.Client] completes with an error when making a REST call,
7287 * this method will complete with the same error. 7702 * this method will complete with the same error.
7288 */ 7703 */
7289 async.Future<PlacementStrategy> patch(PlacementStrategy request, core.String p rofileId, core.String id) { 7704 async.Future<PlacementGroup> patch(PlacementGroup request, core.String profile Id, core.String id) {
7290 var _url = null; 7705 var _url = null;
7291 var _queryParams = new core.Map(); 7706 var _queryParams = new core.Map();
7292 var _uploadMedia = null; 7707 var _uploadMedia = null;
7293 var _uploadOptions = null; 7708 var _uploadOptions = null;
7294 var _downloadOptions = commons.DownloadOptions.Metadata; 7709 var _downloadOptions = commons.DownloadOptions.Metadata;
7295 var _body = null; 7710 var _body = null;
7296 7711
7297 if (request != null) { 7712 if (request != null) {
7298 _body = convert.JSON.encode((request).toJson()); 7713 _body = convert.JSON.encode((request).toJson());
7299 } 7714 }
7300 if (profileId == null) { 7715 if (profileId == null) {
7301 throw new core.ArgumentError("Parameter profileId is required."); 7716 throw new core.ArgumentError("Parameter profileId is required.");
7302 } 7717 }
7303 if (id == null) { 7718 if (id == null) {
7304 throw new core.ArgumentError("Parameter id is required."); 7719 throw new core.ArgumentError("Parameter id is required.");
7305 } 7720 }
7306 _queryParams["id"] = [id]; 7721 _queryParams["id"] = [id];
7307 7722
7308 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies'; 7723 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups';
7309 7724
7310 var _response = _requester.request(_url, 7725 var _response = _requester.request(_url,
7311 "PATCH", 7726 "PATCH",
7312 body: _body, 7727 body: _body,
7313 queryParams: _queryParams, 7728 queryParams: _queryParams,
7314 uploadOptions: _uploadOptions, 7729 uploadOptions: _uploadOptions,
7315 uploadMedia: _uploadMedia, 7730 uploadMedia: _uploadMedia,
7316 downloadOptions: _downloadOptions); 7731 downloadOptions: _downloadOptions);
7317 return _response.then((data) => new PlacementStrategy.fromJson(data)); 7732 return _response.then((data) => new PlacementGroup.fromJson(data));
7318 } 7733 }
7319 7734
7320 /** 7735 /**
7321 * Updates an existing placement strategy. 7736 * Updates an existing placement group.
7322 * 7737 *
7323 * [request] - The metadata request object. 7738 * [request] - The metadata request object.
7324 * 7739 *
7325 * Request parameters: 7740 * Request parameters:
7326 * 7741 *
7327 * [profileId] - User profile ID associated with this request. 7742 * [profileId] - User profile ID associated with this request.
7328 * 7743 *
7329 * Completes with a [PlacementStrategy]. 7744 * Completes with a [PlacementGroup].
7330 * 7745 *
7331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7746 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7332 * error. 7747 * error.
7333 * 7748 *
7334 * If the used [http.Client] completes with an error when making a REST call, 7749 * If the used [http.Client] completes with an error when making a REST call,
7335 * this method will complete with the same error. 7750 * this method will complete with the same error.
7336 */ 7751 */
7337 async.Future<PlacementStrategy> update(PlacementStrategy request, core.String profileId) { 7752 async.Future<PlacementGroup> update(PlacementGroup request, core.String profil eId) {
7338 var _url = null; 7753 var _url = null;
7339 var _queryParams = new core.Map(); 7754 var _queryParams = new core.Map();
7340 var _uploadMedia = null; 7755 var _uploadMedia = null;
7341 var _uploadOptions = null; 7756 var _uploadOptions = null;
7342 var _downloadOptions = commons.DownloadOptions.Metadata; 7757 var _downloadOptions = commons.DownloadOptions.Metadata;
7343 var _body = null; 7758 var _body = null;
7344 7759
7345 if (request != null) { 7760 if (request != null) {
7346 _body = convert.JSON.encode((request).toJson()); 7761 _body = convert.JSON.encode((request).toJson());
7347 } 7762 }
7348 if (profileId == null) { 7763 if (profileId == null) {
7349 throw new core.ArgumentError("Parameter profileId is required."); 7764 throw new core.ArgumentError("Parameter profileId is required.");
7350 } 7765 }
7351 7766
7352 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies'; 7767 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementGroups';
7353 7768
7354 var _response = _requester.request(_url, 7769 var _response = _requester.request(_url,
7355 "PUT", 7770 "PUT",
7356 body: _body, 7771 body: _body,
7357 queryParams: _queryParams, 7772 queryParams: _queryParams,
7358 uploadOptions: _uploadOptions, 7773 uploadOptions: _uploadOptions,
7359 uploadMedia: _uploadMedia, 7774 uploadMedia: _uploadMedia,
7360 downloadOptions: _downloadOptions); 7775 downloadOptions: _downloadOptions);
7361 return _response.then((data) => new PlacementStrategy.fromJson(data)); 7776 return _response.then((data) => new PlacementGroup.fromJson(data));
7362 } 7777 }
7363 7778
7364 } 7779 }
7365 7780
7366 7781
7367 class PlacementsResourceApi { 7782 class PlacementStrategiesResourceApi {
7368 final commons.ApiRequester _requester; 7783 final commons.ApiRequester _requester;
7369 7784
7370 PlacementsResourceApi(commons.ApiRequester client) : 7785 PlacementStrategiesResourceApi(commons.ApiRequester client) :
7371 _requester = client; 7786 _requester = client;
7372 7787
7373 /** 7788 /**
7374 * Generates tags for a placement. 7789 * Deletes an existing placement strategy.
7375 * 7790 *
7376 * Request parameters: 7791 * Request parameters:
7377 * 7792 *
7378 * [profileId] - User profile ID associated with this request. 7793 * [profileId] - User profile ID associated with this request.
7379 * 7794 *
7380 * [campaignId] - Generate placements belonging to this campaign. This is a 7795 * [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 * 7796 *
7389 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7797 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7390 * error. 7798 * error.
7391 * 7799 *
7392 * If the used [http.Client] completes with an error when making a REST call, 7800 * If the used [http.Client] completes with an error when making a REST call,
7393 * this method will complete with the same error. 7801 * this method will complete with the same error.
7394 */ 7802 */
7395 async.Future<PlacementsGenerateTagsResponse> generatetags(core.String profileI d, {core.String campaignId, core.List<core.String> placementIds, core.List<core. String> tagFormats}) { 7803 async.Future delete(core.String profileId, core.String id) {
7396 var _url = null; 7804 var _url = null;
7397 var _queryParams = new core.Map(); 7805 var _queryParams = new core.Map();
7398 var _uploadMedia = null; 7806 var _uploadMedia = null;
7399 var _uploadOptions = null; 7807 var _uploadOptions = null;
7400 var _downloadOptions = commons.DownloadOptions.Metadata; 7808 var _downloadOptions = commons.DownloadOptions.Metadata;
7401 var _body = null; 7809 var _body = null;
7402 7810
7403 if (profileId == null) { 7811 if (profileId == null) {
7404 throw new core.ArgumentError("Parameter profileId is required."); 7812 throw new core.ArgumentError("Parameter profileId is required.");
7405 } 7813 }
7406 if (campaignId != null) { 7814 if (id == null) {
7407 _queryParams["campaignId"] = [campaignId]; 7815 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 } 7816 }
7415 7817
7416 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements/generatetags'; 7818 _downloadOptions = null;
7819
7820 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies/' + commons.Escaper.ecapeVariable('$id');
7417 7821
7418 var _response = _requester.request(_url, 7822 var _response = _requester.request(_url,
7419 "POST", 7823 "DELETE",
7420 body: _body, 7824 body: _body,
7421 queryParams: _queryParams, 7825 queryParams: _queryParams,
7422 uploadOptions: _uploadOptions, 7826 uploadOptions: _uploadOptions,
7423 uploadMedia: _uploadMedia, 7827 uploadMedia: _uploadMedia,
7424 downloadOptions: _downloadOptions); 7828 downloadOptions: _downloadOptions);
7425 return _response.then((data) => new PlacementsGenerateTagsResponse.fromJson( data)); 7829 return _response.then((data) => null);
7426 } 7830 }
7427 7831
7428 /** 7832 /**
7429 * Gets one placement by ID. 7833 * Gets one placement strategy by ID.
7430 * 7834 *
7431 * Request parameters: 7835 * Request parameters:
7432 * 7836 *
7433 * [profileId] - User profile ID associated with this request. 7837 * [profileId] - User profile ID associated with this request.
7434 * 7838 *
7435 * [id] - Placement ID. 7839 * [id] - Placement strategy ID.
7436 * 7840 *
7437 * Completes with a [Placement]. 7841 * Completes with a [PlacementStrategy].
7438 * 7842 *
7439 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7843 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7440 * error. 7844 * error.
7441 * 7845 *
7442 * If the used [http.Client] completes with an error when making a REST call, 7846 * If the used [http.Client] completes with an error when making a REST call,
7443 * this method will complete with the same error. 7847 * this method will complete with the same error.
7444 */ 7848 */
7445 async.Future<Placement> get(core.String profileId, core.String id) { 7849 async.Future<PlacementStrategy> get(core.String profileId, core.String id) {
7446 var _url = null; 7850 var _url = null;
7447 var _queryParams = new core.Map(); 7851 var _queryParams = new core.Map();
7448 var _uploadMedia = null; 7852 var _uploadMedia = null;
7449 var _uploadOptions = null; 7853 var _uploadOptions = null;
7450 var _downloadOptions = commons.DownloadOptions.Metadata; 7854 var _downloadOptions = commons.DownloadOptions.Metadata;
7451 var _body = null; 7855 var _body = null;
7452 7856
7453 if (profileId == null) { 7857 if (profileId == null) {
7454 throw new core.ArgumentError("Parameter profileId is required."); 7858 throw new core.ArgumentError("Parameter profileId is required.");
7455 } 7859 }
7456 if (id == null) { 7860 if (id == null) {
7457 throw new core.ArgumentError("Parameter id is required."); 7861 throw new core.ArgumentError("Parameter id is required.");
7458 } 7862 }
7459 7863
7460 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements/' + commons.Escaper.ecapeVariable('$id'); 7864 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies/' + commons.Escaper.ecapeVariable('$id');
7461 7865
7462 var _response = _requester.request(_url, 7866 var _response = _requester.request(_url,
7463 "GET", 7867 "GET",
7464 body: _body, 7868 body: _body,
7465 queryParams: _queryParams, 7869 queryParams: _queryParams,
7466 uploadOptions: _uploadOptions, 7870 uploadOptions: _uploadOptions,
7467 uploadMedia: _uploadMedia, 7871 uploadMedia: _uploadMedia,
7468 downloadOptions: _downloadOptions); 7872 downloadOptions: _downloadOptions);
7469 return _response.then((data) => new Placement.fromJson(data)); 7873 return _response.then((data) => new PlacementStrategy.fromJson(data));
7470 } 7874 }
7471 7875
7472 /** 7876 /**
7473 * Inserts a new placement. 7877 * Inserts a new placement strategy.
7474 * 7878 *
7475 * [request] - The metadata request object. 7879 * [request] - The metadata request object.
7476 * 7880 *
7477 * Request parameters: 7881 * Request parameters:
7478 * 7882 *
7479 * [profileId] - User profile ID associated with this request. 7883 * [profileId] - User profile ID associated with this request.
7480 * 7884 *
7481 * Completes with a [Placement]. 7885 * Completes with a [PlacementStrategy].
7482 * 7886 *
7483 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7887 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7484 * error. 7888 * error.
7485 * 7889 *
7486 * If the used [http.Client] completes with an error when making a REST call, 7890 * If the used [http.Client] completes with an error when making a REST call,
7487 * this method will complete with the same error. 7891 * this method will complete with the same error.
7488 */ 7892 */
7489 async.Future<Placement> insert(Placement request, core.String profileId) { 7893 async.Future<PlacementStrategy> insert(PlacementStrategy request, core.String profileId) {
7490 var _url = null; 7894 var _url = null;
7491 var _queryParams = new core.Map(); 7895 var _queryParams = new core.Map();
7492 var _uploadMedia = null; 7896 var _uploadMedia = null;
7493 var _uploadOptions = null; 7897 var _uploadOptions = null;
7494 var _downloadOptions = commons.DownloadOptions.Metadata; 7898 var _downloadOptions = commons.DownloadOptions.Metadata;
7495 var _body = null; 7899 var _body = null;
7496 7900
7497 if (request != null) { 7901 if (request != null) {
7498 _body = convert.JSON.encode((request).toJson()); 7902 _body = convert.JSON.encode((request).toJson());
7499 } 7903 }
7500 if (profileId == null) { 7904 if (profileId == null) {
7501 throw new core.ArgumentError("Parameter profileId is required."); 7905 throw new core.ArgumentError("Parameter profileId is required.");
7502 } 7906 }
7503 7907
7504 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements'; 7908 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies';
7505 7909
7506 var _response = _requester.request(_url, 7910 var _response = _requester.request(_url,
7507 "POST", 7911 "POST",
7508 body: _body, 7912 body: _body,
7509 queryParams: _queryParams, 7913 queryParams: _queryParams,
7510 uploadOptions: _uploadOptions, 7914 uploadOptions: _uploadOptions,
7511 uploadMedia: _uploadMedia, 7915 uploadMedia: _uploadMedia,
7512 downloadOptions: _downloadOptions); 7916 downloadOptions: _downloadOptions);
7513 return _response.then((data) => new Placement.fromJson(data)); 7917 return _response.then((data) => new PlacementStrategy.fromJson(data));
7514 } 7918 }
7515 7919
7516 /** 7920 /**
7517 * Retrieves a list of placements, possibly filtered. 7921 * Retrieves a list of placement strategies, possibly filtered.
7518 * 7922 *
7519 * Request parameters: 7923 * Request parameters:
7520 * 7924 *
7521 * [profileId] - User profile ID associated with this request. 7925 * [profileId] - User profile ID associated with this request.
7522 * 7926 *
7523 * [advertiserIds] - Select only placements that belong to these advertisers. 7927 * [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 * 7928 *
7547 * [maxResults] - Maximum number of results to return. 7929 * [maxResults] - Maximum number of results to return.
7548 * 7930 *
7549 * [pageToken] - Value of the nextPageToken from the previous result page. 7931 * [pageToken] - Value of the nextPageToken from the previous result page.
7550 * 7932 *
7551 * [paymentSource] - Select only placements with this payment source. 7933 * [searchString] - Allows searching for objects by name or ID. Wildcards (*)
7552 * Possible string values are: 7934 * are allowed. For example, "placementstrategy*2015" will return objects with
7553 * - "PLACEMENT_AGENCY_PAID" 7935 * names like "placementstrategy June 2015", "placementstrategy April 2015",
7554 * - "PLACEMENT_PUBLISHER_PAID" 7936 * or simply "placementstrategy 2015". Most of the searches also add wildcards
7555 * 7937 * implicitly at the start and the end of the search string. For example, a
7556 * [placementStrategyIds] - Select only placements that are associated with 7938 * search string of "placementstrategy" will match objects with name "my
7557 * these placement strategies. 7939 * placementstrategy", "placementstrategy 2015", or simply
7558 * 7940 * "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 * 7941 *
7573 * [sortField] - Field by which to sort the list. 7942 * [sortField] - Field by which to sort the list.
7574 * Possible string values are: 7943 * Possible string values are:
7575 * - "ID" 7944 * - "ID"
7576 * - "NAME" 7945 * - "NAME"
7577 * 7946 *
7578 * [sortOrder] - Order of sorted results, default is ASCENDING. 7947 * [sortOrder] - Order of sorted results, default is ASCENDING.
7579 * Possible string values are: 7948 * Possible string values are:
7580 * - "ASCENDING" 7949 * - "ASCENDING"
7581 * - "DESCENDING" 7950 * - "DESCENDING"
7582 * 7951 *
7583 * Completes with a [PlacementsListResponse]. 7952 * Completes with a [PlacementStrategiesListResponse].
7584 * 7953 *
7585 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 7954 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7586 * error. 7955 * error.
7587 * 7956 *
7588 * If the used [http.Client] completes with an error when making a REST call, 7957 * If the used [http.Client] completes with an error when making a REST call,
7589 * this method will complete with the same error. 7958 * this method will complete with the same error.
7590 */ 7959 */
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}) { 7960 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; 7961 var _url = null;
7593 var _queryParams = new core.Map(); 7962 var _queryParams = new core.Map();
7594 var _uploadMedia = null; 7963 var _uploadMedia = null;
7595 var _uploadOptions = null; 7964 var _uploadOptions = null;
7596 var _downloadOptions = commons.DownloadOptions.Metadata; 7965 var _downloadOptions = commons.DownloadOptions.Metadata;
7597 var _body = null; 7966 var _body = null;
7598 7967
7599 if (profileId == null) { 7968 if (profileId == null) {
7600 throw new core.ArgumentError("Parameter profileId is required."); 7969 throw new core.ArgumentError("Parameter profileId is required.");
7601 } 7970 }
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) { 7971 if (ids != null) {
7624 _queryParams["ids"] = ids; 7972 _queryParams["ids"] = ids;
7625 } 7973 }
7626 if (maxResults != null) { 7974 if (maxResults != null) {
7627 _queryParams["maxResults"] = ["${maxResults}"]; 7975 _queryParams["maxResults"] = ["${maxResults}"];
7628 } 7976 }
7629 if (pageToken != null) { 7977 if (pageToken != null) {
7630 _queryParams["pageToken"] = [pageToken]; 7978 _queryParams["pageToken"] = [pageToken];
7631 } 7979 }
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) { 7980 if (searchString != null) {
7642 _queryParams["searchString"] = [searchString]; 7981 _queryParams["searchString"] = [searchString];
7643 } 7982 }
7644 if (siteIds != null) {
7645 _queryParams["siteIds"] = siteIds;
7646 }
7647 if (sizeIds != null) {
7648 _queryParams["sizeIds"] = sizeIds;
7649 }
7650 if (sortField != null) { 7983 if (sortField != null) {
7651 _queryParams["sortField"] = [sortField]; 7984 _queryParams["sortField"] = [sortField];
7652 } 7985 }
7653 if (sortOrder != null) { 7986 if (sortOrder != null) {
7654 _queryParams["sortOrder"] = [sortOrder]; 7987 _queryParams["sortOrder"] = [sortOrder];
7655 } 7988 }
7656 7989
7657 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements'; 7990 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies';
7658 7991
7659 var _response = _requester.request(_url, 7992 var _response = _requester.request(_url,
7660 "GET", 7993 "GET",
7661 body: _body, 7994 body: _body,
7662 queryParams: _queryParams, 7995 queryParams: _queryParams,
7663 uploadOptions: _uploadOptions, 7996 uploadOptions: _uploadOptions,
7664 uploadMedia: _uploadMedia, 7997 uploadMedia: _uploadMedia,
7665 downloadOptions: _downloadOptions); 7998 downloadOptions: _downloadOptions);
7666 return _response.then((data) => new PlacementsListResponse.fromJson(data)); 7999 return _response.then((data) => new PlacementStrategiesListResponse.fromJson (data));
7667 } 8000 }
7668 8001
7669 /** 8002 /**
7670 * Updates an existing placement. This method supports patch semantics. 8003 * Updates an existing placement strategy. This method supports patch
8004 * semantics.
7671 * 8005 *
7672 * [request] - The metadata request object. 8006 * [request] - The metadata request object.
7673 * 8007 *
7674 * Request parameters: 8008 * Request parameters:
7675 * 8009 *
7676 * [profileId] - User profile ID associated with this request. 8010 * [profileId] - User profile ID associated with this request.
7677 * 8011 *
7678 * [id] - Placement ID. 8012 * [id] - Placement strategy ID.
7679 * 8013 *
7680 * Completes with a [Placement]. 8014 * Completes with a [PlacementStrategy].
7681 * 8015 *
7682 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8016 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7683 * error. 8017 * error.
7684 * 8018 *
7685 * If the used [http.Client] completes with an error when making a REST call, 8019 * If the used [http.Client] completes with an error when making a REST call,
7686 * this method will complete with the same error. 8020 * this method will complete with the same error.
7687 */ 8021 */
7688 async.Future<Placement> patch(Placement request, core.String profileId, core.S tring id) { 8022 async.Future<PlacementStrategy> patch(PlacementStrategy request, core.String p rofileId, core.String id) {
7689 var _url = null; 8023 var _url = null;
7690 var _queryParams = new core.Map(); 8024 var _queryParams = new core.Map();
7691 var _uploadMedia = null; 8025 var _uploadMedia = null;
7692 var _uploadOptions = null; 8026 var _uploadOptions = null;
7693 var _downloadOptions = commons.DownloadOptions.Metadata; 8027 var _downloadOptions = commons.DownloadOptions.Metadata;
7694 var _body = null; 8028 var _body = null;
7695 8029
7696 if (request != null) { 8030 if (request != null) {
7697 _body = convert.JSON.encode((request).toJson()); 8031 _body = convert.JSON.encode((request).toJson());
7698 } 8032 }
7699 if (profileId == null) { 8033 if (profileId == null) {
7700 throw new core.ArgumentError("Parameter profileId is required."); 8034 throw new core.ArgumentError("Parameter profileId is required.");
7701 } 8035 }
7702 if (id == null) { 8036 if (id == null) {
7703 throw new core.ArgumentError("Parameter id is required."); 8037 throw new core.ArgumentError("Parameter id is required.");
7704 } 8038 }
7705 _queryParams["id"] = [id]; 8039 _queryParams["id"] = [id];
7706 8040
7707 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements'; 8041 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies';
7708 8042
7709 var _response = _requester.request(_url, 8043 var _response = _requester.request(_url,
7710 "PATCH", 8044 "PATCH",
7711 body: _body, 8045 body: _body,
7712 queryParams: _queryParams, 8046 queryParams: _queryParams,
7713 uploadOptions: _uploadOptions, 8047 uploadOptions: _uploadOptions,
7714 uploadMedia: _uploadMedia, 8048 uploadMedia: _uploadMedia,
7715 downloadOptions: _downloadOptions); 8049 downloadOptions: _downloadOptions);
7716 return _response.then((data) => new Placement.fromJson(data)); 8050 return _response.then((data) => new PlacementStrategy.fromJson(data));
7717 } 8051 }
7718 8052
7719 /** 8053 /**
7720 * Updates an existing placement. 8054 * Updates an existing placement strategy.
7721 * 8055 *
7722 * [request] - The metadata request object. 8056 * [request] - The metadata request object.
7723 * 8057 *
7724 * Request parameters: 8058 * Request parameters:
7725 * 8059 *
7726 * [profileId] - User profile ID associated with this request. 8060 * [profileId] - User profile ID associated with this request.
7727 * 8061 *
7728 * Completes with a [Placement]. 8062 * Completes with a [PlacementStrategy].
7729 * 8063 *
7730 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8064 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7731 * error. 8065 * error.
7732 * 8066 *
7733 * If the used [http.Client] completes with an error when making a REST call, 8067 * If the used [http.Client] completes with an error when making a REST call,
7734 * this method will complete with the same error. 8068 * this method will complete with the same error.
7735 */ 8069 */
7736 async.Future<Placement> update(Placement request, core.String profileId) { 8070 async.Future<PlacementStrategy> update(PlacementStrategy request, core.String profileId) {
7737 var _url = null; 8071 var _url = null;
7738 var _queryParams = new core.Map(); 8072 var _queryParams = new core.Map();
7739 var _uploadMedia = null; 8073 var _uploadMedia = null;
7740 var _uploadOptions = null; 8074 var _uploadOptions = null;
7741 var _downloadOptions = commons.DownloadOptions.Metadata; 8075 var _downloadOptions = commons.DownloadOptions.Metadata;
7742 var _body = null; 8076 var _body = null;
7743 8077
7744 if (request != null) { 8078 if (request != null) {
7745 _body = convert.JSON.encode((request).toJson()); 8079 _body = convert.JSON.encode((request).toJson());
7746 } 8080 }
7747 if (profileId == null) { 8081 if (profileId == null) {
7748 throw new core.ArgumentError("Parameter profileId is required."); 8082 throw new core.ArgumentError("Parameter profileId is required.");
7749 } 8083 }
7750 8084
7751 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements'; 8085 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cementStrategies';
7752 8086
7753 var _response = _requester.request(_url, 8087 var _response = _requester.request(_url,
7754 "PUT", 8088 "PUT",
7755 body: _body, 8089 body: _body,
7756 queryParams: _queryParams, 8090 queryParams: _queryParams,
7757 uploadOptions: _uploadOptions, 8091 uploadOptions: _uploadOptions,
7758 uploadMedia: _uploadMedia, 8092 uploadMedia: _uploadMedia,
7759 downloadOptions: _downloadOptions); 8093 downloadOptions: _downloadOptions);
7760 return _response.then((data) => new Placement.fromJson(data)); 8094 return _response.then((data) => new PlacementStrategy.fromJson(data));
7761 } 8095 }
7762 8096
7763 } 8097 }
7764 8098
7765 8099
7766 class PlatformTypesResourceApi { 8100 class PlacementsResourceApi {
7767 final commons.ApiRequester _requester; 8101 final commons.ApiRequester _requester;
7768 8102
7769 PlatformTypesResourceApi(commons.ApiRequester client) : 8103 PlacementsResourceApi(commons.ApiRequester client) :
7770 _requester = client; 8104 _requester = client;
7771 8105
7772 /** 8106 /**
7773 * Retrieves a list of platform types. 8107 * Generates tags for a placement.
7774 * 8108 *
7775 * Request parameters: 8109 * Request parameters:
7776 * 8110 *
7777 * [profileId] - User profile ID associated with this request. 8111 * [profileId] - User profile ID associated with this request.
7778 * 8112 *
7779 * Completes with a [PlatformTypesListResponse]. 8113 * [campaignId] - Generate placements belonging to this campaign. This is a
8114 * required field.
8115 *
8116 * [placementIds] - Generate tags for these placements.
8117 *
8118 * [tagFormats] - Tag formats to generate for these placements.
8119 *
8120 * Completes with a [PlacementsGenerateTagsResponse].
7780 * 8121 *
7781 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8122 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7782 * error. 8123 * error.
7783 * 8124 *
7784 * If the used [http.Client] completes with an error when making a REST call, 8125 * If the used [http.Client] completes with an error when making a REST call,
7785 * this method will complete with the same error. 8126 * this method will complete with the same error.
7786 */ 8127 */
7787 async.Future<PlatformTypesListResponse> list(core.String profileId) { 8128 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; 8129 var _url = null;
7789 var _queryParams = new core.Map(); 8130 var _queryParams = new core.Map();
7790 var _uploadMedia = null; 8131 var _uploadMedia = null;
7791 var _uploadOptions = null; 8132 var _uploadOptions = null;
7792 var _downloadOptions = commons.DownloadOptions.Metadata; 8133 var _downloadOptions = commons.DownloadOptions.Metadata;
7793 var _body = null; 8134 var _body = null;
7794 8135
7795 if (profileId == null) { 8136 if (profileId == null) {
7796 throw new core.ArgumentError("Parameter profileId is required."); 8137 throw new core.ArgumentError("Parameter profileId is required.");
7797 } 8138 }
8139 if (campaignId != null) {
8140 _queryParams["campaignId"] = [campaignId];
8141 }
8142 if (placementIds != null) {
8143 _queryParams["placementIds"] = placementIds;
8144 }
8145 if (tagFormats != null) {
8146 _queryParams["tagFormats"] = tagFormats;
8147 }
7798 8148
7799 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla tformTypes'; 8149 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements/generatetags';
7800 8150
7801 var _response = _requester.request(_url, 8151 var _response = _requester.request(_url,
7802 "GET", 8152 "POST",
7803 body: _body, 8153 body: _body,
7804 queryParams: _queryParams, 8154 queryParams: _queryParams,
7805 uploadOptions: _uploadOptions, 8155 uploadOptions: _uploadOptions,
7806 uploadMedia: _uploadMedia, 8156 uploadMedia: _uploadMedia,
7807 downloadOptions: _downloadOptions); 8157 downloadOptions: _downloadOptions);
7808 return _response.then((data) => new PlatformTypesListResponse.fromJson(data) ); 8158 return _response.then((data) => new PlacementsGenerateTagsResponse.fromJson( data));
7809 } 8159 }
7810 8160
7811 }
7812
7813
7814 class PostalCodesResourceApi {
7815 final commons.ApiRequester _requester;
7816
7817 PostalCodesResourceApi(commons.ApiRequester client) :
7818 _requester = client;
7819
7820 /** 8161 /**
7821 * Retrieves a list of postal codes. 8162 * Gets one placement by ID.
7822 * 8163 *
7823 * Request parameters: 8164 * Request parameters:
7824 * 8165 *
7825 * [profileId] - User profile ID associated with this request. 8166 * [profileId] - User profile ID associated with this request.
7826 * 8167 *
7827 * Completes with a [PostalCodesListResponse]. 8168 * [id] - Placement ID.
8169 *
8170 * Completes with a [Placement].
7828 * 8171 *
7829 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8172 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7830 * error. 8173 * error.
7831 * 8174 *
7832 * If the used [http.Client] completes with an error when making a REST call, 8175 * If the used [http.Client] completes with an error when making a REST call,
7833 * this method will complete with the same error. 8176 * this method will complete with the same error.
7834 */ 8177 */
7835 async.Future<PostalCodesListResponse> list(core.String profileId) { 8178 async.Future<Placement> get(core.String profileId, core.String id) {
7836 var _url = null; 8179 var _url = null;
7837 var _queryParams = new core.Map(); 8180 var _queryParams = new core.Map();
7838 var _uploadMedia = null; 8181 var _uploadMedia = null;
7839 var _uploadOptions = null; 8182 var _uploadOptions = null;
7840 var _downloadOptions = commons.DownloadOptions.Metadata; 8183 var _downloadOptions = commons.DownloadOptions.Metadata;
7841 var _body = null; 8184 var _body = null;
7842 8185
7843 if (profileId == null) { 8186 if (profileId == null) {
7844 throw new core.ArgumentError("Parameter profileId is required."); 8187 throw new core.ArgumentError("Parameter profileId is required.");
7845 } 8188 }
8189 if (id == null) {
8190 throw new core.ArgumentError("Parameter id is required.");
8191 }
7846 8192
7847 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pos talCodes'; 8193 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements/' + commons.Escaper.ecapeVariable('$id');
7848 8194
7849 var _response = _requester.request(_url, 8195 var _response = _requester.request(_url,
7850 "GET", 8196 "GET",
7851 body: _body, 8197 body: _body,
7852 queryParams: _queryParams, 8198 queryParams: _queryParams,
7853 uploadOptions: _uploadOptions, 8199 uploadOptions: _uploadOptions,
7854 uploadMedia: _uploadMedia, 8200 uploadMedia: _uploadMedia,
7855 downloadOptions: _downloadOptions); 8201 downloadOptions: _downloadOptions);
7856 return _response.then((data) => new PostalCodesListResponse.fromJson(data)); 8202 return _response.then((data) => new Placement.fromJson(data));
7857 } 8203 }
7858 8204
7859 }
7860
7861
7862 class RegionsResourceApi {
7863 final commons.ApiRequester _requester;
7864
7865 RegionsResourceApi(commons.ApiRequester client) :
7866 _requester = client;
7867
7868 /** 8205 /**
7869 * Retrieves a list of regions. 8206 * Inserts a new placement.
8207 *
8208 * [request] - The metadata request object.
7870 * 8209 *
7871 * Request parameters: 8210 * Request parameters:
7872 * 8211 *
7873 * [profileId] - User profile ID associated with this request. 8212 * [profileId] - User profile ID associated with this request.
7874 * 8213 *
7875 * Completes with a [RegionsListResponse]. 8214 * Completes with a [Placement].
7876 * 8215 *
7877 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8216 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7878 * error. 8217 * error.
7879 * 8218 *
7880 * If the used [http.Client] completes with an error when making a REST call, 8219 * If the used [http.Client] completes with an error when making a REST call,
7881 * this method will complete with the same error. 8220 * this method will complete with the same error.
7882 */ 8221 */
7883 async.Future<RegionsListResponse> list(core.String profileId) { 8222 async.Future<Placement> insert(Placement request, core.String profileId) {
7884 var _url = null; 8223 var _url = null;
7885 var _queryParams = new core.Map(); 8224 var _queryParams = new core.Map();
7886 var _uploadMedia = null; 8225 var _uploadMedia = null;
7887 var _uploadOptions = null; 8226 var _uploadOptions = null;
7888 var _downloadOptions = commons.DownloadOptions.Metadata; 8227 var _downloadOptions = commons.DownloadOptions.Metadata;
7889 var _body = null; 8228 var _body = null;
7890 8229
8230 if (request != null) {
8231 _body = convert.JSON.encode((request).toJson());
8232 }
7891 if (profileId == null) { 8233 if (profileId == null) {
7892 throw new core.ArgumentError("Parameter profileId is required."); 8234 throw new core.ArgumentError("Parameter profileId is required.");
7893 } 8235 }
7894 8236
7895 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reg ions'; 8237 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements';
7896 8238
7897 var _response = _requester.request(_url, 8239 var _response = _requester.request(_url,
7898 "GET", 8240 "POST",
7899 body: _body, 8241 body: _body,
7900 queryParams: _queryParams, 8242 queryParams: _queryParams,
7901 uploadOptions: _uploadOptions, 8243 uploadOptions: _uploadOptions,
7902 uploadMedia: _uploadMedia, 8244 uploadMedia: _uploadMedia,
7903 downloadOptions: _downloadOptions); 8245 downloadOptions: _downloadOptions);
7904 return _response.then((data) => new RegionsListResponse.fromJson(data)); 8246 return _response.then((data) => new Placement.fromJson(data));
7905 } 8247 }
7906 8248
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 /** 8249 /**
7920 * Deletes a report by its ID. 8250 * Retrieves a list of placements, possibly filtered.
7921 * 8251 *
7922 * Request parameters: 8252 * Request parameters:
7923 * 8253 *
7924 * [profileId] - The DFA user profile ID. 8254 * [profileId] - User profile ID associated with this request.
7925 * 8255 *
7926 * [reportId] - The ID of the report. 8256 * [advertiserIds] - Select only placements that belong to these advertisers.
8257 *
8258 * [archived] - Select only archived placements. Don't set this field to
8259 * select both archived and non-archived placements.
8260 *
8261 * [campaignIds] - Select only placements that belong to these campaigns.
8262 *
8263 * [compatibilities] - Select only placements that are associated with these
8264 * compatibilities. WEB and WEB_INTERSTITIAL refer to rendering either on
8265 * desktop or on mobile devices for regular or interstitial ads respectively.
8266 * APP and APP_INTERSTITIAL are for rendering in mobile apps.IN_STREAM_VIDEO
8267 * refers to rendering in in-stream video ads developed with the VAST
8268 * standard.
8269 *
8270 * [contentCategoryIds] - Select only placements that are associated with
8271 * these content categories.
8272 *
8273 * [directorySiteIds] - Select only placements that are associated with these
8274 * directory sites.
8275 *
8276 * [groupIds] - Select only placements that belong to these placement groups.
8277 *
8278 * [ids] - Select only placements with these IDs.
8279 *
8280 * [maxResults] - Maximum number of results to return.
8281 *
8282 * [pageToken] - Value of the nextPageToken from the previous result page.
8283 *
8284 * [paymentSource] - Select only placements with this payment source.
8285 * Possible string values are:
8286 * - "PLACEMENT_AGENCY_PAID"
8287 * - "PLACEMENT_PUBLISHER_PAID"
8288 *
8289 * [placementStrategyIds] - Select only placements that are associated with
8290 * these placement strategies.
8291 *
8292 * [pricingTypes] - Select only placements with these pricing types.
8293 *
8294 * [searchString] - Allows searching for placements by name or ID. Wildcards
8295 * (*) are allowed. For example, "placement*2015" will return placements with
8296 * names like "placement June 2015", "placement May 2015", or simply
8297 * "placements 2015". Most of the searches also add wildcards implicitly at
8298 * the start and the end of the search string. For example, a search string of
8299 * "placement" will match placements with name "my placement", "placement
8300 * 2015", or simply "placement".
8301 *
8302 * [siteIds] - Select only placements that are associated with these sites.
8303 *
8304 * [sizeIds] - Select only placements that are associated with these sizes.
8305 *
8306 * [sortField] - Field by which to sort the list.
8307 * Possible string values are:
8308 * - "ID"
8309 * - "NAME"
8310 *
8311 * [sortOrder] - Order of sorted results, default is ASCENDING.
8312 * Possible string values are:
8313 * - "ASCENDING"
8314 * - "DESCENDING"
8315 *
8316 * Completes with a [PlacementsListResponse].
7927 * 8317 *
7928 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8318 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
7929 * error. 8319 * 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 * 8320 *
7977 * If the used [http.Client] completes with an error when making a REST call, 8321 * If the used [http.Client] completes with an error when making a REST call,
7978 * this method will complete with the same error. 8322 * this method will complete with the same error.
7979 */ 8323 */
7980 async.Future<Report> get(core.String profileId, core.String reportId) { 8324 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}) {
7981 var _url = null; 8325 var _url = null;
7982 var _queryParams = new core.Map(); 8326 var _queryParams = new core.Map();
7983 var _uploadMedia = null; 8327 var _uploadMedia = null;
7984 var _uploadOptions = null; 8328 var _uploadOptions = null;
7985 var _downloadOptions = commons.DownloadOptions.Metadata; 8329 var _downloadOptions = commons.DownloadOptions.Metadata;
7986 var _body = null; 8330 var _body = null;
7987 8331
7988 if (profileId == null) { 8332 if (profileId == null) {
7989 throw new core.ArgumentError("Parameter profileId is required."); 8333 throw new core.ArgumentError("Parameter profileId is required.");
7990 } 8334 }
7991 if (reportId == null) { 8335 if (advertiserIds != null) {
7992 throw new core.ArgumentError("Parameter reportId is required."); 8336 _queryParams["advertiserIds"] = advertiserIds;
8337 }
8338 if (archived != null) {
8339 _queryParams["archived"] = ["${archived}"];
8340 }
8341 if (campaignIds != null) {
8342 _queryParams["campaignIds"] = campaignIds;
8343 }
8344 if (compatibilities != null) {
8345 _queryParams["compatibilities"] = compatibilities;
8346 }
8347 if (contentCategoryIds != null) {
8348 _queryParams["contentCategoryIds"] = contentCategoryIds;
8349 }
8350 if (directorySiteIds != null) {
8351 _queryParams["directorySiteIds"] = directorySiteIds;
8352 }
8353 if (groupIds != null) {
8354 _queryParams["groupIds"] = groupIds;
8355 }
8356 if (ids != null) {
8357 _queryParams["ids"] = ids;
8358 }
8359 if (maxResults != null) {
8360 _queryParams["maxResults"] = ["${maxResults}"];
8361 }
8362 if (pageToken != null) {
8363 _queryParams["pageToken"] = [pageToken];
8364 }
8365 if (paymentSource != null) {
8366 _queryParams["paymentSource"] = [paymentSource];
8367 }
8368 if (placementStrategyIds != null) {
8369 _queryParams["placementStrategyIds"] = placementStrategyIds;
8370 }
8371 if (pricingTypes != null) {
8372 _queryParams["pricingTypes"] = pricingTypes;
8373 }
8374 if (searchString != null) {
8375 _queryParams["searchString"] = [searchString];
8376 }
8377 if (siteIds != null) {
8378 _queryParams["siteIds"] = siteIds;
8379 }
8380 if (sizeIds != null) {
8381 _queryParams["sizeIds"] = sizeIds;
8382 }
8383 if (sortField != null) {
8384 _queryParams["sortField"] = [sortField];
8385 }
8386 if (sortOrder != null) {
8387 _queryParams["sortOrder"] = [sortOrder];
7993 } 8388 }
7994 8389
7995 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId'); 8390 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements';
7996 8391
7997 var _response = _requester.request(_url, 8392 var _response = _requester.request(_url,
7998 "GET", 8393 "GET",
7999 body: _body, 8394 body: _body,
8000 queryParams: _queryParams, 8395 queryParams: _queryParams,
8001 uploadOptions: _uploadOptions, 8396 uploadOptions: _uploadOptions,
8002 uploadMedia: _uploadMedia, 8397 uploadMedia: _uploadMedia,
8003 downloadOptions: _downloadOptions); 8398 downloadOptions: _downloadOptions);
8004 return _response.then((data) => new Report.fromJson(data)); 8399 return _response.then((data) => new PlacementsListResponse.fromJson(data));
8005 } 8400 }
8006 8401
8007 /** 8402 /**
8008 * Creates a report. 8403 * Updates an existing placement. This method supports patch semantics.
8009 * 8404 *
8010 * [request] - The metadata request object. 8405 * [request] - The metadata request object.
8011 * 8406 *
8012 * Request parameters: 8407 * Request parameters:
8013 * 8408 *
8014 * [profileId] - The DFA user profile ID. 8409 * [profileId] - User profile ID associated with this request.
8015 * 8410 *
8016 * Completes with a [Report]. 8411 * [id] - Placement ID.
8412 *
8413 * Completes with a [Placement].
8017 * 8414 *
8018 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8415 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8019 * error. 8416 * error.
8020 * 8417 *
8021 * If the used [http.Client] completes with an error when making a REST call, 8418 * If the used [http.Client] completes with an error when making a REST call,
8022 * this method will complete with the same error. 8419 * this method will complete with the same error.
8023 */ 8420 */
8024 async.Future<Report> insert(Report request, core.String profileId) { 8421 async.Future<Placement> patch(Placement request, core.String profileId, core.S tring id) {
8025 var _url = null; 8422 var _url = null;
8026 var _queryParams = new core.Map(); 8423 var _queryParams = new core.Map();
8027 var _uploadMedia = null; 8424 var _uploadMedia = null;
8028 var _uploadOptions = null; 8425 var _uploadOptions = null;
8029 var _downloadOptions = commons.DownloadOptions.Metadata; 8426 var _downloadOptions = commons.DownloadOptions.Metadata;
8030 var _body = null; 8427 var _body = null;
8031 8428
8032 if (request != null) { 8429 if (request != null) {
8033 _body = convert.JSON.encode((request).toJson()); 8430 _body = convert.JSON.encode((request).toJson());
8034 } 8431 }
8035 if (profileId == null) { 8432 if (profileId == null) {
8036 throw new core.ArgumentError("Parameter profileId is required."); 8433 throw new core.ArgumentError("Parameter profileId is required.");
8037 } 8434 }
8435 if (id == null) {
8436 throw new core.ArgumentError("Parameter id is required.");
8437 }
8438 _queryParams["id"] = [id];
8038 8439
8039 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts'; 8440 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements';
8040 8441
8041 var _response = _requester.request(_url, 8442 var _response = _requester.request(_url,
8042 "POST", 8443 "PATCH",
8043 body: _body, 8444 body: _body,
8044 queryParams: _queryParams, 8445 queryParams: _queryParams,
8045 uploadOptions: _uploadOptions, 8446 uploadOptions: _uploadOptions,
8046 uploadMedia: _uploadMedia, 8447 uploadMedia: _uploadMedia,
8047 downloadOptions: _downloadOptions); 8448 downloadOptions: _downloadOptions);
8048 return _response.then((data) => new Report.fromJson(data)); 8449 return _response.then((data) => new Placement.fromJson(data));
8049 } 8450 }
8050 8451
8051 /** 8452 /**
8052 * Retrieves list of reports. 8453 * Updates an existing placement.
8454 *
8455 * [request] - The metadata request object.
8053 * 8456 *
8054 * Request parameters: 8457 * Request parameters:
8055 * 8458 *
8056 * [profileId] - The DFA user profile ID. 8459 * [profileId] - User profile ID associated with this request.
8057 * 8460 *
8058 * [maxResults] - Maximum number of results to return. 8461 * 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 * 8462 *
8082 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8463 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8083 * error. 8464 * error.
8084 * 8465 *
8085 * If the used [http.Client] completes with an error when making a REST call, 8466 * If the used [http.Client] completes with an error when making a REST call,
8086 * this method will complete with the same error. 8467 * this method will complete with the same error.
8087 */ 8468 */
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}) { 8469 async.Future<Placement> update(Placement request, core.String profileId) {
8089 var _url = null; 8470 var _url = null;
8090 var _queryParams = new core.Map(); 8471 var _queryParams = new core.Map();
8091 var _uploadMedia = null; 8472 var _uploadMedia = null;
8092 var _uploadOptions = null; 8473 var _uploadOptions = null;
8093 var _downloadOptions = commons.DownloadOptions.Metadata; 8474 var _downloadOptions = commons.DownloadOptions.Metadata;
8094 var _body = null; 8475 var _body = null;
8095 8476
8477 if (request != null) {
8478 _body = convert.JSON.encode((request).toJson());
8479 }
8096 if (profileId == null) { 8480 if (profileId == null) {
8097 throw new core.ArgumentError("Parameter profileId is required."); 8481 throw new core.ArgumentError("Parameter profileId is required.");
8098 } 8482 }
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 8483
8115 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts'; 8484 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla cements';
8116 8485
8117 var _response = _requester.request(_url, 8486 var _response = _requester.request(_url,
8118 "GET", 8487 "PUT",
8119 body: _body, 8488 body: _body,
8120 queryParams: _queryParams, 8489 queryParams: _queryParams,
8121 uploadOptions: _uploadOptions, 8490 uploadOptions: _uploadOptions,
8122 uploadMedia: _uploadMedia, 8491 uploadMedia: _uploadMedia,
8123 downloadOptions: _downloadOptions); 8492 downloadOptions: _downloadOptions);
8124 return _response.then((data) => new ReportList.fromJson(data)); 8493 return _response.then((data) => new Placement.fromJson(data));
8125 } 8494 }
8126 8495
8496 }
8497
8498
8499 class PlatformTypesResourceApi {
8500 final commons.ApiRequester _requester;
8501
8502 PlatformTypesResourceApi(commons.ApiRequester client) :
8503 _requester = client;
8504
8127 /** 8505 /**
8128 * Updates a report. This method supports patch semantics. 8506 * Gets one platform type by ID.
8129 *
8130 * [request] - The metadata request object.
8131 * 8507 *
8132 * Request parameters: 8508 * Request parameters:
8133 * 8509 *
8134 * [profileId] - The DFA user profile ID. 8510 * [profileId] - User profile ID associated with this request.
8135 * 8511 *
8136 * [reportId] - The ID of the report. 8512 * [id] - Platform type ID.
8137 * 8513 *
8138 * Completes with a [Report]. 8514 * Completes with a [PlatformType].
8139 * 8515 *
8140 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8516 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8141 * error. 8517 * error.
8142 * 8518 *
8143 * If the used [http.Client] completes with an error when making a REST call, 8519 * If the used [http.Client] completes with an error when making a REST call,
8144 * this method will complete with the same error. 8520 * this method will complete with the same error.
8145 */ 8521 */
8146 async.Future<Report> patch(Report request, core.String profileId, core.String reportId) { 8522 async.Future<PlatformType> get(core.String profileId, core.String id) {
8147 var _url = null; 8523 var _url = null;
8148 var _queryParams = new core.Map(); 8524 var _queryParams = new core.Map();
8149 var _uploadMedia = null; 8525 var _uploadMedia = null;
8150 var _uploadOptions = null; 8526 var _uploadOptions = null;
8151 var _downloadOptions = commons.DownloadOptions.Metadata; 8527 var _downloadOptions = commons.DownloadOptions.Metadata;
8152 var _body = null; 8528 var _body = null;
8153 8529
8154 if (request != null) {
8155 _body = convert.JSON.encode((request).toJson());
8156 }
8157 if (profileId == null) { 8530 if (profileId == null) {
8158 throw new core.ArgumentError("Parameter profileId is required."); 8531 throw new core.ArgumentError("Parameter profileId is required.");
8159 } 8532 }
8160 if (reportId == null) { 8533 if (id == null) {
8161 throw new core.ArgumentError("Parameter reportId is required."); 8534 throw new core.ArgumentError("Parameter id is required.");
8162 } 8535 }
8163 8536
8164 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId'); 8537 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla tformTypes/' + commons.Escaper.ecapeVariable('$id');
8165 8538
8166 var _response = _requester.request(_url, 8539 var _response = _requester.request(_url,
8167 "PATCH", 8540 "GET",
8168 body: _body, 8541 body: _body,
8169 queryParams: _queryParams, 8542 queryParams: _queryParams,
8170 uploadOptions: _uploadOptions, 8543 uploadOptions: _uploadOptions,
8171 uploadMedia: _uploadMedia, 8544 uploadMedia: _uploadMedia,
8172 downloadOptions: _downloadOptions); 8545 downloadOptions: _downloadOptions);
8173 return _response.then((data) => new Report.fromJson(data)); 8546 return _response.then((data) => new PlatformType.fromJson(data));
8174 } 8547 }
8175 8548
8176 /** 8549 /**
8177 * Runs a report. 8550 * Retrieves a list of platform types.
8178 * 8551 *
8179 * Request parameters: 8552 * Request parameters:
8180 * 8553 *
8181 * [profileId] - The DFA profile ID. 8554 * [profileId] - User profile ID associated with this request.
8182 * 8555 *
8183 * [reportId] - The ID of the report. 8556 * Completes with a [PlatformTypesListResponse].
8184 *
8185 * [synchronous] - If set and true, tries to run the report synchronously.
8186 *
8187 * Completes with a [File].
8188 * 8557 *
8189 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8558 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8190 * error. 8559 * error.
8191 * 8560 *
8192 * If the used [http.Client] completes with an error when making a REST call, 8561 * If the used [http.Client] completes with an error when making a REST call,
8193 * this method will complete with the same error. 8562 * this method will complete with the same error.
8194 */ 8563 */
8195 async.Future<File> run(core.String profileId, core.String reportId, {core.bool synchronous}) { 8564 async.Future<PlatformTypesListResponse> list(core.String profileId) {
8196 var _url = null; 8565 var _url = null;
8197 var _queryParams = new core.Map(); 8566 var _queryParams = new core.Map();
8198 var _uploadMedia = null; 8567 var _uploadMedia = null;
8199 var _uploadOptions = null; 8568 var _uploadOptions = null;
8200 var _downloadOptions = commons.DownloadOptions.Metadata; 8569 var _downloadOptions = commons.DownloadOptions.Metadata;
8201 var _body = null; 8570 var _body = null;
8202 8571
8203 if (profileId == null) { 8572 if (profileId == null) {
8204 throw new core.ArgumentError("Parameter profileId is required."); 8573 throw new core.ArgumentError("Parameter profileId is required.");
8205 } 8574 }
8206 if (reportId == null) {
8207 throw new core.ArgumentError("Parameter reportId is required.");
8208 }
8209 if (synchronous != null) {
8210 _queryParams["synchronous"] = ["${synchronous}"];
8211 }
8212 8575
8213 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/run'; 8576 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla tformTypes';
8214 8577
8215 var _response = _requester.request(_url, 8578 var _response = _requester.request(_url,
8216 "POST", 8579 "GET",
8217 body: _body, 8580 body: _body,
8218 queryParams: _queryParams, 8581 queryParams: _queryParams,
8219 uploadOptions: _uploadOptions, 8582 uploadOptions: _uploadOptions,
8220 uploadMedia: _uploadMedia, 8583 uploadMedia: _uploadMedia,
8221 downloadOptions: _downloadOptions); 8584 downloadOptions: _downloadOptions);
8222 return _response.then((data) => new File.fromJson(data)); 8585 return _response.then((data) => new PlatformTypesListResponse.fromJson(data) );
8223 } 8586 }
8224 8587
8588 }
8589
8590
8591 class PostalCodesResourceApi {
8592 final commons.ApiRequester _requester;
8593
8594 PostalCodesResourceApi(commons.ApiRequester client) :
8595 _requester = client;
8596
8225 /** 8597 /**
8226 * Updates a report. 8598 * Gets one postal code by ID.
8227 *
8228 * [request] - The metadata request object.
8229 * 8599 *
8230 * Request parameters: 8600 * Request parameters:
8231 * 8601 *
8232 * [profileId] - The DFA user profile ID. 8602 * [profileId] - User profile ID associated with this request.
8233 * 8603 *
8234 * [reportId] - The ID of the report. 8604 * [code] - Postal code ID.
8235 * 8605 *
8236 * Completes with a [Report]. 8606 * Completes with a [PostalCode].
8237 * 8607 *
8238 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8608 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8239 * error. 8609 * error.
8240 * 8610 *
8241 * If the used [http.Client] completes with an error when making a REST call, 8611 * If the used [http.Client] completes with an error when making a REST call,
8242 * this method will complete with the same error. 8612 * this method will complete with the same error.
8243 */ 8613 */
8244 async.Future<Report> update(Report request, core.String profileId, core.String reportId) { 8614 async.Future<PostalCode> get(core.String profileId, core.String code) {
8245 var _url = null; 8615 var _url = null;
8246 var _queryParams = new core.Map(); 8616 var _queryParams = new core.Map();
8247 var _uploadMedia = null; 8617 var _uploadMedia = null;
8248 var _uploadOptions = null; 8618 var _uploadOptions = null;
8249 var _downloadOptions = commons.DownloadOptions.Metadata; 8619 var _downloadOptions = commons.DownloadOptions.Metadata;
8250 var _body = null; 8620 var _body = null;
8251 8621
8252 if (request != null) {
8253 _body = convert.JSON.encode((request).toJson());
8254 }
8255 if (profileId == null) { 8622 if (profileId == null) {
8256 throw new core.ArgumentError("Parameter profileId is required."); 8623 throw new core.ArgumentError("Parameter profileId is required.");
8257 } 8624 }
8258 if (reportId == null) { 8625 if (code == null) {
8259 throw new core.ArgumentError("Parameter reportId is required."); 8626 throw new core.ArgumentError("Parameter code is required.");
8260 } 8627 }
8261 8628
8262 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId'); 8629 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pos talCodes/' + commons.Escaper.ecapeVariable('$code');
8263 8630
8264 var _response = _requester.request(_url, 8631 var _response = _requester.request(_url,
8265 "PUT", 8632 "GET",
8266 body: _body, 8633 body: _body,
8267 queryParams: _queryParams, 8634 queryParams: _queryParams,
8268 uploadOptions: _uploadOptions, 8635 uploadOptions: _uploadOptions,
8269 uploadMedia: _uploadMedia, 8636 uploadMedia: _uploadMedia,
8270 downloadOptions: _downloadOptions); 8637 downloadOptions: _downloadOptions);
8271 return _response.then((data) => new Report.fromJson(data)); 8638 return _response.then((data) => new PostalCode.fromJson(data));
8272 } 8639 }
8273 8640
8274 }
8275
8276
8277 class ReportsCompatibleFieldsResourceApi {
8278 final commons.ApiRequester _requester;
8279
8280 ReportsCompatibleFieldsResourceApi(commons.ApiRequester client) :
8281 _requester = client;
8282
8283 /** 8641 /**
8284 * Returns the fields that are compatible to be selected in the respective 8642 * 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 * 8643 *
8290 * Request parameters: 8644 * Request parameters:
8291 * 8645 *
8292 * [profileId] - The DFA user profile ID. 8646 * [profileId] - User profile ID associated with this request.
8293 * 8647 *
8294 * Completes with a [CompatibleFields]. 8648 * Completes with a [PostalCodesListResponse].
8295 * 8649 *
8296 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8650 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8297 * error. 8651 * error.
8298 * 8652 *
8299 * If the used [http.Client] completes with an error when making a REST call, 8653 * If the used [http.Client] completes with an error when making a REST call,
8300 * this method will complete with the same error. 8654 * this method will complete with the same error.
8301 */ 8655 */
8302 async.Future<CompatibleFields> query(Report request, core.String profileId) { 8656 async.Future<PostalCodesListResponse> list(core.String profileId) {
8303 var _url = null; 8657 var _url = null;
8304 var _queryParams = new core.Map(); 8658 var _queryParams = new core.Map();
8305 var _uploadMedia = null; 8659 var _uploadMedia = null;
8306 var _uploadOptions = null; 8660 var _uploadOptions = null;
8307 var _downloadOptions = commons.DownloadOptions.Metadata; 8661 var _downloadOptions = commons.DownloadOptions.Metadata;
8308 var _body = null; 8662 var _body = null;
8309 8663
8310 if (request != null) {
8311 _body = convert.JSON.encode((request).toJson());
8312 }
8313 if (profileId == null) { 8664 if (profileId == null) {
8314 throw new core.ArgumentError("Parameter profileId is required."); 8665 throw new core.ArgumentError("Parameter profileId is required.");
8315 } 8666 }
8316 8667
8317 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/compatiblefields/query'; 8668 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pos talCodes';
8318 8669
8319 var _response = _requester.request(_url, 8670 var _response = _requester.request(_url,
8320 "POST", 8671 "GET",
8321 body: _body, 8672 body: _body,
8322 queryParams: _queryParams, 8673 queryParams: _queryParams,
8323 uploadOptions: _uploadOptions, 8674 uploadOptions: _uploadOptions,
8324 uploadMedia: _uploadMedia, 8675 uploadMedia: _uploadMedia,
8325 downloadOptions: _downloadOptions); 8676 downloadOptions: _downloadOptions);
8326 return _response.then((data) => new CompatibleFields.fromJson(data)); 8677 return _response.then((data) => new PostalCodesListResponse.fromJson(data));
8327 } 8678 }
8328 8679
8329 } 8680 }
8330 8681
8331 8682
8332 class ReportsFilesResourceApi { 8683 class ProjectsResourceApi {
8333 final commons.ApiRequester _requester; 8684 final commons.ApiRequester _requester;
8334 8685
8335 ReportsFilesResourceApi(commons.ApiRequester client) : 8686 ProjectsResourceApi(commons.ApiRequester client) :
8336 _requester = client; 8687 _requester = client;
8337 8688
8338 /** 8689 /**
8339 * Retrieves a report file. 8690 * Gets one project by ID.
8340 * 8691 *
8341 * Request parameters: 8692 * Request parameters:
8342 * 8693 *
8343 * [profileId] - The DFA profile ID. 8694 * [profileId] - User profile ID associated with this request.
8344 * 8695 *
8345 * [reportId] - The ID of the report. 8696 * [id] - Project ID.
8346 * 8697 *
8347 * [fileId] - The ID of the report file. 8698 * 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 * 8699 *
8359 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8700 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8360 * error. 8701 * error.
8361 * 8702 *
8362 * If the used [http.Client] completes with an error when making a REST call, 8703 * If the used [http.Client] completes with an error when making a REST call,
8363 * this method will complete with the same error. 8704 * this method will complete with the same error.
8364 */ 8705 */
8365 async.Future get(core.String profileId, core.String reportId, core.String file Id, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { 8706 async.Future<Project> get(core.String profileId, core.String id) {
8366 var _url = null; 8707 var _url = null;
8367 var _queryParams = new core.Map(); 8708 var _queryParams = new core.Map();
8368 var _uploadMedia = null; 8709 var _uploadMedia = null;
8369 var _uploadOptions = null; 8710 var _uploadOptions = null;
8370 var _downloadOptions = commons.DownloadOptions.Metadata; 8711 var _downloadOptions = commons.DownloadOptions.Metadata;
8371 var _body = null; 8712 var _body = null;
8372 8713
8373 if (profileId == null) { 8714 if (profileId == null) {
8374 throw new core.ArgumentError("Parameter profileId is required."); 8715 throw new core.ArgumentError("Parameter profileId is required.");
8375 } 8716 }
8376 if (reportId == null) { 8717 if (id == null) {
8377 throw new core.ArgumentError("Parameter reportId is required."); 8718 throw new core.ArgumentError("Parameter id is required.");
8378 }
8379 if (fileId == null) {
8380 throw new core.ArgumentError("Parameter fileId is required.");
8381 } 8719 }
8382 8720
8383 _downloadOptions = downloadOptions; 8721 _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 8722
8387 var _response = _requester.request(_url, 8723 var _response = _requester.request(_url,
8388 "GET", 8724 "GET",
8389 body: _body, 8725 body: _body,
8390 queryParams: _queryParams, 8726 queryParams: _queryParams,
8391 uploadOptions: _uploadOptions, 8727 uploadOptions: _uploadOptions,
8392 uploadMedia: _uploadMedia, 8728 uploadMedia: _uploadMedia,
8393 downloadOptions: _downloadOptions); 8729 downloadOptions: _downloadOptions);
8394 if (_downloadOptions == null || 8730 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 } 8731 }
8401 8732
8402 /** 8733 /**
8403 * Lists files for a report. 8734 * Retrieves a list of projects, possibly filtered.
8404 * 8735 *
8405 * Request parameters: 8736 * Request parameters:
8406 * 8737 *
8407 * [profileId] - The DFA profile ID. 8738 * [profileId] - User profile ID associated with this request.
8408 * 8739 *
8409 * [reportId] - The ID of the parent report. 8740 * [advertiserIds] - Select only projects with these advertiser IDs.
8741 *
8742 * [ids] - Select only projects with these IDs.
8410 * 8743 *
8411 * [maxResults] - Maximum number of results to return. 8744 * [maxResults] - Maximum number of results to return.
8412 * Value must be between "0" and "10".
8413 * 8745 *
8414 * [pageToken] - The value of the nextToken from the previous result page. 8746 * [pageToken] - Value of the nextPageToken from the previous result page.
8415 * 8747 *
8416 * [sortField] - The field by which to sort the list. 8748 * [searchString] - Allows searching for projects by name or ID. Wildcards (*)
8749 * are allowed. For example, "project*2015" will return projects with names
8750 * like "project June 2015", "project April 2015", or simply "project 2015".
8751 * Most of the searches also add wildcards implicitly at the start and the end
8752 * of the search string. For example, a search string of "project" will match
8753 * projects with name "my project", "project 2015", or simply "project".
8754 *
8755 * [sortField] - Field by which to sort the list.
8417 * Possible string values are: 8756 * Possible string values are:
8418 * - "ID" : Sort by file ID. 8757 * - "ID"
8419 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. 8758 * - "NAME"
8420 * 8759 *
8421 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. 8760 * [sortOrder] - Order of sorted results, default is ASCENDING.
8422 * Possible string values are: 8761 * Possible string values are:
8423 * - "ASCENDING" : Ascending order. 8762 * - "ASCENDING"
8424 * - "DESCENDING" : Descending order. 8763 * - "DESCENDING"
8425 * 8764 *
8426 * Completes with a [FileList]. 8765 * Completes with a [ProjectsListResponse].
8427 * 8766 *
8428 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8767 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8429 * error. 8768 * error.
8430 * 8769 *
8431 * If the used [http.Client] completes with an error when making a REST call, 8770 * If the used [http.Client] completes with an error when making a REST call,
8432 * this method will complete with the same error. 8771 * this method will complete with the same error.
8433 */ 8772 */
8434 async.Future<FileList> list(core.String profileId, core.String reportId, {core .int maxResults, core.String pageToken, core.String sortField, core.String sortO rder}) { 8773 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; 8774 var _url = null;
8436 var _queryParams = new core.Map(); 8775 var _queryParams = new core.Map();
8437 var _uploadMedia = null; 8776 var _uploadMedia = null;
8438 var _uploadOptions = null; 8777 var _uploadOptions = null;
8439 var _downloadOptions = commons.DownloadOptions.Metadata; 8778 var _downloadOptions = commons.DownloadOptions.Metadata;
8440 var _body = null; 8779 var _body = null;
8441 8780
8442 if (profileId == null) { 8781 if (profileId == null) {
8443 throw new core.ArgumentError("Parameter profileId is required."); 8782 throw new core.ArgumentError("Parameter profileId is required.");
8444 } 8783 }
8445 if (reportId == null) { 8784 if (advertiserIds != null) {
8446 throw new core.ArgumentError("Parameter reportId is required."); 8785 _queryParams["advertiserIds"] = advertiserIds;
8786 }
8787 if (ids != null) {
8788 _queryParams["ids"] = ids;
8447 } 8789 }
8448 if (maxResults != null) { 8790 if (maxResults != null) {
8449 _queryParams["maxResults"] = ["${maxResults}"]; 8791 _queryParams["maxResults"] = ["${maxResults}"];
8450 } 8792 }
8451 if (pageToken != null) { 8793 if (pageToken != null) {
8452 _queryParams["pageToken"] = [pageToken]; 8794 _queryParams["pageToken"] = [pageToken];
8453 } 8795 }
8796 if (searchString != null) {
8797 _queryParams["searchString"] = [searchString];
8798 }
8454 if (sortField != null) { 8799 if (sortField != null) {
8455 _queryParams["sortField"] = [sortField]; 8800 _queryParams["sortField"] = [sortField];
8456 } 8801 }
8457 if (sortOrder != null) { 8802 if (sortOrder != null) {
8458 _queryParams["sortOrder"] = [sortOrder]; 8803 _queryParams["sortOrder"] = [sortOrder];
8459 } 8804 }
8460 8805
8461 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files'; 8806 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pro jects';
8462 8807
8463 var _response = _requester.request(_url, 8808 var _response = _requester.request(_url,
8464 "GET", 8809 "GET",
8465 body: _body, 8810 body: _body,
8466 queryParams: _queryParams, 8811 queryParams: _queryParams,
8467 uploadOptions: _uploadOptions, 8812 uploadOptions: _uploadOptions,
8468 uploadMedia: _uploadMedia, 8813 uploadMedia: _uploadMedia,
8469 downloadOptions: _downloadOptions); 8814 downloadOptions: _downloadOptions);
8470 return _response.then((data) => new FileList.fromJson(data)); 8815 return _response.then((data) => new ProjectsListResponse.fromJson(data));
8471 } 8816 }
8472 8817
8473 } 8818 }
8474 8819
8475 8820
8476 class SitesResourceApi { 8821 class RegionsResourceApi {
8477 final commons.ApiRequester _requester; 8822 final commons.ApiRequester _requester;
8478 8823
8479 SitesResourceApi(commons.ApiRequester client) : 8824 RegionsResourceApi(commons.ApiRequester client) :
8480 _requester = client; 8825 _requester = client;
8481 8826
8482 /** 8827 /**
8483 * Gets one site by ID. 8828 * Retrieves a list of regions.
8484 * 8829 *
8485 * Request parameters: 8830 * Request parameters:
8486 * 8831 *
8487 * [profileId] - User profile ID associated with this request. 8832 * [profileId] - User profile ID associated with this request.
8488 * 8833 *
8489 * [id] - Site ID. 8834 * Completes with a [RegionsListResponse].
8490 *
8491 * Completes with a [Site].
8492 * 8835 *
8493 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8836 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8494 * error. 8837 * error.
8495 * 8838 *
8496 * If the used [http.Client] completes with an error when making a REST call, 8839 * If the used [http.Client] completes with an error when making a REST call,
8497 * this method will complete with the same error. 8840 * this method will complete with the same error.
8498 */ 8841 */
8499 async.Future<Site> get(core.String profileId, core.String id) { 8842 async.Future<RegionsListResponse> list(core.String profileId) {
8500 var _url = null; 8843 var _url = null;
8501 var _queryParams = new core.Map(); 8844 var _queryParams = new core.Map();
8502 var _uploadMedia = null; 8845 var _uploadMedia = null;
8503 var _uploadOptions = null; 8846 var _uploadOptions = null;
8504 var _downloadOptions = commons.DownloadOptions.Metadata; 8847 var _downloadOptions = commons.DownloadOptions.Metadata;
8505 var _body = null; 8848 var _body = null;
8506 8849
8507 if (profileId == null) { 8850 if (profileId == null) {
8508 throw new core.ArgumentError("Parameter profileId is required."); 8851 throw new core.ArgumentError("Parameter profileId is required.");
8509 } 8852 }
8510 if (id == null) {
8511 throw new core.ArgumentError("Parameter id is required.");
8512 }
8513 8853
8514 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es/' + commons.Escaper.ecapeVariable('$id'); 8854 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reg ions';
8515 8855
8516 var _response = _requester.request(_url, 8856 var _response = _requester.request(_url,
8517 "GET", 8857 "GET",
8518 body: _body, 8858 body: _body,
8519 queryParams: _queryParams, 8859 queryParams: _queryParams,
8520 uploadOptions: _uploadOptions, 8860 uploadOptions: _uploadOptions,
8521 uploadMedia: _uploadMedia, 8861 uploadMedia: _uploadMedia,
8522 downloadOptions: _downloadOptions); 8862 downloadOptions: _downloadOptions);
8523 return _response.then((data) => new Site.fromJson(data)); 8863 return _response.then((data) => new RegionsListResponse.fromJson(data));
8524 } 8864 }
8525 8865
8866 }
8867
8868
8869 class RemarketingListSharesResourceApi {
8870 final commons.ApiRequester _requester;
8871
8872 RemarketingListSharesResourceApi(commons.ApiRequester client) :
8873 _requester = client;
8874
8526 /** 8875 /**
8527 * Inserts a new site. 8876 * Gets one remarketing list share by remarketing list ID.
8528 *
8529 * [request] - The metadata request object.
8530 * 8877 *
8531 * Request parameters: 8878 * Request parameters:
8532 * 8879 *
8533 * [profileId] - User profile ID associated with this request. 8880 * [profileId] - User profile ID associated with this request.
8534 * 8881 *
8535 * Completes with a [Site]. 8882 * [remarketingListId] - Remarketing list ID.
8883 *
8884 * Completes with a [RemarketingListShare].
8536 * 8885 *
8537 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8886 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8538 * error. 8887 * error.
8539 * 8888 *
8540 * If the used [http.Client] completes with an error when making a REST call, 8889 * If the used [http.Client] completes with an error when making a REST call,
8541 * this method will complete with the same error. 8890 * this method will complete with the same error.
8542 */ 8891 */
8543 async.Future<Site> insert(Site request, core.String profileId) { 8892 async.Future<RemarketingListShare> get(core.String profileId, core.String rema rketingListId) {
8544 var _url = null; 8893 var _url = null;
8545 var _queryParams = new core.Map(); 8894 var _queryParams = new core.Map();
8546 var _uploadMedia = null; 8895 var _uploadMedia = null;
8547 var _uploadOptions = null; 8896 var _uploadOptions = null;
8548 var _downloadOptions = commons.DownloadOptions.Metadata; 8897 var _downloadOptions = commons.DownloadOptions.Metadata;
8549 var _body = null; 8898 var _body = null;
8550 8899
8900 if (profileId == null) {
8901 throw new core.ArgumentError("Parameter profileId is required.");
8902 }
8903 if (remarketingListId == null) {
8904 throw new core.ArgumentError("Parameter remarketingListId is required.");
8905 }
8906
8907 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingListShares/' + commons.Escaper.ecapeVariable('$remarketingListId');
8908
8909 var _response = _requester.request(_url,
8910 "GET",
8911 body: _body,
8912 queryParams: _queryParams,
8913 uploadOptions: _uploadOptions,
8914 uploadMedia: _uploadMedia,
8915 downloadOptions: _downloadOptions);
8916 return _response.then((data) => new RemarketingListShare.fromJson(data));
8917 }
8918
8919 /**
8920 * Updates an existing remarketing list share. This method supports patch
8921 * semantics.
8922 *
8923 * [request] - The metadata request object.
8924 *
8925 * Request parameters:
8926 *
8927 * [profileId] - User profile ID associated with this request.
8928 *
8929 * [remarketingListId] - Remarketing list ID.
8930 *
8931 * Completes with a [RemarketingListShare].
8932 *
8933 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8934 * error.
8935 *
8936 * If the used [http.Client] completes with an error when making a REST call,
8937 * this method will complete with the same error.
8938 */
8939 async.Future<RemarketingListShare> patch(RemarketingListShare request, core.St ring profileId, core.String remarketingListId) {
8940 var _url = null;
8941 var _queryParams = new core.Map();
8942 var _uploadMedia = null;
8943 var _uploadOptions = null;
8944 var _downloadOptions = commons.DownloadOptions.Metadata;
8945 var _body = null;
8946
8551 if (request != null) { 8947 if (request != null) {
8552 _body = convert.JSON.encode((request).toJson()); 8948 _body = convert.JSON.encode((request).toJson());
8553 } 8949 }
8554 if (profileId == null) { 8950 if (profileId == null) {
8555 throw new core.ArgumentError("Parameter profileId is required."); 8951 throw new core.ArgumentError("Parameter profileId is required.");
8556 } 8952 }
8953 if (remarketingListId == null) {
8954 throw new core.ArgumentError("Parameter remarketingListId is required.");
8955 }
8956 _queryParams["remarketingListId"] = [remarketingListId];
8557 8957
8558 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es'; 8958 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingListShares';
8559 8959
8560 var _response = _requester.request(_url, 8960 var _response = _requester.request(_url,
8561 "POST", 8961 "PATCH",
8562 body: _body, 8962 body: _body,
8563 queryParams: _queryParams, 8963 queryParams: _queryParams,
8564 uploadOptions: _uploadOptions, 8964 uploadOptions: _uploadOptions,
8565 uploadMedia: _uploadMedia, 8965 uploadMedia: _uploadMedia,
8566 downloadOptions: _downloadOptions); 8966 downloadOptions: _downloadOptions);
8567 return _response.then((data) => new Site.fromJson(data)); 8967 return _response.then((data) => new RemarketingListShare.fromJson(data));
8568 } 8968 }
8569 8969
8570 /** 8970 /**
8571 * Retrieves a list of sites, possibly filtered. 8971 * Updates an existing remarketing list share.
8972 *
8973 * [request] - The metadata request object.
8572 * 8974 *
8573 * Request parameters: 8975 * Request parameters:
8574 * 8976 *
8575 * [profileId] - User profile ID associated with this request. 8977 * [profileId] - User profile ID associated with this request.
8576 * 8978 *
8577 * [acceptsInStreamVideoPlacements] - This search filter is no longer 8979 * Completes with a [RemarketingListShare].
8578 * supported and will have no effect on the results returned.
8579 *
8580 * [acceptsInterstitialPlacements] - This search filter is no longer supported
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 * 8980 *
8624 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 8981 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8625 * error. 8982 * error.
8626 * 8983 *
8627 * If the used [http.Client] completes with an error when making a REST call, 8984 * If the used [http.Client] completes with an error when making a REST call,
8628 * this method will complete with the same error. 8985 * this method will complete with the same error.
8629 */ 8986 */
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}) { 8987 async.Future<RemarketingListShare> update(RemarketingListShare request, core.S tring profileId) {
8631 var _url = null; 8988 var _url = null;
8632 var _queryParams = new core.Map(); 8989 var _queryParams = new core.Map();
8633 var _uploadMedia = null; 8990 var _uploadMedia = null;
8634 var _uploadOptions = null; 8991 var _uploadOptions = null;
8635 var _downloadOptions = commons.DownloadOptions.Metadata; 8992 var _downloadOptions = commons.DownloadOptions.Metadata;
8636 var _body = null; 8993 var _body = null;
8637 8994
8995 if (request != null) {
8996 _body = convert.JSON.encode((request).toJson());
8997 }
8638 if (profileId == null) { 8998 if (profileId == null) {
8639 throw new core.ArgumentError("Parameter profileId is required."); 8999 throw new core.ArgumentError("Parameter profileId is required.");
8640 } 9000 }
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 9001
8687 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es'; 9002 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingListShares';
8688 9003
8689 var _response = _requester.request(_url, 9004 var _response = _requester.request(_url,
8690 "GET", 9005 "PUT",
8691 body: _body, 9006 body: _body,
8692 queryParams: _queryParams, 9007 queryParams: _queryParams,
8693 uploadOptions: _uploadOptions, 9008 uploadOptions: _uploadOptions,
8694 uploadMedia: _uploadMedia, 9009 uploadMedia: _uploadMedia,
8695 downloadOptions: _downloadOptions); 9010 downloadOptions: _downloadOptions);
8696 return _response.then((data) => new SitesListResponse.fromJson(data)); 9011 return _response.then((data) => new RemarketingListShare.fromJson(data));
8697 } 9012 }
8698 9013
9014 }
9015
9016
9017 class RemarketingListsResourceApi {
9018 final commons.ApiRequester _requester;
9019
9020 RemarketingListsResourceApi(commons.ApiRequester client) :
9021 _requester = client;
9022
8699 /** 9023 /**
8700 * Updates an existing site. This method supports patch semantics. 9024 * Gets one remarketing list by ID.
8701 *
8702 * [request] - The metadata request object.
8703 * 9025 *
8704 * Request parameters: 9026 * Request parameters:
8705 * 9027 *
8706 * [profileId] - User profile ID associated with this request. 9028 * [profileId] - User profile ID associated with this request.
8707 * 9029 *
8708 * [id] - Site ID. 9030 * [id] - Remarketing list ID.
8709 * 9031 *
8710 * Completes with a [Site]. 9032 * Completes with a [RemarketingList].
8711 * 9033 *
8712 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9034 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8713 * error. 9035 * error.
8714 * 9036 *
8715 * If the used [http.Client] completes with an error when making a REST call, 9037 * If the used [http.Client] completes with an error when making a REST call,
8716 * this method will complete with the same error. 9038 * this method will complete with the same error.
8717 */ 9039 */
8718 async.Future<Site> patch(Site request, core.String profileId, core.String id) { 9040 async.Future<RemarketingList> get(core.String profileId, core.String id) {
8719 var _url = null; 9041 var _url = null;
8720 var _queryParams = new core.Map(); 9042 var _queryParams = new core.Map();
8721 var _uploadMedia = null; 9043 var _uploadMedia = null;
8722 var _uploadOptions = null; 9044 var _uploadOptions = null;
8723 var _downloadOptions = commons.DownloadOptions.Metadata; 9045 var _downloadOptions = commons.DownloadOptions.Metadata;
8724 var _body = null; 9046 var _body = null;
8725 9047
8726 if (request != null) {
8727 _body = convert.JSON.encode((request).toJson());
8728 }
8729 if (profileId == null) { 9048 if (profileId == null) {
8730 throw new core.ArgumentError("Parameter profileId is required."); 9049 throw new core.ArgumentError("Parameter profileId is required.");
8731 } 9050 }
8732 if (id == null) { 9051 if (id == null) {
8733 throw new core.ArgumentError("Parameter id is required."); 9052 throw new core.ArgumentError("Parameter id is required.");
8734 } 9053 }
8735 _queryParams["id"] = [id];
8736 9054
8737 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es'; 9055 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingLists/' + commons.Escaper.ecapeVariable('$id');
8738 9056
8739 var _response = _requester.request(_url, 9057 var _response = _requester.request(_url,
8740 "PATCH", 9058 "GET",
8741 body: _body, 9059 body: _body,
8742 queryParams: _queryParams, 9060 queryParams: _queryParams,
8743 uploadOptions: _uploadOptions, 9061 uploadOptions: _uploadOptions,
8744 uploadMedia: _uploadMedia, 9062 uploadMedia: _uploadMedia,
8745 downloadOptions: _downloadOptions); 9063 downloadOptions: _downloadOptions);
8746 return _response.then((data) => new Site.fromJson(data)); 9064 return _response.then((data) => new RemarketingList.fromJson(data));
8747 } 9065 }
8748 9066
8749 /** 9067 /**
8750 * Updates an existing site. 9068 * Inserts a new remarketing list.
8751 * 9069 *
8752 * [request] - The metadata request object. 9070 * [request] - The metadata request object.
8753 * 9071 *
8754 * Request parameters: 9072 * Request parameters:
8755 * 9073 *
8756 * [profileId] - User profile ID associated with this request. 9074 * [profileId] - User profile ID associated with this request.
8757 * 9075 *
8758 * Completes with a [Site]. 9076 * Completes with a [RemarketingList].
8759 * 9077 *
8760 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9078 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8761 * error. 9079 * error.
8762 * 9080 *
8763 * If the used [http.Client] completes with an error when making a REST call, 9081 * If the used [http.Client] completes with an error when making a REST call,
8764 * this method will complete with the same error. 9082 * this method will complete with the same error.
8765 */ 9083 */
8766 async.Future<Site> update(Site request, core.String profileId) { 9084 async.Future<RemarketingList> insert(RemarketingList request, core.String prof ileId) {
8767 var _url = null; 9085 var _url = null;
8768 var _queryParams = new core.Map(); 9086 var _queryParams = new core.Map();
8769 var _uploadMedia = null; 9087 var _uploadMedia = null;
8770 var _uploadOptions = null; 9088 var _uploadOptions = null;
8771 var _downloadOptions = commons.DownloadOptions.Metadata; 9089 var _downloadOptions = commons.DownloadOptions.Metadata;
8772 var _body = null; 9090 var _body = null;
8773 9091
8774 if (request != null) { 9092 if (request != null) {
8775 _body = convert.JSON.encode((request).toJson()); 9093 _body = convert.JSON.encode((request).toJson());
8776 } 9094 }
8777 if (profileId == null) { 9095 if (profileId == null) {
8778 throw new core.ArgumentError("Parameter profileId is required."); 9096 throw new core.ArgumentError("Parameter profileId is required.");
8779 } 9097 }
8780 9098
8781 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es'; 9099 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingLists';
8782 9100
8783 var _response = _requester.request(_url, 9101 var _response = _requester.request(_url,
8784 "PUT", 9102 "POST",
8785 body: _body, 9103 body: _body,
8786 queryParams: _queryParams, 9104 queryParams: _queryParams,
8787 uploadOptions: _uploadOptions, 9105 uploadOptions: _uploadOptions,
8788 uploadMedia: _uploadMedia, 9106 uploadMedia: _uploadMedia,
8789 downloadOptions: _downloadOptions); 9107 downloadOptions: _downloadOptions);
8790 return _response.then((data) => new Site.fromJson(data)); 9108 return _response.then((data) => new RemarketingList.fromJson(data));
8791 } 9109 }
8792 9110
8793 }
8794
8795
8796 class SizesResourceApi {
8797 final commons.ApiRequester _requester;
8798
8799 SizesResourceApi(commons.ApiRequester client) :
8800 _requester = client;
8801
8802 /** 9111 /**
8803 * Gets one size by ID. 9112 * Retrieves a list of remarketing lists, possibly filtered.
8804 * 9113 *
8805 * Request parameters: 9114 * Request parameters:
8806 * 9115 *
8807 * [profileId] - User profile ID associated with this request. 9116 * [profileId] - User profile ID associated with this request.
8808 * 9117 *
8809 * [id] - Size ID. 9118 * [advertiserId] - Select only remarketing lists owned by this advertiser.
8810 * 9119 *
8811 * Completes with a [Size]. 9120 * [active] - Select only active or only inactive remarketing lists.
9121 *
9122 * [floodlightActivityId] - Select only remarketing lists that have this
9123 * floodlight activity ID.
9124 *
9125 * [maxResults] - Maximum number of results to return.
9126 *
9127 * [name] - Allows searching for objects by name or ID. Wildcards (*) are
9128 * allowed. For example, "remarketing list*2015" will return objects with
9129 * names like "remarketing list June 2015", "remarketing list April 2015", or
9130 * simply "remarketing list 2015". Most of the searches also add wildcards
9131 * implicitly at the start and the end of the search string. For example, a
9132 * search string of "remarketing list" will match objects with name "my
9133 * remarketing list", "remarketing list 2015", or simply "remarketing list".
9134 *
9135 * [pageToken] - Value of the nextPageToken from the previous result page.
9136 *
9137 * [sortField] - Field by which to sort the list.
9138 * Possible string values are:
9139 * - "ID"
9140 * - "NAME"
9141 *
9142 * [sortOrder] - Order of sorted results, default is ASCENDING.
9143 * Possible string values are:
9144 * - "ASCENDING"
9145 * - "DESCENDING"
9146 *
9147 * Completes with a [RemarketingListsListResponse].
8812 * 9148 *
8813 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9149 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8814 * error. 9150 * error.
8815 * 9151 *
8816 * If the used [http.Client] completes with an error when making a REST call, 9152 * If the used [http.Client] completes with an error when making a REST call,
8817 * this method will complete with the same error. 9153 * this method will complete with the same error.
8818 */ 9154 */
8819 async.Future<Size> get(core.String profileId, core.String id) { 9155 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}) {
8820 var _url = null; 9156 var _url = null;
8821 var _queryParams = new core.Map(); 9157 var _queryParams = new core.Map();
8822 var _uploadMedia = null; 9158 var _uploadMedia = null;
8823 var _uploadOptions = null; 9159 var _uploadOptions = null;
8824 var _downloadOptions = commons.DownloadOptions.Metadata; 9160 var _downloadOptions = commons.DownloadOptions.Metadata;
8825 var _body = null; 9161 var _body = null;
8826 9162
8827 if (profileId == null) { 9163 if (profileId == null) {
8828 throw new core.ArgumentError("Parameter profileId is required."); 9164 throw new core.ArgumentError("Parameter profileId is required.");
8829 } 9165 }
8830 if (id == null) { 9166 if (advertiserId == null) {
8831 throw new core.ArgumentError("Parameter id is required."); 9167 throw new core.ArgumentError("Parameter advertiserId is required.");
9168 }
9169 _queryParams["advertiserId"] = [advertiserId];
9170 if (active != null) {
9171 _queryParams["active"] = ["${active}"];
9172 }
9173 if (floodlightActivityId != null) {
9174 _queryParams["floodlightActivityId"] = [floodlightActivityId];
9175 }
9176 if (maxResults != null) {
9177 _queryParams["maxResults"] = ["${maxResults}"];
9178 }
9179 if (name != null) {
9180 _queryParams["name"] = [name];
9181 }
9182 if (pageToken != null) {
9183 _queryParams["pageToken"] = [pageToken];
9184 }
9185 if (sortField != null) {
9186 _queryParams["sortField"] = [sortField];
9187 }
9188 if (sortOrder != null) {
9189 _queryParams["sortOrder"] = [sortOrder];
8832 } 9190 }
8833 9191
8834 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es/' + commons.Escaper.ecapeVariable('$id'); 9192 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingLists';
8835 9193
8836 var _response = _requester.request(_url, 9194 var _response = _requester.request(_url,
8837 "GET", 9195 "GET",
8838 body: _body, 9196 body: _body,
8839 queryParams: _queryParams, 9197 queryParams: _queryParams,
8840 uploadOptions: _uploadOptions, 9198 uploadOptions: _uploadOptions,
8841 uploadMedia: _uploadMedia, 9199 uploadMedia: _uploadMedia,
8842 downloadOptions: _downloadOptions); 9200 downloadOptions: _downloadOptions);
8843 return _response.then((data) => new Size.fromJson(data)); 9201 return _response.then((data) => new RemarketingListsListResponse.fromJson(da ta));
8844 } 9202 }
8845 9203
8846 /** 9204 /**
8847 * Inserts a new size. 9205 * Updates an existing remarketing list. This method supports patch semantics.
8848 * 9206 *
8849 * [request] - The metadata request object. 9207 * [request] - The metadata request object.
8850 * 9208 *
8851 * Request parameters: 9209 * Request parameters:
8852 * 9210 *
8853 * [profileId] - User profile ID associated with this request. 9211 * [profileId] - User profile ID associated with this request.
8854 * 9212 *
8855 * Completes with a [Size]. 9213 * [id] - Remarketing list ID.
9214 *
9215 * Completes with a [RemarketingList].
8856 * 9216 *
8857 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9217 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8858 * error. 9218 * error.
8859 * 9219 *
8860 * If the used [http.Client] completes with an error when making a REST call, 9220 * If the used [http.Client] completes with an error when making a REST call,
8861 * this method will complete with the same error. 9221 * this method will complete with the same error.
8862 */ 9222 */
8863 async.Future<Size> insert(Size request, core.String profileId) { 9223 async.Future<RemarketingList> patch(RemarketingList request, core.String profi leId, core.String id) {
8864 var _url = null; 9224 var _url = null;
8865 var _queryParams = new core.Map(); 9225 var _queryParams = new core.Map();
8866 var _uploadMedia = null; 9226 var _uploadMedia = null;
8867 var _uploadOptions = null; 9227 var _uploadOptions = null;
8868 var _downloadOptions = commons.DownloadOptions.Metadata; 9228 var _downloadOptions = commons.DownloadOptions.Metadata;
8869 var _body = null; 9229 var _body = null;
8870 9230
8871 if (request != null) { 9231 if (request != null) {
8872 _body = convert.JSON.encode((request).toJson()); 9232 _body = convert.JSON.encode((request).toJson());
8873 } 9233 }
8874 if (profileId == null) { 9234 if (profileId == null) {
8875 throw new core.ArgumentError("Parameter profileId is required."); 9235 throw new core.ArgumentError("Parameter profileId is required.");
8876 } 9236 }
9237 if (id == null) {
9238 throw new core.ArgumentError("Parameter id is required.");
9239 }
9240 _queryParams["id"] = [id];
8877 9241
8878 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es'; 9242 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingLists';
8879 9243
8880 var _response = _requester.request(_url, 9244 var _response = _requester.request(_url,
8881 "POST", 9245 "PATCH",
8882 body: _body, 9246 body: _body,
8883 queryParams: _queryParams, 9247 queryParams: _queryParams,
8884 uploadOptions: _uploadOptions, 9248 uploadOptions: _uploadOptions,
8885 uploadMedia: _uploadMedia, 9249 uploadMedia: _uploadMedia,
8886 downloadOptions: _downloadOptions); 9250 downloadOptions: _downloadOptions);
8887 return _response.then((data) => new Size.fromJson(data)); 9251 return _response.then((data) => new RemarketingList.fromJson(data));
8888 } 9252 }
8889 9253
8890 /** 9254 /**
8891 * Retrieves a list of sizes, possibly filtered. 9255 * Updates an existing remarketing list.
9256 *
9257 * [request] - The metadata request object.
8892 * 9258 *
8893 * Request parameters: 9259 * Request parameters:
8894 * 9260 *
8895 * [profileId] - User profile ID associated with this request. 9261 * [profileId] - User profile ID associated with this request.
8896 * 9262 *
8897 * [height] - Select only sizes with this height. 9263 * Completes with a [RemarketingList].
8898 *
8899 * [iabStandard] - Select only IAB standard sizes.
8900 *
8901 * [ids] - Select only sizes with these IDs.
8902 *
8903 * [width] - Select only sizes with this width.
8904 *
8905 * Completes with a [SizesListResponse].
8906 * 9264 *
8907 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9265 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8908 * error. 9266 * error.
8909 * 9267 *
8910 * If the used [http.Client] completes with an error when making a REST call, 9268 * If the used [http.Client] completes with an error when making a REST call,
8911 * this method will complete with the same error. 9269 * this method will complete with the same error.
8912 */ 9270 */
8913 async.Future<SizesListResponse> list(core.String profileId, {core.int height, core.bool iabStandard, core.List<core.String> ids, core.int width}) { 9271 async.Future<RemarketingList> update(RemarketingList request, core.String prof ileId) {
8914 var _url = null; 9272 var _url = null;
8915 var _queryParams = new core.Map(); 9273 var _queryParams = new core.Map();
8916 var _uploadMedia = null; 9274 var _uploadMedia = null;
8917 var _uploadOptions = null; 9275 var _uploadOptions = null;
8918 var _downloadOptions = commons.DownloadOptions.Metadata; 9276 var _downloadOptions = commons.DownloadOptions.Metadata;
8919 var _body = null; 9277 var _body = null;
8920 9278
9279 if (request != null) {
9280 _body = convert.JSON.encode((request).toJson());
9281 }
9282 if (profileId == null) {
9283 throw new core.ArgumentError("Parameter profileId is required.");
9284 }
9285
9286 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rem arketingLists';
9287
9288 var _response = _requester.request(_url,
9289 "PUT",
9290 body: _body,
9291 queryParams: _queryParams,
9292 uploadOptions: _uploadOptions,
9293 uploadMedia: _uploadMedia,
9294 downloadOptions: _downloadOptions);
9295 return _response.then((data) => new RemarketingList.fromJson(data));
9296 }
9297
9298 }
9299
9300
9301 class ReportsResourceApi {
9302 final commons.ApiRequester _requester;
9303
9304 ReportsCompatibleFieldsResourceApi get compatibleFields => new ReportsCompatib leFieldsResourceApi(_requester);
9305 ReportsFilesResourceApi get files => new ReportsFilesResourceApi(_requester);
9306
9307 ReportsResourceApi(commons.ApiRequester client) :
9308 _requester = client;
9309
9310 /**
9311 * Deletes a report by its ID.
9312 *
9313 * Request parameters:
9314 *
9315 * [profileId] - The DFA user profile ID.
9316 *
9317 * [reportId] - The ID of the report.
9318 *
9319 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9320 * error.
9321 *
9322 * If the used [http.Client] completes with an error when making a REST call,
9323 * this method will complete with the same error.
9324 */
9325 async.Future delete(core.String profileId, core.String reportId) {
9326 var _url = null;
9327 var _queryParams = new core.Map();
9328 var _uploadMedia = null;
9329 var _uploadOptions = null;
9330 var _downloadOptions = commons.DownloadOptions.Metadata;
9331 var _body = null;
9332
8921 if (profileId == null) { 9333 if (profileId == null) {
8922 throw new core.ArgumentError("Parameter profileId is required."); 9334 throw new core.ArgumentError("Parameter profileId is required.");
8923 } 9335 }
8924 if (height != null) { 9336 if (reportId == null) {
8925 _queryParams["height"] = ["${height}"]; 9337 throw new core.ArgumentError("Parameter reportId is required.");
8926 }
8927 if (iabStandard != null) {
8928 _queryParams["iabStandard"] = ["${iabStandard}"];
8929 }
8930 if (ids != null) {
8931 _queryParams["ids"] = ids;
8932 }
8933 if (width != null) {
8934 _queryParams["width"] = ["${width}"];
8935 } 9338 }
8936 9339
8937 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es'; 9340 _downloadOptions = null;
9341
9342 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
8938 9343
8939 var _response = _requester.request(_url, 9344 var _response = _requester.request(_url,
8940 "GET", 9345 "DELETE",
8941 body: _body, 9346 body: _body,
8942 queryParams: _queryParams, 9347 queryParams: _queryParams,
8943 uploadOptions: _uploadOptions, 9348 uploadOptions: _uploadOptions,
8944 uploadMedia: _uploadMedia, 9349 uploadMedia: _uploadMedia,
8945 downloadOptions: _downloadOptions); 9350 downloadOptions: _downloadOptions);
8946 return _response.then((data) => new SizesListResponse.fromJson(data)); 9351 return _response.then((data) => null);
8947 } 9352 }
8948 9353
8949 }
8950
8951
8952 class SubaccountsResourceApi {
8953 final commons.ApiRequester _requester;
8954
8955 SubaccountsResourceApi(commons.ApiRequester client) :
8956 _requester = client;
8957
8958 /** 9354 /**
8959 * Gets one subaccount by ID. 9355 * Retrieves a report by its ID.
8960 * 9356 *
8961 * Request parameters: 9357 * Request parameters:
8962 * 9358 *
8963 * [profileId] - User profile ID associated with this request. 9359 * [profileId] - The DFA user profile ID.
8964 * 9360 *
8965 * [id] - Subaccount ID. 9361 * [reportId] - The ID of the report.
8966 * 9362 *
8967 * Completes with a [Subaccount]. 9363 * Completes with a [Report].
8968 * 9364 *
8969 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9365 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
8970 * error. 9366 * error.
8971 * 9367 *
8972 * If the used [http.Client] completes with an error when making a REST call, 9368 * If the used [http.Client] completes with an error when making a REST call,
8973 * this method will complete with the same error. 9369 * this method will complete with the same error.
8974 */ 9370 */
8975 async.Future<Subaccount> get(core.String profileId, core.String id) { 9371 async.Future<Report> get(core.String profileId, core.String reportId) {
8976 var _url = null; 9372 var _url = null;
8977 var _queryParams = new core.Map(); 9373 var _queryParams = new core.Map();
8978 var _uploadMedia = null; 9374 var _uploadMedia = null;
8979 var _uploadOptions = null; 9375 var _uploadOptions = null;
8980 var _downloadOptions = commons.DownloadOptions.Metadata; 9376 var _downloadOptions = commons.DownloadOptions.Metadata;
8981 var _body = null; 9377 var _body = null;
8982 9378
8983 if (profileId == null) { 9379 if (profileId == null) {
8984 throw new core.ArgumentError("Parameter profileId is required."); 9380 throw new core.ArgumentError("Parameter profileId is required.");
8985 } 9381 }
8986 if (id == null) { 9382 if (reportId == null) {
8987 throw new core.ArgumentError("Parameter id is required."); 9383 throw new core.ArgumentError("Parameter reportId is required.");
8988 } 9384 }
8989 9385
8990 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts/' + commons.Escaper.ecapeVariable('$id'); 9386 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
8991 9387
8992 var _response = _requester.request(_url, 9388 var _response = _requester.request(_url,
8993 "GET", 9389 "GET",
8994 body: _body, 9390 body: _body,
8995 queryParams: _queryParams, 9391 queryParams: _queryParams,
8996 uploadOptions: _uploadOptions, 9392 uploadOptions: _uploadOptions,
8997 uploadMedia: _uploadMedia, 9393 uploadMedia: _uploadMedia,
8998 downloadOptions: _downloadOptions); 9394 downloadOptions: _downloadOptions);
8999 return _response.then((data) => new Subaccount.fromJson(data)); 9395 return _response.then((data) => new Report.fromJson(data));
9000 } 9396 }
9001 9397
9002 /** 9398 /**
9003 * Inserts a new subaccount. 9399 * Creates a report.
9004 * 9400 *
9005 * [request] - The metadata request object. 9401 * [request] - The metadata request object.
9006 * 9402 *
9007 * Request parameters: 9403 * Request parameters:
9008 * 9404 *
9009 * [profileId] - User profile ID associated with this request. 9405 * [profileId] - The DFA user profile ID.
9010 * 9406 *
9011 * Completes with a [Subaccount]. 9407 * Completes with a [Report].
9012 * 9408 *
9013 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9409 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9014 * error. 9410 * error.
9015 * 9411 *
9016 * If the used [http.Client] completes with an error when making a REST call, 9412 * If the used [http.Client] completes with an error when making a REST call,
9017 * this method will complete with the same error. 9413 * this method will complete with the same error.
9018 */ 9414 */
9019 async.Future<Subaccount> insert(Subaccount request, core.String profileId) { 9415 async.Future<Report> insert(Report request, core.String profileId) {
9020 var _url = null; 9416 var _url = null;
9021 var _queryParams = new core.Map(); 9417 var _queryParams = new core.Map();
9022 var _uploadMedia = null; 9418 var _uploadMedia = null;
9023 var _uploadOptions = null; 9419 var _uploadOptions = null;
9024 var _downloadOptions = commons.DownloadOptions.Metadata; 9420 var _downloadOptions = commons.DownloadOptions.Metadata;
9025 var _body = null; 9421 var _body = null;
9026 9422
9027 if (request != null) { 9423 if (request != null) {
9028 _body = convert.JSON.encode((request).toJson()); 9424 _body = convert.JSON.encode((request).toJson());
9029 } 9425 }
9030 if (profileId == null) { 9426 if (profileId == null) {
9031 throw new core.ArgumentError("Parameter profileId is required."); 9427 throw new core.ArgumentError("Parameter profileId is required.");
9032 } 9428 }
9033 9429
9034 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts'; 9430 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts';
9035 9431
9036 var _response = _requester.request(_url, 9432 var _response = _requester.request(_url,
9037 "POST", 9433 "POST",
9038 body: _body, 9434 body: _body,
9039 queryParams: _queryParams, 9435 queryParams: _queryParams,
9040 uploadOptions: _uploadOptions, 9436 uploadOptions: _uploadOptions,
9041 uploadMedia: _uploadMedia, 9437 uploadMedia: _uploadMedia,
9042 downloadOptions: _downloadOptions); 9438 downloadOptions: _downloadOptions);
9043 return _response.then((data) => new Subaccount.fromJson(data)); 9439 return _response.then((data) => new Report.fromJson(data));
9044 } 9440 }
9045 9441
9046 /** 9442 /**
9047 * Gets a list of subaccounts, possibly filtered. 9443 * Retrieves list of reports.
9048 * 9444 *
9049 * Request parameters: 9445 * Request parameters:
9050 * 9446 *
9051 * [profileId] - User profile ID associated with this request. 9447 * [profileId] - The DFA user profile ID.
9052 *
9053 * [ids] - Select only subaccounts with these IDs.
9054 * 9448 *
9055 * [maxResults] - Maximum number of results to return. 9449 * [maxResults] - Maximum number of results to return.
9450 * Value must be between "0" and "10".
9056 * 9451 *
9057 * [pageToken] - Value of the nextPageToken from the previous result page. 9452 * [pageToken] - The value of the nextToken from the previous result page.
9058 * 9453 *
9059 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) 9454 * [scope] - The scope that defines which results are returned, default is
9060 * are allowed. For example, "subaccount*2015" will return objects with names 9455 * 'MINE'.
9061 * like "subaccount June 2015", "subaccount April 2015", or simply "subaccount 9456 * Possible string values are:
9062 * 2015". Most of the searches also add wildcards implicitly at the start and 9457 * - "ALL" : All reports in account.
9063 * the end of the search string. For example, a search string of "subaccount" 9458 * - "MINE" : My reports.
9064 * will match objects with name "my subaccount", "subaccount 2015", or simply
9065 * "subaccount".
9066 * 9459 *
9067 * [sortField] - Field by which to sort the list. 9460 * [sortField] - The field by which to sort the list.
9068 * Possible string values are: 9461 * Possible string values are:
9069 * - "ID" 9462 * - "ID" : Sort by report ID.
9070 * - "NAME" 9463 * - "LAST_MODIFIED_TIME" : Sort by 'lastModifiedTime' field.
9464 * - "NAME" : Sort by name of reports.
9071 * 9465 *
9072 * [sortOrder] - Order of sorted results, default is ASCENDING. 9466 * [sortOrder] - Order of sorted results, default is 'DESCENDING'.
9073 * Possible string values are: 9467 * Possible string values are:
9074 * - "ASCENDING" 9468 * - "ASCENDING" : Ascending order.
9075 * - "DESCENDING" 9469 * - "DESCENDING" : Descending order.
9076 * 9470 *
9077 * Completes with a [SubaccountsListResponse]. 9471 * Completes with a [ReportList].
9078 * 9472 *
9079 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9473 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9080 * error. 9474 * error.
9081 * 9475 *
9082 * If the used [http.Client] completes with an error when making a REST call, 9476 * If the used [http.Client] completes with an error when making a REST call,
9083 * this method will complete with the same error. 9477 * this method will complete with the same error.
9084 */ 9478 */
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}) { 9479 async.Future<ReportList> list(core.String profileId, {core.int maxResults, cor e.String pageToken, core.String scope, core.String sortField, core.String sortOr der}) {
9086 var _url = null; 9480 var _url = null;
9087 var _queryParams = new core.Map(); 9481 var _queryParams = new core.Map();
9088 var _uploadMedia = null; 9482 var _uploadMedia = null;
9089 var _uploadOptions = null; 9483 var _uploadOptions = null;
9090 var _downloadOptions = commons.DownloadOptions.Metadata; 9484 var _downloadOptions = commons.DownloadOptions.Metadata;
9091 var _body = null; 9485 var _body = null;
9092 9486
9093 if (profileId == null) { 9487 if (profileId == null) {
9094 throw new core.ArgumentError("Parameter profileId is required."); 9488 throw new core.ArgumentError("Parameter profileId is required.");
9095 } 9489 }
9096 if (ids != null) {
9097 _queryParams["ids"] = ids;
9098 }
9099 if (maxResults != null) { 9490 if (maxResults != null) {
9100 _queryParams["maxResults"] = ["${maxResults}"]; 9491 _queryParams["maxResults"] = ["${maxResults}"];
9101 } 9492 }
9102 if (pageToken != null) { 9493 if (pageToken != null) {
9103 _queryParams["pageToken"] = [pageToken]; 9494 _queryParams["pageToken"] = [pageToken];
9104 } 9495 }
9105 if (searchString != null) { 9496 if (scope != null) {
9106 _queryParams["searchString"] = [searchString]; 9497 _queryParams["scope"] = [scope];
9107 } 9498 }
9108 if (sortField != null) { 9499 if (sortField != null) {
9109 _queryParams["sortField"] = [sortField]; 9500 _queryParams["sortField"] = [sortField];
9110 } 9501 }
9111 if (sortOrder != null) { 9502 if (sortOrder != null) {
9112 _queryParams["sortOrder"] = [sortOrder]; 9503 _queryParams["sortOrder"] = [sortOrder];
9113 } 9504 }
9114 9505
9115 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts'; 9506 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts';
9116 9507
9117 var _response = _requester.request(_url, 9508 var _response = _requester.request(_url,
9118 "GET", 9509 "GET",
9119 body: _body, 9510 body: _body,
9120 queryParams: _queryParams, 9511 queryParams: _queryParams,
9121 uploadOptions: _uploadOptions, 9512 uploadOptions: _uploadOptions,
9122 uploadMedia: _uploadMedia, 9513 uploadMedia: _uploadMedia,
9123 downloadOptions: _downloadOptions); 9514 downloadOptions: _downloadOptions);
9124 return _response.then((data) => new SubaccountsListResponse.fromJson(data)); 9515 return _response.then((data) => new ReportList.fromJson(data));
9125 } 9516 }
9126 9517
9127 /** 9518 /**
9128 * Updates an existing subaccount. This method supports patch semantics. 9519 * Updates a report. This method supports patch semantics.
9129 * 9520 *
9130 * [request] - The metadata request object. 9521 * [request] - The metadata request object.
9131 * 9522 *
9132 * Request parameters: 9523 * Request parameters:
9133 * 9524 *
9134 * [profileId] - User profile ID associated with this request. 9525 * [profileId] - The DFA user profile ID.
9135 * 9526 *
9136 * [id] - Subaccount ID. 9527 * [reportId] - The ID of the report.
9137 * 9528 *
9138 * Completes with a [Subaccount]. 9529 * Completes with a [Report].
9139 * 9530 *
9140 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9531 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9141 * error. 9532 * error.
9142 * 9533 *
9143 * If the used [http.Client] completes with an error when making a REST call, 9534 * If the used [http.Client] completes with an error when making a REST call,
9144 * this method will complete with the same error. 9535 * this method will complete with the same error.
9145 */ 9536 */
9146 async.Future<Subaccount> patch(Subaccount request, core.String profileId, core .String id) { 9537 async.Future<Report> patch(Report request, core.String profileId, core.String reportId) {
9147 var _url = null; 9538 var _url = null;
9148 var _queryParams = new core.Map(); 9539 var _queryParams = new core.Map();
9149 var _uploadMedia = null; 9540 var _uploadMedia = null;
9150 var _uploadOptions = null; 9541 var _uploadOptions = null;
9151 var _downloadOptions = commons.DownloadOptions.Metadata; 9542 var _downloadOptions = commons.DownloadOptions.Metadata;
9152 var _body = null; 9543 var _body = null;
9153 9544
9154 if (request != null) { 9545 if (request != null) {
9155 _body = convert.JSON.encode((request).toJson()); 9546 _body = convert.JSON.encode((request).toJson());
9156 } 9547 }
9157 if (profileId == null) { 9548 if (profileId == null) {
9158 throw new core.ArgumentError("Parameter profileId is required."); 9549 throw new core.ArgumentError("Parameter profileId is required.");
9159 } 9550 }
9160 if (id == null) { 9551 if (reportId == null) {
9161 throw new core.ArgumentError("Parameter id is required."); 9552 throw new core.ArgumentError("Parameter reportId is required.");
9162 } 9553 }
9163 _queryParams["id"] = [id];
9164 9554
9165 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts'; 9555 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
9166 9556
9167 var _response = _requester.request(_url, 9557 var _response = _requester.request(_url,
9168 "PATCH", 9558 "PATCH",
9169 body: _body, 9559 body: _body,
9170 queryParams: _queryParams, 9560 queryParams: _queryParams,
9171 uploadOptions: _uploadOptions, 9561 uploadOptions: _uploadOptions,
9172 uploadMedia: _uploadMedia, 9562 uploadMedia: _uploadMedia,
9173 downloadOptions: _downloadOptions); 9563 downloadOptions: _downloadOptions);
9174 return _response.then((data) => new Subaccount.fromJson(data)); 9564 return _response.then((data) => new Report.fromJson(data));
9175 } 9565 }
9176 9566
9177 /** 9567 /**
9178 * Updates an existing subaccount. 9568 * Runs a report.
9179 *
9180 * [request] - The metadata request object.
9181 * 9569 *
9182 * Request parameters: 9570 * Request parameters:
9183 * 9571 *
9184 * [profileId] - User profile ID associated with this request. 9572 * [profileId] - The DFA profile ID.
9185 * 9573 *
9186 * Completes with a [Subaccount]. 9574 * [reportId] - The ID of the report.
9575 *
9576 * [synchronous] - If set and true, tries to run the report synchronously.
9577 *
9578 * Completes with a [File].
9187 * 9579 *
9188 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9580 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9189 * error. 9581 * error.
9190 * 9582 *
9191 * If the used [http.Client] completes with an error when making a REST call, 9583 * If the used [http.Client] completes with an error when making a REST call,
9192 * this method will complete with the same error. 9584 * this method will complete with the same error.
9193 */ 9585 */
9194 async.Future<Subaccount> update(Subaccount request, core.String profileId) { 9586 async.Future<File> run(core.String profileId, core.String reportId, {core.bool synchronous}) {
9195 var _url = null; 9587 var _url = null;
9196 var _queryParams = new core.Map(); 9588 var _queryParams = new core.Map();
9197 var _uploadMedia = null; 9589 var _uploadMedia = null;
9198 var _uploadOptions = null; 9590 var _uploadOptions = null;
9199 var _downloadOptions = commons.DownloadOptions.Metadata; 9591 var _downloadOptions = commons.DownloadOptions.Metadata;
9200 var _body = null; 9592 var _body = null;
9201 9593
9202 if (request != null) {
9203 _body = convert.JSON.encode((request).toJson());
9204 }
9205 if (profileId == null) { 9594 if (profileId == null) {
9206 throw new core.ArgumentError("Parameter profileId is required."); 9595 throw new core.ArgumentError("Parameter profileId is required.");
9207 } 9596 }
9597 if (reportId == null) {
9598 throw new core.ArgumentError("Parameter reportId is required.");
9599 }
9600 if (synchronous != null) {
9601 _queryParams["synchronous"] = ["${synchronous}"];
9602 }
9208 9603
9209 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts'; 9604 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/run';
9210 9605
9211 var _response = _requester.request(_url, 9606 var _response = _requester.request(_url,
9212 "PUT", 9607 "POST",
9213 body: _body, 9608 body: _body,
9214 queryParams: _queryParams, 9609 queryParams: _queryParams,
9215 uploadOptions: _uploadOptions, 9610 uploadOptions: _uploadOptions,
9216 uploadMedia: _uploadMedia, 9611 uploadMedia: _uploadMedia,
9217 downloadOptions: _downloadOptions); 9612 downloadOptions: _downloadOptions);
9218 return _response.then((data) => new Subaccount.fromJson(data)); 9613 return _response.then((data) => new File.fromJson(data));
9219 } 9614 }
9220 9615
9221 }
9222
9223
9224 class UserProfilesResourceApi {
9225 final commons.ApiRequester _requester;
9226
9227 UserProfilesResourceApi(commons.ApiRequester client) :
9228 _requester = client;
9229
9230 /** 9616 /**
9231 * Gets one user profile by ID. 9617 * Updates a report.
9618 *
9619 * [request] - The metadata request object.
9232 * 9620 *
9233 * Request parameters: 9621 * Request parameters:
9234 * 9622 *
9235 * [profileId] - The user profile ID. 9623 * [profileId] - The DFA user profile ID.
9236 * 9624 *
9237 * Completes with a [UserProfile]. 9625 * [reportId] - The ID of the report.
9626 *
9627 * Completes with a [Report].
9238 * 9628 *
9239 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9629 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9240 * error. 9630 * error.
9241 * 9631 *
9242 * If the used [http.Client] completes with an error when making a REST call, 9632 * If the used [http.Client] completes with an error when making a REST call,
9243 * this method will complete with the same error. 9633 * this method will complete with the same error.
9244 */ 9634 */
9245 async.Future<UserProfile> get(core.String profileId) { 9635 async.Future<Report> update(Report request, core.String profileId, core.String reportId) {
9246 var _url = null; 9636 var _url = null;
9247 var _queryParams = new core.Map(); 9637 var _queryParams = new core.Map();
9248 var _uploadMedia = null; 9638 var _uploadMedia = null;
9249 var _uploadOptions = null; 9639 var _uploadOptions = null;
9250 var _downloadOptions = commons.DownloadOptions.Metadata; 9640 var _downloadOptions = commons.DownloadOptions.Metadata;
9251 var _body = null; 9641 var _body = null;
9252 9642
9643 if (request != null) {
9644 _body = convert.JSON.encode((request).toJson());
9645 }
9253 if (profileId == null) { 9646 if (profileId == null) {
9254 throw new core.ArgumentError("Parameter profileId is required."); 9647 throw new core.ArgumentError("Parameter profileId is required.");
9255 } 9648 }
9649 if (reportId == null) {
9650 throw new core.ArgumentError("Parameter reportId is required.");
9651 }
9256 9652
9257 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId'); 9653 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
9258 9654
9259 var _response = _requester.request(_url, 9655 var _response = _requester.request(_url,
9260 "GET", 9656 "PUT",
9261 body: _body, 9657 body: _body,
9262 queryParams: _queryParams, 9658 queryParams: _queryParams,
9263 uploadOptions: _uploadOptions, 9659 uploadOptions: _uploadOptions,
9264 uploadMedia: _uploadMedia, 9660 uploadMedia: _uploadMedia,
9265 downloadOptions: _downloadOptions); 9661 downloadOptions: _downloadOptions);
9266 return _response.then((data) => new UserProfile.fromJson(data)); 9662 return _response.then((data) => new Report.fromJson(data));
9267 } 9663 }
9268 9664
9665 }
9666
9667
9668 class ReportsCompatibleFieldsResourceApi {
9669 final commons.ApiRequester _requester;
9670
9671 ReportsCompatibleFieldsResourceApi(commons.ApiRequester client) :
9672 _requester = client;
9673
9269 /** 9674 /**
9270 * Retrieves list of user profiles for a user. 9675 * Returns the fields that are compatible to be selected in the respective
9676 * sections of a report criteria, given the fields already selected in the
9677 * input report and user permissions.
9678 *
9679 * [request] - The metadata request object.
9271 * 9680 *
9272 * Request parameters: 9681 * Request parameters:
9273 * 9682 *
9274 * Completes with a [UserProfileList]. 9683 * [profileId] - The DFA user profile ID.
9684 *
9685 * Completes with a [CompatibleFields].
9275 * 9686 *
9276 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9687 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9277 * error. 9688 * error.
9278 * 9689 *
9279 * If the used [http.Client] completes with an error when making a REST call, 9690 * If the used [http.Client] completes with an error when making a REST call,
9280 * this method will complete with the same error. 9691 * this method will complete with the same error.
9281 */ 9692 */
9282 async.Future<UserProfileList> list() { 9693 async.Future<CompatibleFields> query(Report request, core.String profileId) {
9283 var _url = null; 9694 var _url = null;
9284 var _queryParams = new core.Map(); 9695 var _queryParams = new core.Map();
9285 var _uploadMedia = null; 9696 var _uploadMedia = null;
9286 var _uploadOptions = null; 9697 var _uploadOptions = null;
9287 var _downloadOptions = commons.DownloadOptions.Metadata; 9698 var _downloadOptions = commons.DownloadOptions.Metadata;
9288 var _body = null; 9699 var _body = null;
9289 9700
9701 if (request != null) {
9702 _body = convert.JSON.encode((request).toJson());
9703 }
9704 if (profileId == null) {
9705 throw new core.ArgumentError("Parameter profileId is required.");
9706 }
9290 9707
9291 _url = 'userprofiles'; 9708 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/compatiblefields/query';
9292 9709
9293 var _response = _requester.request(_url, 9710 var _response = _requester.request(_url,
9294 "GET", 9711 "POST",
9295 body: _body, 9712 body: _body,
9296 queryParams: _queryParams, 9713 queryParams: _queryParams,
9297 uploadOptions: _uploadOptions, 9714 uploadOptions: _uploadOptions,
9298 uploadMedia: _uploadMedia, 9715 uploadMedia: _uploadMedia,
9299 downloadOptions: _downloadOptions); 9716 downloadOptions: _downloadOptions);
9300 return _response.then((data) => new UserProfileList.fromJson(data)); 9717 return _response.then((data) => new CompatibleFields.fromJson(data));
9301 } 9718 }
9302 9719
9303 } 9720 }
9304 9721
9305 9722
9306 class UserRolePermissionGroupsResourceApi { 9723 class ReportsFilesResourceApi {
9307 final commons.ApiRequester _requester; 9724 final commons.ApiRequester _requester;
9308 9725
9309 UserRolePermissionGroupsResourceApi(commons.ApiRequester client) : 9726 ReportsFilesResourceApi(commons.ApiRequester client) :
9310 _requester = client; 9727 _requester = client;
9311 9728
9312 /** 9729 /**
9313 * Gets one user role permission group by ID. 9730 * Retrieves a report file.
9314 * 9731 *
9315 * Request parameters: 9732 * Request parameters:
9316 * 9733 *
9317 * [profileId] - User profile ID associated with this request. 9734 * [profileId] - The DFA profile ID.
9318 * 9735 *
9319 * [id] - User role permission group ID. 9736 * [reportId] - The ID of the report.
9320 * 9737 *
9321 * Completes with a [UserRolePermissionGroup]. 9738 * [fileId] - The ID of the report file.
9739 *
9740 * [downloadOptions] - Options for downloading. A download can be either a
9741 * Metadata (default) or Media download. Partial Media downloads are possible
9742 * as well.
9743 *
9744 * Completes with a
9745 *
9746 * - [File] for Metadata downloads (see [downloadOptions]).
9747 *
9748 * - [commons.Media] for Media downloads (see [downloadOptions]).
9322 * 9749 *
9323 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9750 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9324 * error. 9751 * error.
9325 * 9752 *
9326 * If the used [http.Client] completes with an error when making a REST call, 9753 * If the used [http.Client] completes with an error when making a REST call,
9327 * this method will complete with the same error. 9754 * this method will complete with the same error.
9328 */ 9755 */
9329 async.Future<UserRolePermissionGroup> get(core.String profileId, core.String i d) { 9756 async.Future get(core.String profileId, core.String reportId, core.String file Id, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) {
9330 var _url = null; 9757 var _url = null;
9331 var _queryParams = new core.Map(); 9758 var _queryParams = new core.Map();
9332 var _uploadMedia = null; 9759 var _uploadMedia = null;
9333 var _uploadOptions = null; 9760 var _uploadOptions = null;
9334 var _downloadOptions = commons.DownloadOptions.Metadata; 9761 var _downloadOptions = commons.DownloadOptions.Metadata;
9335 var _body = null; 9762 var _body = null;
9336 9763
9337 if (profileId == null) { 9764 if (profileId == null) {
9338 throw new core.ArgumentError("Parameter profileId is required."); 9765 throw new core.ArgumentError("Parameter profileId is required.");
9339 } 9766 }
9340 if (id == null) { 9767 if (reportId == null) {
9341 throw new core.ArgumentError("Parameter id is required."); 9768 throw new core.ArgumentError("Parameter reportId is required.");
9769 }
9770 if (fileId == null) {
9771 throw new core.ArgumentError("Parameter fileId is required.");
9342 } 9772 }
9343 9773
9344 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissionGroups/' + commons.Escaper.ecapeVariable('$id'); 9774 _downloadOptions = downloadOptions;
9775
9776 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escape r.ecapeVariable('$fileId');
9345 9777
9346 var _response = _requester.request(_url, 9778 var _response = _requester.request(_url,
9347 "GET", 9779 "GET",
9348 body: _body, 9780 body: _body,
9349 queryParams: _queryParams, 9781 queryParams: _queryParams,
9350 uploadOptions: _uploadOptions, 9782 uploadOptions: _uploadOptions,
9351 uploadMedia: _uploadMedia, 9783 uploadMedia: _uploadMedia,
9352 downloadOptions: _downloadOptions); 9784 downloadOptions: _downloadOptions);
9353 return _response.then((data) => new UserRolePermissionGroup.fromJson(data)); 9785 if (_downloadOptions == null ||
9786 _downloadOptions == commons.DownloadOptions.Metadata) {
9787 return _response.then((data) => new File.fromJson(data));
9788 } else {
9789 return _response;
9790 }
9354 } 9791 }
9355 9792
9356 /** 9793 /**
9357 * Gets a list of all supported user role permission groups. 9794 * Lists files for a report.
9358 * 9795 *
9359 * Request parameters: 9796 * Request parameters:
9360 * 9797 *
9361 * [profileId] - User profile ID associated with this request. 9798 * [profileId] - The DFA profile ID.
9362 * 9799 *
9363 * Completes with a [UserRolePermissionGroupsListResponse]. 9800 * [reportId] - The ID of the parent report.
9801 *
9802 * [maxResults] - Maximum number of results to return.
9803 * Value must be between "0" and "10".
9804 *
9805 * [pageToken] - The value of the nextToken from the previous result page.
9806 *
9807 * [sortField] - The field by which to sort the list.
9808 * Possible string values are:
9809 * - "ID" : Sort by file ID.
9810 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field.
9811 *
9812 * [sortOrder] - Order of sorted results, default is 'DESCENDING'.
9813 * Possible string values are:
9814 * - "ASCENDING" : Ascending order.
9815 * - "DESCENDING" : Descending order.
9816 *
9817 * Completes with a [FileList].
9364 * 9818 *
9365 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9819 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9366 * error. 9820 * error.
9367 * 9821 *
9368 * If the used [http.Client] completes with an error when making a REST call, 9822 * If the used [http.Client] completes with an error when making a REST call,
9369 * this method will complete with the same error. 9823 * this method will complete with the same error.
9370 */ 9824 */
9371 async.Future<UserRolePermissionGroupsListResponse> list(core.String profileId) { 9825 async.Future<FileList> list(core.String profileId, core.String reportId, {core .int maxResults, core.String pageToken, core.String sortField, core.String sortO rder}) {
9372 var _url = null; 9826 var _url = null;
9373 var _queryParams = new core.Map(); 9827 var _queryParams = new core.Map();
9374 var _uploadMedia = null; 9828 var _uploadMedia = null;
9375 var _uploadOptions = null; 9829 var _uploadOptions = null;
9376 var _downloadOptions = commons.DownloadOptions.Metadata; 9830 var _downloadOptions = commons.DownloadOptions.Metadata;
9377 var _body = null; 9831 var _body = null;
9378 9832
9379 if (profileId == null) { 9833 if (profileId == null) {
9380 throw new core.ArgumentError("Parameter profileId is required."); 9834 throw new core.ArgumentError("Parameter profileId is required.");
9381 } 9835 }
9836 if (reportId == null) {
9837 throw new core.ArgumentError("Parameter reportId is required.");
9838 }
9839 if (maxResults != null) {
9840 _queryParams["maxResults"] = ["${maxResults}"];
9841 }
9842 if (pageToken != null) {
9843 _queryParams["pageToken"] = [pageToken];
9844 }
9845 if (sortField != null) {
9846 _queryParams["sortField"] = [sortField];
9847 }
9848 if (sortOrder != null) {
9849 _queryParams["sortOrder"] = [sortOrder];
9850 }
9382 9851
9383 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissionGroups'; 9852 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files';
9384 9853
9385 var _response = _requester.request(_url, 9854 var _response = _requester.request(_url,
9386 "GET", 9855 "GET",
9387 body: _body, 9856 body: _body,
9388 queryParams: _queryParams, 9857 queryParams: _queryParams,
9389 uploadOptions: _uploadOptions, 9858 uploadOptions: _uploadOptions,
9390 uploadMedia: _uploadMedia, 9859 uploadMedia: _uploadMedia,
9391 downloadOptions: _downloadOptions); 9860 downloadOptions: _downloadOptions);
9392 return _response.then((data) => new UserRolePermissionGroupsListResponse.fro mJson(data)); 9861 return _response.then((data) => new FileList.fromJson(data));
9393 } 9862 }
9394 9863
9395 } 9864 }
9396 9865
9397 9866
9398 class UserRolePermissionsResourceApi { 9867 class SitesResourceApi {
9399 final commons.ApiRequester _requester; 9868 final commons.ApiRequester _requester;
9400 9869
9401 UserRolePermissionsResourceApi(commons.ApiRequester client) : 9870 SitesResourceApi(commons.ApiRequester client) :
9402 _requester = client; 9871 _requester = client;
9403 9872
9404 /** 9873 /**
9405 * Gets one user role permission by ID. 9874 * Gets one site by ID.
9406 * 9875 *
9407 * Request parameters: 9876 * Request parameters:
9408 * 9877 *
9409 * [profileId] - User profile ID associated with this request. 9878 * [profileId] - User profile ID associated with this request.
9410 * 9879 *
9411 * [id] - User role permission ID. 9880 * [id] - Site ID.
9412 * 9881 *
9413 * Completes with a [UserRolePermission]. 9882 * Completes with a [Site].
9414 * 9883 *
9415 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9884 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9416 * error. 9885 * error.
9417 * 9886 *
9418 * If the used [http.Client] completes with an error when making a REST call, 9887 * If the used [http.Client] completes with an error when making a REST call,
9419 * this method will complete with the same error. 9888 * this method will complete with the same error.
9420 */ 9889 */
9421 async.Future<UserRolePermission> get(core.String profileId, core.String id) { 9890 async.Future<Site> get(core.String profileId, core.String id) {
9422 var _url = null; 9891 var _url = null;
9423 var _queryParams = new core.Map(); 9892 var _queryParams = new core.Map();
9424 var _uploadMedia = null; 9893 var _uploadMedia = null;
9425 var _uploadOptions = null; 9894 var _uploadOptions = null;
9426 var _downloadOptions = commons.DownloadOptions.Metadata; 9895 var _downloadOptions = commons.DownloadOptions.Metadata;
9427 var _body = null; 9896 var _body = null;
9428 9897
9429 if (profileId == null) { 9898 if (profileId == null) {
9430 throw new core.ArgumentError("Parameter profileId is required."); 9899 throw new core.ArgumentError("Parameter profileId is required.");
9431 } 9900 }
9432 if (id == null) { 9901 if (id == null) {
9433 throw new core.ArgumentError("Parameter id is required."); 9902 throw new core.ArgumentError("Parameter id is required.");
9434 } 9903 }
9435 9904
9436 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissions/' + commons.Escaper.ecapeVariable('$id'); 9905 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es/' + commons.Escaper.ecapeVariable('$id');
9437 9906
9438 var _response = _requester.request(_url, 9907 var _response = _requester.request(_url,
9439 "GET", 9908 "GET",
9440 body: _body, 9909 body: _body,
9441 queryParams: _queryParams, 9910 queryParams: _queryParams,
9442 uploadOptions: _uploadOptions, 9911 uploadOptions: _uploadOptions,
9443 uploadMedia: _uploadMedia, 9912 uploadMedia: _uploadMedia,
9444 downloadOptions: _downloadOptions); 9913 downloadOptions: _downloadOptions);
9445 return _response.then((data) => new UserRolePermission.fromJson(data)); 9914 return _response.then((data) => new Site.fromJson(data));
9446 } 9915 }
9447 9916
9448 /** 9917 /**
9449 * Gets a list of user role permissions, possibly filtered. 9918 * Inserts a new site.
9919 *
9920 * [request] - The metadata request object.
9450 * 9921 *
9451 * Request parameters: 9922 * Request parameters:
9452 * 9923 *
9453 * [profileId] - User profile ID associated with this request. 9924 * [profileId] - User profile ID associated with this request.
9454 * 9925 *
9455 * [ids] - Select only user role permissions with these IDs. 9926 * Completes with a [Site].
9456 *
9457 * Completes with a [UserRolePermissionsListResponse].
9458 * 9927 *
9459 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 9928 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9460 * error. 9929 * error.
9461 * 9930 *
9462 * If the used [http.Client] completes with an error when making a REST call, 9931 * If the used [http.Client] completes with an error when making a REST call,
9463 * this method will complete with the same error. 9932 * this method will complete with the same error.
9464 */ 9933 */
9465 async.Future<UserRolePermissionsListResponse> list(core.String profileId, {cor e.List<core.String> ids}) { 9934 async.Future<Site> insert(Site request, core.String profileId) {
9466 var _url = null; 9935 var _url = null;
9467 var _queryParams = new core.Map(); 9936 var _queryParams = new core.Map();
9468 var _uploadMedia = null; 9937 var _uploadMedia = null;
9469 var _uploadOptions = null; 9938 var _uploadOptions = null;
9470 var _downloadOptions = commons.DownloadOptions.Metadata; 9939 var _downloadOptions = commons.DownloadOptions.Metadata;
9471 var _body = null; 9940 var _body = null;
9472 9941
9942 if (request != null) {
9943 _body = convert.JSON.encode((request).toJson());
9944 }
9473 if (profileId == null) { 9945 if (profileId == null) {
9474 throw new core.ArgumentError("Parameter profileId is required."); 9946 throw new core.ArgumentError("Parameter profileId is required.");
9475 } 9947 }
9476 if (ids != null) {
9477 _queryParams["ids"] = ids;
9478 }
9479 9948
9480 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissions'; 9949 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es';
9481 9950
9482 var _response = _requester.request(_url, 9951 var _response = _requester.request(_url,
9483 "GET", 9952 "POST",
9484 body: _body, 9953 body: _body,
9485 queryParams: _queryParams, 9954 queryParams: _queryParams,
9486 uploadOptions: _uploadOptions, 9955 uploadOptions: _uploadOptions,
9487 uploadMedia: _uploadMedia, 9956 uploadMedia: _uploadMedia,
9488 downloadOptions: _downloadOptions); 9957 downloadOptions: _downloadOptions);
9489 return _response.then((data) => new UserRolePermissionsListResponse.fromJson (data)); 9958 return _response.then((data) => new Site.fromJson(data));
9490 } 9959 }
9491 9960
9492 }
9493
9494
9495 class UserRolesResourceApi {
9496 final commons.ApiRequester _requester;
9497
9498 UserRolesResourceApi(commons.ApiRequester client) :
9499 _requester = client;
9500
9501 /** 9961 /**
9502 * Deletes an existing user role. 9962 * Retrieves a list of sites, possibly filtered.
9503 * 9963 *
9504 * Request parameters: 9964 * Request parameters:
9505 * 9965 *
9506 * [profileId] - User profile ID associated with this request. 9966 * [profileId] - User profile ID associated with this request.
9507 * 9967 *
9508 * [id] - User role ID. 9968 * [acceptsInStreamVideoPlacements] - This search filter is no longer
9969 * supported and will have no effect on the results returned.
9970 *
9971 * [acceptsInterstitialPlacements] - This search filter is no longer supported
9972 * and will have no effect on the results returned.
9973 *
9974 * [acceptsPublisherPaidPlacements] - Select only sites that accept publisher
9975 * paid placements.
9976 *
9977 * [adWordsSite] - Select only AdWords sites.
9978 *
9979 * [approved] - Select only approved sites.
9980 *
9981 * [campaignIds] - Select only sites with these campaign IDs.
9982 *
9983 * [directorySiteIds] - Select only sites with these directory site IDs.
9984 *
9985 * [ids] - Select only sites with these IDs.
9986 *
9987 * [maxResults] - Maximum number of results to return.
9988 *
9989 * [pageToken] - Value of the nextPageToken from the previous result page.
9990 *
9991 * [searchString] - Allows searching for objects by name, ID or keyName.
9992 * Wildcards (*) are allowed. For example, "site*2015" will return objects
9993 * with names like "site June 2015", "site April 2015", or simply "site 2015".
9994 * Most of the searches also add wildcards implicitly at the start and the end
9995 * of the search string. For example, a search string of "site" will match
9996 * objects with name "my site", "site 2015", or simply "site".
9997 *
9998 * [sortField] - Field by which to sort the list.
9999 * Possible string values are:
10000 * - "ID"
10001 * - "NAME"
10002 *
10003 * [sortOrder] - Order of sorted results, default is ASCENDING.
10004 * Possible string values are:
10005 * - "ASCENDING"
10006 * - "DESCENDING"
10007 *
10008 * [subaccountId] - Select only sites with this subaccount ID.
10009 *
10010 * [unmappedSite] - Select only sites that have not been mapped to a directory
10011 * site.
10012 *
10013 * Completes with a [SitesListResponse].
9509 * 10014 *
9510 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 10015 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9511 * error. 10016 * error.
9512 * 10017 *
9513 * If the used [http.Client] completes with an error when making a REST call, 10018 * If the used [http.Client] completes with an error when making a REST call,
9514 * this method will complete with the same error. 10019 * this method will complete with the same error.
9515 */ 10020 */
9516 async.Future delete(core.String profileId, core.String id) { 10021 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}) {
9517 var _url = null; 10022 var _url = null;
9518 var _queryParams = new core.Map(); 10023 var _queryParams = new core.Map();
9519 var _uploadMedia = null; 10024 var _uploadMedia = null;
9520 var _uploadOptions = null; 10025 var _uploadOptions = null;
9521 var _downloadOptions = commons.DownloadOptions.Metadata; 10026 var _downloadOptions = commons.DownloadOptions.Metadata;
9522 var _body = null; 10027 var _body = null;
9523 10028
9524 if (profileId == null) { 10029 if (profileId == null) {
9525 throw new core.ArgumentError("Parameter profileId is required."); 10030 throw new core.ArgumentError("Parameter profileId is required.");
9526 } 10031 }
9527 if (id == null) { 10032 if (acceptsInStreamVideoPlacements != null) {
9528 throw new core.ArgumentError("Parameter id is required."); 10033 _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoP lacements}"];
10034 }
10035 if (acceptsInterstitialPlacements != null) {
10036 _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPla cements}"];
10037 }
10038 if (acceptsPublisherPaidPlacements != null) {
10039 _queryParams["acceptsPublisherPaidPlacements"] = ["${acceptsPublisherPaidP lacements}"];
10040 }
10041 if (adWordsSite != null) {
10042 _queryParams["adWordsSite"] = ["${adWordsSite}"];
10043 }
10044 if (approved != null) {
10045 _queryParams["approved"] = ["${approved}"];
10046 }
10047 if (campaignIds != null) {
10048 _queryParams["campaignIds"] = campaignIds;
10049 }
10050 if (directorySiteIds != null) {
10051 _queryParams["directorySiteIds"] = directorySiteIds;
10052 }
10053 if (ids != null) {
10054 _queryParams["ids"] = ids;
10055 }
10056 if (maxResults != null) {
10057 _queryParams["maxResults"] = ["${maxResults}"];
10058 }
10059 if (pageToken != null) {
10060 _queryParams["pageToken"] = [pageToken];
10061 }
10062 if (searchString != null) {
10063 _queryParams["searchString"] = [searchString];
10064 }
10065 if (sortField != null) {
10066 _queryParams["sortField"] = [sortField];
10067 }
10068 if (sortOrder != null) {
10069 _queryParams["sortOrder"] = [sortOrder];
10070 }
10071 if (subaccountId != null) {
10072 _queryParams["subaccountId"] = [subaccountId];
10073 }
10074 if (unmappedSite != null) {
10075 _queryParams["unmappedSite"] = ["${unmappedSite}"];
9529 } 10076 }
9530 10077
9531 _downloadOptions = null; 10078 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es';
9532
9533 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles/' + commons.Escaper.ecapeVariable('$id');
9534 10079
9535 var _response = _requester.request(_url, 10080 var _response = _requester.request(_url,
9536 "DELETE", 10081 "GET",
9537 body: _body, 10082 body: _body,
9538 queryParams: _queryParams, 10083 queryParams: _queryParams,
9539 uploadOptions: _uploadOptions, 10084 uploadOptions: _uploadOptions,
9540 uploadMedia: _uploadMedia, 10085 uploadMedia: _uploadMedia,
9541 downloadOptions: _downloadOptions); 10086 downloadOptions: _downloadOptions);
9542 return _response.then((data) => null); 10087 return _response.then((data) => new SitesListResponse.fromJson(data));
9543 } 10088 }
9544 10089
9545 /** 10090 /**
9546 * Gets one user role by ID. 10091 * Updates an existing site. This method supports patch semantics.
10092 *
10093 * [request] - The metadata request object.
9547 * 10094 *
9548 * Request parameters: 10095 * Request parameters:
9549 * 10096 *
9550 * [profileId] - User profile ID associated with this request. 10097 * [profileId] - User profile ID associated with this request.
9551 * 10098 *
9552 * [id] - User role ID. 10099 * [id] - Site ID.
9553 * 10100 *
9554 * Completes with a [UserRole]. 10101 * Completes with a [Site].
9555 * 10102 *
9556 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 10103 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9557 * error. 10104 * error.
9558 * 10105 *
9559 * If the used [http.Client] completes with an error when making a REST call, 10106 * If the used [http.Client] completes with an error when making a REST call,
9560 * this method will complete with the same error. 10107 * this method will complete with the same error.
9561 */ 10108 */
9562 async.Future<UserRole> get(core.String profileId, core.String id) { 10109 async.Future<Site> patch(Site request, core.String profileId, core.String id) {
9563 var _url = null; 10110 var _url = null;
9564 var _queryParams = new core.Map(); 10111 var _queryParams = new core.Map();
9565 var _uploadMedia = null; 10112 var _uploadMedia = null;
9566 var _uploadOptions = null; 10113 var _uploadOptions = null;
9567 var _downloadOptions = commons.DownloadOptions.Metadata; 10114 var _downloadOptions = commons.DownloadOptions.Metadata;
9568 var _body = null; 10115 var _body = null;
9569 10116
10117 if (request != null) {
10118 _body = convert.JSON.encode((request).toJson());
10119 }
9570 if (profileId == null) { 10120 if (profileId == null) {
9571 throw new core.ArgumentError("Parameter profileId is required."); 10121 throw new core.ArgumentError("Parameter profileId is required.");
9572 } 10122 }
9573 if (id == null) { 10123 if (id == null) {
9574 throw new core.ArgumentError("Parameter id is required."); 10124 throw new core.ArgumentError("Parameter id is required.");
9575 } 10125 }
10126 _queryParams["id"] = [id];
9576 10127
9577 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles/' + commons.Escaper.ecapeVariable('$id'); 10128 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es';
9578 10129
9579 var _response = _requester.request(_url, 10130 var _response = _requester.request(_url,
9580 "GET", 10131 "PATCH",
9581 body: _body, 10132 body: _body,
9582 queryParams: _queryParams, 10133 queryParams: _queryParams,
9583 uploadOptions: _uploadOptions, 10134 uploadOptions: _uploadOptions,
9584 uploadMedia: _uploadMedia, 10135 uploadMedia: _uploadMedia,
9585 downloadOptions: _downloadOptions); 10136 downloadOptions: _downloadOptions);
9586 return _response.then((data) => new UserRole.fromJson(data)); 10137 return _response.then((data) => new Site.fromJson(data));
9587 } 10138 }
9588 10139
9589 /** 10140 /**
9590 * Inserts a new user role. 10141 * Updates an existing site.
9591 * 10142 *
9592 * [request] - The metadata request object. 10143 * [request] - The metadata request object.
9593 * 10144 *
9594 * Request parameters: 10145 * Request parameters:
9595 * 10146 *
9596 * [profileId] - User profile ID associated with this request. 10147 * [profileId] - User profile ID associated with this request.
9597 * 10148 *
9598 * Completes with a [UserRole]. 10149 * Completes with a [Site].
9599 * 10150 *
9600 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 10151 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9601 * error. 10152 * error.
9602 * 10153 *
9603 * If the used [http.Client] completes with an error when making a REST call, 10154 * If the used [http.Client] completes with an error when making a REST call,
9604 * this method will complete with the same error. 10155 * this method will complete with the same error.
9605 */ 10156 */
9606 async.Future<UserRole> insert(UserRole request, core.String profileId) { 10157 async.Future<Site> update(Site request, core.String profileId) {
9607 var _url = null; 10158 var _url = null;
9608 var _queryParams = new core.Map(); 10159 var _queryParams = new core.Map();
9609 var _uploadMedia = null; 10160 var _uploadMedia = null;
9610 var _uploadOptions = null; 10161 var _uploadOptions = null;
9611 var _downloadOptions = commons.DownloadOptions.Metadata; 10162 var _downloadOptions = commons.DownloadOptions.Metadata;
9612 var _body = null; 10163 var _body = null;
9613 10164
9614 if (request != null) { 10165 if (request != null) {
9615 _body = convert.JSON.encode((request).toJson()); 10166 _body = convert.JSON.encode((request).toJson());
9616 } 10167 }
9617 if (profileId == null) { 10168 if (profileId == null) {
9618 throw new core.ArgumentError("Parameter profileId is required."); 10169 throw new core.ArgumentError("Parameter profileId is required.");
9619 } 10170 }
9620 10171
9621 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles'; 10172 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit es';
9622 10173
9623 var _response = _requester.request(_url, 10174 var _response = _requester.request(_url,
9624 "POST", 10175 "PUT",
9625 body: _body, 10176 body: _body,
9626 queryParams: _queryParams, 10177 queryParams: _queryParams,
9627 uploadOptions: _uploadOptions, 10178 uploadOptions: _uploadOptions,
9628 uploadMedia: _uploadMedia, 10179 uploadMedia: _uploadMedia,
9629 downloadOptions: _downloadOptions); 10180 downloadOptions: _downloadOptions);
9630 return _response.then((data) => new UserRole.fromJson(data)); 10181 return _response.then((data) => new Site.fromJson(data));
9631 } 10182 }
9632 10183
10184 }
10185
10186
10187 class SizesResourceApi {
10188 final commons.ApiRequester _requester;
10189
10190 SizesResourceApi(commons.ApiRequester client) :
10191 _requester = client;
10192
9633 /** 10193 /**
9634 * Retrieves a list of user roles, possibly filtered. 10194 * Gets one size by ID.
9635 * 10195 *
9636 * Request parameters: 10196 * Request parameters:
9637 * 10197 *
9638 * [profileId] - User profile ID associated with this request. 10198 * [profileId] - User profile ID associated with this request.
9639 * 10199 *
9640 * [accountUserRoleOnly] - Select only account level user roles not associated 10200 * [id] - Size ID.
9641 * with any specific subaccount.
9642 * 10201 *
9643 * [ids] - Select only user roles with the specified IDs. 10202 * Completes with a [Size].
9644 *
9645 * [maxResults] - Maximum number of results to return.
9646 *
9647 * [pageToken] - Value of the nextPageToken from the previous result page.
9648 *
9649 * [searchString] - Allows searching for objects by name or ID. Wildcards (*)
9650 * are allowed. For example, "userrole*2015" will return objects with names
9651 * like "userrole June 2015", "userrole April 2015", or simply "userrole
9652 * 2015". Most of the searches also add wildcards implicitly at the start and
9653 * the end of the search string. For example, a search string of "userrole"
9654 * will match objects with name "my userrole", "userrole 2015", or simply
9655 * "userrole".
9656 *
9657 * [sortField] - Field by which to sort the list.
9658 * Possible string values are:
9659 * - "ID"
9660 * - "NAME"
9661 *
9662 * [sortOrder] - Order of sorted results, default is ASCENDING.
9663 * Possible string values are:
9664 * - "ASCENDING"
9665 * - "DESCENDING"
9666 *
9667 * [subaccountId] - Select only user roles that belong to this subaccount.
9668 *
9669 * Completes with a [UserRolesListResponse].
9670 * 10203 *
9671 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 10204 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9672 * error. 10205 * error.
9673 * 10206 *
9674 * If the used [http.Client] completes with an error when making a REST call, 10207 * If the used [http.Client] completes with an error when making a REST call,
9675 * this method will complete with the same error. 10208 * this method will complete with the same error.
9676 */ 10209 */
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}) { 10210 async.Future<Size> get(core.String profileId, core.String id) {
9678 var _url = null; 10211 var _url = null;
9679 var _queryParams = new core.Map(); 10212 var _queryParams = new core.Map();
9680 var _uploadMedia = null; 10213 var _uploadMedia = null;
9681 var _uploadOptions = null; 10214 var _uploadOptions = null;
9682 var _downloadOptions = commons.DownloadOptions.Metadata; 10215 var _downloadOptions = commons.DownloadOptions.Metadata;
9683 var _body = null; 10216 var _body = null;
9684 10217
9685 if (profileId == null) { 10218 if (profileId == null) {
9686 throw new core.ArgumentError("Parameter profileId is required."); 10219 throw new core.ArgumentError("Parameter profileId is required.");
9687 } 10220 }
9688 if (accountUserRoleOnly != null) { 10221 if (id == null) {
9689 _queryParams["accountUserRoleOnly"] = ["${accountUserRoleOnly}"]; 10222 throw new core.ArgumentError("Parameter id is required.");
9690 }
9691 if (ids != null) {
9692 _queryParams["ids"] = ids;
9693 }
9694 if (maxResults != null) {
9695 _queryParams["maxResults"] = ["${maxResults}"];
9696 }
9697 if (pageToken != null) {
9698 _queryParams["pageToken"] = [pageToken];
9699 }
9700 if (searchString != null) {
9701 _queryParams["searchString"] = [searchString];
9702 }
9703 if (sortField != null) {
9704 _queryParams["sortField"] = [sortField];
9705 }
9706 if (sortOrder != null) {
9707 _queryParams["sortOrder"] = [sortOrder];
9708 }
9709 if (subaccountId != null) {
9710 _queryParams["subaccountId"] = [subaccountId];
9711 } 10223 }
9712 10224
9713 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles'; 10225 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es/' + commons.Escaper.ecapeVariable('$id');
9714 10226
9715 var _response = _requester.request(_url, 10227 var _response = _requester.request(_url,
9716 "GET", 10228 "GET",
9717 body: _body, 10229 body: _body,
9718 queryParams: _queryParams, 10230 queryParams: _queryParams,
9719 uploadOptions: _uploadOptions, 10231 uploadOptions: _uploadOptions,
9720 uploadMedia: _uploadMedia, 10232 uploadMedia: _uploadMedia,
9721 downloadOptions: _downloadOptions); 10233 downloadOptions: _downloadOptions);
9722 return _response.then((data) => new UserRolesListResponse.fromJson(data)); 10234 return _response.then((data) => new Size.fromJson(data));
9723 } 10235 }
9724 10236
9725 /** 10237 /**
9726 * Updates an existing user role. This method supports patch semantics. 10238 * Inserts a new size.
9727 * 10239 *
9728 * [request] - The metadata request object. 10240 * [request] - The metadata request object.
9729 * 10241 *
9730 * Request parameters: 10242 * Request parameters:
9731 * 10243 *
9732 * [profileId] - User profile ID associated with this request. 10244 * [profileId] - User profile ID associated with this request.
9733 * 10245 *
9734 * [id] - User role ID. 10246 * Completes with a [Size].
9735 *
9736 * Completes with a [UserRole].
9737 * 10247 *
9738 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 10248 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
9739 * error. 10249 * error.
9740 * 10250 *
9741 * If the used [http.Client] completes with an error when making a REST call, 10251 * If the used [http.Client] completes with an error when making a REST call,
9742 * this method will complete with the same error. 10252 * this method will complete with the same error.
9743 */ 10253 */
9744 async.Future<UserRole> patch(UserRole request, core.String profileId, core.Str ing id) { 10254 async.Future<Size> insert(Size request, core.String profileId) {
9745 var _url = null; 10255 var _url = null;
9746 var _queryParams = new core.Map(); 10256 var _queryParams = new core.Map();
9747 var _uploadMedia = null; 10257 var _uploadMedia = null;
9748 var _uploadOptions = null; 10258 var _uploadOptions = null;
9749 var _downloadOptions = commons.DownloadOptions.Metadata; 10259 var _downloadOptions = commons.DownloadOptions.Metadata;
9750 var _body = null; 10260 var _body = null;
9751 10261
9752 if (request != null) { 10262 if (request != null) {
9753 _body = convert.JSON.encode((request).toJson()); 10263 _body = convert.JSON.encode((request).toJson());
9754 } 10264 }
9755 if (profileId == null) { 10265 if (profileId == null) {
9756 throw new core.ArgumentError("Parameter profileId is required."); 10266 throw new core.ArgumentError("Parameter profileId is required.");
9757 } 10267 }
10268
10269 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es';
10270
10271 var _response = _requester.request(_url,
10272 "POST",
10273 body: _body,
10274 queryParams: _queryParams,
10275 uploadOptions: _uploadOptions,
10276 uploadMedia: _uploadMedia,
10277 downloadOptions: _downloadOptions);
10278 return _response.then((data) => new Size.fromJson(data));
10279 }
10280
10281 /**
10282 * Retrieves a list of sizes, possibly filtered.
10283 *
10284 * Request parameters:
10285 *
10286 * [profileId] - User profile ID associated with this request.
10287 *
10288 * [height] - Select only sizes with this height.
10289 *
10290 * [iabStandard] - Select only IAB standard sizes.
10291 *
10292 * [ids] - Select only sizes with these IDs.
10293 *
10294 * [width] - Select only sizes with this width.
10295 *
10296 * Completes with a [SizesListResponse].
10297 *
10298 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10299 * error.
10300 *
10301 * If the used [http.Client] completes with an error when making a REST call,
10302 * this method will complete with the same error.
10303 */
10304 async.Future<SizesListResponse> list(core.String profileId, {core.int height, core.bool iabStandard, core.List<core.String> ids, core.int width}) {
10305 var _url = null;
10306 var _queryParams = new core.Map();
10307 var _uploadMedia = null;
10308 var _uploadOptions = null;
10309 var _downloadOptions = commons.DownloadOptions.Metadata;
10310 var _body = null;
10311
10312 if (profileId == null) {
10313 throw new core.ArgumentError("Parameter profileId is required.");
10314 }
10315 if (height != null) {
10316 _queryParams["height"] = ["${height}"];
10317 }
10318 if (iabStandard != null) {
10319 _queryParams["iabStandard"] = ["${iabStandard}"];
10320 }
10321 if (ids != null) {
10322 _queryParams["ids"] = ids;
10323 }
10324 if (width != null) {
10325 _queryParams["width"] = ["${width}"];
10326 }
10327
10328 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz es';
10329
10330 var _response = _requester.request(_url,
10331 "GET",
10332 body: _body,
10333 queryParams: _queryParams,
10334 uploadOptions: _uploadOptions,
10335 uploadMedia: _uploadMedia,
10336 downloadOptions: _downloadOptions);
10337 return _response.then((data) => new SizesListResponse.fromJson(data));
10338 }
10339
10340 }
10341
10342
10343 class SubaccountsResourceApi {
10344 final commons.ApiRequester _requester;
10345
10346 SubaccountsResourceApi(commons.ApiRequester client) :
10347 _requester = client;
10348
10349 /**
10350 * Gets one subaccount by ID.
10351 *
10352 * Request parameters:
10353 *
10354 * [profileId] - User profile ID associated with this request.
10355 *
10356 * [id] - Subaccount ID.
10357 *
10358 * Completes with a [Subaccount].
10359 *
10360 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10361 * error.
10362 *
10363 * If the used [http.Client] completes with an error when making a REST call,
10364 * this method will complete with the same error.
10365 */
10366 async.Future<Subaccount> get(core.String profileId, core.String id) {
10367 var _url = null;
10368 var _queryParams = new core.Map();
10369 var _uploadMedia = null;
10370 var _uploadOptions = null;
10371 var _downloadOptions = commons.DownloadOptions.Metadata;
10372 var _body = null;
10373
10374 if (profileId == null) {
10375 throw new core.ArgumentError("Parameter profileId is required.");
10376 }
9758 if (id == null) { 10377 if (id == null) {
9759 throw new core.ArgumentError("Parameter id is required."); 10378 throw new core.ArgumentError("Parameter id is required.");
9760 } 10379 }
10380
10381 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts/' + commons.Escaper.ecapeVariable('$id');
10382
10383 var _response = _requester.request(_url,
10384 "GET",
10385 body: _body,
10386 queryParams: _queryParams,
10387 uploadOptions: _uploadOptions,
10388 uploadMedia: _uploadMedia,
10389 downloadOptions: _downloadOptions);
10390 return _response.then((data) => new Subaccount.fromJson(data));
10391 }
10392
10393 /**
10394 * Inserts a new subaccount.
10395 *
10396 * [request] - The metadata request object.
10397 *
10398 * Request parameters:
10399 *
10400 * [profileId] - User profile ID associated with this request.
10401 *
10402 * Completes with a [Subaccount].
10403 *
10404 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10405 * error.
10406 *
10407 * If the used [http.Client] completes with an error when making a REST call,
10408 * this method will complete with the same error.
10409 */
10410 async.Future<Subaccount> insert(Subaccount request, core.String profileId) {
10411 var _url = null;
10412 var _queryParams = new core.Map();
10413 var _uploadMedia = null;
10414 var _uploadOptions = null;
10415 var _downloadOptions = commons.DownloadOptions.Metadata;
10416 var _body = null;
10417
10418 if (request != null) {
10419 _body = convert.JSON.encode((request).toJson());
10420 }
10421 if (profileId == null) {
10422 throw new core.ArgumentError("Parameter profileId is required.");
10423 }
10424
10425 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts';
10426
10427 var _response = _requester.request(_url,
10428 "POST",
10429 body: _body,
10430 queryParams: _queryParams,
10431 uploadOptions: _uploadOptions,
10432 uploadMedia: _uploadMedia,
10433 downloadOptions: _downloadOptions);
10434 return _response.then((data) => new Subaccount.fromJson(data));
10435 }
10436
10437 /**
10438 * Gets a list of subaccounts, possibly filtered.
10439 *
10440 * Request parameters:
10441 *
10442 * [profileId] - User profile ID associated with this request.
10443 *
10444 * [ids] - Select only subaccounts with these IDs.
10445 *
10446 * [maxResults] - Maximum number of results to return.
10447 *
10448 * [pageToken] - Value of the nextPageToken from the previous result page.
10449 *
10450 * [searchString] - Allows searching for objects by name or ID. Wildcards (*)
10451 * are allowed. For example, "subaccount*2015" will return objects with names
10452 * like "subaccount June 2015", "subaccount April 2015", or simply "subaccount
10453 * 2015". Most of the searches also add wildcards implicitly at the start and
10454 * the end of the search string. For example, a search string of "subaccount"
10455 * will match objects with name "my subaccount", "subaccount 2015", or simply
10456 * "subaccount".
10457 *
10458 * [sortField] - Field by which to sort the list.
10459 * Possible string values are:
10460 * - "ID"
10461 * - "NAME"
10462 *
10463 * [sortOrder] - Order of sorted results, default is ASCENDING.
10464 * Possible string values are:
10465 * - "ASCENDING"
10466 * - "DESCENDING"
10467 *
10468 * Completes with a [SubaccountsListResponse].
10469 *
10470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10471 * error.
10472 *
10473 * If the used [http.Client] completes with an error when making a REST call,
10474 * this method will complete with the same error.
10475 */
10476 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}) {
10477 var _url = null;
10478 var _queryParams = new core.Map();
10479 var _uploadMedia = null;
10480 var _uploadOptions = null;
10481 var _downloadOptions = commons.DownloadOptions.Metadata;
10482 var _body = null;
10483
10484 if (profileId == null) {
10485 throw new core.ArgumentError("Parameter profileId is required.");
10486 }
10487 if (ids != null) {
10488 _queryParams["ids"] = ids;
10489 }
10490 if (maxResults != null) {
10491 _queryParams["maxResults"] = ["${maxResults}"];
10492 }
10493 if (pageToken != null) {
10494 _queryParams["pageToken"] = [pageToken];
10495 }
10496 if (searchString != null) {
10497 _queryParams["searchString"] = [searchString];
10498 }
10499 if (sortField != null) {
10500 _queryParams["sortField"] = [sortField];
10501 }
10502 if (sortOrder != null) {
10503 _queryParams["sortOrder"] = [sortOrder];
10504 }
10505
10506 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts';
10507
10508 var _response = _requester.request(_url,
10509 "GET",
10510 body: _body,
10511 queryParams: _queryParams,
10512 uploadOptions: _uploadOptions,
10513 uploadMedia: _uploadMedia,
10514 downloadOptions: _downloadOptions);
10515 return _response.then((data) => new SubaccountsListResponse.fromJson(data));
10516 }
10517
10518 /**
10519 * Updates an existing subaccount. This method supports patch semantics.
10520 *
10521 * [request] - The metadata request object.
10522 *
10523 * Request parameters:
10524 *
10525 * [profileId] - User profile ID associated with this request.
10526 *
10527 * [id] - Subaccount ID.
10528 *
10529 * Completes with a [Subaccount].
10530 *
10531 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10532 * error.
10533 *
10534 * If the used [http.Client] completes with an error when making a REST call,
10535 * this method will complete with the same error.
10536 */
10537 async.Future<Subaccount> patch(Subaccount request, core.String profileId, core .String id) {
10538 var _url = null;
10539 var _queryParams = new core.Map();
10540 var _uploadMedia = null;
10541 var _uploadOptions = null;
10542 var _downloadOptions = commons.DownloadOptions.Metadata;
10543 var _body = null;
10544
10545 if (request != null) {
10546 _body = convert.JSON.encode((request).toJson());
10547 }
10548 if (profileId == null) {
10549 throw new core.ArgumentError("Parameter profileId is required.");
10550 }
10551 if (id == null) {
10552 throw new core.ArgumentError("Parameter id is required.");
10553 }
9761 _queryParams["id"] = [id]; 10554 _queryParams["id"] = [id];
9762 10555
10556 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts';
10557
10558 var _response = _requester.request(_url,
10559 "PATCH",
10560 body: _body,
10561 queryParams: _queryParams,
10562 uploadOptions: _uploadOptions,
10563 uploadMedia: _uploadMedia,
10564 downloadOptions: _downloadOptions);
10565 return _response.then((data) => new Subaccount.fromJson(data));
10566 }
10567
10568 /**
10569 * Updates an existing subaccount.
10570 *
10571 * [request] - The metadata request object.
10572 *
10573 * Request parameters:
10574 *
10575 * [profileId] - User profile ID associated with this request.
10576 *
10577 * Completes with a [Subaccount].
10578 *
10579 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10580 * error.
10581 *
10582 * If the used [http.Client] completes with an error when making a REST call,
10583 * this method will complete with the same error.
10584 */
10585 async.Future<Subaccount> update(Subaccount request, core.String profileId) {
10586 var _url = null;
10587 var _queryParams = new core.Map();
10588 var _uploadMedia = null;
10589 var _uploadOptions = null;
10590 var _downloadOptions = commons.DownloadOptions.Metadata;
10591 var _body = null;
10592
10593 if (request != null) {
10594 _body = convert.JSON.encode((request).toJson());
10595 }
10596 if (profileId == null) {
10597 throw new core.ArgumentError("Parameter profileId is required.");
10598 }
10599
10600 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub accounts';
10601
10602 var _response = _requester.request(_url,
10603 "PUT",
10604 body: _body,
10605 queryParams: _queryParams,
10606 uploadOptions: _uploadOptions,
10607 uploadMedia: _uploadMedia,
10608 downloadOptions: _downloadOptions);
10609 return _response.then((data) => new Subaccount.fromJson(data));
10610 }
10611
10612 }
10613
10614
10615 class TargetableRemarketingListsResourceApi {
10616 final commons.ApiRequester _requester;
10617
10618 TargetableRemarketingListsResourceApi(commons.ApiRequester client) :
10619 _requester = client;
10620
10621 /**
10622 * Gets one remarketing list by ID.
10623 *
10624 * Request parameters:
10625 *
10626 * [profileId] - User profile ID associated with this request.
10627 *
10628 * [id] - Remarketing list ID.
10629 *
10630 * Completes with a [TargetableRemarketingList].
10631 *
10632 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10633 * error.
10634 *
10635 * If the used [http.Client] completes with an error when making a REST call,
10636 * this method will complete with the same error.
10637 */
10638 async.Future<TargetableRemarketingList> get(core.String profileId, core.String id) {
10639 var _url = null;
10640 var _queryParams = new core.Map();
10641 var _uploadMedia = null;
10642 var _uploadOptions = null;
10643 var _downloadOptions = commons.DownloadOptions.Metadata;
10644 var _body = null;
10645
10646 if (profileId == null) {
10647 throw new core.ArgumentError("Parameter profileId is required.");
10648 }
10649 if (id == null) {
10650 throw new core.ArgumentError("Parameter id is required.");
10651 }
10652
10653 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/tar getableRemarketingLists/' + commons.Escaper.ecapeVariable('$id');
10654
10655 var _response = _requester.request(_url,
10656 "GET",
10657 body: _body,
10658 queryParams: _queryParams,
10659 uploadOptions: _uploadOptions,
10660 uploadMedia: _uploadMedia,
10661 downloadOptions: _downloadOptions);
10662 return _response.then((data) => new TargetableRemarketingList.fromJson(data) );
10663 }
10664
10665 /**
10666 * Retrieves a list of targetable remarketing lists, possibly filtered.
10667 *
10668 * Request parameters:
10669 *
10670 * [profileId] - User profile ID associated with this request.
10671 *
10672 * [advertiserId] - Select only targetable remarketing lists targetable by
10673 * these advertisers.
10674 *
10675 * [active] - Select only active or only inactive targetable remarketing
10676 * lists.
10677 *
10678 * [maxResults] - Maximum number of results to return.
10679 *
10680 * [name] - Allows searching for objects by name or ID. Wildcards (*) are
10681 * allowed. For example, "remarketing list*2015" will return objects with
10682 * names like "remarketing list June 2015", "remarketing list April 2015", or
10683 * simply "remarketing list 2015". Most of the searches also add wildcards
10684 * implicitly at the start and the end of the search string. For example, a
10685 * search string of "remarketing list" will match objects with name "my
10686 * remarketing list", "remarketing list 2015", or simply "remarketing list".
10687 *
10688 * [pageToken] - Value of the nextPageToken from the previous result page.
10689 *
10690 * [sortField] - Field by which to sort the list.
10691 * Possible string values are:
10692 * - "ID"
10693 * - "NAME"
10694 *
10695 * [sortOrder] - Order of sorted results, default is ASCENDING.
10696 * Possible string values are:
10697 * - "ASCENDING"
10698 * - "DESCENDING"
10699 *
10700 * Completes with a [TargetableRemarketingListsListResponse].
10701 *
10702 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10703 * error.
10704 *
10705 * If the used [http.Client] completes with an error when making a REST call,
10706 * this method will complete with the same error.
10707 */
10708 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}) {
10709 var _url = null;
10710 var _queryParams = new core.Map();
10711 var _uploadMedia = null;
10712 var _uploadOptions = null;
10713 var _downloadOptions = commons.DownloadOptions.Metadata;
10714 var _body = null;
10715
10716 if (profileId == null) {
10717 throw new core.ArgumentError("Parameter profileId is required.");
10718 }
10719 if (advertiserId == null) {
10720 throw new core.ArgumentError("Parameter advertiserId is required.");
10721 }
10722 _queryParams["advertiserId"] = [advertiserId];
10723 if (active != null) {
10724 _queryParams["active"] = ["${active}"];
10725 }
10726 if (maxResults != null) {
10727 _queryParams["maxResults"] = ["${maxResults}"];
10728 }
10729 if (name != null) {
10730 _queryParams["name"] = [name];
10731 }
10732 if (pageToken != null) {
10733 _queryParams["pageToken"] = [pageToken];
10734 }
10735 if (sortField != null) {
10736 _queryParams["sortField"] = [sortField];
10737 }
10738 if (sortOrder != null) {
10739 _queryParams["sortOrder"] = [sortOrder];
10740 }
10741
10742 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/tar getableRemarketingLists';
10743
10744 var _response = _requester.request(_url,
10745 "GET",
10746 body: _body,
10747 queryParams: _queryParams,
10748 uploadOptions: _uploadOptions,
10749 uploadMedia: _uploadMedia,
10750 downloadOptions: _downloadOptions);
10751 return _response.then((data) => new TargetableRemarketingListsListResponse.f romJson(data));
10752 }
10753
10754 }
10755
10756
10757 class UserProfilesResourceApi {
10758 final commons.ApiRequester _requester;
10759
10760 UserProfilesResourceApi(commons.ApiRequester client) :
10761 _requester = client;
10762
10763 /**
10764 * Gets one user profile by ID.
10765 *
10766 * Request parameters:
10767 *
10768 * [profileId] - The user profile ID.
10769 *
10770 * Completes with a [UserProfile].
10771 *
10772 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10773 * error.
10774 *
10775 * If the used [http.Client] completes with an error when making a REST call,
10776 * this method will complete with the same error.
10777 */
10778 async.Future<UserProfile> get(core.String profileId) {
10779 var _url = null;
10780 var _queryParams = new core.Map();
10781 var _uploadMedia = null;
10782 var _uploadOptions = null;
10783 var _downloadOptions = commons.DownloadOptions.Metadata;
10784 var _body = null;
10785
10786 if (profileId == null) {
10787 throw new core.ArgumentError("Parameter profileId is required.");
10788 }
10789
10790 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId');
10791
10792 var _response = _requester.request(_url,
10793 "GET",
10794 body: _body,
10795 queryParams: _queryParams,
10796 uploadOptions: _uploadOptions,
10797 uploadMedia: _uploadMedia,
10798 downloadOptions: _downloadOptions);
10799 return _response.then((data) => new UserProfile.fromJson(data));
10800 }
10801
10802 /**
10803 * Retrieves list of user profiles for a user.
10804 *
10805 * Request parameters:
10806 *
10807 * Completes with a [UserProfileList].
10808 *
10809 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10810 * error.
10811 *
10812 * If the used [http.Client] completes with an error when making a REST call,
10813 * this method will complete with the same error.
10814 */
10815 async.Future<UserProfileList> list() {
10816 var _url = null;
10817 var _queryParams = new core.Map();
10818 var _uploadMedia = null;
10819 var _uploadOptions = null;
10820 var _downloadOptions = commons.DownloadOptions.Metadata;
10821 var _body = null;
10822
10823
10824 _url = 'userprofiles';
10825
10826 var _response = _requester.request(_url,
10827 "GET",
10828 body: _body,
10829 queryParams: _queryParams,
10830 uploadOptions: _uploadOptions,
10831 uploadMedia: _uploadMedia,
10832 downloadOptions: _downloadOptions);
10833 return _response.then((data) => new UserProfileList.fromJson(data));
10834 }
10835
10836 }
10837
10838
10839 class UserRolePermissionGroupsResourceApi {
10840 final commons.ApiRequester _requester;
10841
10842 UserRolePermissionGroupsResourceApi(commons.ApiRequester client) :
10843 _requester = client;
10844
10845 /**
10846 * Gets one user role permission group by ID.
10847 *
10848 * Request parameters:
10849 *
10850 * [profileId] - User profile ID associated with this request.
10851 *
10852 * [id] - User role permission group ID.
10853 *
10854 * Completes with a [UserRolePermissionGroup].
10855 *
10856 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10857 * error.
10858 *
10859 * If the used [http.Client] completes with an error when making a REST call,
10860 * this method will complete with the same error.
10861 */
10862 async.Future<UserRolePermissionGroup> get(core.String profileId, core.String i d) {
10863 var _url = null;
10864 var _queryParams = new core.Map();
10865 var _uploadMedia = null;
10866 var _uploadOptions = null;
10867 var _downloadOptions = commons.DownloadOptions.Metadata;
10868 var _body = null;
10869
10870 if (profileId == null) {
10871 throw new core.ArgumentError("Parameter profileId is required.");
10872 }
10873 if (id == null) {
10874 throw new core.ArgumentError("Parameter id is required.");
10875 }
10876
10877 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissionGroups/' + commons.Escaper.ecapeVariable('$id');
10878
10879 var _response = _requester.request(_url,
10880 "GET",
10881 body: _body,
10882 queryParams: _queryParams,
10883 uploadOptions: _uploadOptions,
10884 uploadMedia: _uploadMedia,
10885 downloadOptions: _downloadOptions);
10886 return _response.then((data) => new UserRolePermissionGroup.fromJson(data));
10887 }
10888
10889 /**
10890 * Gets a list of all supported user role permission groups.
10891 *
10892 * Request parameters:
10893 *
10894 * [profileId] - User profile ID associated with this request.
10895 *
10896 * Completes with a [UserRolePermissionGroupsListResponse].
10897 *
10898 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10899 * error.
10900 *
10901 * If the used [http.Client] completes with an error when making a REST call,
10902 * this method will complete with the same error.
10903 */
10904 async.Future<UserRolePermissionGroupsListResponse> list(core.String profileId) {
10905 var _url = null;
10906 var _queryParams = new core.Map();
10907 var _uploadMedia = null;
10908 var _uploadOptions = null;
10909 var _downloadOptions = commons.DownloadOptions.Metadata;
10910 var _body = null;
10911
10912 if (profileId == null) {
10913 throw new core.ArgumentError("Parameter profileId is required.");
10914 }
10915
10916 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissionGroups';
10917
10918 var _response = _requester.request(_url,
10919 "GET",
10920 body: _body,
10921 queryParams: _queryParams,
10922 uploadOptions: _uploadOptions,
10923 uploadMedia: _uploadMedia,
10924 downloadOptions: _downloadOptions);
10925 return _response.then((data) => new UserRolePermissionGroupsListResponse.fro mJson(data));
10926 }
10927
10928 }
10929
10930
10931 class UserRolePermissionsResourceApi {
10932 final commons.ApiRequester _requester;
10933
10934 UserRolePermissionsResourceApi(commons.ApiRequester client) :
10935 _requester = client;
10936
10937 /**
10938 * Gets one user role permission by ID.
10939 *
10940 * Request parameters:
10941 *
10942 * [profileId] - User profile ID associated with this request.
10943 *
10944 * [id] - User role permission ID.
10945 *
10946 * Completes with a [UserRolePermission].
10947 *
10948 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10949 * error.
10950 *
10951 * If the used [http.Client] completes with an error when making a REST call,
10952 * this method will complete with the same error.
10953 */
10954 async.Future<UserRolePermission> get(core.String profileId, core.String id) {
10955 var _url = null;
10956 var _queryParams = new core.Map();
10957 var _uploadMedia = null;
10958 var _uploadOptions = null;
10959 var _downloadOptions = commons.DownloadOptions.Metadata;
10960 var _body = null;
10961
10962 if (profileId == null) {
10963 throw new core.ArgumentError("Parameter profileId is required.");
10964 }
10965 if (id == null) {
10966 throw new core.ArgumentError("Parameter id is required.");
10967 }
10968
10969 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissions/' + commons.Escaper.ecapeVariable('$id');
10970
10971 var _response = _requester.request(_url,
10972 "GET",
10973 body: _body,
10974 queryParams: _queryParams,
10975 uploadOptions: _uploadOptions,
10976 uploadMedia: _uploadMedia,
10977 downloadOptions: _downloadOptions);
10978 return _response.then((data) => new UserRolePermission.fromJson(data));
10979 }
10980
10981 /**
10982 * Gets a list of user role permissions, possibly filtered.
10983 *
10984 * Request parameters:
10985 *
10986 * [profileId] - User profile ID associated with this request.
10987 *
10988 * [ids] - Select only user role permissions with these IDs.
10989 *
10990 * Completes with a [UserRolePermissionsListResponse].
10991 *
10992 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
10993 * error.
10994 *
10995 * If the used [http.Client] completes with an error when making a REST call,
10996 * this method will complete with the same error.
10997 */
10998 async.Future<UserRolePermissionsListResponse> list(core.String profileId, {cor e.List<core.String> ids}) {
10999 var _url = null;
11000 var _queryParams = new core.Map();
11001 var _uploadMedia = null;
11002 var _uploadOptions = null;
11003 var _downloadOptions = commons.DownloadOptions.Metadata;
11004 var _body = null;
11005
11006 if (profileId == null) {
11007 throw new core.ArgumentError("Parameter profileId is required.");
11008 }
11009 if (ids != null) {
11010 _queryParams["ids"] = ids;
11011 }
11012
11013 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRolePermissions';
11014
11015 var _response = _requester.request(_url,
11016 "GET",
11017 body: _body,
11018 queryParams: _queryParams,
11019 uploadOptions: _uploadOptions,
11020 uploadMedia: _uploadMedia,
11021 downloadOptions: _downloadOptions);
11022 return _response.then((data) => new UserRolePermissionsListResponse.fromJson (data));
11023 }
11024
11025 }
11026
11027
11028 class UserRolesResourceApi {
11029 final commons.ApiRequester _requester;
11030
11031 UserRolesResourceApi(commons.ApiRequester client) :
11032 _requester = client;
11033
11034 /**
11035 * Deletes an existing user role.
11036 *
11037 * Request parameters:
11038 *
11039 * [profileId] - User profile ID associated with this request.
11040 *
11041 * [id] - User role ID.
11042 *
11043 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11044 * error.
11045 *
11046 * If the used [http.Client] completes with an error when making a REST call,
11047 * this method will complete with the same error.
11048 */
11049 async.Future delete(core.String profileId, core.String id) {
11050 var _url = null;
11051 var _queryParams = new core.Map();
11052 var _uploadMedia = null;
11053 var _uploadOptions = null;
11054 var _downloadOptions = commons.DownloadOptions.Metadata;
11055 var _body = null;
11056
11057 if (profileId == null) {
11058 throw new core.ArgumentError("Parameter profileId is required.");
11059 }
11060 if (id == null) {
11061 throw new core.ArgumentError("Parameter id is required.");
11062 }
11063
11064 _downloadOptions = null;
11065
11066 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles/' + commons.Escaper.ecapeVariable('$id');
11067
11068 var _response = _requester.request(_url,
11069 "DELETE",
11070 body: _body,
11071 queryParams: _queryParams,
11072 uploadOptions: _uploadOptions,
11073 uploadMedia: _uploadMedia,
11074 downloadOptions: _downloadOptions);
11075 return _response.then((data) => null);
11076 }
11077
11078 /**
11079 * Gets one user role by ID.
11080 *
11081 * Request parameters:
11082 *
11083 * [profileId] - User profile ID associated with this request.
11084 *
11085 * [id] - User role ID.
11086 *
11087 * Completes with a [UserRole].
11088 *
11089 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11090 * error.
11091 *
11092 * If the used [http.Client] completes with an error when making a REST call,
11093 * this method will complete with the same error.
11094 */
11095 async.Future<UserRole> get(core.String profileId, core.String id) {
11096 var _url = null;
11097 var _queryParams = new core.Map();
11098 var _uploadMedia = null;
11099 var _uploadOptions = null;
11100 var _downloadOptions = commons.DownloadOptions.Metadata;
11101 var _body = null;
11102
11103 if (profileId == null) {
11104 throw new core.ArgumentError("Parameter profileId is required.");
11105 }
11106 if (id == null) {
11107 throw new core.ArgumentError("Parameter id is required.");
11108 }
11109
11110 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles/' + commons.Escaper.ecapeVariable('$id');
11111
11112 var _response = _requester.request(_url,
11113 "GET",
11114 body: _body,
11115 queryParams: _queryParams,
11116 uploadOptions: _uploadOptions,
11117 uploadMedia: _uploadMedia,
11118 downloadOptions: _downloadOptions);
11119 return _response.then((data) => new UserRole.fromJson(data));
11120 }
11121
11122 /**
11123 * Inserts a new user role.
11124 *
11125 * [request] - The metadata request object.
11126 *
11127 * Request parameters:
11128 *
11129 * [profileId] - User profile ID associated with this request.
11130 *
11131 * Completes with a [UserRole].
11132 *
11133 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11134 * error.
11135 *
11136 * If the used [http.Client] completes with an error when making a REST call,
11137 * this method will complete with the same error.
11138 */
11139 async.Future<UserRole> insert(UserRole request, core.String profileId) {
11140 var _url = null;
11141 var _queryParams = new core.Map();
11142 var _uploadMedia = null;
11143 var _uploadOptions = null;
11144 var _downloadOptions = commons.DownloadOptions.Metadata;
11145 var _body = null;
11146
11147 if (request != null) {
11148 _body = convert.JSON.encode((request).toJson());
11149 }
11150 if (profileId == null) {
11151 throw new core.ArgumentError("Parameter profileId is required.");
11152 }
11153
9763 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles'; 11154 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles';
11155
11156 var _response = _requester.request(_url,
11157 "POST",
11158 body: _body,
11159 queryParams: _queryParams,
11160 uploadOptions: _uploadOptions,
11161 uploadMedia: _uploadMedia,
11162 downloadOptions: _downloadOptions);
11163 return _response.then((data) => new UserRole.fromJson(data));
11164 }
11165
11166 /**
11167 * Retrieves a list of user roles, possibly filtered.
11168 *
11169 * Request parameters:
11170 *
11171 * [profileId] - User profile ID associated with this request.
11172 *
11173 * [accountUserRoleOnly] - Select only account level user roles not associated
11174 * with any specific subaccount.
11175 *
11176 * [ids] - Select only user roles with the specified IDs.
11177 *
11178 * [maxResults] - Maximum number of results to return.
11179 *
11180 * [pageToken] - Value of the nextPageToken from the previous result page.
11181 *
11182 * [searchString] - Allows searching for objects by name or ID. Wildcards (*)
11183 * are allowed. For example, "userrole*2015" will return objects with names
11184 * like "userrole June 2015", "userrole April 2015", or simply "userrole
11185 * 2015". Most of the searches also add wildcards implicitly at the start and
11186 * the end of the search string. For example, a search string of "userrole"
11187 * will match objects with name "my userrole", "userrole 2015", or simply
11188 * "userrole".
11189 *
11190 * [sortField] - Field by which to sort the list.
11191 * Possible string values are:
11192 * - "ID"
11193 * - "NAME"
11194 *
11195 * [sortOrder] - Order of sorted results, default is ASCENDING.
11196 * Possible string values are:
11197 * - "ASCENDING"
11198 * - "DESCENDING"
11199 *
11200 * [subaccountId] - Select only user roles that belong to this subaccount.
11201 *
11202 * Completes with a [UserRolesListResponse].
11203 *
11204 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11205 * error.
11206 *
11207 * If the used [http.Client] completes with an error when making a REST call,
11208 * this method will complete with the same error.
11209 */
11210 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}) {
11211 var _url = null;
11212 var _queryParams = new core.Map();
11213 var _uploadMedia = null;
11214 var _uploadOptions = null;
11215 var _downloadOptions = commons.DownloadOptions.Metadata;
11216 var _body = null;
11217
11218 if (profileId == null) {
11219 throw new core.ArgumentError("Parameter profileId is required.");
11220 }
11221 if (accountUserRoleOnly != null) {
11222 _queryParams["accountUserRoleOnly"] = ["${accountUserRoleOnly}"];
11223 }
11224 if (ids != null) {
11225 _queryParams["ids"] = ids;
11226 }
11227 if (maxResults != null) {
11228 _queryParams["maxResults"] = ["${maxResults}"];
11229 }
11230 if (pageToken != null) {
11231 _queryParams["pageToken"] = [pageToken];
11232 }
11233 if (searchString != null) {
11234 _queryParams["searchString"] = [searchString];
11235 }
11236 if (sortField != null) {
11237 _queryParams["sortField"] = [sortField];
11238 }
11239 if (sortOrder != null) {
11240 _queryParams["sortOrder"] = [sortOrder];
11241 }
11242 if (subaccountId != null) {
11243 _queryParams["subaccountId"] = [subaccountId];
11244 }
11245
11246 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles';
11247
11248 var _response = _requester.request(_url,
11249 "GET",
11250 body: _body,
11251 queryParams: _queryParams,
11252 uploadOptions: _uploadOptions,
11253 uploadMedia: _uploadMedia,
11254 downloadOptions: _downloadOptions);
11255 return _response.then((data) => new UserRolesListResponse.fromJson(data));
11256 }
11257
11258 /**
11259 * Updates an existing user role. This method supports patch semantics.
11260 *
11261 * [request] - The metadata request object.
11262 *
11263 * Request parameters:
11264 *
11265 * [profileId] - User profile ID associated with this request.
11266 *
11267 * [id] - User role ID.
11268 *
11269 * Completes with a [UserRole].
11270 *
11271 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
11272 * error.
11273 *
11274 * If the used [http.Client] completes with an error when making a REST call,
11275 * this method will complete with the same error.
11276 */
11277 async.Future<UserRole> patch(UserRole request, core.String profileId, core.Str ing id) {
11278 var _url = null;
11279 var _queryParams = new core.Map();
11280 var _uploadMedia = null;
11281 var _uploadOptions = null;
11282 var _downloadOptions = commons.DownloadOptions.Metadata;
11283 var _body = null;
11284
11285 if (request != null) {
11286 _body = convert.JSON.encode((request).toJson());
11287 }
11288 if (profileId == null) {
11289 throw new core.ArgumentError("Parameter profileId is required.");
11290 }
11291 if (id == null) {
11292 throw new core.ArgumentError("Parameter id is required.");
11293 }
11294 _queryParams["id"] = [id];
11295
11296 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use rRoles';
9764 11297
9765 var _response = _requester.request(_url, 11298 var _response = _requester.request(_url,
9766 "PATCH", 11299 "PATCH",
9767 body: _body, 11300 body: _body,
9768 queryParams: _queryParams, 11301 queryParams: _queryParams,
9769 uploadOptions: _uploadOptions, 11302 uploadOptions: _uploadOptions,
9770 uploadMedia: _uploadMedia, 11303 uploadMedia: _uploadMedia,
9771 downloadOptions: _downloadOptions); 11304 downloadOptions: _downloadOptions);
9772 return _response.then((data) => new UserRole.fromJson(data)); 11305 return _response.then((data) => new UserRole.fromJson(data));
9773 } 11306 }
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
11054 if (technologyTargeting != null) { 12587 if (technologyTargeting != null) {
11055 _json["technologyTargeting"] = (technologyTargeting).toJson(); 12588 _json["technologyTargeting"] = (technologyTargeting).toJson();
11056 } 12589 }
11057 if (type != null) { 12590 if (type != null) {
11058 _json["type"] = type; 12591 _json["type"] = type;
11059 } 12592 }
11060 return _json; 12593 return _json;
11061 } 12594 }
11062 } 12595 }
11063 12596
12597 /** Ad Slot */
12598 class AdSlot {
12599 /** Comment for this ad slot. */
12600 core.String comment;
12601 /**
12602 * Ad slot compatibility. WEB and WEB_INTERSTITIAL refer to rendering either
12603 * on desktop or on mobile devices for regular or interstitial ads
12604 * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps.
12605 * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with
12606 * the VAST standard.
12607 * Possible string values are:
12608 * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_APP"
12609 * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_APP_INTERSTITIAL"
12610 * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_IN_STREAM_VIDEO"
12611 * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_WEB"
12612 * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_WEB_INTERSTITIAL"
12613 */
12614 core.String compatibility;
12615 /** Height of this ad slot. */
12616 core.String height;
12617 /**
12618 * ID of the placement from an external platform that is linked to this ad
12619 * slot.
12620 */
12621 core.String linkedPlacementId;
12622 /** Name of this ad slot. */
12623 core.String name;
12624 /**
12625 * Payment source type of this ad slot.
12626 * Possible string values are:
12627 * - "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID"
12628 * - "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID"
12629 */
12630 core.String paymentSourceType;
12631 /** Primary ad slot of a roadblock inventory item. */
12632 core.bool primary;
12633 /** Width of this ad slot. */
12634 core.String width;
12635
12636 AdSlot();
12637
12638 AdSlot.fromJson(core.Map _json) {
12639 if (_json.containsKey("comment")) {
12640 comment = _json["comment"];
12641 }
12642 if (_json.containsKey("compatibility")) {
12643 compatibility = _json["compatibility"];
12644 }
12645 if (_json.containsKey("height")) {
12646 height = _json["height"];
12647 }
12648 if (_json.containsKey("linkedPlacementId")) {
12649 linkedPlacementId = _json["linkedPlacementId"];
12650 }
12651 if (_json.containsKey("name")) {
12652 name = _json["name"];
12653 }
12654 if (_json.containsKey("paymentSourceType")) {
12655 paymentSourceType = _json["paymentSourceType"];
12656 }
12657 if (_json.containsKey("primary")) {
12658 primary = _json["primary"];
12659 }
12660 if (_json.containsKey("width")) {
12661 width = _json["width"];
12662 }
12663 }
12664
12665 core.Map toJson() {
12666 var _json = new core.Map();
12667 if (comment != null) {
12668 _json["comment"] = comment;
12669 }
12670 if (compatibility != null) {
12671 _json["compatibility"] = compatibility;
12672 }
12673 if (height != null) {
12674 _json["height"] = height;
12675 }
12676 if (linkedPlacementId != null) {
12677 _json["linkedPlacementId"] = linkedPlacementId;
12678 }
12679 if (name != null) {
12680 _json["name"] = name;
12681 }
12682 if (paymentSourceType != null) {
12683 _json["paymentSourceType"] = paymentSourceType;
12684 }
12685 if (primary != null) {
12686 _json["primary"] = primary;
12687 }
12688 if (width != null) {
12689 _json["width"] = width;
12690 }
12691 return _json;
12692 }
12693 }
12694
11064 /** Ad List Response */ 12695 /** Ad List Response */
11065 class AdsListResponse { 12696 class AdsListResponse {
11066 /** Ad collection. */ 12697 /** Ad collection. */
11067 core.List<Ad> ads; 12698 core.List<Ad> ads;
11068 /** 12699 /**
11069 * Identifies what kind of resource this is. Value: the fixed string 12700 * Identifies what kind of resource this is. Value: the fixed string
11070 * "dfareporting#adsListResponse". 12701 * "dfareporting#adsListResponse".
11071 */ 12702 */
11072 core.String kind; 12703 core.String kind;
11073 /** Pagination token to be used for the next list operation. */ 12704 /** 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 12786 * Identifies what kind of resource this is. Value: the fixed string
11156 * "dfareporting#advertiser". 12787 * "dfareporting#advertiser".
11157 */ 12788 */
11158 core.String kind; 12789 core.String kind;
11159 /** 12790 /**
11160 * Name of this advertiser. This is a required field and must be less than 256 12791 * 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. 12792 * characters long and unique among advertisers of the same account.
11162 */ 12793 */
11163 core.String name; 12794 core.String name;
11164 /** 12795 /**
12796 * Original floodlight configuration before any sharing occurred. Set the
12797 * floodlightConfigurationId of this advertiser to
12798 * originalFloodlightConfigurationId to unshare the advertiser's current
12799 * floodlight configuration. You cannot unshare an advertiser's floodlight
12800 * configuration if the shared configuration has activities associated with
12801 * any campaign or placement.
12802 */
12803 core.String originalFloodlightConfigurationId;
12804 /**
11165 * Status of this advertiser. 12805 * Status of this advertiser.
11166 * Possible string values are: 12806 * Possible string values are:
11167 * - "APPROVED" 12807 * - "APPROVED"
11168 * - "ON_HOLD" 12808 * - "ON_HOLD"
11169 */ 12809 */
11170 core.String status; 12810 core.String status;
11171 /** 12811 /**
11172 * Subaccount ID of this advertiser.This is a read-only field that can be left 12812 * Subaccount ID of this advertiser.This is a read-only field that can be left
11173 * blank. 12813 * blank.
11174 */ 12814 */
(...skipping 28 matching lines...) Expand all
11203 } 12843 }
11204 if (_json.containsKey("idDimensionValue")) { 12844 if (_json.containsKey("idDimensionValue")) {
11205 idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); 12845 idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]);
11206 } 12846 }
11207 if (_json.containsKey("kind")) { 12847 if (_json.containsKey("kind")) {
11208 kind = _json["kind"]; 12848 kind = _json["kind"];
11209 } 12849 }
11210 if (_json.containsKey("name")) { 12850 if (_json.containsKey("name")) {
11211 name = _json["name"]; 12851 name = _json["name"];
11212 } 12852 }
12853 if (_json.containsKey("originalFloodlightConfigurationId")) {
12854 originalFloodlightConfigurationId = _json["originalFloodlightConfiguration Id"];
12855 }
11213 if (_json.containsKey("status")) { 12856 if (_json.containsKey("status")) {
11214 status = _json["status"]; 12857 status = _json["status"];
11215 } 12858 }
11216 if (_json.containsKey("subaccountId")) { 12859 if (_json.containsKey("subaccountId")) {
11217 subaccountId = _json["subaccountId"]; 12860 subaccountId = _json["subaccountId"];
11218 } 12861 }
11219 } 12862 }
11220 12863
11221 core.Map toJson() { 12864 core.Map toJson() {
11222 var _json = new core.Map(); 12865 var _json = new core.Map();
(...skipping 23 matching lines...) Expand all
11246 } 12889 }
11247 if (idDimensionValue != null) { 12890 if (idDimensionValue != null) {
11248 _json["idDimensionValue"] = (idDimensionValue).toJson(); 12891 _json["idDimensionValue"] = (idDimensionValue).toJson();
11249 } 12892 }
11250 if (kind != null) { 12893 if (kind != null) {
11251 _json["kind"] = kind; 12894 _json["kind"] = kind;
11252 } 12895 }
11253 if (name != null) { 12896 if (name != null) {
11254 _json["name"] = name; 12897 _json["name"] = name;
11255 } 12898 }
12899 if (originalFloodlightConfigurationId != null) {
12900 _json["originalFloodlightConfigurationId"] = originalFloodlightConfigurati onId;
12901 }
11256 if (status != null) { 12902 if (status != null) {
11257 _json["status"] = status; 12903 _json["status"] = status;
11258 } 12904 }
11259 if (subaccountId != null) { 12905 if (subaccountId != null) {
11260 _json["subaccountId"] = subaccountId; 12906 _json["subaccountId"] = subaccountId;
11261 } 12907 }
11262 return _json; 12908 return _json;
11263 } 12909 }
11264 } 12910 }
11265 12911
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
12681 14327
12682 /** 14328 /**
12683 * Organizes placements according to the contents of their associated webpages. 14329 * Organizes placements according to the contents of their associated webpages.
12684 */ 14330 */
12685 class ContentCategory { 14331 class ContentCategory {
12686 /** 14332 /**
12687 * Account ID of this content category. This is a read-only field that can be 14333 * Account ID of this content category. This is a read-only field that can be
12688 * left blank. 14334 * left blank.
12689 */ 14335 */
12690 core.String accountId; 14336 core.String accountId;
12691 /** Description of this content category. */
12692 core.String description;
12693 /** 14337 /**
12694 * ID of this content category. This is a read-only, auto-generated field. 14338 * ID of this content category. This is a read-only, auto-generated field.
12695 */ 14339 */
12696 core.String id; 14340 core.String id;
12697 /** 14341 /**
12698 * Identifies what kind of resource this is. Value: the fixed string 14342 * Identifies what kind of resource this is. Value: the fixed string
12699 * "dfareporting#contentCategory". 14343 * "dfareporting#contentCategory".
12700 */ 14344 */
12701 core.String kind; 14345 core.String kind;
12702 /** 14346 /**
12703 * Name of this content category. This is a required field and must be less 14347 * 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 14348 * than 256 characters long and unique among content categories of the same
12705 * account. 14349 * account.
12706 */ 14350 */
12707 core.String name; 14351 core.String name;
12708 14352
12709 ContentCategory(); 14353 ContentCategory();
12710 14354
12711 ContentCategory.fromJson(core.Map _json) { 14355 ContentCategory.fromJson(core.Map _json) {
12712 if (_json.containsKey("accountId")) { 14356 if (_json.containsKey("accountId")) {
12713 accountId = _json["accountId"]; 14357 accountId = _json["accountId"];
12714 } 14358 }
12715 if (_json.containsKey("description")) {
12716 description = _json["description"];
12717 }
12718 if (_json.containsKey("id")) { 14359 if (_json.containsKey("id")) {
12719 id = _json["id"]; 14360 id = _json["id"];
12720 } 14361 }
12721 if (_json.containsKey("kind")) { 14362 if (_json.containsKey("kind")) {
12722 kind = _json["kind"]; 14363 kind = _json["kind"];
12723 } 14364 }
12724 if (_json.containsKey("name")) { 14365 if (_json.containsKey("name")) {
12725 name = _json["name"]; 14366 name = _json["name"];
12726 } 14367 }
12727 } 14368 }
12728 14369
12729 core.Map toJson() { 14370 core.Map toJson() {
12730 var _json = new core.Map(); 14371 var _json = new core.Map();
12731 if (accountId != null) { 14372 if (accountId != null) {
12732 _json["accountId"] = accountId; 14373 _json["accountId"] = accountId;
12733 } 14374 }
12734 if (description != null) {
12735 _json["description"] = description;
12736 }
12737 if (id != null) { 14375 if (id != null) {
12738 _json["id"] = id; 14376 _json["id"] = id;
12739 } 14377 }
12740 if (kind != null) { 14378 if (kind != null) {
12741 _json["kind"] = kind; 14379 _json["kind"] = kind;
12742 } 14380 }
12743 if (name != null) { 14381 if (name != null) {
12744 _json["name"] = name; 14382 _json["name"] = name;
12745 } 14383 }
12746 return _json; 14384 return _json;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
12965 * 14603 *
12966 * Acceptable values are: 14604 * Acceptable values are:
12967 * - "APP" 14605 * - "APP"
12968 * - "APP_INTERSTITIAL" 14606 * - "APP_INTERSTITIAL"
12969 * - "IN_STREAM_VIDEO" 14607 * - "IN_STREAM_VIDEO"
12970 * - "WEB" 14608 * - "WEB"
12971 * - "WEB_INTERSTITIAL" 14609 * - "WEB_INTERSTITIAL"
12972 */ 14610 */
12973 core.List<core.String> compatibility; 14611 core.List<core.String> compatibility;
12974 /** 14612 /**
14613 * Whether Flash assets associated with the creative need to be automatically
14614 * converted to HTML5. This flag is enabled by default and users can choose to
14615 * disable it if they don't want the system to generate and use HTML5 asset
14616 * for this creative. Applicable to the following creative types:
14617 * ENHANCED_BANNER and FLASH_INPAGE.
14618 */
14619 core.bool convertFlashToHtml5;
14620 /**
12975 * List of counter events configured for the creative. Applicable to the 14621 * List of counter events configured for the creative. Applicable to the
12976 * following creative types: all RICH_MEDIA, and all VPAID. 14622 * following creative types: all RICH_MEDIA, and all VPAID.
12977 */ 14623 */
12978 core.List<CreativeCustomEvent> counterCustomEvents; 14624 core.List<CreativeCustomEvent> counterCustomEvents;
12979 /** 14625 /**
12980 * Assets associated with a creative. Applicable to all but the following 14626 * Assets associated with a creative. Applicable to all but the following
12981 * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and 14627 * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and
12982 * REDIRECT 14628 * REDIRECT
12983 */ 14629 */
12984 core.List<CreativeAsset> creativeAssets; 14630 core.List<CreativeAsset> creativeAssets;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
13171 * - "REDIRECT" 14817 * - "REDIRECT"
13172 * - "RICH_MEDIA_EXPANDING" 14818 * - "RICH_MEDIA_EXPANDING"
13173 * - "RICH_MEDIA_IM_EXPAND" 14819 * - "RICH_MEDIA_IM_EXPAND"
13174 * - "RICH_MEDIA_INPAGE" 14820 * - "RICH_MEDIA_INPAGE"
13175 * - "RICH_MEDIA_INPAGE_FLOATING" 14821 * - "RICH_MEDIA_INPAGE_FLOATING"
13176 * - "RICH_MEDIA_INTERSTITIAL_FLOAT" 14822 * - "RICH_MEDIA_INTERSTITIAL_FLOAT"
13177 * - "RICH_MEDIA_MOBILE_IN_APP" 14823 * - "RICH_MEDIA_MOBILE_IN_APP"
13178 * - "RICH_MEDIA_MULTI_FLOATING" 14824 * - "RICH_MEDIA_MULTI_FLOATING"
13179 * - "RICH_MEDIA_PEEL_DOWN" 14825 * - "RICH_MEDIA_PEEL_DOWN"
13180 * - "TRACKING_TEXT" 14826 * - "TRACKING_TEXT"
14827 * - "VAST_REDIRECT"
13181 * - "VPAID_LINEAR" 14828 * - "VPAID_LINEAR"
13182 * - "VPAID_NON_LINEAR" 14829 * - "VPAID_NON_LINEAR"
13183 */ 14830 */
13184 core.String type; 14831 core.String type;
13185 /** 14832 /**
13186 * The version number helps you keep track of multiple versions of your 14833 * 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 14834 * 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 14835 * 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 14836 * 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 14837 * 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 } 14904 }
13258 if (_json.containsKey("commercialId")) { 14905 if (_json.containsKey("commercialId")) {
13259 commercialId = _json["commercialId"]; 14906 commercialId = _json["commercialId"];
13260 } 14907 }
13261 if (_json.containsKey("companionCreatives")) { 14908 if (_json.containsKey("companionCreatives")) {
13262 companionCreatives = _json["companionCreatives"]; 14909 companionCreatives = _json["companionCreatives"];
13263 } 14910 }
13264 if (_json.containsKey("compatibility")) { 14911 if (_json.containsKey("compatibility")) {
13265 compatibility = _json["compatibility"]; 14912 compatibility = _json["compatibility"];
13266 } 14913 }
14914 if (_json.containsKey("convertFlashToHtml5")) {
14915 convertFlashToHtml5 = _json["convertFlashToHtml5"];
14916 }
13267 if (_json.containsKey("counterCustomEvents")) { 14917 if (_json.containsKey("counterCustomEvents")) {
13268 counterCustomEvents = _json["counterCustomEvents"].map((value) => new Crea tiveCustomEvent.fromJson(value)).toList(); 14918 counterCustomEvents = _json["counterCustomEvents"].map((value) => new Crea tiveCustomEvent.fromJson(value)).toList();
13269 } 14919 }
13270 if (_json.containsKey("creativeAssets")) { 14920 if (_json.containsKey("creativeAssets")) {
13271 creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset. fromJson(value)).toList(); 14921 creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset. fromJson(value)).toList();
13272 } 14922 }
13273 if (_json.containsKey("creativeFieldAssignments")) { 14923 if (_json.containsKey("creativeFieldAssignments")) {
13274 creativeFieldAssignments = _json["creativeFieldAssignments"].map((value) = > new CreativeFieldAssignment.fromJson(value)).toList(); 14924 creativeFieldAssignments = _json["creativeFieldAssignments"].map((value) = > new CreativeFieldAssignment.fromJson(value)).toList();
13275 } 14925 }
13276 if (_json.containsKey("customKeyValues")) { 14926 if (_json.containsKey("customKeyValues")) {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
13426 } 15076 }
13427 if (commercialId != null) { 15077 if (commercialId != null) {
13428 _json["commercialId"] = commercialId; 15078 _json["commercialId"] = commercialId;
13429 } 15079 }
13430 if (companionCreatives != null) { 15080 if (companionCreatives != null) {
13431 _json["companionCreatives"] = companionCreatives; 15081 _json["companionCreatives"] = companionCreatives;
13432 } 15082 }
13433 if (compatibility != null) { 15083 if (compatibility != null) {
13434 _json["compatibility"] = compatibility; 15084 _json["compatibility"] = compatibility;
13435 } 15085 }
15086 if (convertFlashToHtml5 != null) {
15087 _json["convertFlashToHtml5"] = convertFlashToHtml5;
15088 }
13436 if (counterCustomEvents != null) { 15089 if (counterCustomEvents != null) {
13437 _json["counterCustomEvents"] = counterCustomEvents.map((value) => (value). toJson()).toList(); 15090 _json["counterCustomEvents"] = counterCustomEvents.map((value) => (value). toJson()).toList();
13438 } 15091 }
13439 if (creativeAssets != null) { 15092 if (creativeAssets != null) {
13440 _json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()). toList(); 15093 _json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()). toList();
13441 } 15094 }
13442 if (creativeFieldAssignments != null) { 15095 if (creativeFieldAssignments != null) {
13443 _json["creativeFieldAssignments"] = creativeFieldAssignments.map((value) = > (value).toJson()).toList(); 15096 _json["creativeFieldAssignments"] = creativeFieldAssignments.map((value) = > (value).toJson()).toList();
13444 } 15097 }
13445 if (customKeyValues != null) { 15098 if (customKeyValues != null) {
(...skipping 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after
16031 } 17684 }
16032 if (url != null) { 17685 if (url != null) {
16033 _json["url"] = url; 17686 _json["url"] = url;
16034 } 17687 }
16035 return _json; 17688 return _json;
16036 } 17689 }
16037 } 17690 }
16038 17691
16039 /** Contains properties of a Site Directory contact. */ 17692 /** Contains properties of a Site Directory contact. */
16040 class DirectorySiteContact { 17693 class DirectorySiteContact {
17694 /** Address of this directory site contact. */
17695 core.String address;
16041 /** Email address of this directory site contact. */ 17696 /** Email address of this directory site contact. */
16042 core.String email; 17697 core.String email;
16043 /** First name of this directory site contact. */ 17698 /** First name of this directory site contact. */
16044 core.String firstName; 17699 core.String firstName;
16045 /** 17700 /**
16046 * ID of this directory site contact. This is a read-only, auto-generated 17701 * ID of this directory site contact. This is a read-only, auto-generated
16047 * field. 17702 * field.
16048 */ 17703 */
16049 core.String id; 17704 core.String id;
16050 /** 17705 /**
16051 * Identifies what kind of resource this is. Value: the fixed string 17706 * Identifies what kind of resource this is. Value: the fixed string
16052 * "dfareporting#directorySiteContact". 17707 * "dfareporting#directorySiteContact".
16053 */ 17708 */
16054 core.String kind; 17709 core.String kind;
16055 /** Last name of this directory site contact. */ 17710 /** Last name of this directory site contact. */
16056 core.String lastName; 17711 core.String lastName;
17712 /** Phone number of this directory site contact. */
17713 core.String phone;
16057 /** 17714 /**
16058 * Directory site contact role. 17715 * Directory site contact role.
16059 * Possible string values are: 17716 * Possible string values are:
16060 * - "ADMIN" 17717 * - "ADMIN"
16061 * - "EDIT" 17718 * - "EDIT"
16062 * - "VIEW" 17719 * - "VIEW"
16063 */ 17720 */
16064 core.String role; 17721 core.String role;
17722 /** Title or designation of this directory site contact. */
17723 core.String title;
16065 /** 17724 /**
16066 * Directory site contact type. 17725 * Directory site contact type.
16067 * Possible string values are: 17726 * Possible string values are:
16068 * - "BILLING" 17727 * - "BILLING"
16069 * - "OTHER" 17728 * - "OTHER"
16070 * - "SALES" 17729 * - "SALES"
16071 * - "TECHNICAL" 17730 * - "TECHNICAL"
16072 */ 17731 */
16073 core.String type; 17732 core.String type;
16074 17733
16075 DirectorySiteContact(); 17734 DirectorySiteContact();
16076 17735
16077 DirectorySiteContact.fromJson(core.Map _json) { 17736 DirectorySiteContact.fromJson(core.Map _json) {
17737 if (_json.containsKey("address")) {
17738 address = _json["address"];
17739 }
16078 if (_json.containsKey("email")) { 17740 if (_json.containsKey("email")) {
16079 email = _json["email"]; 17741 email = _json["email"];
16080 } 17742 }
16081 if (_json.containsKey("firstName")) { 17743 if (_json.containsKey("firstName")) {
16082 firstName = _json["firstName"]; 17744 firstName = _json["firstName"];
16083 } 17745 }
16084 if (_json.containsKey("id")) { 17746 if (_json.containsKey("id")) {
16085 id = _json["id"]; 17747 id = _json["id"];
16086 } 17748 }
16087 if (_json.containsKey("kind")) { 17749 if (_json.containsKey("kind")) {
16088 kind = _json["kind"]; 17750 kind = _json["kind"];
16089 } 17751 }
16090 if (_json.containsKey("lastName")) { 17752 if (_json.containsKey("lastName")) {
16091 lastName = _json["lastName"]; 17753 lastName = _json["lastName"];
16092 } 17754 }
17755 if (_json.containsKey("phone")) {
17756 phone = _json["phone"];
17757 }
16093 if (_json.containsKey("role")) { 17758 if (_json.containsKey("role")) {
16094 role = _json["role"]; 17759 role = _json["role"];
16095 } 17760 }
17761 if (_json.containsKey("title")) {
17762 title = _json["title"];
17763 }
16096 if (_json.containsKey("type")) { 17764 if (_json.containsKey("type")) {
16097 type = _json["type"]; 17765 type = _json["type"];
16098 } 17766 }
16099 } 17767 }
16100 17768
16101 core.Map toJson() { 17769 core.Map toJson() {
16102 var _json = new core.Map(); 17770 var _json = new core.Map();
17771 if (address != null) {
17772 _json["address"] = address;
17773 }
16103 if (email != null) { 17774 if (email != null) {
16104 _json["email"] = email; 17775 _json["email"] = email;
16105 } 17776 }
16106 if (firstName != null) { 17777 if (firstName != null) {
16107 _json["firstName"] = firstName; 17778 _json["firstName"] = firstName;
16108 } 17779 }
16109 if (id != null) { 17780 if (id != null) {
16110 _json["id"] = id; 17781 _json["id"] = id;
16111 } 17782 }
16112 if (kind != null) { 17783 if (kind != null) {
16113 _json["kind"] = kind; 17784 _json["kind"] = kind;
16114 } 17785 }
16115 if (lastName != null) { 17786 if (lastName != null) {
16116 _json["lastName"] = lastName; 17787 _json["lastName"] = lastName;
16117 } 17788 }
17789 if (phone != null) {
17790 _json["phone"] = phone;
17791 }
16118 if (role != null) { 17792 if (role != null) {
16119 _json["role"] = role; 17793 _json["role"] = role;
16120 } 17794 }
17795 if (title != null) {
17796 _json["title"] = title;
17797 }
16121 if (type != null) { 17798 if (type != null) {
16122 _json["type"] = type; 17799 _json["type"] = type;
16123 } 17800 }
16124 return _json; 17801 return _json;
16125 } 17802 }
16126 } 17803 }
16127 17804
16128 /** Directory Site Contact Assignment */ 17805 /** Directory Site Contact Assignment */
16129 class DirectorySiteContactAssignment { 17806 class DirectorySiteContactAssignment {
16130 /** 17807 /**
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
16373 * Possible string values are: 18050 * Possible string values are:
16374 * - "BLACKLIST" 18051 * - "BLACKLIST"
16375 * - "WHITELIST" 18052 * - "WHITELIST"
16376 */ 18053 */
16377 core.String siteFilterType; 18054 core.String siteFilterType;
16378 /** 18055 /**
16379 * Filter list of site IDs associated with this event tag. The siteFilterType 18056 * Filter list of site IDs associated with this event tag. The siteFilterType
16380 * determines whether this is a whitelist or blacklist filter. 18057 * determines whether this is a whitelist or blacklist filter.
16381 */ 18058 */
16382 core.List<core.String> siteIds; 18059 core.List<core.String> siteIds;
16383 /** Whether this tag is SSL-compliant or not. */ 18060 /** Whether this tag is SSL-compliant or not. This is a read-only field. */
16384 core.bool sslCompliant; 18061 core.bool sslCompliant;
16385 /** 18062 /**
16386 * Status of this event tag. Must be ENABLED for this event tag to fire. This 18063 * Status of this event tag. Must be ENABLED for this event tag to fire. This
16387 * is a required field. 18064 * is a required field.
16388 * Possible string values are: 18065 * Possible string values are:
16389 * - "DISABLED" 18066 * - "DISABLED"
16390 * - "ENABLED" 18067 * - "ENABLED"
16391 */ 18068 */
16392 core.String status; 18069 core.String status;
16393 /** 18070 /**
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
16785 if (kind != null) { 18462 if (kind != null) {
16786 _json["kind"] = kind; 18463 _json["kind"] = kind;
16787 } 18464 }
16788 if (nextPageToken != null) { 18465 if (nextPageToken != null) {
16789 _json["nextPageToken"] = nextPageToken; 18466 _json["nextPageToken"] = nextPageToken;
16790 } 18467 }
16791 return _json; 18468 return _json;
16792 } 18469 }
16793 } 18470 }
16794 18471
18472 /** Flight */
18473 class Flight {
18474 /** Inventory item flight end date. */
18475 core.DateTime endDate;
18476 /** Rate or cost of this flight. */
18477 core.String rateOrCost;
18478 /** Inventory item flight start date. */
18479 core.DateTime startDate;
18480 /** Units of this flight. */
18481 core.String units;
18482
18483 Flight();
18484
18485 Flight.fromJson(core.Map _json) {
18486 if (_json.containsKey("endDate")) {
18487 endDate = core.DateTime.parse(_json["endDate"]);
18488 }
18489 if (_json.containsKey("rateOrCost")) {
18490 rateOrCost = _json["rateOrCost"];
18491 }
18492 if (_json.containsKey("startDate")) {
18493 startDate = core.DateTime.parse(_json["startDate"]);
18494 }
18495 if (_json.containsKey("units")) {
18496 units = _json["units"];
18497 }
18498 }
18499
18500 core.Map toJson() {
18501 var _json = new core.Map();
18502 if (endDate != null) {
18503 _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDat e).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')} ";
18504 }
18505 if (rateOrCost != null) {
18506 _json["rateOrCost"] = rateOrCost;
18507 }
18508 if (startDate != null) {
18509 _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(st artDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft( 2, '0')}";
18510 }
18511 if (units != null) {
18512 _json["units"] = units;
18513 }
18514 return _json;
18515 }
18516 }
18517
16795 /** Floodlight Activity GenerateTag Response */ 18518 /** Floodlight Activity GenerateTag Response */
16796 class FloodlightActivitiesGenerateTagResponse { 18519 class FloodlightActivitiesGenerateTagResponse {
16797 /** Generated tag for this floodlight activity. */ 18520 /** Generated tag for this floodlight activity. */
16798 core.String floodlightActivityTag; 18521 core.String floodlightActivityTag;
16799 /** 18522 /**
16800 * Identifies what kind of resource this is. Value: the fixed string 18523 * Identifies what kind of resource this is. Value: the fixed string
16801 * "dfareporting#floodlightActivitiesGenerateTagResponse". 18524 * "dfareporting#floodlightActivitiesGenerateTagResponse".
16802 */ 18525 */
16803 core.String kind; 18526 core.String kind;
16804 18527
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
17988 if (postalCodes != null) { 19711 if (postalCodes != null) {
17989 _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList (); 19712 _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList ();
17990 } 19713 }
17991 if (regions != null) { 19714 if (regions != null) {
17992 _json["regions"] = regions.map((value) => (value).toJson()).toList(); 19715 _json["regions"] = regions.map((value) => (value).toJson()).toList();
17993 } 19716 }
17994 return _json; 19717 return _json;
17995 } 19718 }
17996 } 19719 }
17997 19720
19721 /** Represents a buy from the DoubleClick Planning inventory store. */
19722 class InventoryItem {
19723 /** Account ID of this inventory item. */
19724 core.String accountId;
19725 /**
19726 * Ad slots of this inventory item. If this inventory item represents a
19727 * standalone placement, there will be exactly one ad slot. If this inventory
19728 * item represents a placement group, there will be more than one ad slot,
19729 * each representing one child placement in that placement group.
19730 */
19731 core.List<AdSlot> adSlots;
19732 /** Advertiser ID of this inventory item. */
19733 core.String advertiserId;
19734 /** Content category ID of this inventory item. */
19735 core.String contentCategoryId;
19736 /** Estimated click-through rate of this inventory item. */
19737 core.String estimatedClickThroughRate;
19738 /** Estimated conversion rate of this inventory item. */
19739 core.String estimatedConversionRate;
19740 /** ID of this inventory item. */
19741 core.String id;
19742 /** Whether this inventory item is in plan. */
19743 core.bool inPlan;
19744 /**
19745 * Identifies what kind of resource this is. Value: the fixed string
19746 * "dfareporting#inventoryItem".
19747 */
19748 core.String kind;
19749 /** Information about the most recent modification of this inventory item. */
19750 LastModifiedInfo lastModifiedInfo;
19751 /**
19752 * Name of this inventory item. For standalone inventory items, this is the
19753 * same name as that of its only ad slot. For group inventory items, this can
19754 * differ from the name of any of its ad slots.
19755 */
19756 core.String name;
19757 /** Negotiation channel ID of this inventory item. */
19758 core.String negotiationChannelId;
19759 /** Order ID of this inventory item. */
19760 core.String orderId;
19761 /** Placement strategy ID of this inventory item. */
19762 core.String placementStrategyId;
19763 /** Pricing of this inventory item. */
19764 Pricing pricing;
19765 /** Project ID of this inventory item. */
19766 core.String projectId;
19767 /** RFP ID of this inventory item. */
19768 core.String rfpId;
19769 /** ID of the site this inventory item is associated with. */
19770 core.String siteId;
19771 /** Subaccount ID of this inventory item. */
19772 core.String subaccountId;
19773
19774 InventoryItem();
19775
19776 InventoryItem.fromJson(core.Map _json) {
19777 if (_json.containsKey("accountId")) {
19778 accountId = _json["accountId"];
19779 }
19780 if (_json.containsKey("adSlots")) {
19781 adSlots = _json["adSlots"].map((value) => new AdSlot.fromJson(value)).toLi st();
19782 }
19783 if (_json.containsKey("advertiserId")) {
19784 advertiserId = _json["advertiserId"];
19785 }
19786 if (_json.containsKey("contentCategoryId")) {
19787 contentCategoryId = _json["contentCategoryId"];
19788 }
19789 if (_json.containsKey("estimatedClickThroughRate")) {
19790 estimatedClickThroughRate = _json["estimatedClickThroughRate"];
19791 }
19792 if (_json.containsKey("estimatedConversionRate")) {
19793 estimatedConversionRate = _json["estimatedConversionRate"];
19794 }
19795 if (_json.containsKey("id")) {
19796 id = _json["id"];
19797 }
19798 if (_json.containsKey("inPlan")) {
19799 inPlan = _json["inPlan"];
19800 }
19801 if (_json.containsKey("kind")) {
19802 kind = _json["kind"];
19803 }
19804 if (_json.containsKey("lastModifiedInfo")) {
19805 lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"] );
19806 }
19807 if (_json.containsKey("name")) {
19808 name = _json["name"];
19809 }
19810 if (_json.containsKey("negotiationChannelId")) {
19811 negotiationChannelId = _json["negotiationChannelId"];
19812 }
19813 if (_json.containsKey("orderId")) {
19814 orderId = _json["orderId"];
19815 }
19816 if (_json.containsKey("placementStrategyId")) {
19817 placementStrategyId = _json["placementStrategyId"];
19818 }
19819 if (_json.containsKey("pricing")) {
19820 pricing = new Pricing.fromJson(_json["pricing"]);
19821 }
19822 if (_json.containsKey("projectId")) {
19823 projectId = _json["projectId"];
19824 }
19825 if (_json.containsKey("rfpId")) {
19826 rfpId = _json["rfpId"];
19827 }
19828 if (_json.containsKey("siteId")) {
19829 siteId = _json["siteId"];
19830 }
19831 if (_json.containsKey("subaccountId")) {
19832 subaccountId = _json["subaccountId"];
19833 }
19834 }
19835
19836 core.Map toJson() {
19837 var _json = new core.Map();
19838 if (accountId != null) {
19839 _json["accountId"] = accountId;
19840 }
19841 if (adSlots != null) {
19842 _json["adSlots"] = adSlots.map((value) => (value).toJson()).toList();
19843 }
19844 if (advertiserId != null) {
19845 _json["advertiserId"] = advertiserId;
19846 }
19847 if (contentCategoryId != null) {
19848 _json["contentCategoryId"] = contentCategoryId;
19849 }
19850 if (estimatedClickThroughRate != null) {
19851 _json["estimatedClickThroughRate"] = estimatedClickThroughRate;
19852 }
19853 if (estimatedConversionRate != null) {
19854 _json["estimatedConversionRate"] = estimatedConversionRate;
19855 }
19856 if (id != null) {
19857 _json["id"] = id;
19858 }
19859 if (inPlan != null) {
19860 _json["inPlan"] = inPlan;
19861 }
19862 if (kind != null) {
19863 _json["kind"] = kind;
19864 }
19865 if (lastModifiedInfo != null) {
19866 _json["lastModifiedInfo"] = (lastModifiedInfo).toJson();
19867 }
19868 if (name != null) {
19869 _json["name"] = name;
19870 }
19871 if (negotiationChannelId != null) {
19872 _json["negotiationChannelId"] = negotiationChannelId;
19873 }
19874 if (orderId != null) {
19875 _json["orderId"] = orderId;
19876 }
19877 if (placementStrategyId != null) {
19878 _json["placementStrategyId"] = placementStrategyId;
19879 }
19880 if (pricing != null) {
19881 _json["pricing"] = (pricing).toJson();
19882 }
19883 if (projectId != null) {
19884 _json["projectId"] = projectId;
19885 }
19886 if (rfpId != null) {
19887 _json["rfpId"] = rfpId;
19888 }
19889 if (siteId != null) {
19890 _json["siteId"] = siteId;
19891 }
19892 if (subaccountId != null) {
19893 _json["subaccountId"] = subaccountId;
19894 }
19895 return _json;
19896 }
19897 }
19898
19899 /** Inventory item List Response */
19900 class InventoryItemsListResponse {
19901 /** Inventory item collection */
19902 core.List<InventoryItem> inventoryItems;
19903 /**
19904 * Identifies what kind of resource this is. Value: the fixed string
19905 * "dfareporting#inventoryItemsListResponse".
19906 */
19907 core.String kind;
19908 /** Pagination token to be used for the next list operation. */
19909 core.String nextPageToken;
19910
19911 InventoryItemsListResponse();
19912
19913 InventoryItemsListResponse.fromJson(core.Map _json) {
19914 if (_json.containsKey("inventoryItems")) {
19915 inventoryItems = _json["inventoryItems"].map((value) => new InventoryItem. fromJson(value)).toList();
19916 }
19917 if (_json.containsKey("kind")) {
19918 kind = _json["kind"];
19919 }
19920 if (_json.containsKey("nextPageToken")) {
19921 nextPageToken = _json["nextPageToken"];
19922 }
19923 }
19924
19925 core.Map toJson() {
19926 var _json = new core.Map();
19927 if (inventoryItems != null) {
19928 _json["inventoryItems"] = inventoryItems.map((value) => (value).toJson()). toList();
19929 }
19930 if (kind != null) {
19931 _json["kind"] = kind;
19932 }
19933 if (nextPageToken != null) {
19934 _json["nextPageToken"] = nextPageToken;
19935 }
19936 return _json;
19937 }
19938 }
19939
17998 /** Key Value Targeting Expression. */ 19940 /** Key Value Targeting Expression. */
17999 class KeyValueTargetingExpression { 19941 class KeyValueTargetingExpression {
18000 /** Keyword expression being targeted by the ad. */ 19942 /** Keyword expression being targeted by the ad. */
18001 core.String expression; 19943 core.String expression;
18002 19944
18003 KeyValueTargetingExpression(); 19945 KeyValueTargetingExpression();
18004 19946
18005 KeyValueTargetingExpression.fromJson(core.Map _json) { 19947 KeyValueTargetingExpression.fromJson(core.Map _json) {
18006 if (_json.containsKey("expression")) { 19948 if (_json.containsKey("expression")) {
18007 expression = _json["expression"]; 19949 expression = _json["expression"];
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
18131 } 20073 }
18132 } 20074 }
18133 20075
18134 core.Map toJson() { 20076 core.Map toJson() {
18135 var _json = new core.Map(); 20077 var _json = new core.Map();
18136 if (time != null) { 20078 if (time != null) {
18137 _json["time"] = time; 20079 _json["time"] = time;
18138 } 20080 }
18139 return _json; 20081 return _json;
18140 } 20082 }
20083 }
20084
20085 /**
20086 * A group clause made up of list population terms representing constraints
20087 * joined by ORs.
20088 */
20089 class ListPopulationClause {
20090 /**
20091 * Terms of this list population clause. Each clause is made up of list
20092 * population terms representing constraints and are joined by ORs.
20093 */
20094 core.List<ListPopulationTerm> terms;
20095
20096 ListPopulationClause();
20097
20098 ListPopulationClause.fromJson(core.Map _json) {
20099 if (_json.containsKey("terms")) {
20100 terms = _json["terms"].map((value) => new ListPopulationTerm.fromJson(valu e)).toList();
20101 }
20102 }
20103
20104 core.Map toJson() {
20105 var _json = new core.Map();
20106 if (terms != null) {
20107 _json["terms"] = terms.map((value) => (value).toJson()).toList();
20108 }
20109 return _json;
20110 }
20111 }
20112
20113 /** Remarketing List Population Rule. */
20114 class ListPopulationRule {
20115 /**
20116 * Floodlight activity ID associated with this rule. This field can be left
20117 * blank.
20118 */
20119 core.String floodlightActivityId;
20120 /**
20121 * Name of floodlight activity associated with this rule. This is a read-only,
20122 * auto-generated field.
20123 */
20124 core.String floodlightActivityName;
20125 /**
20126 * Clauses that make up this list population rule. Clauses are joined by ANDs,
20127 * and the clauses themselves are made up of list population terms which are
20128 * joined by ORs.
20129 */
20130 core.List<ListPopulationClause> listPopulationClauses;
20131
20132 ListPopulationRule();
20133
20134 ListPopulationRule.fromJson(core.Map _json) {
20135 if (_json.containsKey("floodlightActivityId")) {
20136 floodlightActivityId = _json["floodlightActivityId"];
20137 }
20138 if (_json.containsKey("floodlightActivityName")) {
20139 floodlightActivityName = _json["floodlightActivityName"];
20140 }
20141 if (_json.containsKey("listPopulationClauses")) {
20142 listPopulationClauses = _json["listPopulationClauses"].map((value) => new ListPopulationClause.fromJson(value)).toList();
20143 }
20144 }
20145
20146 core.Map toJson() {
20147 var _json = new core.Map();
20148 if (floodlightActivityId != null) {
20149 _json["floodlightActivityId"] = floodlightActivityId;
20150 }
20151 if (floodlightActivityName != null) {
20152 _json["floodlightActivityName"] = floodlightActivityName;
20153 }
20154 if (listPopulationClauses != null) {
20155 _json["listPopulationClauses"] = listPopulationClauses.map((value) => (val ue).toJson()).toList();
20156 }
20157 return _json;
20158 }
20159 }
20160
20161 /** Remarketing List Population Rule Term. */
20162 class ListPopulationTerm {
20163 /**
20164 * Will be true if the term should check if the user is in the list and false
20165 * if the term should check if the user is not in the list. This field is only
20166 * relevant when type is set to LIST_MEMBERSHIP_TERM. False by default.
20167 */
20168 core.bool contains;
20169 /**
20170 * Whether to negate the comparison result of this term during rule
20171 * evaluation. This field is only relevant when type is left unset or set to
20172 * CUSTOM_VARIABLE_TERM or REFERRER_TERM.
20173 */
20174 core.bool negation;
20175 /**
20176 * Comparison operator of this term. This field is only relevant when type is
20177 * left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM.
20178 * Possible string values are:
20179 * - "NUM_EQUALS"
20180 * - "NUM_GREATER_THAN"
20181 * - "NUM_GREATER_THAN_EQUAL"
20182 * - "NUM_LESS_THAN"
20183 * - "NUM_LESS_THAN_EQUAL"
20184 * - "STRING_CONTAINS"
20185 * - "STRING_EQUALS"
20186 */
20187 core.String operator;
20188 /**
20189 * ID of the list in question. This field is only relevant when type is set to
20190 * LIST_MEMBERSHIP_TERM.
20191 */
20192 core.String remarketingListId;
20193 /**
20194 * List population term type determines the applicable fields in this object.
20195 * If left unset or set to CUSTOM_VARIABLE_TERM, then variableName,
20196 * variableFriendlyName, operator, value, and negation are applicable. If set
20197 * to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable.
20198 * If set to REFERRER_TERM then operator, value, and negation are applicable.
20199 * Possible string values are:
20200 * - "CUSTOM_VARIABLE_TERM"
20201 * - "LIST_MEMBERSHIP_TERM"
20202 * - "REFERRER_TERM"
20203 */
20204 core.String type;
20205 /**
20206 * Literal to compare the variable to. This field is only relevant when type
20207 * is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM.
20208 */
20209 core.String value;
20210 /**
20211 * Friendly name of this term's variable. This is a read-only, auto-generated
20212 * field. This field is only relevant when type is left unset or set to
20213 * CUSTOM_VARIABLE_TERM.
20214 */
20215 core.String variableFriendlyName;
20216 /**
20217 * Name of the variable (U1, U2, etc.) being compared in this term. This field
20218 * is only relevant when type is set to null, CUSTOM_VARIABLE_TERM or
20219 * REFERRER_TERM.
20220 */
20221 core.String variableName;
20222
20223 ListPopulationTerm();
20224
20225 ListPopulationTerm.fromJson(core.Map _json) {
20226 if (_json.containsKey("contains")) {
20227 contains = _json["contains"];
20228 }
20229 if (_json.containsKey("negation")) {
20230 negation = _json["negation"];
20231 }
20232 if (_json.containsKey("operator")) {
20233 operator = _json["operator"];
20234 }
20235 if (_json.containsKey("remarketingListId")) {
20236 remarketingListId = _json["remarketingListId"];
20237 }
20238 if (_json.containsKey("type")) {
20239 type = _json["type"];
20240 }
20241 if (_json.containsKey("value")) {
20242 value = _json["value"];
20243 }
20244 if (_json.containsKey("variableFriendlyName")) {
20245 variableFriendlyName = _json["variableFriendlyName"];
20246 }
20247 if (_json.containsKey("variableName")) {
20248 variableName = _json["variableName"];
20249 }
20250 }
20251
20252 core.Map toJson() {
20253 var _json = new core.Map();
20254 if (contains != null) {
20255 _json["contains"] = contains;
20256 }
20257 if (negation != null) {
20258 _json["negation"] = negation;
20259 }
20260 if (operator != null) {
20261 _json["operator"] = operator;
20262 }
20263 if (remarketingListId != null) {
20264 _json["remarketingListId"] = remarketingListId;
20265 }
20266 if (type != null) {
20267 _json["type"] = type;
20268 }
20269 if (value != null) {
20270 _json["value"] = value;
20271 }
20272 if (variableFriendlyName != null) {
20273 _json["variableFriendlyName"] = variableFriendlyName;
20274 }
20275 if (variableName != null) {
20276 _json["variableName"] = variableName;
20277 }
20278 return _json;
20279 }
18141 } 20280 }
18142 20281
18143 /** Remarketing List Targeting Expression. */ 20282 /** Remarketing List Targeting Expression. */
18144 class ListTargetingExpression { 20283 class ListTargetingExpression {
18145 /** Expression describing which lists are being targeted by the ad. */ 20284 /** Expression describing which lists are being targeted by the ad. */
18146 core.String expression; 20285 core.String expression;
18147 20286
18148 ListTargetingExpression(); 20287 ListTargetingExpression();
18149 20288
18150 ListTargetingExpression.fromJson(core.Map _json) { 20289 ListTargetingExpression.fromJson(core.Map _json) {
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
18726 20865
18727 OperatingSystemsListResponse.fromJson(core.Map _json) { 20866 OperatingSystemsListResponse.fromJson(core.Map _json) {
18728 if (_json.containsKey("kind")) { 20867 if (_json.containsKey("kind")) {
18729 kind = _json["kind"]; 20868 kind = _json["kind"];
18730 } 20869 }
18731 if (_json.containsKey("operatingSystems")) { 20870 if (_json.containsKey("operatingSystems")) {
18732 operatingSystems = _json["operatingSystems"].map((value) => new OperatingS ystem.fromJson(value)).toList(); 20871 operatingSystems = _json["operatingSystems"].map((value) => new OperatingS ystem.fromJson(value)).toList();
18733 } 20872 }
18734 } 20873 }
18735 20874
20875 core.Map toJson() {
20876 var _json = new core.Map();
20877 if (kind != null) {
20878 _json["kind"] = kind;
20879 }
20880 if (operatingSystems != null) {
20881 _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson ()).toList();
20882 }
20883 return _json;
20884 }
20885 }
20886
20887 /** Creative optimization activity. */
20888 class OptimizationActivity {
20889 /**
20890 * Floodlight activity ID of this optimization activity. This is a required
20891 * field.
20892 */
20893 core.String floodlightActivityId;
20894 /**
20895 * Dimension value for the ID of the floodlight activity. This is a read-only,
20896 * auto-generated field.
20897 */
20898 DimensionValue floodlightActivityIdDimensionValue;
20899 /**
20900 * Weight associated with this optimization. Must be greater than 1. The
20901 * weight assigned will be understood in proportion to the weights assigned to
20902 * the other optimization activities.
20903 */
20904 core.int weight;
20905
20906 OptimizationActivity();
20907
20908 OptimizationActivity.fromJson(core.Map _json) {
20909 if (_json.containsKey("floodlightActivityId")) {
20910 floodlightActivityId = _json["floodlightActivityId"];
20911 }
20912 if (_json.containsKey("floodlightActivityIdDimensionValue")) {
20913 floodlightActivityIdDimensionValue = new DimensionValue.fromJson(_json["fl oodlightActivityIdDimensionValue"]);
20914 }
20915 if (_json.containsKey("weight")) {
20916 weight = _json["weight"];
20917 }
20918 }
20919
20920 core.Map toJson() {
20921 var _json = new core.Map();
20922 if (floodlightActivityId != null) {
20923 _json["floodlightActivityId"] = floodlightActivityId;
20924 }
20925 if (floodlightActivityIdDimensionValue != null) {
20926 _json["floodlightActivityIdDimensionValue"] = (floodlightActivityIdDimensi onValue).toJson();
20927 }
20928 if (weight != null) {
20929 _json["weight"] = weight;
20930 }
20931 return _json;
20932 }
20933 }
20934
20935 /** Describes properties of a DoubleClick Planning order. */
20936 class Order {
20937 /** Account ID of this order. */
20938 core.String accountId;
20939 /** Advertiser ID of this order. */
20940 core.String advertiserId;
20941 /** IDs for users that have to approve documents created for this order. */
20942 core.List<core.String> approverUserProfileIds;
20943 /** Buyer invoice ID associated with this order. */
20944 core.String buyerInvoiceId;
20945 /** Name of the buyer organization. */
20946 core.String buyerOrganizationName;
20947 /** Comments in this order. */
20948 core.String comments;
20949 /** Contacts for this order. */
20950 core.List<OrderContact> contacts;
20951 /** ID of this order. This is a read-only, auto-generated field. */
20952 core.String id;
20953 /**
20954 * Identifies what kind of resource this is. Value: the fixed string
20955 * "dfareporting#order".
20956 */
20957 core.String kind;
20958 /** Information about the most recent modification of this order. */
20959 LastModifiedInfo lastModifiedInfo;
20960 /** Name of this order. */
20961 core.String name;
20962 /** Notes of this order. */
20963 core.String notes;
20964 /** ID of the terms and conditions template used in this order. */
20965 core.String planningTermId;
20966 /** Project ID of this order. */
20967 core.String projectId;
20968 /** Seller order ID associated with this order. */
20969 core.String sellerOrderId;
20970 /** Name of the seller organization. */
20971 core.String sellerOrganizationName;
20972 /** Site IDs this order is associated with. */
20973 core.List<core.String> siteId;
20974 /** Free-form site names this order is associated with. */
20975 core.List<core.String> siteNames;
20976 /** Subaccount ID of this order. */
20977 core.String subaccountId;
20978 /** Terms and conditions of this order. */
20979 core.String termsAndConditions;
20980
20981 Order();
20982
20983 Order.fromJson(core.Map _json) {
20984 if (_json.containsKey("accountId")) {
20985 accountId = _json["accountId"];
20986 }
20987 if (_json.containsKey("advertiserId")) {
20988 advertiserId = _json["advertiserId"];
20989 }
20990 if (_json.containsKey("approverUserProfileIds")) {
20991 approverUserProfileIds = _json["approverUserProfileIds"];
20992 }
20993 if (_json.containsKey("buyerInvoiceId")) {
20994 buyerInvoiceId = _json["buyerInvoiceId"];
20995 }
20996 if (_json.containsKey("buyerOrganizationName")) {
20997 buyerOrganizationName = _json["buyerOrganizationName"];
20998 }
20999 if (_json.containsKey("comments")) {
21000 comments = _json["comments"];
21001 }
21002 if (_json.containsKey("contacts")) {
21003 contacts = _json["contacts"].map((value) => new OrderContact.fromJson(valu e)).toList();
21004 }
21005 if (_json.containsKey("id")) {
21006 id = _json["id"];
21007 }
21008 if (_json.containsKey("kind")) {
21009 kind = _json["kind"];
21010 }
21011 if (_json.containsKey("lastModifiedInfo")) {
21012 lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"] );
21013 }
21014 if (_json.containsKey("name")) {
21015 name = _json["name"];
21016 }
21017 if (_json.containsKey("notes")) {
21018 notes = _json["notes"];
21019 }
21020 if (_json.containsKey("planningTermId")) {
21021 planningTermId = _json["planningTermId"];
21022 }
21023 if (_json.containsKey("projectId")) {
21024 projectId = _json["projectId"];
21025 }
21026 if (_json.containsKey("sellerOrderId")) {
21027 sellerOrderId = _json["sellerOrderId"];
21028 }
21029 if (_json.containsKey("sellerOrganizationName")) {
21030 sellerOrganizationName = _json["sellerOrganizationName"];
21031 }
21032 if (_json.containsKey("siteId")) {
21033 siteId = _json["siteId"];
21034 }
21035 if (_json.containsKey("siteNames")) {
21036 siteNames = _json["siteNames"];
21037 }
21038 if (_json.containsKey("subaccountId")) {
21039 subaccountId = _json["subaccountId"];
21040 }
21041 if (_json.containsKey("termsAndConditions")) {
21042 termsAndConditions = _json["termsAndConditions"];
21043 }
21044 }
21045
21046 core.Map toJson() {
21047 var _json = new core.Map();
21048 if (accountId != null) {
21049 _json["accountId"] = accountId;
21050 }
21051 if (advertiserId != null) {
21052 _json["advertiserId"] = advertiserId;
21053 }
21054 if (approverUserProfileIds != null) {
21055 _json["approverUserProfileIds"] = approverUserProfileIds;
21056 }
21057 if (buyerInvoiceId != null) {
21058 _json["buyerInvoiceId"] = buyerInvoiceId;
21059 }
21060 if (buyerOrganizationName != null) {
21061 _json["buyerOrganizationName"] = buyerOrganizationName;
21062 }
21063 if (comments != null) {
21064 _json["comments"] = comments;
21065 }
21066 if (contacts != null) {
21067 _json["contacts"] = contacts.map((value) => (value).toJson()).toList();
21068 }
21069 if (id != null) {
21070 _json["id"] = id;
21071 }
21072 if (kind != null) {
21073 _json["kind"] = kind;
21074 }
21075 if (lastModifiedInfo != null) {
21076 _json["lastModifiedInfo"] = (lastModifiedInfo).toJson();
21077 }
21078 if (name != null) {
21079 _json["name"] = name;
21080 }
21081 if (notes != null) {
21082 _json["notes"] = notes;
21083 }
21084 if (planningTermId != null) {
21085 _json["planningTermId"] = planningTermId;
21086 }
21087 if (projectId != null) {
21088 _json["projectId"] = projectId;
21089 }
21090 if (sellerOrderId != null) {
21091 _json["sellerOrderId"] = sellerOrderId;
21092 }
21093 if (sellerOrganizationName != null) {
21094 _json["sellerOrganizationName"] = sellerOrganizationName;
21095 }
21096 if (siteId != null) {
21097 _json["siteId"] = siteId;
21098 }
21099 if (siteNames != null) {
21100 _json["siteNames"] = siteNames;
21101 }
21102 if (subaccountId != null) {
21103 _json["subaccountId"] = subaccountId;
21104 }
21105 if (termsAndConditions != null) {
21106 _json["termsAndConditions"] = termsAndConditions;
21107 }
21108 return _json;
21109 }
21110 }
21111
21112 /** Contact of an order. */
21113 class OrderContact {
21114 /**
21115 * Free-form information about this contact. It could be any information
21116 * related to this contact in addition to type, title, name, and signature
21117 * user profile ID.
21118 */
21119 core.String contactInfo;
21120 /** Name of this contact. */
21121 core.String contactName;
21122 /** Title of this contact. */
21123 core.String contactTitle;
21124 /**
21125 * Type of this contact.
21126 * Possible string values are:
21127 * - "PLANNING_ORDER_CONTACT_BUYER_BILLING_CONTACT"
21128 * - "PLANNING_ORDER_CONTACT_BUYER_CONTACT"
21129 * - "PLANNING_ORDER_CONTACT_SELLER_CONTACT"
21130 */
21131 core.String contactType;
21132 /**
21133 * ID of the user profile containing the signature that will be embedded into
21134 * order documents.
21135 */
21136 core.String signatureUserProfileId;
21137
21138 OrderContact();
21139
21140 OrderContact.fromJson(core.Map _json) {
21141 if (_json.containsKey("contactInfo")) {
21142 contactInfo = _json["contactInfo"];
21143 }
21144 if (_json.containsKey("contactName")) {
21145 contactName = _json["contactName"];
21146 }
21147 if (_json.containsKey("contactTitle")) {
21148 contactTitle = _json["contactTitle"];
21149 }
21150 if (_json.containsKey("contactType")) {
21151 contactType = _json["contactType"];
21152 }
21153 if (_json.containsKey("signatureUserProfileId")) {
21154 signatureUserProfileId = _json["signatureUserProfileId"];
21155 }
21156 }
21157
21158 core.Map toJson() {
21159 var _json = new core.Map();
21160 if (contactInfo != null) {
21161 _json["contactInfo"] = contactInfo;
21162 }
21163 if (contactName != null) {
21164 _json["contactName"] = contactName;
21165 }
21166 if (contactTitle != null) {
21167 _json["contactTitle"] = contactTitle;
21168 }
21169 if (contactType != null) {
21170 _json["contactType"] = contactType;
21171 }
21172 if (signatureUserProfileId != null) {
21173 _json["signatureUserProfileId"] = signatureUserProfileId;
21174 }
21175 return _json;
21176 }
21177 }
21178
21179 /** Contains properties of a DoubleClick Planning order document. */
21180 class OrderDocument {
21181 /** Account ID of this order document. */
21182 core.String accountId;
21183 /** Advertiser ID of this order document. */
21184 core.String advertiserId;
21185 /**
21186 * The amended order document ID of this order document. An order document can
21187 * be created by optionally amending another order document so that the change
21188 * history can be preserved.
21189 */
21190 core.String amendedOrderDocumentId;
21191 /** IDs of users who have approved this order document. */
21192 core.List<core.String> approvedByUserProfileIds;
21193 /** Whether this order document is cancelled. */
21194 core.bool cancelled;
21195 /** Information about the creation of this order document. */
21196 LastModifiedInfo createdInfo;
21197 /** Effective date of this order document. */
21198 core.DateTime effectiveDate;
21199 /** ID of this order document. */
21200 core.String id;
21201 /**
21202 * Identifies what kind of resource this is. Value: the fixed string
21203 * "dfareporting#orderDocument".
21204 */
21205 core.String kind;
21206 /** ID of the order from which this order document is created. */
21207 core.String orderId;
21208 /** Project ID of this order document. */
21209 core.String projectId;
21210 /** Whether this order document has been signed. */
21211 core.bool signed;
21212 /** Subaccount ID of this order document. */
21213 core.String subaccountId;
21214 /** Title of this order document. */
21215 core.String title;
21216 /**
21217 * Type of this order document
21218 * Possible string values are:
21219 * - "PLANNING_ORDER_TYPE_CHANGE_ORDER"
21220 * - "PLANNING_ORDER_TYPE_INSERTION_ORDER"
21221 */
21222 core.String type;
21223
21224 OrderDocument();
21225
21226 OrderDocument.fromJson(core.Map _json) {
21227 if (_json.containsKey("accountId")) {
21228 accountId = _json["accountId"];
21229 }
21230 if (_json.containsKey("advertiserId")) {
21231 advertiserId = _json["advertiserId"];
21232 }
21233 if (_json.containsKey("amendedOrderDocumentId")) {
21234 amendedOrderDocumentId = _json["amendedOrderDocumentId"];
21235 }
21236 if (_json.containsKey("approvedByUserProfileIds")) {
21237 approvedByUserProfileIds = _json["approvedByUserProfileIds"];
21238 }
21239 if (_json.containsKey("cancelled")) {
21240 cancelled = _json["cancelled"];
21241 }
21242 if (_json.containsKey("createdInfo")) {
21243 createdInfo = new LastModifiedInfo.fromJson(_json["createdInfo"]);
21244 }
21245 if (_json.containsKey("effectiveDate")) {
21246 effectiveDate = core.DateTime.parse(_json["effectiveDate"]);
21247 }
21248 if (_json.containsKey("id")) {
21249 id = _json["id"];
21250 }
21251 if (_json.containsKey("kind")) {
21252 kind = _json["kind"];
21253 }
21254 if (_json.containsKey("orderId")) {
21255 orderId = _json["orderId"];
21256 }
21257 if (_json.containsKey("projectId")) {
21258 projectId = _json["projectId"];
21259 }
21260 if (_json.containsKey("signed")) {
21261 signed = _json["signed"];
21262 }
21263 if (_json.containsKey("subaccountId")) {
21264 subaccountId = _json["subaccountId"];
21265 }
21266 if (_json.containsKey("title")) {
21267 title = _json["title"];
21268 }
21269 if (_json.containsKey("type")) {
21270 type = _json["type"];
21271 }
21272 }
21273
21274 core.Map toJson() {
21275 var _json = new core.Map();
21276 if (accountId != null) {
21277 _json["accountId"] = accountId;
21278 }
21279 if (advertiserId != null) {
21280 _json["advertiserId"] = advertiserId;
21281 }
21282 if (amendedOrderDocumentId != null) {
21283 _json["amendedOrderDocumentId"] = amendedOrderDocumentId;
21284 }
21285 if (approvedByUserProfileIds != null) {
21286 _json["approvedByUserProfileIds"] = approvedByUserProfileIds;
21287 }
21288 if (cancelled != null) {
21289 _json["cancelled"] = cancelled;
21290 }
21291 if (createdInfo != null) {
21292 _json["createdInfo"] = (createdInfo).toJson();
21293 }
21294 if (effectiveDate != null) {
21295 _json["effectiveDate"] = "${(effectiveDate).year.toString().padLeft(4, '0' )}-${(effectiveDate).month.toString().padLeft(2, '0')}-${(effectiveDate).day.toS tring().padLeft(2, '0')}";
21296 }
21297 if (id != null) {
21298 _json["id"] = id;
21299 }
21300 if (kind != null) {
21301 _json["kind"] = kind;
21302 }
21303 if (orderId != null) {
21304 _json["orderId"] = orderId;
21305 }
21306 if (projectId != null) {
21307 _json["projectId"] = projectId;
21308 }
21309 if (signed != null) {
21310 _json["signed"] = signed;
21311 }
21312 if (subaccountId != null) {
21313 _json["subaccountId"] = subaccountId;
21314 }
21315 if (title != null) {
21316 _json["title"] = title;
21317 }
21318 if (type != null) {
21319 _json["type"] = type;
21320 }
21321 return _json;
21322 }
21323 }
21324
21325 /** Order document List Response */
21326 class OrderDocumentsListResponse {
21327 /**
21328 * Identifies what kind of resource this is. Value: the fixed string
21329 * "dfareporting#orderDocumentsListResponse".
21330 */
21331 core.String kind;
21332 /** Pagination token to be used for the next list operation. */
21333 core.String nextPageToken;
21334 /** Order document collection */
21335 core.List<OrderDocument> orderDocuments;
21336
21337 OrderDocumentsListResponse();
21338
21339 OrderDocumentsListResponse.fromJson(core.Map _json) {
21340 if (_json.containsKey("kind")) {
21341 kind = _json["kind"];
21342 }
21343 if (_json.containsKey("nextPageToken")) {
21344 nextPageToken = _json["nextPageToken"];
21345 }
21346 if (_json.containsKey("orderDocuments")) {
21347 orderDocuments = _json["orderDocuments"].map((value) => new OrderDocument. fromJson(value)).toList();
21348 }
21349 }
21350
18736 core.Map toJson() { 21351 core.Map toJson() {
18737 var _json = new core.Map(); 21352 var _json = new core.Map();
18738 if (kind != null) { 21353 if (kind != null) {
18739 _json["kind"] = kind; 21354 _json["kind"] = kind;
18740 } 21355 }
18741 if (operatingSystems != null) { 21356 if (nextPageToken != null) {
18742 _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson ()).toList(); 21357 _json["nextPageToken"] = nextPageToken;
21358 }
21359 if (orderDocuments != null) {
21360 _json["orderDocuments"] = orderDocuments.map((value) => (value).toJson()). toList();
18743 } 21361 }
18744 return _json; 21362 return _json;
18745 } 21363 }
18746 } 21364 }
18747 21365
18748 /** Creative optimization activity. */ 21366 /** Order List Response */
18749 class OptimizationActivity { 21367 class OrdersListResponse {
18750 /** 21368 /**
18751 * Floodlight activity ID of this optimization activity. This is a required 21369 * Identifies what kind of resource this is. Value: the fixed string
18752 * field. 21370 * "dfareporting#ordersListResponse".
18753 */ 21371 */
18754 core.String floodlightActivityId; 21372 core.String kind;
18755 /** 21373 /** Pagination token to be used for the next list operation. */
18756 * Dimension value for the ID of the floodlight activity. This is a read-only, 21374 core.String nextPageToken;
18757 * auto-generated field. 21375 /** Order collection. */
18758 */ 21376 core.List<Order> orders;
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 21377
18767 OptimizationActivity(); 21378 OrdersListResponse();
18768 21379
18769 OptimizationActivity.fromJson(core.Map _json) { 21380 OrdersListResponse.fromJson(core.Map _json) {
18770 if (_json.containsKey("floodlightActivityId")) { 21381 if (_json.containsKey("kind")) {
18771 floodlightActivityId = _json["floodlightActivityId"]; 21382 kind = _json["kind"];
18772 } 21383 }
18773 if (_json.containsKey("floodlightActivityIdDimensionValue")) { 21384 if (_json.containsKey("nextPageToken")) {
18774 floodlightActivityIdDimensionValue = new DimensionValue.fromJson(_json["fl oodlightActivityIdDimensionValue"]); 21385 nextPageToken = _json["nextPageToken"];
18775 } 21386 }
18776 if (_json.containsKey("weight")) { 21387 if (_json.containsKey("orders")) {
18777 weight = _json["weight"]; 21388 orders = _json["orders"].map((value) => new Order.fromJson(value)).toList( );
18778 } 21389 }
18779 } 21390 }
18780 21391
18781 core.Map toJson() { 21392 core.Map toJson() {
18782 var _json = new core.Map(); 21393 var _json = new core.Map();
18783 if (floodlightActivityId != null) { 21394 if (kind != null) {
18784 _json["floodlightActivityId"] = floodlightActivityId; 21395 _json["kind"] = kind;
18785 } 21396 }
18786 if (floodlightActivityIdDimensionValue != null) { 21397 if (nextPageToken != null) {
18787 _json["floodlightActivityIdDimensionValue"] = (floodlightActivityIdDimensi onValue).toJson(); 21398 _json["nextPageToken"] = nextPageToken;
18788 } 21399 }
18789 if (weight != null) { 21400 if (orders != null) {
18790 _json["weight"] = weight; 21401 _json["orders"] = orders.map((value) => (value).toJson()).toList();
18791 } 21402 }
18792 return _json; 21403 return _json;
18793 } 21404 }
18794 } 21405 }
18795 21406
18796 /** 21407 /**
18797 * Represents fields that are compatible to be selected for a report of type 21408 * Represents fields that are compatible to be selected for a report of type
18798 * "PATH_TO_CONVERSION". 21409 * "PATH_TO_CONVERSION".
18799 */ 21410 */
18800 class PathToConversionReportCompatibleFields { 21411 class PathToConversionReportCompatibleFields {
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
20035 } 22646 }
20036 if (title != null) { 22647 if (title != null) {
20037 _json["title"] = title; 22648 _json["title"] = title;
20038 } 22649 }
20039 return _json; 22650 return _json;
20040 } 22651 }
20041 } 22652 }
20042 22653
20043 /** Contains information about a postal code that can be targeted by ads. */ 22654 /** Contains information about a postal code that can be targeted by ads. */
20044 class PostalCode { 22655 class PostalCode {
22656 /** Postal code. This is equivalent to the id field. */
22657 core.String code;
20045 /** Country code of the country to which this postal code belongs. */ 22658 /** Country code of the country to which this postal code belongs. */
20046 core.String countryCode; 22659 core.String countryCode;
20047 /** DART ID of the country to which this postal code belongs. */ 22660 /** DART ID of the country to which this postal code belongs. */
20048 core.String countryDartId; 22661 core.String countryDartId;
20049 /** ID of this postal code. */ 22662 /** ID of this postal code. */
20050 core.String id; 22663 core.String id;
20051 /** 22664 /**
20052 * Identifies what kind of resource this is. Value: the fixed string 22665 * Identifies what kind of resource this is. Value: the fixed string
20053 * "dfareporting#postalCode". 22666 * "dfareporting#postalCode".
20054 */ 22667 */
20055 core.String kind; 22668 core.String kind;
20056 22669
20057 PostalCode(); 22670 PostalCode();
20058 22671
20059 PostalCode.fromJson(core.Map _json) { 22672 PostalCode.fromJson(core.Map _json) {
22673 if (_json.containsKey("code")) {
22674 code = _json["code"];
22675 }
20060 if (_json.containsKey("countryCode")) { 22676 if (_json.containsKey("countryCode")) {
20061 countryCode = _json["countryCode"]; 22677 countryCode = _json["countryCode"];
20062 } 22678 }
20063 if (_json.containsKey("countryDartId")) { 22679 if (_json.containsKey("countryDartId")) {
20064 countryDartId = _json["countryDartId"]; 22680 countryDartId = _json["countryDartId"];
20065 } 22681 }
20066 if (_json.containsKey("id")) { 22682 if (_json.containsKey("id")) {
20067 id = _json["id"]; 22683 id = _json["id"];
20068 } 22684 }
20069 if (_json.containsKey("kind")) { 22685 if (_json.containsKey("kind")) {
20070 kind = _json["kind"]; 22686 kind = _json["kind"];
20071 } 22687 }
20072 } 22688 }
20073 22689
20074 core.Map toJson() { 22690 core.Map toJson() {
20075 var _json = new core.Map(); 22691 var _json = new core.Map();
22692 if (code != null) {
22693 _json["code"] = code;
22694 }
20076 if (countryCode != null) { 22695 if (countryCode != null) {
20077 _json["countryCode"] = countryCode; 22696 _json["countryCode"] = countryCode;
20078 } 22697 }
20079 if (countryDartId != null) { 22698 if (countryDartId != null) {
20080 _json["countryDartId"] = countryDartId; 22699 _json["countryDartId"] = countryDartId;
20081 } 22700 }
20082 if (id != null) { 22701 if (id != null) {
20083 _json["id"] = id; 22702 _json["id"] = id;
20084 } 22703 }
20085 if (kind != null) { 22704 if (kind != null) {
(...skipping 29 matching lines...) Expand all
20115 if (kind != null) { 22734 if (kind != null) {
20116 _json["kind"] = kind; 22735 _json["kind"] = kind;
20117 } 22736 }
20118 if (postalCodes != null) { 22737 if (postalCodes != null) {
20119 _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList (); 22738 _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList ();
20120 } 22739 }
20121 return _json; 22740 return _json;
20122 } 22741 }
20123 } 22742 }
20124 22743
22744 /** Pricing Information */
22745 class Pricing {
22746 /**
22747 * Cap cost type of this inventory item.
22748 * Possible string values are:
22749 * - "PLANNING_PLACEMENT_CAP_COST_TYPE_CUMULATIVE"
22750 * - "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY"
22751 * - "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE"
22752 */
22753 core.String capCostType;
22754 /** End date of this inventory item. */
22755 core.DateTime endDate;
22756 /**
22757 * Flights of this inventory item. A flight (a.k.a. pricing period) represents
22758 * the inventory item pricing information for a specific period of time.
22759 */
22760 core.List<Flight> flights;
22761 /**
22762 * Group type of this inventory item if it represents a placement group. Is
22763 * null otherwise. There are two type of placement groups:
22764 * PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items
22765 * that acts as a single pricing point for a group of tags.
22766 * PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that
22767 * not only acts as a single pricing point, but also assumes that all the tags
22768 * in it will be served at the same time. A roadblock requires one of its
22769 * assigned inventory items to be marked as primary.
22770 * Possible string values are:
22771 * - "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE"
22772 * - "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK"
22773 */
22774 core.String groupType;
22775 /**
22776 * Pricing type of this inventory item.
22777 * Possible string values are:
22778 * - "PLANNING_PLACEMENT_PRICING_TYPE_CLICKS"
22779 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPA"
22780 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPC"
22781 * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM"
22782 * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS"
22783 * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS"
22784 * - "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS"
22785 */
22786 core.String pricingType;
22787 /** Start date of this inventory item. */
22788 core.DateTime startDate;
22789
22790 Pricing();
22791
22792 Pricing.fromJson(core.Map _json) {
22793 if (_json.containsKey("capCostType")) {
22794 capCostType = _json["capCostType"];
22795 }
22796 if (_json.containsKey("endDate")) {
22797 endDate = core.DateTime.parse(_json["endDate"]);
22798 }
22799 if (_json.containsKey("flights")) {
22800 flights = _json["flights"].map((value) => new Flight.fromJson(value)).toLi st();
22801 }
22802 if (_json.containsKey("groupType")) {
22803 groupType = _json["groupType"];
22804 }
22805 if (_json.containsKey("pricingType")) {
22806 pricingType = _json["pricingType"];
22807 }
22808 if (_json.containsKey("startDate")) {
22809 startDate = core.DateTime.parse(_json["startDate"]);
22810 }
22811 }
22812
22813 core.Map toJson() {
22814 var _json = new core.Map();
22815 if (capCostType != null) {
22816 _json["capCostType"] = capCostType;
22817 }
22818 if (endDate != null) {
22819 _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDat e).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')} ";
22820 }
22821 if (flights != null) {
22822 _json["flights"] = flights.map((value) => (value).toJson()).toList();
22823 }
22824 if (groupType != null) {
22825 _json["groupType"] = groupType;
22826 }
22827 if (pricingType != null) {
22828 _json["pricingType"] = pricingType;
22829 }
22830 if (startDate != null) {
22831 _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(st artDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft( 2, '0')}";
22832 }
22833 return _json;
22834 }
22835 }
22836
20125 /** Pricing Schedule */ 22837 /** Pricing Schedule */
20126 class PricingSchedule { 22838 class PricingSchedule {
20127 /** 22839 /**
20128 * Placement cap cost option. 22840 * Placement cap cost option.
20129 * Possible string values are: 22841 * Possible string values are:
20130 * - "CAP_COST_CUMULATIVE" 22842 * - "CAP_COST_CUMULATIVE"
20131 * - "CAP_COST_MONTHLY" 22843 * - "CAP_COST_MONTHLY"
20132 * - "CAP_COST_NONE" 22844 * - "CAP_COST_NONE"
20133 */ 22845 */
20134 core.String capCostOption; 22846 core.String capCostOption;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
20365 _json["mediaCostNanos"] = mediaCostNanos; 23077 _json["mediaCostNanos"] = mediaCostNanos;
20366 } 23078 }
20367 if (programmatic != null) { 23079 if (programmatic != null) {
20368 _json["programmatic"] = programmatic; 23080 _json["programmatic"] = programmatic;
20369 } 23081 }
20370 if (traffickerEmails != null) { 23082 if (traffickerEmails != null) {
20371 _json["traffickerEmails"] = traffickerEmails; 23083 _json["traffickerEmails"] = traffickerEmails;
20372 } 23084 }
20373 return _json; 23085 return _json;
20374 } 23086 }
23087 }
23088
23089 /** Contains properties of a DoubleClick Planning project. */
23090 class Project {
23091 /** Account ID of this project. */
23092 core.String accountId;
23093 /** Advertiser ID of this project. */
23094 core.String advertiserId;
23095 /**
23096 * Audience age group of this project.
23097 * Possible string values are:
23098 * - "PLANNING_AUDIENCE_AGE_18_24"
23099 * - "PLANNING_AUDIENCE_AGE_25_34"
23100 * - "PLANNING_AUDIENCE_AGE_35_44"
23101 * - "PLANNING_AUDIENCE_AGE_45_54"
23102 * - "PLANNING_AUDIENCE_AGE_55_64"
23103 * - "PLANNING_AUDIENCE_AGE_65_OR_MORE"
23104 * - "PLANNING_AUDIENCE_AGE_UNKNOWN"
23105 */
23106 core.String audienceAgeGroup;
23107 /**
23108 * Audience gender of this project.
23109 * Possible string values are:
23110 * - "PLANNING_AUDIENCE_GENDER_FEMALE"
23111 * - "PLANNING_AUDIENCE_GENDER_MALE"
23112 */
23113 core.String audienceGender;
23114 /**
23115 * Budget of this project in the currency specified by the current account.
23116 * The value stored in this field represents only the non-fractional amount.
23117 * For example, for USD, the smallest value that can be represented by this
23118 * field is 1 US dollar.
23119 */
23120 core.String budget;
23121 /** Client billing code of this project. */
23122 core.String clientBillingCode;
23123 /** Name of the project client. */
23124 core.String clientName;
23125 /** End date of the project. */
23126 core.DateTime endDate;
23127 /** ID of this project. This is a read-only, auto-generated field. */
23128 core.String id;
23129 /**
23130 * Identifies what kind of resource this is. Value: the fixed string
23131 * "dfareporting#project".
23132 */
23133 core.String kind;
23134 /** Information about the most recent modification of this project. */
23135 LastModifiedInfo lastModifiedInfo;
23136 /** Name of this project. */
23137 core.String name;
23138 /** Overview of this project. */
23139 core.String overview;
23140 /** Start date of the project. */
23141 core.DateTime startDate;
23142 /** Subaccount ID of this project. */
23143 core.String subaccountId;
23144 /** Number of clicks that the advertiser is targeting. */
23145 core.String targetClicks;
23146 /** Number of conversions that the advertiser is targeting. */
23147 core.String targetConversions;
23148 /** CPA that the advertiser is targeting. */
23149 core.String targetCpaNanos;
23150 /** CPC that the advertiser is targeting. */
23151 core.String targetCpcNanos;
23152 /** CPM that the advertiser is targeting. */
23153 core.String targetCpmNanos;
23154 /** Number of impressions that the advertiser is targeting. */
23155 core.String targetImpressions;
23156
23157 Project();
23158
23159 Project.fromJson(core.Map _json) {
23160 if (_json.containsKey("accountId")) {
23161 accountId = _json["accountId"];
23162 }
23163 if (_json.containsKey("advertiserId")) {
23164 advertiserId = _json["advertiserId"];
23165 }
23166 if (_json.containsKey("audienceAgeGroup")) {
23167 audienceAgeGroup = _json["audienceAgeGroup"];
23168 }
23169 if (_json.containsKey("audienceGender")) {
23170 audienceGender = _json["audienceGender"];
23171 }
23172 if (_json.containsKey("budget")) {
23173 budget = _json["budget"];
23174 }
23175 if (_json.containsKey("clientBillingCode")) {
23176 clientBillingCode = _json["clientBillingCode"];
23177 }
23178 if (_json.containsKey("clientName")) {
23179 clientName = _json["clientName"];
23180 }
23181 if (_json.containsKey("endDate")) {
23182 endDate = core.DateTime.parse(_json["endDate"]);
23183 }
23184 if (_json.containsKey("id")) {
23185 id = _json["id"];
23186 }
23187 if (_json.containsKey("kind")) {
23188 kind = _json["kind"];
23189 }
23190 if (_json.containsKey("lastModifiedInfo")) {
23191 lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"] );
23192 }
23193 if (_json.containsKey("name")) {
23194 name = _json["name"];
23195 }
23196 if (_json.containsKey("overview")) {
23197 overview = _json["overview"];
23198 }
23199 if (_json.containsKey("startDate")) {
23200 startDate = core.DateTime.parse(_json["startDate"]);
23201 }
23202 if (_json.containsKey("subaccountId")) {
23203 subaccountId = _json["subaccountId"];
23204 }
23205 if (_json.containsKey("targetClicks")) {
23206 targetClicks = _json["targetClicks"];
23207 }
23208 if (_json.containsKey("targetConversions")) {
23209 targetConversions = _json["targetConversions"];
23210 }
23211 if (_json.containsKey("targetCpaNanos")) {
23212 targetCpaNanos = _json["targetCpaNanos"];
23213 }
23214 if (_json.containsKey("targetCpcNanos")) {
23215 targetCpcNanos = _json["targetCpcNanos"];
23216 }
23217 if (_json.containsKey("targetCpmNanos")) {
23218 targetCpmNanos = _json["targetCpmNanos"];
23219 }
23220 if (_json.containsKey("targetImpressions")) {
23221 targetImpressions = _json["targetImpressions"];
23222 }
23223 }
23224
23225 core.Map toJson() {
23226 var _json = new core.Map();
23227 if (accountId != null) {
23228 _json["accountId"] = accountId;
23229 }
23230 if (advertiserId != null) {
23231 _json["advertiserId"] = advertiserId;
23232 }
23233 if (audienceAgeGroup != null) {
23234 _json["audienceAgeGroup"] = audienceAgeGroup;
23235 }
23236 if (audienceGender != null) {
23237 _json["audienceGender"] = audienceGender;
23238 }
23239 if (budget != null) {
23240 _json["budget"] = budget;
23241 }
23242 if (clientBillingCode != null) {
23243 _json["clientBillingCode"] = clientBillingCode;
23244 }
23245 if (clientName != null) {
23246 _json["clientName"] = clientName;
23247 }
23248 if (endDate != null) {
23249 _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDat e).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')} ";
23250 }
23251 if (id != null) {
23252 _json["id"] = id;
23253 }
23254 if (kind != null) {
23255 _json["kind"] = kind;
23256 }
23257 if (lastModifiedInfo != null) {
23258 _json["lastModifiedInfo"] = (lastModifiedInfo).toJson();
23259 }
23260 if (name != null) {
23261 _json["name"] = name;
23262 }
23263 if (overview != null) {
23264 _json["overview"] = overview;
23265 }
23266 if (startDate != null) {
23267 _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(st artDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft( 2, '0')}";
23268 }
23269 if (subaccountId != null) {
23270 _json["subaccountId"] = subaccountId;
23271 }
23272 if (targetClicks != null) {
23273 _json["targetClicks"] = targetClicks;
23274 }
23275 if (targetConversions != null) {
23276 _json["targetConversions"] = targetConversions;
23277 }
23278 if (targetCpaNanos != null) {
23279 _json["targetCpaNanos"] = targetCpaNanos;
23280 }
23281 if (targetCpcNanos != null) {
23282 _json["targetCpcNanos"] = targetCpcNanos;
23283 }
23284 if (targetCpmNanos != null) {
23285 _json["targetCpmNanos"] = targetCpmNanos;
23286 }
23287 if (targetImpressions != null) {
23288 _json["targetImpressions"] = targetImpressions;
23289 }
23290 return _json;
23291 }
23292 }
23293
23294 /** Project List Response */
23295 class ProjectsListResponse {
23296 /**
23297 * Identifies what kind of resource this is. Value: the fixed string
23298 * "dfareporting#projectsListResponse".
23299 */
23300 core.String kind;
23301 /** Pagination token to be used for the next list operation. */
23302 core.String nextPageToken;
23303 /** Project collection. */
23304 core.List<Project> projects;
23305
23306 ProjectsListResponse();
23307
23308 ProjectsListResponse.fromJson(core.Map _json) {
23309 if (_json.containsKey("kind")) {
23310 kind = _json["kind"];
23311 }
23312 if (_json.containsKey("nextPageToken")) {
23313 nextPageToken = _json["nextPageToken"];
23314 }
23315 if (_json.containsKey("projects")) {
23316 projects = _json["projects"].map((value) => new Project.fromJson(value)).t oList();
23317 }
23318 }
23319
23320 core.Map toJson() {
23321 var _json = new core.Map();
23322 if (kind != null) {
23323 _json["kind"] = kind;
23324 }
23325 if (nextPageToken != null) {
23326 _json["nextPageToken"] = nextPageToken;
23327 }
23328 if (projects != null) {
23329 _json["projects"] = projects.map((value) => (value).toJson()).toList();
23330 }
23331 return _json;
23332 }
20375 } 23333 }
20376 23334
20377 /** 23335 /**
20378 * Represents fields that are compatible to be selected for a report of type 23336 * Represents fields that are compatible to be selected for a report of type
20379 * "REACH". 23337 * "REACH".
20380 */ 23338 */
20381 class ReachReportCompatibleFields { 23339 class ReachReportCompatibleFields {
20382 /** 23340 /**
20383 * Dimensions which are compatible to be selected in the "dimensionFilters" 23341 * Dimensions which are compatible to be selected in the "dimensionFilters"
20384 * section of the report. 23342 * section of the report.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
20579 23537
20580 RegionsListResponse.fromJson(core.Map _json) { 23538 RegionsListResponse.fromJson(core.Map _json) {
20581 if (_json.containsKey("kind")) { 23539 if (_json.containsKey("kind")) {
20582 kind = _json["kind"]; 23540 kind = _json["kind"];
20583 } 23541 }
20584 if (_json.containsKey("regions")) { 23542 if (_json.containsKey("regions")) {
20585 regions = _json["regions"].map((value) => new Region.fromJson(value)).toLi st(); 23543 regions = _json["regions"].map((value) => new Region.fromJson(value)).toLi st();
20586 } 23544 }
20587 } 23545 }
20588 23546
23547 core.Map toJson() {
23548 var _json = new core.Map();
23549 if (kind != null) {
23550 _json["kind"] = kind;
23551 }
23552 if (regions != null) {
23553 _json["regions"] = regions.map((value) => (value).toJson()).toList();
23554 }
23555 return _json;
23556 }
23557 }
23558
23559 /**
23560 * Contains properties of a remarketing list. Remarketing enables you to create
23561 * lists of users who have performed specific actions on a site, then target ads
23562 * to members of those lists. This resource can be used to manage remarketing
23563 * lists that are owned by your advertisers. To see all remarketing lists that
23564 * are visible to your advertisers, including those that are shared to your
23565 * advertiser or account, use the TargetableRemarketingLists resource.
23566 */
23567 class RemarketingList {
23568 /**
23569 * Account ID of this remarketing list. This is a read-only, auto-generated
23570 * field that is only returned in GET requests.
23571 */
23572 core.String accountId;
23573 /** Whether this remarketing list is active. */
23574 core.bool active;
23575 /**
23576 * Dimension value for the advertiser ID that owns this remarketing list. This
23577 * is a required field.
23578 */
23579 core.String advertiserId;
23580 /**
23581 * Dimension value for the ID of the advertiser. This is a read-only,
23582 * auto-generated field.
23583 */
23584 DimensionValue advertiserIdDimensionValue;
23585 /** Remarketing list description. */
23586 core.String description;
23587 /** Remarketing list ID. This is a read-only, auto-generated field. */
23588 core.String id;
23589 /**
23590 * Identifies what kind of resource this is. Value: the fixed string
23591 * "dfareporting#remarketingList".
23592 */
23593 core.String kind;
23594 /**
23595 * Number of days that a user should remain in the remarketing list without an
23596 * impression.
23597 */
23598 core.String lifeSpan;
23599 /** Rule used to populate the remarketing list with users. */
23600 ListPopulationRule listPopulationRule;
23601 /** Number of users currently in the list. This is a read-only field. */
23602 core.String listSize;
23603 /**
23604 * Product from which this remarketing list was originated.
23605 * Possible string values are:
23606 * - "REMARKETING_LIST_SOURCE_DBM"
23607 * - "REMARKETING_LIST_SOURCE_DFA"
23608 * - "REMARKETING_LIST_SOURCE_DMP"
23609 * - "REMARKETING_LIST_SOURCE_GA"
23610 * - "REMARKETING_LIST_SOURCE_OTHER"
23611 */
23612 core.String listSource;
23613 /**
23614 * Name of the remarketing list. This is a required field. Must be no greater
23615 * than 128 characters long.
23616 */
23617 core.String name;
23618 /**
23619 * Subaccount ID of this remarketing list. This is a read-only, auto-generated
23620 * field that is only returned in GET requests.
23621 */
23622 core.String subaccountId;
23623
23624 RemarketingList();
23625
23626 RemarketingList.fromJson(core.Map _json) {
23627 if (_json.containsKey("accountId")) {
23628 accountId = _json["accountId"];
23629 }
23630 if (_json.containsKey("active")) {
23631 active = _json["active"];
23632 }
23633 if (_json.containsKey("advertiserId")) {
23634 advertiserId = _json["advertiserId"];
23635 }
23636 if (_json.containsKey("advertiserIdDimensionValue")) {
23637 advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiser IdDimensionValue"]);
23638 }
23639 if (_json.containsKey("description")) {
23640 description = _json["description"];
23641 }
23642 if (_json.containsKey("id")) {
23643 id = _json["id"];
23644 }
23645 if (_json.containsKey("kind")) {
23646 kind = _json["kind"];
23647 }
23648 if (_json.containsKey("lifeSpan")) {
23649 lifeSpan = _json["lifeSpan"];
23650 }
23651 if (_json.containsKey("listPopulationRule")) {
23652 listPopulationRule = new ListPopulationRule.fromJson(_json["listPopulation Rule"]);
23653 }
23654 if (_json.containsKey("listSize")) {
23655 listSize = _json["listSize"];
23656 }
23657 if (_json.containsKey("listSource")) {
23658 listSource = _json["listSource"];
23659 }
23660 if (_json.containsKey("name")) {
23661 name = _json["name"];
23662 }
23663 if (_json.containsKey("subaccountId")) {
23664 subaccountId = _json["subaccountId"];
23665 }
23666 }
23667
23668 core.Map toJson() {
23669 var _json = new core.Map();
23670 if (accountId != null) {
23671 _json["accountId"] = accountId;
23672 }
23673 if (active != null) {
23674 _json["active"] = active;
23675 }
23676 if (advertiserId != null) {
23677 _json["advertiserId"] = advertiserId;
23678 }
23679 if (advertiserIdDimensionValue != null) {
23680 _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson( );
23681 }
23682 if (description != null) {
23683 _json["description"] = description;
23684 }
23685 if (id != null) {
23686 _json["id"] = id;
23687 }
23688 if (kind != null) {
23689 _json["kind"] = kind;
23690 }
23691 if (lifeSpan != null) {
23692 _json["lifeSpan"] = lifeSpan;
23693 }
23694 if (listPopulationRule != null) {
23695 _json["listPopulationRule"] = (listPopulationRule).toJson();
23696 }
23697 if (listSize != null) {
23698 _json["listSize"] = listSize;
23699 }
23700 if (listSource != null) {
23701 _json["listSource"] = listSource;
23702 }
23703 if (name != null) {
23704 _json["name"] = name;
23705 }
23706 if (subaccountId != null) {
23707 _json["subaccountId"] = subaccountId;
23708 }
23709 return _json;
23710 }
23711 }
23712
23713 /**
23714 * Contains properties of a remarketing list's sharing information. Sharing
23715 * allows other accounts or advertisers to target to your remarketing lists.
23716 * This resource can be used to manage remarketing list sharing to other
23717 * accounts and advertisers.
23718 */
23719 class RemarketingListShare {
23720 /**
23721 * Identifies what kind of resource this is. Value: the fixed string
23722 * "dfareporting#remarketingListShare".
23723 */
23724 core.String kind;
23725 /** Remarketing list ID. This is a read-only, auto-generated field. */
23726 core.String remarketingListId;
23727 /** Accounts that the remarketing list is shared with. */
23728 core.List<core.String> sharedAccountIds;
23729 /** Advertisers that the remarketing list is shared with. */
23730 core.List<core.String> sharedAdvertiserIds;
23731
23732 RemarketingListShare();
23733
23734 RemarketingListShare.fromJson(core.Map _json) {
23735 if (_json.containsKey("kind")) {
23736 kind = _json["kind"];
23737 }
23738 if (_json.containsKey("remarketingListId")) {
23739 remarketingListId = _json["remarketingListId"];
23740 }
23741 if (_json.containsKey("sharedAccountIds")) {
23742 sharedAccountIds = _json["sharedAccountIds"];
23743 }
23744 if (_json.containsKey("sharedAdvertiserIds")) {
23745 sharedAdvertiserIds = _json["sharedAdvertiserIds"];
23746 }
23747 }
23748
23749 core.Map toJson() {
23750 var _json = new core.Map();
23751 if (kind != null) {
23752 _json["kind"] = kind;
23753 }
23754 if (remarketingListId != null) {
23755 _json["remarketingListId"] = remarketingListId;
23756 }
23757 if (sharedAccountIds != null) {
23758 _json["sharedAccountIds"] = sharedAccountIds;
23759 }
23760 if (sharedAdvertiserIds != null) {
23761 _json["sharedAdvertiserIds"] = sharedAdvertiserIds;
23762 }
23763 return _json;
23764 }
23765 }
23766
23767 /** Remarketing list response */
23768 class RemarketingListsListResponse {
23769 /**
23770 * Identifies what kind of resource this is. Value: the fixed string
23771 * "dfareporting#remarketingListsListResponse".
23772 */
23773 core.String kind;
23774 /** Pagination token to be used for the next list operation. */
23775 core.String nextPageToken;
23776 /** Remarketing list collection. */
23777 core.List<RemarketingList> remarketingLists;
23778
23779 RemarketingListsListResponse();
23780
23781 RemarketingListsListResponse.fromJson(core.Map _json) {
23782 if (_json.containsKey("kind")) {
23783 kind = _json["kind"];
23784 }
23785 if (_json.containsKey("nextPageToken")) {
23786 nextPageToken = _json["nextPageToken"];
23787 }
23788 if (_json.containsKey("remarketingLists")) {
23789 remarketingLists = _json["remarketingLists"].map((value) => new Remarketin gList.fromJson(value)).toList();
23790 }
23791 }
23792
20589 core.Map toJson() { 23793 core.Map toJson() {
20590 var _json = new core.Map(); 23794 var _json = new core.Map();
20591 if (kind != null) { 23795 if (kind != null) {
20592 _json["kind"] = kind; 23796 _json["kind"] = kind;
20593 } 23797 }
20594 if (regions != null) { 23798 if (nextPageToken != null) {
20595 _json["regions"] = regions.map((value) => (value).toJson()).toList(); 23799 _json["nextPageToken"] = nextPageToken;
23800 }
23801 if (remarketingLists != null) {
23802 _json["remarketingLists"] = remarketingLists.map((value) => (value).toJson ()).toList();
20596 } 23803 }
20597 return _json; 23804 return _json;
20598 } 23805 }
20599 } 23806 }
20600 23807
20601 /** The report criteria for a report of type "STANDARD". */ 23808 /** The report criteria for a report of type "STANDARD". */
20602 class ReportCriteria { 23809 class ReportCriteria {
20603 /** Activity group. */ 23810 /** Activity group. */
20604 Activities activities; 23811 Activities activities;
20605 /** Custom Rich Media Events group. */ 23812 /** Custom Rich Media Events group. */
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
21838 } 25045 }
21839 if (subaccountId != null) { 25046 if (subaccountId != null) {
21840 _json["subaccountId"] = subaccountId; 25047 _json["subaccountId"] = subaccountId;
21841 } 25048 }
21842 return _json; 25049 return _json;
21843 } 25050 }
21844 } 25051 }
21845 25052
21846 /** Site Contact */ 25053 /** Site Contact */
21847 class SiteContact { 25054 class SiteContact {
25055 /** Address of this site contact. */
25056 core.String address;
21848 /** 25057 /**
21849 * Site contact type. 25058 * Site contact type.
21850 * Possible string values are: 25059 * Possible string values are:
21851 * - "SALES_PERSON" 25060 * - "SALES_PERSON"
21852 * - "TRAFFICKER" 25061 * - "TRAFFICKER"
21853 */ 25062 */
21854 core.String contactType; 25063 core.String contactType;
21855 /** Email address of this site contact. This is a required field. */ 25064 /** Email address of this site contact. This is a required field. */
21856 core.String email; 25065 core.String email;
21857 /** First name of this site contact. */ 25066 /** First name of this site contact. */
21858 core.String firstName; 25067 core.String firstName;
21859 /** ID of this site contact. This is a read-only, auto-generated field. */ 25068 /** ID of this site contact. This is a read-only, auto-generated field. */
21860 core.String id; 25069 core.String id;
21861 /** Last name of this site contact. */ 25070 /** Last name of this site contact. */
21862 core.String lastName; 25071 core.String lastName;
25072 /** Primary phone number of this site contact. */
25073 core.String phone;
25074 /** Title or designation of this site contact. */
25075 core.String title;
21863 25076
21864 SiteContact(); 25077 SiteContact();
21865 25078
21866 SiteContact.fromJson(core.Map _json) { 25079 SiteContact.fromJson(core.Map _json) {
25080 if (_json.containsKey("address")) {
25081 address = _json["address"];
25082 }
21867 if (_json.containsKey("contactType")) { 25083 if (_json.containsKey("contactType")) {
21868 contactType = _json["contactType"]; 25084 contactType = _json["contactType"];
21869 } 25085 }
21870 if (_json.containsKey("email")) { 25086 if (_json.containsKey("email")) {
21871 email = _json["email"]; 25087 email = _json["email"];
21872 } 25088 }
21873 if (_json.containsKey("firstName")) { 25089 if (_json.containsKey("firstName")) {
21874 firstName = _json["firstName"]; 25090 firstName = _json["firstName"];
21875 } 25091 }
21876 if (_json.containsKey("id")) { 25092 if (_json.containsKey("id")) {
21877 id = _json["id"]; 25093 id = _json["id"];
21878 } 25094 }
21879 if (_json.containsKey("lastName")) { 25095 if (_json.containsKey("lastName")) {
21880 lastName = _json["lastName"]; 25096 lastName = _json["lastName"];
21881 } 25097 }
25098 if (_json.containsKey("phone")) {
25099 phone = _json["phone"];
25100 }
25101 if (_json.containsKey("title")) {
25102 title = _json["title"];
25103 }
21882 } 25104 }
21883 25105
21884 core.Map toJson() { 25106 core.Map toJson() {
21885 var _json = new core.Map(); 25107 var _json = new core.Map();
25108 if (address != null) {
25109 _json["address"] = address;
25110 }
21886 if (contactType != null) { 25111 if (contactType != null) {
21887 _json["contactType"] = contactType; 25112 _json["contactType"] = contactType;
21888 } 25113 }
21889 if (email != null) { 25114 if (email != null) {
21890 _json["email"] = email; 25115 _json["email"] = email;
21891 } 25116 }
21892 if (firstName != null) { 25117 if (firstName != null) {
21893 _json["firstName"] = firstName; 25118 _json["firstName"] = firstName;
21894 } 25119 }
21895 if (id != null) { 25120 if (id != null) {
21896 _json["id"] = id; 25121 _json["id"] = id;
21897 } 25122 }
21898 if (lastName != null) { 25123 if (lastName != null) {
21899 _json["lastName"] = lastName; 25124 _json["lastName"] = lastName;
21900 } 25125 }
25126 if (phone != null) {
25127 _json["phone"] = phone;
25128 }
25129 if (title != null) {
25130 _json["title"] = title;
25131 }
21901 return _json; 25132 return _json;
21902 } 25133 }
21903 } 25134 }
21904 25135
21905 /** Site Settings */ 25136 /** Site Settings */
21906 class SiteSettings { 25137 class SiteSettings {
21907 /** Whether active view creatives are disabled for this site. */ 25138 /** Whether active view creatives are disabled for this site. */
21908 core.bool activeViewOptOut; 25139 core.bool activeViewOptOut;
21909 /** Site-wide creative settings. */ 25140 /** Site-wide creative settings. */
21910 CreativeSettings creativeSettings; 25141 CreativeSettings creativeSettings;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
21966 25197
21967 /** Site List Response */ 25198 /** Site List Response */
21968 class SitesListResponse { 25199 class SitesListResponse {
21969 /** 25200 /**
21970 * Identifies what kind of resource this is. Value: the fixed string 25201 * Identifies what kind of resource this is. Value: the fixed string
21971 * "dfareporting#sitesListResponse". 25202 * "dfareporting#sitesListResponse".
21972 */ 25203 */
21973 core.String kind; 25204 core.String kind;
21974 /** Pagination token to be used for the next list operation. */ 25205 /** Pagination token to be used for the next list operation. */
21975 core.String nextPageToken; 25206 core.String nextPageToken;
21976 /** Site collection */ 25207 /** Site collection. */
21977 core.List<Site> sites; 25208 core.List<Site> sites;
21978 25209
21979 SitesListResponse(); 25210 SitesListResponse();
21980 25211
21981 SitesListResponse.fromJson(core.Map _json) { 25212 SitesListResponse.fromJson(core.Map _json) {
21982 if (_json.containsKey("kind")) { 25213 if (_json.containsKey("kind")) {
21983 kind = _json["kind"]; 25214 kind = _json["kind"];
21984 } 25215 }
21985 if (_json.containsKey("nextPageToken")) { 25216 if (_json.containsKey("nextPageToken")) {
21986 nextPageToken = _json["nextPageToken"]; 25217 nextPageToken = _json["nextPageToken"];
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
22253 /** Tag string to record a click. */ 25484 /** Tag string to record a click. */
22254 core.String clickTag; 25485 core.String clickTag;
22255 /** Creative associated with this placement tag. */ 25486 /** Creative associated with this placement tag. */
22256 core.String creativeId; 25487 core.String creativeId;
22257 /** 25488 /**
22258 * TagData tag format of this tag. 25489 * TagData tag format of this tag.
22259 * Possible string values are: 25490 * Possible string values are:
22260 * - "PLACEMENT_TAG_CLICK_COMMANDS" 25491 * - "PLACEMENT_TAG_CLICK_COMMANDS"
22261 * - "PLACEMENT_TAG_IFRAME_ILAYER" 25492 * - "PLACEMENT_TAG_IFRAME_ILAYER"
22262 * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" 25493 * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
25494 * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY"
22263 * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" 25495 * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
25496 * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
22264 * - "PLACEMENT_TAG_INTERNAL_REDIRECT" 25497 * - "PLACEMENT_TAG_INTERNAL_REDIRECT"
22265 * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" 25498 * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
25499 * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY"
22266 * - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" 25500 * - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
22267 * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" 25501 * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
25502 * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY"
22268 * - "PLACEMENT_TAG_JAVASCRIPT" 25503 * - "PLACEMENT_TAG_JAVASCRIPT"
25504 * - "PLACEMENT_TAG_JAVASCRIPT_LEGACY"
22269 * - "PLACEMENT_TAG_STANDARD" 25505 * - "PLACEMENT_TAG_STANDARD"
22270 * - "PLACEMENT_TAG_TRACKING" 25506 * - "PLACEMENT_TAG_TRACKING"
22271 * - "PLACEMENT_TAG_TRACKING_IFRAME" 25507 * - "PLACEMENT_TAG_TRACKING_IFRAME"
22272 * - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" 25508 * - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
22273 */ 25509 */
22274 core.String format; 25510 core.String format;
22275 /** Tag string for serving an ad. */ 25511 /** Tag string for serving an ad. */
22276 core.String impressionTag; 25512 core.String impressionTag;
22277 25513
22278 TagData(); 25514 TagData();
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
22438 if (customHtml != null) { 25674 if (customHtml != null) {
22439 _json["customHtml"] = customHtml; 25675 _json["customHtml"] = customHtml;
22440 } 25676 }
22441 if (targetWindowOption != null) { 25677 if (targetWindowOption != null) {
22442 _json["targetWindowOption"] = targetWindowOption; 25678 _json["targetWindowOption"] = targetWindowOption;
22443 } 25679 }
22444 return _json; 25680 return _json;
22445 } 25681 }
22446 } 25682 }
22447 25683
25684 /**
25685 * Contains properties of a targetable remarketing list. Remarketing enables you
25686 * to create lists of users who have performed specific actions on a site, then
25687 * target ads to members of those lists. This resource is a read-only view of a
25688 * remarketing list to be used to faciliate targeting ads to specific lists.
25689 * Remarketing lists that are owned by your advertisers and those that are
25690 * shared to your advertisers or account are accessible via this resource. To
25691 * manage remarketing lists that are owned by your advertisers, use the
25692 * RemarketingLists resource.
25693 */
25694 class TargetableRemarketingList {
25695 /**
25696 * Account ID of this remarketing list. This is a read-only, auto-generated
25697 * field that is only returned in GET requests.
25698 */
25699 core.String accountId;
25700 /** Whether this targetable remarketing list is active. */
25701 core.bool active;
25702 /**
25703 * Dimension value for the advertiser ID that owns this targetable remarketing
25704 * list.
25705 */
25706 core.String advertiserId;
25707 /** Dimension value for the ID of the advertiser. */
25708 DimensionValue advertiserIdDimensionValue;
25709 /** Targetable remarketing list description. */
25710 core.String description;
25711 /** Targetable remarketing list ID. */
25712 core.String id;
25713 /**
25714 * Identifies what kind of resource this is. Value: the fixed string
25715 * "dfareporting#targetableRemarketingList".
25716 */
25717 core.String kind;
25718 /**
25719 * Number of days that a user should remain in the targetable remarketing list
25720 * without an impression.
25721 */
25722 core.String lifeSpan;
25723 /** Number of users currently in the list. This is a read-only field. */
25724 core.String listSize;
25725 /**
25726 * Product from which this targetable remarketing list was originated.
25727 * Possible string values are:
25728 * - "REMARKETING_LIST_SOURCE_DBM"
25729 * - "REMARKETING_LIST_SOURCE_DFA"
25730 * - "REMARKETING_LIST_SOURCE_DMP"
25731 * - "REMARKETING_LIST_SOURCE_GA"
25732 * - "REMARKETING_LIST_SOURCE_OTHER"
25733 */
25734 core.String listSource;
25735 /**
25736 * Name of the targetable remarketing list. Is no greater than 128 characters
25737 * long.
25738 */
25739 core.String name;
25740 /**
25741 * Subaccount ID of this remarketing list. This is a read-only, auto-generated
25742 * field that is only returned in GET requests.
25743 */
25744 core.String subaccountId;
25745
25746 TargetableRemarketingList();
25747
25748 TargetableRemarketingList.fromJson(core.Map _json) {
25749 if (_json.containsKey("accountId")) {
25750 accountId = _json["accountId"];
25751 }
25752 if (_json.containsKey("active")) {
25753 active = _json["active"];
25754 }
25755 if (_json.containsKey("advertiserId")) {
25756 advertiserId = _json["advertiserId"];
25757 }
25758 if (_json.containsKey("advertiserIdDimensionValue")) {
25759 advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiser IdDimensionValue"]);
25760 }
25761 if (_json.containsKey("description")) {
25762 description = _json["description"];
25763 }
25764 if (_json.containsKey("id")) {
25765 id = _json["id"];
25766 }
25767 if (_json.containsKey("kind")) {
25768 kind = _json["kind"];
25769 }
25770 if (_json.containsKey("lifeSpan")) {
25771 lifeSpan = _json["lifeSpan"];
25772 }
25773 if (_json.containsKey("listSize")) {
25774 listSize = _json["listSize"];
25775 }
25776 if (_json.containsKey("listSource")) {
25777 listSource = _json["listSource"];
25778 }
25779 if (_json.containsKey("name")) {
25780 name = _json["name"];
25781 }
25782 if (_json.containsKey("subaccountId")) {
25783 subaccountId = _json["subaccountId"];
25784 }
25785 }
25786
25787 core.Map toJson() {
25788 var _json = new core.Map();
25789 if (accountId != null) {
25790 _json["accountId"] = accountId;
25791 }
25792 if (active != null) {
25793 _json["active"] = active;
25794 }
25795 if (advertiserId != null) {
25796 _json["advertiserId"] = advertiserId;
25797 }
25798 if (advertiserIdDimensionValue != null) {
25799 _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson( );
25800 }
25801 if (description != null) {
25802 _json["description"] = description;
25803 }
25804 if (id != null) {
25805 _json["id"] = id;
25806 }
25807 if (kind != null) {
25808 _json["kind"] = kind;
25809 }
25810 if (lifeSpan != null) {
25811 _json["lifeSpan"] = lifeSpan;
25812 }
25813 if (listSize != null) {
25814 _json["listSize"] = listSize;
25815 }
25816 if (listSource != null) {
25817 _json["listSource"] = listSource;
25818 }
25819 if (name != null) {
25820 _json["name"] = name;
25821 }
25822 if (subaccountId != null) {
25823 _json["subaccountId"] = subaccountId;
25824 }
25825 return _json;
25826 }
25827 }
25828
25829 /** Targetable remarketing list response */
25830 class TargetableRemarketingListsListResponse {
25831 /**
25832 * Identifies what kind of resource this is. Value: the fixed string
25833 * "dfareporting#targetableRemarketingListsListResponse".
25834 */
25835 core.String kind;
25836 /** Pagination token to be used for the next list operation. */
25837 core.String nextPageToken;
25838 /** Targetable remarketing list collection. */
25839 core.List<TargetableRemarketingList> targetableRemarketingLists;
25840
25841 TargetableRemarketingListsListResponse();
25842
25843 TargetableRemarketingListsListResponse.fromJson(core.Map _json) {
25844 if (_json.containsKey("kind")) {
25845 kind = _json["kind"];
25846 }
25847 if (_json.containsKey("nextPageToken")) {
25848 nextPageToken = _json["nextPageToken"];
25849 }
25850 if (_json.containsKey("targetableRemarketingLists")) {
25851 targetableRemarketingLists = _json["targetableRemarketingLists"].map((valu e) => new TargetableRemarketingList.fromJson(value)).toList();
25852 }
25853 }
25854
25855 core.Map toJson() {
25856 var _json = new core.Map();
25857 if (kind != null) {
25858 _json["kind"] = kind;
25859 }
25860 if (nextPageToken != null) {
25861 _json["nextPageToken"] = nextPageToken;
25862 }
25863 if (targetableRemarketingLists != null) {
25864 _json["targetableRemarketingLists"] = targetableRemarketingLists.map((valu e) => (value).toJson()).toList();
25865 }
25866 return _json;
25867 }
25868 }
25869
22448 /** Technology Targeting. */ 25870 /** Technology Targeting. */
22449 class TechnologyTargeting { 25871 class TechnologyTargeting {
22450 /** 25872 /**
22451 * Browsers that this ad targets. For each browser either set browserVersionId 25873 * Browsers that this ad targets. For each browser either set browserVersionId
22452 * or dartId along with the version numbers. If both are specified, only 25874 * or dartId along with the version numbers. If both are specified, only
22453 * browserVersionId will be used.The other fields are populated automatically 25875 * browserVersionId will be used.The other fields are populated automatically
22454 * when the ad is inserted or updated. 25876 * when the ad is inserted or updated.
22455 */ 25877 */
22456 core.List<Browser> browsers; 25878 core.List<Browser> browsers;
22457 /** 25879 /**
(...skipping 142 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 26022 * 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 26023 * required field, must be less than 64 characters long, and cannot contain
22602 * the following characters: ""<>". 26024 * the following characters: ""<>".
22603 */ 26025 */
22604 core.String reportName; 26026 core.String reportName;
22605 /** 26027 /**
22606 * Variable name in the tag. This is a required field. 26028 * Variable name in the tag. This is a required field.
22607 * Possible string values are: 26029 * Possible string values are:
22608 * - "U1" 26030 * - "U1"
22609 * - "U10" 26031 * - "U10"
22610 * - "U100"
22611 * - "U11" 26032 * - "U11"
22612 * - "U12" 26033 * - "U12"
22613 * - "U13" 26034 * - "U13"
22614 * - "U14" 26035 * - "U14"
22615 * - "U15" 26036 * - "U15"
22616 * - "U16" 26037 * - "U16"
22617 * - "U17" 26038 * - "U17"
22618 * - "U18" 26039 * - "U18"
22619 * - "U19" 26040 * - "U19"
22620 * - "U2" 26041 * - "U2"
22621 * - "U20" 26042 * - "U20"
22622 * - "U21"
22623 * - "U22"
22624 * - "U23"
22625 * - "U24"
22626 * - "U25"
22627 * - "U26"
22628 * - "U27"
22629 * - "U28"
22630 * - "U29"
22631 * - "U3" 26043 * - "U3"
22632 * - "U30"
22633 * - "U31"
22634 * - "U32"
22635 * - "U33"
22636 * - "U34"
22637 * - "U35"
22638 * - "U36"
22639 * - "U37"
22640 * - "U38"
22641 * - "U39"
22642 * - "U4" 26044 * - "U4"
22643 * - "U40"
22644 * - "U41"
22645 * - "U42"
22646 * - "U43"
22647 * - "U44"
22648 * - "U45"
22649 * - "U46"
22650 * - "U47"
22651 * - "U48"
22652 * - "U49"
22653 * - "U5" 26045 * - "U5"
22654 * - "U50"
22655 * - "U51"
22656 * - "U52"
22657 * - "U53"
22658 * - "U54"
22659 * - "U55"
22660 * - "U56"
22661 * - "U57"
22662 * - "U58"
22663 * - "U59"
22664 * - "U6" 26046 * - "U6"
22665 * - "U60"
22666 * - "U61"
22667 * - "U62"
22668 * - "U63"
22669 * - "U64"
22670 * - "U65"
22671 * - "U66"
22672 * - "U67"
22673 * - "U68"
22674 * - "U69"
22675 * - "U7" 26047 * - "U7"
22676 * - "U70"
22677 * - "U71"
22678 * - "U72"
22679 * - "U73"
22680 * - "U74"
22681 * - "U75"
22682 * - "U76"
22683 * - "U77"
22684 * - "U78"
22685 * - "U79"
22686 * - "U8" 26048 * - "U8"
22687 * - "U80"
22688 * - "U81"
22689 * - "U82"
22690 * - "U83"
22691 * - "U84"
22692 * - "U85"
22693 * - "U86"
22694 * - "U87"
22695 * - "U88"
22696 * - "U89"
22697 * - "U9" 26049 * - "U9"
22698 * - "U90"
22699 * - "U91"
22700 * - "U92"
22701 * - "U93"
22702 * - "U94"
22703 * - "U95"
22704 * - "U96"
22705 * - "U97"
22706 * - "U98"
22707 * - "U99"
22708 */ 26050 */
22709 core.String variableType; 26051 core.String variableType;
22710 26052
22711 UserDefinedVariableConfiguration(); 26053 UserDefinedVariableConfiguration();
22712 26054
22713 UserDefinedVariableConfiguration.fromJson(core.Map _json) { 26055 UserDefinedVariableConfiguration.fromJson(core.Map _json) {
22714 if (_json.containsKey("dataType")) { 26056 if (_json.containsKey("dataType")) {
22715 dataType = _json["dataType"]; 26057 dataType = _json["dataType"];
22716 } 26058 }
22717 if (_json.containsKey("reportName")) { 26059 if (_json.containsKey("reportName")) {
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
23158 } 26500 }
23159 if (nextPageToken != null) { 26501 if (nextPageToken != null) {
23160 _json["nextPageToken"] = nextPageToken; 26502 _json["nextPageToken"] = nextPageToken;
23161 } 26503 }
23162 if (userRoles != null) { 26504 if (userRoles != null) {
23163 _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList(); 26505 _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList();
23164 } 26506 }
23165 return _json; 26507 return _json;
23166 } 26508 }
23167 } 26509 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698