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

Side by Side Diff: generated/googleapis/lib/adexchangebuyer/v1_4.dart

Issue 2226653002: Api-roll 40: 2016-08-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed review comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View 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.adexchangebuyer.v1_4; 3 library googleapis.adexchangebuyer.v1_4;
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;
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 uploadMedia: _uploadMedia, 822 uploadMedia: _uploadMedia,
823 downloadOptions: _downloadOptions); 823 downloadOptions: _downloadOptions);
824 return _response.then((data) => new AddOrderDealsResponse.fromJson(data)); 824 return _response.then((data) => new AddOrderDealsResponse.fromJson(data));
825 } 825 }
826 826
827 /** 827 /**
828 * List all the deals for a given proposal 828 * List all the deals for a given proposal
829 * 829 *
830 * Request parameters: 830 * Request parameters:
831 * 831 *
832 * [proposalId] - The proposalId to get deals for. To search across proposals 832 * [proposalId] - The proposalId to get deals for. To search across all
833 * specify order_id = '-' as part of the URL. 833 * proposals specify order_id = '-' as part of the URL.
834 * 834 *
835 * [pqlQuery] - Query string to retrieve specific deals. 835 * [pqlQuery] - Query string to retrieve specific deals.
836 * 836 *
837 * Completes with a [GetOrderDealsResponse]. 837 * Completes with a [GetOrderDealsResponse].
838 * 838 *
839 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 839 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
840 * error. 840 * error.
841 * 841 *
842 * If the used [http.Client] completes with an error when making a REST call, 842 * If the used [http.Client] completes with an error when making a REST call,
843 * this method will complete with the same error. 843 * this method will complete with the same error.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 uploadMedia: _uploadMedia, 964 uploadMedia: _uploadMedia,
965 downloadOptions: _downloadOptions); 965 downloadOptions: _downloadOptions);
966 return _response.then((data) => new AddOrderNotesResponse.fromJson(data)); 966 return _response.then((data) => new AddOrderNotesResponse.fromJson(data));
967 } 967 }
968 968
969 /** 969 /**
970 * Get all the notes associated with a proposal 970 * Get all the notes associated with a proposal
971 * 971 *
972 * Request parameters: 972 * Request parameters:
973 * 973 *
974 * [proposalId] - The proposalId to get notes for. 974 * [proposalId] - The proposalId to get notes for. To search across all
975 * proposals specify order_id = '-' as part of the URL.
976 *
977 * [pqlQuery] - Query string to retrieve specific notes. To search the text
978 * contents of notes, please use syntax like "WHERE note.note = "foo" or
979 * "WHERE note.note LIKE "%bar%"
975 * 980 *
976 * Completes with a [GetOrderNotesResponse]. 981 * Completes with a [GetOrderNotesResponse].
977 * 982 *
978 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
979 * error. 984 * error.
980 * 985 *
981 * If the used [http.Client] completes with an error when making a REST call, 986 * If the used [http.Client] completes with an error when making a REST call,
982 * this method will complete with the same error. 987 * this method will complete with the same error.
983 */ 988 */
984 async.Future<GetOrderNotesResponse> list(core.String proposalId) { 989 async.Future<GetOrderNotesResponse> list(core.String proposalId, {core.String pqlQuery}) {
985 var _url = null; 990 var _url = null;
986 var _queryParams = new core.Map(); 991 var _queryParams = new core.Map();
987 var _uploadMedia = null; 992 var _uploadMedia = null;
988 var _uploadOptions = null; 993 var _uploadOptions = null;
989 var _downloadOptions = commons.DownloadOptions.Metadata; 994 var _downloadOptions = commons.DownloadOptions.Metadata;
990 var _body = null; 995 var _body = null;
991 996
992 if (proposalId == null) { 997 if (proposalId == null) {
993 throw new core.ArgumentError("Parameter proposalId is required."); 998 throw new core.ArgumentError("Parameter proposalId is required.");
994 } 999 }
1000 if (pqlQuery != null) {
1001 _queryParams["pqlQuery"] = [pqlQuery];
1002 }
995 1003
996 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/notes '; 1004 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/notes ';
997 1005
998 var _response = _requester.request(_url, 1006 var _response = _requester.request(_url,
999 "GET", 1007 "GET",
1000 body: _body, 1008 body: _body,
1001 queryParams: _queryParams, 1009 queryParams: _queryParams,
1002 uploadOptions: _uploadOptions, 1010 uploadOptions: _uploadOptions,
1003 uploadMedia: _uploadMedia, 1011 uploadMedia: _uploadMedia,
1004 downloadOptions: _downloadOptions); 1012 downloadOptions: _downloadOptions);
(...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after
2938 core.List<CreativeCorrections> corrections; 2946 core.List<CreativeCorrections> corrections;
2939 /** 2947 /**
2940 * Top-level deals status. Read-only. This field should not be set in 2948 * Top-level deals status. Read-only. This field should not be set in
2941 * requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in 2949 * requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in
2942 * servingRestrictions will also exist. Note that this may be nuanced with 2950 * servingRestrictions will also exist. Note that this may be nuanced with
2943 * other contextual restrictions, in which case it may be preferable to read 2951 * other contextual restrictions, in which case it may be preferable to read
2944 * from servingRestrictions directly. 2952 * from servingRestrictions directly.
2945 */ 2953 */
2946 core.String dealsStatus; 2954 core.String dealsStatus;
2947 /** 2955 /**
2956 * Detected domains for this creative. Read-only. This field should not be set
2957 * in requests.
2958 */
2959 core.List<core.String> detectedDomains;
2960 /**
2948 * The filtering reasons for the creative. Read-only. This field should not be 2961 * The filtering reasons for the creative. Read-only. This field should not be
2949 * set in requests. 2962 * set in requests.
2950 */ 2963 */
2951 CreativeFilteringReasons filteringReasons; 2964 CreativeFilteringReasons filteringReasons;
2952 /** Ad height. */ 2965 /** Ad height. */
2953 core.int height; 2966 core.int height;
2954 /** The set of urls to be called to record an impression. */ 2967 /** The set of urls to be called to record an impression. */
2955 core.List<core.String> impressionTrackingUrl; 2968 core.List<core.String> impressionTrackingUrl;
2956 /** Resource type. */ 2969 /** Resource type. */
2957 core.String kind; 2970 core.String kind;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
3035 } 3048 }
3036 if (_json.containsKey("clickThroughUrl")) { 3049 if (_json.containsKey("clickThroughUrl")) {
3037 clickThroughUrl = _json["clickThroughUrl"]; 3050 clickThroughUrl = _json["clickThroughUrl"];
3038 } 3051 }
3039 if (_json.containsKey("corrections")) { 3052 if (_json.containsKey("corrections")) {
3040 corrections = _json["corrections"].map((value) => new CreativeCorrections. fromJson(value)).toList(); 3053 corrections = _json["corrections"].map((value) => new CreativeCorrections. fromJson(value)).toList();
3041 } 3054 }
3042 if (_json.containsKey("dealsStatus")) { 3055 if (_json.containsKey("dealsStatus")) {
3043 dealsStatus = _json["dealsStatus"]; 3056 dealsStatus = _json["dealsStatus"];
3044 } 3057 }
3058 if (_json.containsKey("detectedDomains")) {
3059 detectedDomains = _json["detectedDomains"];
3060 }
3045 if (_json.containsKey("filteringReasons")) { 3061 if (_json.containsKey("filteringReasons")) {
3046 filteringReasons = new CreativeFilteringReasons.fromJson(_json["filteringR easons"]); 3062 filteringReasons = new CreativeFilteringReasons.fromJson(_json["filteringR easons"]);
3047 } 3063 }
3048 if (_json.containsKey("height")) { 3064 if (_json.containsKey("height")) {
3049 height = _json["height"]; 3065 height = _json["height"];
3050 } 3066 }
3051 if (_json.containsKey("impressionTrackingUrl")) { 3067 if (_json.containsKey("impressionTrackingUrl")) {
3052 impressionTrackingUrl = _json["impressionTrackingUrl"]; 3068 impressionTrackingUrl = _json["impressionTrackingUrl"];
3053 } 3069 }
3054 if (_json.containsKey("kind")) { 3070 if (_json.containsKey("kind")) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
3120 } 3136 }
3121 if (clickThroughUrl != null) { 3137 if (clickThroughUrl != null) {
3122 _json["clickThroughUrl"] = clickThroughUrl; 3138 _json["clickThroughUrl"] = clickThroughUrl;
3123 } 3139 }
3124 if (corrections != null) { 3140 if (corrections != null) {
3125 _json["corrections"] = corrections.map((value) => (value).toJson()).toList (); 3141 _json["corrections"] = corrections.map((value) => (value).toJson()).toList ();
3126 } 3142 }
3127 if (dealsStatus != null) { 3143 if (dealsStatus != null) {
3128 _json["dealsStatus"] = dealsStatus; 3144 _json["dealsStatus"] = dealsStatus;
3129 } 3145 }
3146 if (detectedDomains != null) {
3147 _json["detectedDomains"] = detectedDomains;
3148 }
3130 if (filteringReasons != null) { 3149 if (filteringReasons != null) {
3131 _json["filteringReasons"] = (filteringReasons).toJson(); 3150 _json["filteringReasons"] = (filteringReasons).toJson();
3132 } 3151 }
3133 if (height != null) { 3152 if (height != null) {
3134 _json["height"] = height; 3153 _json["height"] = height;
3135 } 3154 }
3136 if (impressionTrackingUrl != null) { 3155 if (impressionTrackingUrl != null) {
3137 _json["impressionTrackingUrl"] = impressionTrackingUrl; 3156 _json["impressionTrackingUrl"] = impressionTrackingUrl;
3138 } 3157 }
3139 if (kind != null) { 3158 if (kind != null) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
3244 return _json; 3263 return _json;
3245 } 3264 }
3246 } 3265 }
3247 3266
3248 /** 3267 /**
3249 * Tracks which parties (if any) have paused a deal. The deal is considered 3268 * Tracks which parties (if any) have paused a deal. The deal is considered
3250 * paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused 3269 * paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused
3251 * or the has_seller_paused bits can be set independently. 3270 * or the has_seller_paused bits can be set independently.
3252 */ 3271 */
3253 class DealServingMetadataDealPauseStatus { 3272 class DealServingMetadataDealPauseStatus {
3273 core.String buyerPauseReason;
3254 /** If the deal is paused, records which party paused the deal first. */ 3274 /** If the deal is paused, records which party paused the deal first. */
3255 core.String firstPausedBy; 3275 core.String firstPausedBy;
3256 core.bool hasBuyerPaused; 3276 core.bool hasBuyerPaused;
3257 core.bool hasSellerPaused; 3277 core.bool hasSellerPaused;
3278 core.String sellerPauseReason;
3258 3279
3259 DealServingMetadataDealPauseStatus(); 3280 DealServingMetadataDealPauseStatus();
3260 3281
3261 DealServingMetadataDealPauseStatus.fromJson(core.Map _json) { 3282 DealServingMetadataDealPauseStatus.fromJson(core.Map _json) {
3283 if (_json.containsKey("buyerPauseReason")) {
3284 buyerPauseReason = _json["buyerPauseReason"];
3285 }
3262 if (_json.containsKey("firstPausedBy")) { 3286 if (_json.containsKey("firstPausedBy")) {
3263 firstPausedBy = _json["firstPausedBy"]; 3287 firstPausedBy = _json["firstPausedBy"];
3264 } 3288 }
3265 if (_json.containsKey("hasBuyerPaused")) { 3289 if (_json.containsKey("hasBuyerPaused")) {
3266 hasBuyerPaused = _json["hasBuyerPaused"]; 3290 hasBuyerPaused = _json["hasBuyerPaused"];
3267 } 3291 }
3268 if (_json.containsKey("hasSellerPaused")) { 3292 if (_json.containsKey("hasSellerPaused")) {
3269 hasSellerPaused = _json["hasSellerPaused"]; 3293 hasSellerPaused = _json["hasSellerPaused"];
3270 } 3294 }
3295 if (_json.containsKey("sellerPauseReason")) {
3296 sellerPauseReason = _json["sellerPauseReason"];
3297 }
3271 } 3298 }
3272 3299
3273 core.Map toJson() { 3300 core.Map toJson() {
3274 var _json = new core.Map(); 3301 var _json = new core.Map();
3302 if (buyerPauseReason != null) {
3303 _json["buyerPauseReason"] = buyerPauseReason;
3304 }
3275 if (firstPausedBy != null) { 3305 if (firstPausedBy != null) {
3276 _json["firstPausedBy"] = firstPausedBy; 3306 _json["firstPausedBy"] = firstPausedBy;
3277 } 3307 }
3278 if (hasBuyerPaused != null) { 3308 if (hasBuyerPaused != null) {
3279 _json["hasBuyerPaused"] = hasBuyerPaused; 3309 _json["hasBuyerPaused"] = hasBuyerPaused;
3280 } 3310 }
3281 if (hasSellerPaused != null) { 3311 if (hasSellerPaused != null) {
3282 _json["hasSellerPaused"] = hasSellerPaused; 3312 _json["hasSellerPaused"] = hasSellerPaused;
3283 } 3313 }
3314 if (sellerPauseReason != null) {
3315 _json["sellerPauseReason"] = sellerPauseReason;
3316 }
3284 return _json; 3317 return _json;
3285 } 3318 }
3286 } 3319 }
3287 3320
3288 class DealTerms { 3321 class DealTerms {
3289 /** Visibilty of the URL in bid requests. */ 3322 /** Visibilty of the URL in bid requests. */
3290 core.String brandingType; 3323 core.String brandingType;
3291 /** Description for the proposed terms of the deal. */ 3324 /** Description for the proposed terms of the deal. */
3292 core.String description; 3325 core.String description;
3293 /** 3326 /**
3294 * Non-binding estimate of the estimated gross spend for this deal Can be set 3327 * Non-binding estimate of the estimated gross spend for this deal Can be set
3295 * by buyer or seller. 3328 * by buyer or seller.
3296 */ 3329 */
3297 Price estimatedGrossSpend; 3330 Price estimatedGrossSpend;
3298 /** 3331 /**
3299 * Non-binding estimate of the impressions served per day Can be set by buyer 3332 * Non-binding estimate of the impressions served per day Can be set by buyer
3300 * or seller. 3333 * or seller.
3301 */ 3334 */
3302 core.String estimatedImpressionsPerDay; 3335 core.String estimatedImpressionsPerDay;
3303 /** The terms for guaranteed fixed price deals. */ 3336 /** The terms for guaranteed fixed price deals. */
3304 DealTermsGuaranteedFixedPriceTerms guaranteedFixedPriceTerms; 3337 DealTermsGuaranteedFixedPriceTerms guaranteedFixedPriceTerms;
3305 /** The terms for non-guaranteed auction deals. */ 3338 /** The terms for non-guaranteed auction deals. */
3306 DealTermsNonGuaranteedAuctionTerms nonGuaranteedAuctionTerms; 3339 DealTermsNonGuaranteedAuctionTerms nonGuaranteedAuctionTerms;
3307 /** The terms for non-guaranteed fixed price deals. */ 3340 /** The terms for non-guaranteed fixed price deals. */
3308 DealTermsNonGuaranteedFixedPriceTerms nonGuaranteedFixedPriceTerms; 3341 DealTermsNonGuaranteedFixedPriceTerms nonGuaranteedFixedPriceTerms;
3342 /** The terms for rubicon non-guaranteed deals. */
3343 DealTermsRubiconNonGuaranteedTerms rubiconNonGuaranteedTerms;
3309 /** 3344 /**
3310 * For deals with Cost Per Day billing, defines the timezone used to mark the 3345 * For deals with Cost Per Day billing, defines the timezone used to mark the
3311 * boundaries of a day (buyer-readonly) 3346 * boundaries of a day (buyer-readonly)
3312 */ 3347 */
3313 core.String sellerTimeZone; 3348 core.String sellerTimeZone;
3314 3349
3315 DealTerms(); 3350 DealTerms();
3316 3351
3317 DealTerms.fromJson(core.Map _json) { 3352 DealTerms.fromJson(core.Map _json) {
3318 if (_json.containsKey("brandingType")) { 3353 if (_json.containsKey("brandingType")) {
(...skipping 10 matching lines...) Expand all
3329 } 3364 }
3330 if (_json.containsKey("guaranteedFixedPriceTerms")) { 3365 if (_json.containsKey("guaranteedFixedPriceTerms")) {
3331 guaranteedFixedPriceTerms = new DealTermsGuaranteedFixedPriceTerms.fromJso n(_json["guaranteedFixedPriceTerms"]); 3366 guaranteedFixedPriceTerms = new DealTermsGuaranteedFixedPriceTerms.fromJso n(_json["guaranteedFixedPriceTerms"]);
3332 } 3367 }
3333 if (_json.containsKey("nonGuaranteedAuctionTerms")) { 3368 if (_json.containsKey("nonGuaranteedAuctionTerms")) {
3334 nonGuaranteedAuctionTerms = new DealTermsNonGuaranteedAuctionTerms.fromJso n(_json["nonGuaranteedAuctionTerms"]); 3369 nonGuaranteedAuctionTerms = new DealTermsNonGuaranteedAuctionTerms.fromJso n(_json["nonGuaranteedAuctionTerms"]);
3335 } 3370 }
3336 if (_json.containsKey("nonGuaranteedFixedPriceTerms")) { 3371 if (_json.containsKey("nonGuaranteedFixedPriceTerms")) {
3337 nonGuaranteedFixedPriceTerms = new DealTermsNonGuaranteedFixedPriceTerms.f romJson(_json["nonGuaranteedFixedPriceTerms"]); 3372 nonGuaranteedFixedPriceTerms = new DealTermsNonGuaranteedFixedPriceTerms.f romJson(_json["nonGuaranteedFixedPriceTerms"]);
3338 } 3373 }
3374 if (_json.containsKey("rubiconNonGuaranteedTerms")) {
3375 rubiconNonGuaranteedTerms = new DealTermsRubiconNonGuaranteedTerms.fromJso n(_json["rubiconNonGuaranteedTerms"]);
3376 }
3339 if (_json.containsKey("sellerTimeZone")) { 3377 if (_json.containsKey("sellerTimeZone")) {
3340 sellerTimeZone = _json["sellerTimeZone"]; 3378 sellerTimeZone = _json["sellerTimeZone"];
3341 } 3379 }
3342 } 3380 }
3343 3381
3344 core.Map toJson() { 3382 core.Map toJson() {
3345 var _json = new core.Map(); 3383 var _json = new core.Map();
3346 if (brandingType != null) { 3384 if (brandingType != null) {
3347 _json["brandingType"] = brandingType; 3385 _json["brandingType"] = brandingType;
3348 } 3386 }
3349 if (description != null) { 3387 if (description != null) {
3350 _json["description"] = description; 3388 _json["description"] = description;
3351 } 3389 }
3352 if (estimatedGrossSpend != null) { 3390 if (estimatedGrossSpend != null) {
3353 _json["estimatedGrossSpend"] = (estimatedGrossSpend).toJson(); 3391 _json["estimatedGrossSpend"] = (estimatedGrossSpend).toJson();
3354 } 3392 }
3355 if (estimatedImpressionsPerDay != null) { 3393 if (estimatedImpressionsPerDay != null) {
3356 _json["estimatedImpressionsPerDay"] = estimatedImpressionsPerDay; 3394 _json["estimatedImpressionsPerDay"] = estimatedImpressionsPerDay;
3357 } 3395 }
3358 if (guaranteedFixedPriceTerms != null) { 3396 if (guaranteedFixedPriceTerms != null) {
3359 _json["guaranteedFixedPriceTerms"] = (guaranteedFixedPriceTerms).toJson(); 3397 _json["guaranteedFixedPriceTerms"] = (guaranteedFixedPriceTerms).toJson();
3360 } 3398 }
3361 if (nonGuaranteedAuctionTerms != null) { 3399 if (nonGuaranteedAuctionTerms != null) {
3362 _json["nonGuaranteedAuctionTerms"] = (nonGuaranteedAuctionTerms).toJson(); 3400 _json["nonGuaranteedAuctionTerms"] = (nonGuaranteedAuctionTerms).toJson();
3363 } 3401 }
3364 if (nonGuaranteedFixedPriceTerms != null) { 3402 if (nonGuaranteedFixedPriceTerms != null) {
3365 _json["nonGuaranteedFixedPriceTerms"] = (nonGuaranteedFixedPriceTerms).toJ son(); 3403 _json["nonGuaranteedFixedPriceTerms"] = (nonGuaranteedFixedPriceTerms).toJ son();
3366 } 3404 }
3405 if (rubiconNonGuaranteedTerms != null) {
3406 _json["rubiconNonGuaranteedTerms"] = (rubiconNonGuaranteedTerms).toJson();
3407 }
3367 if (sellerTimeZone != null) { 3408 if (sellerTimeZone != null) {
3368 _json["sellerTimeZone"] = sellerTimeZone; 3409 _json["sellerTimeZone"] = sellerTimeZone;
3369 } 3410 }
3370 return _json; 3411 return _json;
3371 } 3412 }
3372 } 3413 }
3373 3414
3374 class DealTermsGuaranteedFixedPriceTerms { 3415 class DealTermsGuaranteedFixedPriceTerms {
3375 /** 3416 /**
3376 * External billing info for this Deal. This field is relevant when external 3417 * External billing info for this Deal. This field is relevant when external
3377 * billing info such as price has a different currency code than DFP/AdX. 3418 * billing info such as price has a different currency code than DFP/AdX.
3378 */ 3419 */
3379 DealTermsGuaranteedFixedPriceTermsBillingInfo billingInfo; 3420 DealTermsGuaranteedFixedPriceTermsBillingInfo billingInfo;
3380 /** Fixed price for the specified buyer. */ 3421 /** Fixed price for the specified buyer. */
3381 core.List<PricePerBuyer> fixedPrices; 3422 core.List<PricePerBuyer> fixedPrices;
3382 /** 3423 /**
3383 * Guaranteed impressions as a percentage. This is the percentage of 3424 * Guaranteed impressions as a percentage. This is the percentage of
3384 * guaranteed looks that the buyer is guaranteeing to buy. 3425 * guaranteed looks that the buyer is guaranteeing to buy.
3385 */ 3426 */
3386 core.String guaranteedImpressions; 3427 core.String guaranteedImpressions;
3387 /** Count of guaranteed looks. Required for deal, optional for product. */ 3428 /**
3429 * Count of guaranteed looks. Required for deal, optional for product. For CPD
3430 * deals, buyer changes to guaranteed_looks will be ignored.
3431 */
3388 core.String guaranteedLooks; 3432 core.String guaranteedLooks;
3433 /**
3434 * Count of minimum daily looks for a CPD deal. For CPD deals, buyer should
3435 * negotiate on this field instead of guaranteed_looks.
3436 */
3437 core.String minimumDailyLooks;
3389 3438
3390 DealTermsGuaranteedFixedPriceTerms(); 3439 DealTermsGuaranteedFixedPriceTerms();
3391 3440
3392 DealTermsGuaranteedFixedPriceTerms.fromJson(core.Map _json) { 3441 DealTermsGuaranteedFixedPriceTerms.fromJson(core.Map _json) {
3393 if (_json.containsKey("billingInfo")) { 3442 if (_json.containsKey("billingInfo")) {
3394 billingInfo = new DealTermsGuaranteedFixedPriceTermsBillingInfo.fromJson(_ json["billingInfo"]); 3443 billingInfo = new DealTermsGuaranteedFixedPriceTermsBillingInfo.fromJson(_ json["billingInfo"]);
3395 } 3444 }
3396 if (_json.containsKey("fixedPrices")) { 3445 if (_json.containsKey("fixedPrices")) {
3397 fixedPrices = _json["fixedPrices"].map((value) => new PricePerBuyer.fromJs on(value)).toList(); 3446 fixedPrices = _json["fixedPrices"].map((value) => new PricePerBuyer.fromJs on(value)).toList();
3398 } 3447 }
3399 if (_json.containsKey("guaranteedImpressions")) { 3448 if (_json.containsKey("guaranteedImpressions")) {
3400 guaranteedImpressions = _json["guaranteedImpressions"]; 3449 guaranteedImpressions = _json["guaranteedImpressions"];
3401 } 3450 }
3402 if (_json.containsKey("guaranteedLooks")) { 3451 if (_json.containsKey("guaranteedLooks")) {
3403 guaranteedLooks = _json["guaranteedLooks"]; 3452 guaranteedLooks = _json["guaranteedLooks"];
3404 } 3453 }
3454 if (_json.containsKey("minimumDailyLooks")) {
3455 minimumDailyLooks = _json["minimumDailyLooks"];
3456 }
3405 } 3457 }
3406 3458
3407 core.Map toJson() { 3459 core.Map toJson() {
3408 var _json = new core.Map(); 3460 var _json = new core.Map();
3409 if (billingInfo != null) { 3461 if (billingInfo != null) {
3410 _json["billingInfo"] = (billingInfo).toJson(); 3462 _json["billingInfo"] = (billingInfo).toJson();
3411 } 3463 }
3412 if (fixedPrices != null) { 3464 if (fixedPrices != null) {
3413 _json["fixedPrices"] = fixedPrices.map((value) => (value).toJson()).toList (); 3465 _json["fixedPrices"] = fixedPrices.map((value) => (value).toJson()).toList ();
3414 } 3466 }
3415 if (guaranteedImpressions != null) { 3467 if (guaranteedImpressions != null) {
3416 _json["guaranteedImpressions"] = guaranteedImpressions; 3468 _json["guaranteedImpressions"] = guaranteedImpressions;
3417 } 3469 }
3418 if (guaranteedLooks != null) { 3470 if (guaranteedLooks != null) {
3419 _json["guaranteedLooks"] = guaranteedLooks; 3471 _json["guaranteedLooks"] = guaranteedLooks;
3420 } 3472 }
3473 if (minimumDailyLooks != null) {
3474 _json["minimumDailyLooks"] = minimumDailyLooks;
3475 }
3421 return _json; 3476 return _json;
3422 } 3477 }
3423 } 3478 }
3424 3479
3425 class DealTermsGuaranteedFixedPriceTermsBillingInfo { 3480 class DealTermsGuaranteedFixedPriceTermsBillingInfo {
3426 /** 3481 /**
3427 * The timestamp (in ms since epoch) when the original reservation price for 3482 * The timestamp (in ms since epoch) when the original reservation price for
3428 * the deal was first converted to DFP currency. This is used to convert the 3483 * the deal was first converted to DFP currency. This is used to convert the
3429 * contracted price into advertiser's currency without discrepancy. 3484 * contracted price into advertiser's currency without discrepancy.
3430 */ 3485 */
3431 core.String currencyConversionTimeMs; 3486 core.String currencyConversionTimeMs;
3432 /** 3487 /**
3433 * The DFP line item id associated with this deal. For features like CPD, 3488 * The DFP line item id associated with this deal. For features like CPD,
3434 * buyers can retrieve the DFP line item for billing reconciliation. 3489 * buyers can retrieve the DFP line item for billing reconciliation.
3435 */ 3490 */
3436 core.String dfpLineItemId; 3491 core.String dfpLineItemId;
3437 /** 3492 /**
3438 * The original contracted quantity (# impressions) for this deal. To ensure 3493 * The original contracted quantity (# impressions) for this deal. To ensure
3439 * delivery, sometimes publisher will book the deal with a impression buffer, 3494 * delivery, sometimes the publisher will book the deal with a impression
3440 * however clients are billed using the original contracted quantity. 3495 * buffer, such that guaranteed_looks is greater than the contracted quantity.
3496 * However clients are billed using the original contracted quantity.
3441 */ 3497 */
3442 core.String originalContractedQuantity; 3498 core.String originalContractedQuantity;
3443 /** 3499 /**
3444 * The original reservation price for the deal, if the currency code is 3500 * The original reservation price for the deal, if the currency code is
3445 * different from the one used in negotiation. 3501 * different from the one used in negotiation.
3446 */ 3502 */
3447 Price price; 3503 Price price;
3448 3504
3449 DealTermsGuaranteedFixedPriceTermsBillingInfo(); 3505 DealTermsGuaranteedFixedPriceTermsBillingInfo();
3450 3506
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
3527 3583
3528 core.Map toJson() { 3584 core.Map toJson() {
3529 var _json = new core.Map(); 3585 var _json = new core.Map();
3530 if (fixedPrices != null) { 3586 if (fixedPrices != null) {
3531 _json["fixedPrices"] = fixedPrices.map((value) => (value).toJson()).toList (); 3587 _json["fixedPrices"] = fixedPrices.map((value) => (value).toJson()).toList ();
3532 } 3588 }
3533 return _json; 3589 return _json;
3534 } 3590 }
3535 } 3591 }
3536 3592
3593 class DealTermsRubiconNonGuaranteedTerms {
3594 /** Optional price for Rubicon priority access in the auction. */
3595 Price priorityPrice;
3596 /** Optional price for Rubicon standard access in the auction. */
3597 Price standardPrice;
3598
3599 DealTermsRubiconNonGuaranteedTerms();
3600
3601 DealTermsRubiconNonGuaranteedTerms.fromJson(core.Map _json) {
3602 if (_json.containsKey("priorityPrice")) {
3603 priorityPrice = new Price.fromJson(_json["priorityPrice"]);
3604 }
3605 if (_json.containsKey("standardPrice")) {
3606 standardPrice = new Price.fromJson(_json["standardPrice"]);
3607 }
3608 }
3609
3610 core.Map toJson() {
3611 var _json = new core.Map();
3612 if (priorityPrice != null) {
3613 _json["priorityPrice"] = (priorityPrice).toJson();
3614 }
3615 if (standardPrice != null) {
3616 _json["standardPrice"] = (standardPrice).toJson();
3617 }
3618 return _json;
3619 }
3620 }
3621
3537 class DeleteOrderDealsRequest { 3622 class DeleteOrderDealsRequest {
3538 /** List of deals to delete for a given proposal */ 3623 /** List of deals to delete for a given proposal */
3539 core.List<core.String> dealIds; 3624 core.List<core.String> dealIds;
3540 /** The last known proposal revision number. */ 3625 /** The last known proposal revision number. */
3541 core.String proposalRevisionNumber; 3626 core.String proposalRevisionNumber;
3542 /** Indicates an optional action to take on the proposal */ 3627 /** Indicates an optional action to take on the proposal */
3543 core.String updateAction; 3628 core.String updateAction;
3544 3629
3545 DeleteOrderDealsRequest(); 3630 DeleteOrderDealsRequest();
3546 3631
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
3871 core.Map toJson() { 3956 core.Map toJson() {
3872 var _json = new core.Map(); 3957 var _json = new core.Map();
3873 if (deals != null) { 3958 if (deals != null) {
3874 _json["deals"] = deals.map((value) => (value).toJson()).toList(); 3959 _json["deals"] = deals.map((value) => (value).toJson()).toList();
3875 } 3960 }
3876 return _json; 3961 return _json;
3877 } 3962 }
3878 } 3963 }
3879 3964
3880 class GetOrderNotesResponse { 3965 class GetOrderNotesResponse {
3881 /** The list of matching notes. */ 3966 /**
3967 * The list of matching notes. The notes for a proposal are ordered from
3968 * oldest to newest. If the notes span multiple proposals, they will be
3969 * grouped by proposal, with the notes for the most recently modified proposal
3970 * appearing first.
3971 */
3882 core.List<MarketplaceNote> notes; 3972 core.List<MarketplaceNote> notes;
3883 3973
3884 GetOrderNotesResponse(); 3974 GetOrderNotesResponse();
3885 3975
3886 GetOrderNotesResponse.fromJson(core.Map _json) { 3976 GetOrderNotesResponse.fromJson(core.Map _json) {
3887 if (_json.containsKey("notes")) { 3977 if (_json.containsKey("notes")) {
3888 notes = _json["notes"].map((value) => new MarketplaceNote.fromJson(value)) .toList(); 3978 notes = _json["notes"].map((value) => new MarketplaceNote.fromJson(value)) .toList();
3889 } 3979 }
3890 } 3980 }
3891 3981
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
3948 /** Buyer private data (hidden from seller). */ 4038 /** Buyer private data (hidden from seller). */
3949 PrivateData buyerPrivateData; 4039 PrivateData buyerPrivateData;
3950 /** The time (ms since epoch) of the deal creation. (readonly) */ 4040 /** The time (ms since epoch) of the deal creation. (readonly) */
3951 core.String creationTimeMs; 4041 core.String creationTimeMs;
3952 /** Specifies the creative pre-approval policy (buyer-readonly) */ 4042 /** Specifies the creative pre-approval policy (buyer-readonly) */
3953 core.String creativePreApprovalPolicy; 4043 core.String creativePreApprovalPolicy;
3954 /** 4044 /**
3955 * Specifies whether the creative is safeFrame compatible (buyer-readonly) 4045 * Specifies whether the creative is safeFrame compatible (buyer-readonly)
3956 */ 4046 */
3957 core.String creativeSafeFrameCompatibility; 4047 core.String creativeSafeFrameCompatibility;
3958 /** A unique deal=id for the deal (readonly). */ 4048 /** A unique deal-id for the deal (readonly). */
3959 core.String dealId; 4049 core.String dealId;
3960 /** 4050 /**
3961 * Metadata about the serving status of this deal (readonly, writes via custom 4051 * Metadata about the serving status of this deal (readonly, writes via custom
3962 * actions) 4052 * actions)
3963 */ 4053 */
3964 DealServingMetadata dealServingMetadata; 4054 DealServingMetadata dealServingMetadata;
3965 /** 4055 /**
3966 * The set of fields around delivery control that are interesting for a buyer 4056 * The set of fields around delivery control that are interesting for a buyer
3967 * to see but are non-negotiable. These are set by the publisher. This message 4057 * to see but are non-negotiable. These are set by the publisher. This message
3968 * is assigned an id of 100 since some day we would want to model this as a 4058 * is assigned an id of 100 since some day we would want to model this as a
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
5021 } 5111 }
5022 return _json; 5112 return _json;
5023 } 5113 }
5024 } 5114 }
5025 5115
5026 class Price { 5116 class Price {
5027 /** The price value in micros. */ 5117 /** The price value in micros. */
5028 core.double amountMicros; 5118 core.double amountMicros;
5029 /** The currency code for the price. */ 5119 /** The currency code for the price. */
5030 core.String currencyCode; 5120 core.String currencyCode;
5121 /** In case of CPD deals, the expected CPM in micros. */
5122 core.double expectedCpmMicros;
5031 /** The pricing type for the deal/product. */ 5123 /** The pricing type for the deal/product. */
5032 core.String pricingType; 5124 core.String pricingType;
5033 5125
5034 Price(); 5126 Price();
5035 5127
5036 Price.fromJson(core.Map _json) { 5128 Price.fromJson(core.Map _json) {
5037 if (_json.containsKey("amountMicros")) { 5129 if (_json.containsKey("amountMicros")) {
5038 amountMicros = _json["amountMicros"]; 5130 amountMicros = _json["amountMicros"];
5039 } 5131 }
5040 if (_json.containsKey("currencyCode")) { 5132 if (_json.containsKey("currencyCode")) {
5041 currencyCode = _json["currencyCode"]; 5133 currencyCode = _json["currencyCode"];
5042 } 5134 }
5135 if (_json.containsKey("expectedCpmMicros")) {
5136 expectedCpmMicros = _json["expectedCpmMicros"];
5137 }
5043 if (_json.containsKey("pricingType")) { 5138 if (_json.containsKey("pricingType")) {
5044 pricingType = _json["pricingType"]; 5139 pricingType = _json["pricingType"];
5045 } 5140 }
5046 } 5141 }
5047 5142
5048 core.Map toJson() { 5143 core.Map toJson() {
5049 var _json = new core.Map(); 5144 var _json = new core.Map();
5050 if (amountMicros != null) { 5145 if (amountMicros != null) {
5051 _json["amountMicros"] = amountMicros; 5146 _json["amountMicros"] = amountMicros;
5052 } 5147 }
5053 if (currencyCode != null) { 5148 if (currencyCode != null) {
5054 _json["currencyCode"] = currencyCode; 5149 _json["currencyCode"] = currencyCode;
5055 } 5150 }
5151 if (expectedCpmMicros != null) {
5152 _json["expectedCpmMicros"] = expectedCpmMicros;
5153 }
5056 if (pricingType != null) { 5154 if (pricingType != null) {
5057 _json["pricingType"] = pricingType; 5155 _json["pricingType"] = pricingType;
5058 } 5156 }
5059 return _json; 5157 return _json;
5060 } 5158 }
5061 } 5159 }
5062 5160
5063 /** 5161 /**
5064 * Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in 5162 * Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
5065 * an product can become [0,1] deals. To check if there is a PricePerBuyer for a 5163 * an product can become [0,1] deals. To check if there is a PricePerBuyer for a
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
5400 * set this field. (updatable) - The field is updatable at all times by either 5498 * set this field. (updatable) - The field is updatable at all times by either
5401 * buyer or the seller. 5499 * buyer or the seller.
5402 */ 5500 */
5403 class Proposal { 5501 class Proposal {
5404 /** 5502 /**
5405 * Reference to the buyer that will get billed for this proposal. (readonly) 5503 * Reference to the buyer that will get billed for this proposal. (readonly)
5406 */ 5504 */
5407 Buyer billedBuyer; 5505 Buyer billedBuyer;
5408 /** Reference to the buyer on the proposal. (readonly, except on create) */ 5506 /** Reference to the buyer on the proposal. (readonly, except on create) */
5409 Buyer buyer; 5507 Buyer buyer;
5410 /** Optional contact information fort the buyer. (seller-readonly) */ 5508 /** Optional contact information of the buyer. (seller-readonly) */
5411 core.List<ContactInformation> buyerContacts; 5509 core.List<ContactInformation> buyerContacts;
5412 /** Private data for buyer. (hidden from seller). */ 5510 /** Private data for buyer. (hidden from seller). */
5413 PrivateData buyerPrivateData; 5511 PrivateData buyerPrivateData;
5414 /** 5512 /**
5415 * When an proposal is in an accepted state, indicates whether the buyer has 5513 * When an proposal is in an accepted state, indicates whether the buyer has
5416 * signed off Once both sides have signed off on a deal, the proposal can be 5514 * signed off. Once both sides have signed off on a deal, the proposal can be
5417 * finalized by the seller. (seller-readonly) 5515 * finalized by the seller. (seller-readonly)
5418 */ 5516 */
5419 core.bool hasBuyerSignedOff; 5517 core.bool hasBuyerSignedOff;
5420 /** 5518 /**
5421 * When an proposal is in an accepted state, indicates whether the buyer has 5519 * When an proposal is in an accepted state, indicates whether the buyer has
5422 * signed off Once both sides have signed off on a deal, the proposal can be 5520 * signed off Once both sides have signed off on a deal, the proposal can be
5423 * finalized by the seller. (buyer-readonly) 5521 * finalized by the seller. (buyer-readonly)
5424 */ 5522 */
5425 core.bool hasSellerSignedOff; 5523 core.bool hasSellerSignedOff;
5426 /** 5524 /**
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
5461 /** The current state of the proposal. (readonly) */ 5559 /** The current state of the proposal. (readonly) */
5462 core.String proposalState; 5560 core.String proposalState;
5463 /** The revision number for the proposal (readonly). */ 5561 /** The revision number for the proposal (readonly). */
5464 core.String revisionNumber; 5562 core.String revisionNumber;
5465 /** 5563 /**
5466 * The time (ms since epoch) when the proposal was last revised (readonly). 5564 * The time (ms since epoch) when the proposal was last revised (readonly).
5467 */ 5565 */
5468 core.String revisionTimeMs; 5566 core.String revisionTimeMs;
5469 /** Reference to the seller on the proposal. (readonly, except on create) */ 5567 /** Reference to the seller on the proposal. (readonly, except on create) */
5470 Seller seller; 5568 Seller seller;
5471 /** Optional contact information for the seller (buyer-readonly). */ 5569 /** Optional contact information of the seller (buyer-readonly). */
5472 core.List<ContactInformation> sellerContacts; 5570 core.List<ContactInformation> sellerContacts;
5473 5571
5474 Proposal(); 5572 Proposal();
5475 5573
5476 Proposal.fromJson(core.Map _json) { 5574 Proposal.fromJson(core.Map _json) {
5477 if (_json.containsKey("billedBuyer")) { 5575 if (_json.containsKey("billedBuyer")) {
5478 billedBuyer = new Buyer.fromJson(_json["billedBuyer"]); 5576 billedBuyer = new Buyer.fromJson(_json["billedBuyer"]);
5479 } 5577 }
5480 if (_json.containsKey("buyer")) { 5578 if (_json.containsKey("buyer")) {
5481 buyer = new Buyer.fromJson(_json["buyer"]); 5579 buyer = new Buyer.fromJson(_json["buyer"]);
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
6173 } 6271 }
6174 if (proposalRevisionNumber != null) { 6272 if (proposalRevisionNumber != null) {
6175 _json["proposalRevisionNumber"] = proposalRevisionNumber; 6273 _json["proposalRevisionNumber"] = proposalRevisionNumber;
6176 } 6274 }
6177 if (updateAction != null) { 6275 if (updateAction != null) {
6178 _json["updateAction"] = updateAction; 6276 _json["updateAction"] = updateAction;
6179 } 6277 }
6180 return _json; 6278 return _json;
6181 } 6279 }
6182 } 6280 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/acceleratedmobilepageurl/v1.dart ('k') | generated/googleapis/lib/adexchangeseller/v1_1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698