| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.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 2538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2549 return _json; | 2549 return _json; |
| 2550 } | 2550 } |
| 2551 } | 2551 } |
| 2552 | 2552 |
| 2553 class CreativeFilteringReasonsReasons { | 2553 class CreativeFilteringReasonsReasons { |
| 2554 /** | 2554 /** |
| 2555 * The number of times the creative was filtered for the status. The count is | 2555 * The number of times the creative was filtered for the status. The count is |
| 2556 * aggregated across all publishers on the exchange. | 2556 * aggregated across all publishers on the exchange. |
| 2557 */ | 2557 */ |
| 2558 core.String filteringCount; | 2558 core.String filteringCount; |
| 2559 /** | 2559 /** The filtering status code as defined in creative-status-codes.txt. */ |
| 2560 * The filtering status code. Please refer to the creative-status-codes.txt | |
| 2561 * file for different statuses. | |
| 2562 */ | |
| 2563 core.int filteringStatus; | 2560 core.int filteringStatus; |
| 2564 | 2561 |
| 2565 CreativeFilteringReasonsReasons(); | 2562 CreativeFilteringReasonsReasons(); |
| 2566 | 2563 |
| 2567 CreativeFilteringReasonsReasons.fromJson(core.Map _json) { | 2564 CreativeFilteringReasonsReasons.fromJson(core.Map _json) { |
| 2568 if (_json.containsKey("filteringCount")) { | 2565 if (_json.containsKey("filteringCount")) { |
| 2569 filteringCount = _json["filteringCount"]; | 2566 filteringCount = _json["filteringCount"]; |
| 2570 } | 2567 } |
| 2571 if (_json.containsKey("filteringStatus")) { | 2568 if (_json.containsKey("filteringStatus")) { |
| 2572 filteringStatus = _json["filteringStatus"]; | 2569 filteringStatus = _json["filteringStatus"]; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2862 * Only set when contextType=AUCTION_TYPE. Represents the auction types this | 2859 * Only set when contextType=AUCTION_TYPE. Represents the auction types this |
| 2863 * restriction applies to. | 2860 * restriction applies to. |
| 2864 */ | 2861 */ |
| 2865 core.List<core.String> auctionType; | 2862 core.List<core.String> auctionType; |
| 2866 /** | 2863 /** |
| 2867 * The type of context (e.g., location, platform, auction type, SSL-ness). | 2864 * The type of context (e.g., location, platform, auction type, SSL-ness). |
| 2868 */ | 2865 */ |
| 2869 core.String contextType; | 2866 core.String contextType; |
| 2870 /** | 2867 /** |
| 2871 * Only set when contextType=LOCATION. Represents the geo criterias this | 2868 * Only set when contextType=LOCATION. Represents the geo criterias this |
| 2872 * restriction applies to. | 2869 * restriction applies to. Impressions are considered to match a context if |
| 2870 * either the user location or publisher location matches a given |
| 2871 * geoCriteriaId. |
| 2873 */ | 2872 */ |
| 2874 core.List<core.int> geoCriteriaId; | 2873 core.List<core.int> geoCriteriaId; |
| 2875 /** | 2874 /** |
| 2876 * Only set when contextType=PLATFORM. Represents the platforms this | 2875 * Only set when contextType=PLATFORM. Represents the platforms this |
| 2877 * restriction applies to. | 2876 * restriction applies to. |
| 2878 */ | 2877 */ |
| 2879 core.List<core.String> platform; | 2878 core.List<core.String> platform; |
| 2880 | 2879 |
| 2881 CreativeServingRestrictionsContexts(); | 2880 CreativeServingRestrictionsContexts(); |
| 2882 | 2881 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2999 core.int accountId; | 2998 core.int accountId; |
| 3000 /** | 2999 /** |
| 3001 * The link to the Ad Preferences page. This is only supported for native ads. | 3000 * The link to the Ad Preferences page. This is only supported for native ads. |
| 3002 */ | 3001 */ |
| 3003 core.String adChoicesDestinationUrl; | 3002 core.String adChoicesDestinationUrl; |
| 3004 /** | 3003 /** |
| 3005 * Detected advertiser id, if any. Read-only. This field should not be set in | 3004 * Detected advertiser id, if any. Read-only. This field should not be set in |
| 3006 * requests. | 3005 * requests. |
| 3007 */ | 3006 */ |
| 3008 core.List<core.String> advertiserId; | 3007 core.List<core.String> advertiserId; |
| 3009 /** The name of the company being advertised in the creative. */ | 3008 /** |
| 3009 * The name of the company being advertised in the creative. The value |
| 3010 * provided must exist in the advertisers.txt file. |
| 3011 */ |
| 3010 core.String advertiserName; | 3012 core.String advertiserName; |
| 3011 /** The agency id for this creative. */ | 3013 /** The agency id for this creative. */ |
| 3012 core.String agencyId; | 3014 core.String agencyId; |
| 3013 /** | 3015 /** |
| 3014 * The last upload timestamp of this creative if it was uploaded via API. | 3016 * The last upload timestamp of this creative if it was uploaded via API. |
| 3015 * Read-only. The value of this field is generated, and will be ignored for | 3017 * Read-only. The value of this field is generated, and will be ignored for |
| 3016 * uploads. (formatted RFC 3339 timestamp). | 3018 * uploads. (formatted RFC 3339 timestamp). |
| 3017 */ | 3019 */ |
| 3018 core.DateTime apiUploadTimestamp; | 3020 core.DateTime apiUploadTimestamp; |
| 3019 /** All attributes for the ads that may be shown from this snippet. */ | 3021 /** |
| 3022 * List of buyer selectable attributes for the ads that may be shown from this |
| 3023 * snippet. Each attribute is represented by an integer as defined in |
| 3024 * buyer-declarable-creative-attributes.txt. |
| 3025 */ |
| 3020 core.List<core.int> attribute; | 3026 core.List<core.int> attribute; |
| 3021 /** A buyer-specific id identifying the creative in this ad. */ | 3027 /** A buyer-specific id identifying the creative in this ad. */ |
| 3022 core.String buyerCreativeId; | 3028 core.String buyerCreativeId; |
| 3023 /** The set of destination urls for the snippet. */ | 3029 /** The set of destination urls for the snippet. */ |
| 3024 core.List<core.String> clickThroughUrl; | 3030 core.List<core.String> clickThroughUrl; |
| 3025 /** | 3031 /** |
| 3026 * Shows any corrections that were applied to this creative. Read-only. This | 3032 * Shows any corrections that were applied to this creative. Read-only. This |
| 3027 * field should not be set in requests. | 3033 * field should not be set in requests. |
| 3028 */ | 3034 */ |
| 3029 core.List<CreativeCorrections> corrections; | 3035 core.List<CreativeCorrections> corrections; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3063 CreativeNativeAd nativeAd; | 3069 CreativeNativeAd nativeAd; |
| 3064 /** | 3070 /** |
| 3065 * Top-level open auction status. Read-only. This field should not be set in | 3071 * Top-level open auction status. Read-only. This field should not be set in |
| 3066 * requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in | 3072 * requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in |
| 3067 * servingRestrictions will also exist. Note that this may be nuanced with | 3073 * servingRestrictions will also exist. Note that this may be nuanced with |
| 3068 * other contextual restrictions, in which case it may be preferable to read | 3074 * other contextual restrictions, in which case it may be preferable to read |
| 3069 * from ServingRestrictions directly. | 3075 * from ServingRestrictions directly. |
| 3070 */ | 3076 */ |
| 3071 core.String openAuctionStatus; | 3077 core.String openAuctionStatus; |
| 3072 /** | 3078 /** |
| 3073 * Detected product categories, if any. Read-only. This field should not be | 3079 * Detected product categories, if any. Each category is represented by an |
| 3074 * set in requests. | 3080 * integer as defined in ad-product-categories.txt. Read-only. This field |
| 3081 * should not be set in requests. |
| 3075 */ | 3082 */ |
| 3076 core.List<core.int> productCategories; | 3083 core.List<core.int> productCategories; |
| 3077 /** | 3084 /** |
| 3078 * All restricted categories for the ads that may be shown from this snippet. | 3085 * All restricted categories for the ads that may be shown from this snippet. |
| 3086 * Each category is represented by an integer as defined in the |
| 3087 * ad-restricted-categories.txt. |
| 3079 */ | 3088 */ |
| 3080 core.List<core.int> restrictedCategories; | 3089 core.List<core.int> restrictedCategories; |
| 3081 /** | 3090 /** |
| 3082 * Detected sensitive categories, if any. Read-only. This field should not be | 3091 * Detected sensitive categories, if any. Each category is represented by an |
| 3083 * set in requests. | 3092 * integer as defined in ad-sensitive-categories.txt. Read-only. This field |
| 3093 * should not be set in requests. |
| 3084 */ | 3094 */ |
| 3085 core.List<core.int> sensitiveCategories; | 3095 core.List<core.int> sensitiveCategories; |
| 3086 /** | 3096 /** |
| 3087 * The granular status of this ad in specific contexts. A context here relates | 3097 * The granular status of this ad in specific contexts. A context here relates |
| 3088 * to where something ultimately serves (for example, a physical location, a | 3098 * to where something ultimately serves (for example, a physical location, a |
| 3089 * platform, an HTTPS vs HTTP request, or the type of auction). Read-only. | 3099 * platform, an HTTPS vs HTTP request, or the type of auction). Read-only. |
| 3090 * This field should not be set in requests. | 3100 * This field should not be set in requests. |
| 3091 */ | 3101 */ |
| 3092 core.List<CreativeServingRestrictions> servingRestrictions; | 3102 core.List<CreativeServingRestrictions> servingRestrictions; |
| 3093 /** All vendor types for the ads that may be shown from this snippet. */ | 3103 /** |
| 3104 * List of vendor types for the ads that may be shown from this snippet. Each |
| 3105 * vendor type is represented by an integer as defined in vendors.txt. |
| 3106 */ |
| 3094 core.List<core.int> vendorType; | 3107 core.List<core.int> vendorType; |
| 3095 /** | 3108 /** |
| 3096 * The version for this creative. Read-only. This field should not be set in | 3109 * The version for this creative. Read-only. This field should not be set in |
| 3097 * requests. | 3110 * requests. |
| 3098 */ | 3111 */ |
| 3099 core.int version; | 3112 core.int version; |
| 3100 /** | 3113 /** |
| 3101 * The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should | 3114 * The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should |
| 3102 * not be set. Note, this is different from resource.native_ad.video_url | 3115 * not be set. Note, this is different from resource.native_ad.video_url |
| 3103 * above. | 3116 * above. |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3392 } | 3405 } |
| 3393 if (nextPageToken != null) { | 3406 if (nextPageToken != null) { |
| 3394 _json["nextPageToken"] = nextPageToken; | 3407 _json["nextPageToken"] = nextPageToken; |
| 3395 } | 3408 } |
| 3396 return _json; | 3409 return _json; |
| 3397 } | 3410 } |
| 3398 } | 3411 } |
| 3399 | 3412 |
| 3400 class DealServingMetadata { | 3413 class DealServingMetadata { |
| 3401 /** | 3414 /** |
| 3415 * True if alcohol ads are allowed for this deal (read-only). This field is |
| 3416 * only populated when querying for finalized orders using the method |
| 3417 * GetFinalizedOrderDeals |
| 3418 */ |
| 3419 core.bool alcoholAdsAllowed; |
| 3420 /** |
| 3402 * Tracks which parties (if any) have paused a deal. (readonly, except via | 3421 * Tracks which parties (if any) have paused a deal. (readonly, except via |
| 3403 * PauseResumeOrderDeals action) | 3422 * PauseResumeOrderDeals action) |
| 3404 */ | 3423 */ |
| 3405 DealServingMetadataDealPauseStatus dealPauseStatus; | 3424 DealServingMetadataDealPauseStatus dealPauseStatus; |
| 3406 | 3425 |
| 3407 DealServingMetadata(); | 3426 DealServingMetadata(); |
| 3408 | 3427 |
| 3409 DealServingMetadata.fromJson(core.Map _json) { | 3428 DealServingMetadata.fromJson(core.Map _json) { |
| 3429 if (_json.containsKey("alcoholAdsAllowed")) { |
| 3430 alcoholAdsAllowed = _json["alcoholAdsAllowed"]; |
| 3431 } |
| 3410 if (_json.containsKey("dealPauseStatus")) { | 3432 if (_json.containsKey("dealPauseStatus")) { |
| 3411 dealPauseStatus = new DealServingMetadataDealPauseStatus.fromJson(_json["d
ealPauseStatus"]); | 3433 dealPauseStatus = new DealServingMetadataDealPauseStatus.fromJson(_json["d
ealPauseStatus"]); |
| 3412 } | 3434 } |
| 3413 } | 3435 } |
| 3414 | 3436 |
| 3415 core.Map toJson() { | 3437 core.Map toJson() { |
| 3416 var _json = new core.Map(); | 3438 var _json = new core.Map(); |
| 3439 if (alcoholAdsAllowed != null) { |
| 3440 _json["alcoholAdsAllowed"] = alcoholAdsAllowed; |
| 3441 } |
| 3417 if (dealPauseStatus != null) { | 3442 if (dealPauseStatus != null) { |
| 3418 _json["dealPauseStatus"] = (dealPauseStatus).toJson(); | 3443 _json["dealPauseStatus"] = (dealPauseStatus).toJson(); |
| 3419 } | 3444 } |
| 3420 return _json; | 3445 return _json; |
| 3421 } | 3446 } |
| 3422 } | 3447 } |
| 3423 | 3448 |
| 3424 /** | 3449 /** |
| 3425 * Tracks which parties (if any) have paused a deal. The deal is considered | 3450 * Tracks which parties (if any) have paused a deal. The deal is considered |
| 3426 * paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused | 3451 * paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused |
| (...skipping 3071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6498 } | 6523 } |
| 6499 if (proposalRevisionNumber != null) { | 6524 if (proposalRevisionNumber != null) { |
| 6500 _json["proposalRevisionNumber"] = proposalRevisionNumber; | 6525 _json["proposalRevisionNumber"] = proposalRevisionNumber; |
| 6501 } | 6526 } |
| 6502 if (updateAction != null) { | 6527 if (updateAction != null) { |
| 6503 _json["updateAction"] = updateAction; | 6528 _json["updateAction"] = updateAction; |
| 6504 } | 6529 } |
| 6505 return _json; | 6530 return _json; |
| 6506 } | 6531 } |
| 6507 } | 6532 } |
| OLD | NEW |