| 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:crypto/crypto.dart' as crypto; | 10 import 'package:crypto/crypto.dart' as crypto; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 29 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
| 30 BillingInfoResourceApi get billingInfo => new BillingInfoResourceApi(_requeste
r); | 30 BillingInfoResourceApi get billingInfo => new BillingInfoResourceApi(_requeste
r); |
| 31 BudgetResourceApi get budget => new BudgetResourceApi(_requester); | 31 BudgetResourceApi get budget => new BudgetResourceApi(_requester); |
| 32 CreativesResourceApi get creatives => new CreativesResourceApi(_requester); | 32 CreativesResourceApi get creatives => new CreativesResourceApi(_requester); |
| 33 MarketplacedealsResourceApi get marketplacedeals => new MarketplacedealsResour
ceApi(_requester); | 33 MarketplacedealsResourceApi get marketplacedeals => new MarketplacedealsResour
ceApi(_requester); |
| 34 MarketplacenotesResourceApi get marketplacenotes => new MarketplacenotesResour
ceApi(_requester); | 34 MarketplacenotesResourceApi get marketplacenotes => new MarketplacenotesResour
ceApi(_requester); |
| 35 PerformanceReportResourceApi get performanceReport => new PerformanceReportRes
ourceApi(_requester); | 35 PerformanceReportResourceApi get performanceReport => new PerformanceReportRes
ourceApi(_requester); |
| 36 PretargetingConfigResourceApi get pretargetingConfig => new PretargetingConfig
ResourceApi(_requester); | 36 PretargetingConfigResourceApi get pretargetingConfig => new PretargetingConfig
ResourceApi(_requester); |
| 37 ProductsResourceApi get products => new ProductsResourceApi(_requester); | 37 ProductsResourceApi get products => new ProductsResourceApi(_requester); |
| 38 ProposalsResourceApi get proposals => new ProposalsResourceApi(_requester); | 38 ProposalsResourceApi get proposals => new ProposalsResourceApi(_requester); |
| 39 PubprofilesResourceApi get pubprofiles => new PubprofilesResourceApi(_requeste
r); |
| 39 | 40 |
| 40 AdexchangebuyerApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "adexchangebuyer/v1.4/"}) : | 41 AdexchangebuyerApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "adexchangebuyer/v1.4/"}) : |
| 41 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 42 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 42 } | 43 } |
| 43 | 44 |
| 44 | 45 |
| 45 class AccountsResourceApi { | 46 class AccountsResourceApi { |
| 46 final commons.ApiRequester _requester; | 47 final commons.ApiRequester _requester; |
| 47 | 48 |
| 48 AccountsResourceApi(commons.ApiRequester client) : | 49 AccountsResourceApi(commons.ApiRequester client) : |
| (...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 "GET", | 1625 "GET", |
| 1625 body: _body, | 1626 body: _body, |
| 1626 queryParams: _queryParams, | 1627 queryParams: _queryParams, |
| 1627 uploadOptions: _uploadOptions, | 1628 uploadOptions: _uploadOptions, |
| 1628 uploadMedia: _uploadMedia, | 1629 uploadMedia: _uploadMedia, |
| 1629 downloadOptions: _downloadOptions); | 1630 downloadOptions: _downloadOptions); |
| 1630 return _response.then((data) => new GetOrdersResponse.fromJson(data)); | 1631 return _response.then((data) => new GetOrdersResponse.fromJson(data)); |
| 1631 } | 1632 } |
| 1632 | 1633 |
| 1633 /** | 1634 /** |
| 1635 * Update the given proposal to indicate that setup has been completed. |
| 1636 * |
| 1637 * Request parameters: |
| 1638 * |
| 1639 * [proposalId] - The proposal id for which the setup is complete |
| 1640 * |
| 1641 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1642 * error. |
| 1643 * |
| 1644 * If the used [http.Client] completes with an error when making a REST call, |
| 1645 * this method will complete with the same error. |
| 1646 */ |
| 1647 async.Future setupcomplete(core.String proposalId) { |
| 1648 var _url = null; |
| 1649 var _queryParams = new core.Map(); |
| 1650 var _uploadMedia = null; |
| 1651 var _uploadOptions = null; |
| 1652 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1653 var _body = null; |
| 1654 |
| 1655 if (proposalId == null) { |
| 1656 throw new core.ArgumentError("Parameter proposalId is required."); |
| 1657 } |
| 1658 |
| 1659 _downloadOptions = null; |
| 1660 |
| 1661 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/setup
complete'; |
| 1662 |
| 1663 var _response = _requester.request(_url, |
| 1664 "POST", |
| 1665 body: _body, |
| 1666 queryParams: _queryParams, |
| 1667 uploadOptions: _uploadOptions, |
| 1668 uploadMedia: _uploadMedia, |
| 1669 downloadOptions: _downloadOptions); |
| 1670 return _response.then((data) => null); |
| 1671 } |
| 1672 |
| 1673 /** |
| 1634 * Update the given proposal | 1674 * Update the given proposal |
| 1635 * | 1675 * |
| 1636 * [request] - The metadata request object. | 1676 * [request] - The metadata request object. |
| 1637 * | 1677 * |
| 1638 * Request parameters: | 1678 * Request parameters: |
| 1639 * | 1679 * |
| 1640 * [proposalId] - The proposal id to update. | 1680 * [proposalId] - The proposal id to update. |
| 1641 * | 1681 * |
| 1642 * [revisionNumber] - The last known revision number to update. If the head | 1682 * [revisionNumber] - The last known revision number to update. If the head |
| 1643 * revision in the marketplace database has since changed, an error will be | 1683 * revision in the marketplace database has since changed, an error will be |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1689 queryParams: _queryParams, | 1729 queryParams: _queryParams, |
| 1690 uploadOptions: _uploadOptions, | 1730 uploadOptions: _uploadOptions, |
| 1691 uploadMedia: _uploadMedia, | 1731 uploadMedia: _uploadMedia, |
| 1692 downloadOptions: _downloadOptions); | 1732 downloadOptions: _downloadOptions); |
| 1693 return _response.then((data) => new Proposal.fromJson(data)); | 1733 return _response.then((data) => new Proposal.fromJson(data)); |
| 1694 } | 1734 } |
| 1695 | 1735 |
| 1696 } | 1736 } |
| 1697 | 1737 |
| 1698 | 1738 |
| 1739 class PubprofilesResourceApi { |
| 1740 final commons.ApiRequester _requester; |
| 1741 |
| 1742 PubprofilesResourceApi(commons.ApiRequester client) : |
| 1743 _requester = client; |
| 1744 |
| 1745 /** |
| 1746 * Gets the requested publisher profile(s) by publisher accountId. |
| 1747 * |
| 1748 * Request parameters: |
| 1749 * |
| 1750 * [accountId] - The accountId of the publisher to get profiles for. |
| 1751 * |
| 1752 * Completes with a [GetPublisherProfilesByAccountIdResponse]. |
| 1753 * |
| 1754 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1755 * error. |
| 1756 * |
| 1757 * If the used [http.Client] completes with an error when making a REST call, |
| 1758 * this method will complete with the same error. |
| 1759 */ |
| 1760 async.Future<GetPublisherProfilesByAccountIdResponse> list(core.int accountId)
{ |
| 1761 var _url = null; |
| 1762 var _queryParams = new core.Map(); |
| 1763 var _uploadMedia = null; |
| 1764 var _uploadOptions = null; |
| 1765 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1766 var _body = null; |
| 1767 |
| 1768 if (accountId == null) { |
| 1769 throw new core.ArgumentError("Parameter accountId is required."); |
| 1770 } |
| 1771 |
| 1772 _url = 'publisher/' + commons.Escaper.ecapeVariable('$accountId') + '/profil
es'; |
| 1773 |
| 1774 var _response = _requester.request(_url, |
| 1775 "GET", |
| 1776 body: _body, |
| 1777 queryParams: _queryParams, |
| 1778 uploadOptions: _uploadOptions, |
| 1779 uploadMedia: _uploadMedia, |
| 1780 downloadOptions: _downloadOptions); |
| 1781 return _response.then((data) => new GetPublisherProfilesByAccountIdResponse.
fromJson(data)); |
| 1782 } |
| 1783 |
| 1784 } |
| 1785 |
| 1786 |
| 1699 | 1787 |
| 1700 class AccountBidderLocation { | 1788 class AccountBidderLocation { |
| 1789 /** |
| 1790 * The protocol that the bidder endpoint is using. By default, OpenRTB |
| 1791 * protocols use JSON, except PROTOCOL_OPENRTB_PROTOBUF. |
| 1792 * PROTOCOL_OPENRTB_PROTOBUF uses protobuf encoding over the latest OpenRTB |
| 1793 * protocol version, which is 2.3 right now. Allowed values: |
| 1794 * - PROTOCOL_ADX |
| 1795 * - PROTOCOL_OPENRTB_2_2 |
| 1796 * - PROTOCOL_OPENRTB_2_3 |
| 1797 * - PROTOCOL_OPENRTB_PROTOBUF |
| 1798 */ |
| 1799 core.String bidProtocol; |
| 1701 /** The maximum queries per second the Ad Exchange will send. */ | 1800 /** The maximum queries per second the Ad Exchange will send. */ |
| 1702 core.int maximumQps; | 1801 core.int maximumQps; |
| 1703 /** | 1802 /** |
| 1704 * The geographical region the Ad Exchange should send requests from. Only | 1803 * The geographical region the Ad Exchange should send requests from. Only |
| 1705 * used by some quota systems, but always setting the value is recommended. | 1804 * used by some quota systems, but always setting the value is recommended. |
| 1706 * Allowed values: | 1805 * Allowed values: |
| 1707 * - ASIA | 1806 * - ASIA |
| 1708 * - EUROPE | 1807 * - EUROPE |
| 1709 * - US_EAST | 1808 * - US_EAST |
| 1710 * - US_WEST | 1809 * - US_WEST |
| 1711 */ | 1810 */ |
| 1712 core.String region; | 1811 core.String region; |
| 1713 /** The URL to which the Ad Exchange will send bid requests. */ | 1812 /** The URL to which the Ad Exchange will send bid requests. */ |
| 1714 core.String url; | 1813 core.String url; |
| 1715 | 1814 |
| 1716 AccountBidderLocation(); | 1815 AccountBidderLocation(); |
| 1717 | 1816 |
| 1718 AccountBidderLocation.fromJson(core.Map _json) { | 1817 AccountBidderLocation.fromJson(core.Map _json) { |
| 1818 if (_json.containsKey("bidProtocol")) { |
| 1819 bidProtocol = _json["bidProtocol"]; |
| 1820 } |
| 1719 if (_json.containsKey("maximumQps")) { | 1821 if (_json.containsKey("maximumQps")) { |
| 1720 maximumQps = _json["maximumQps"]; | 1822 maximumQps = _json["maximumQps"]; |
| 1721 } | 1823 } |
| 1722 if (_json.containsKey("region")) { | 1824 if (_json.containsKey("region")) { |
| 1723 region = _json["region"]; | 1825 region = _json["region"]; |
| 1724 } | 1826 } |
| 1725 if (_json.containsKey("url")) { | 1827 if (_json.containsKey("url")) { |
| 1726 url = _json["url"]; | 1828 url = _json["url"]; |
| 1727 } | 1829 } |
| 1728 } | 1830 } |
| 1729 | 1831 |
| 1730 core.Map toJson() { | 1832 core.Map toJson() { |
| 1731 var _json = new core.Map(); | 1833 var _json = new core.Map(); |
| 1834 if (bidProtocol != null) { |
| 1835 _json["bidProtocol"] = bidProtocol; |
| 1836 } |
| 1732 if (maximumQps != null) { | 1837 if (maximumQps != null) { |
| 1733 _json["maximumQps"] = maximumQps; | 1838 _json["maximumQps"] = maximumQps; |
| 1734 } | 1839 } |
| 1735 if (region != null) { | 1840 if (region != null) { |
| 1736 _json["region"] = region; | 1841 _json["region"] = region; |
| 1737 } | 1842 } |
| 1738 if (url != null) { | 1843 if (url != null) { |
| 1739 _json["url"] = url; | 1844 _json["url"] = url; |
| 1740 } | 1845 } |
| 1741 return _json; | 1846 return _json; |
| (...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2964 if (kind != null) { | 3069 if (kind != null) { |
| 2965 _json["kind"] = kind; | 3070 _json["kind"] = kind; |
| 2966 } | 3071 } |
| 2967 if (nextPageToken != null) { | 3072 if (nextPageToken != null) { |
| 2968 _json["nextPageToken"] = nextPageToken; | 3073 _json["nextPageToken"] = nextPageToken; |
| 2969 } | 3074 } |
| 2970 return _json; | 3075 return _json; |
| 2971 } | 3076 } |
| 2972 } | 3077 } |
| 2973 | 3078 |
| 3079 class DealServingMetadata { |
| 3080 /** |
| 3081 * Tracks which parties (if any) have paused a deal. (readonly, except via |
| 3082 * PauseResumeOrderDeals action) |
| 3083 */ |
| 3084 DealServingMetadataDealPauseStatus dealPauseStatus; |
| 3085 |
| 3086 DealServingMetadata(); |
| 3087 |
| 3088 DealServingMetadata.fromJson(core.Map _json) { |
| 3089 if (_json.containsKey("dealPauseStatus")) { |
| 3090 dealPauseStatus = new DealServingMetadataDealPauseStatus.fromJson(_json["d
ealPauseStatus"]); |
| 3091 } |
| 3092 } |
| 3093 |
| 3094 core.Map toJson() { |
| 3095 var _json = new core.Map(); |
| 3096 if (dealPauseStatus != null) { |
| 3097 _json["dealPauseStatus"] = (dealPauseStatus).toJson(); |
| 3098 } |
| 3099 return _json; |
| 3100 } |
| 3101 } |
| 3102 |
| 3103 /** |
| 3104 * Tracks which parties (if any) have paused a deal. The deal is considered |
| 3105 * paused if has_buyer_paused || has_seller_paused. |
| 3106 */ |
| 3107 class DealServingMetadataDealPauseStatus { |
| 3108 core.bool hasBuyerPaused; |
| 3109 core.bool hasSellerPaused; |
| 3110 |
| 3111 DealServingMetadataDealPauseStatus(); |
| 3112 |
| 3113 DealServingMetadataDealPauseStatus.fromJson(core.Map _json) { |
| 3114 if (_json.containsKey("hasBuyerPaused")) { |
| 3115 hasBuyerPaused = _json["hasBuyerPaused"]; |
| 3116 } |
| 3117 if (_json.containsKey("hasSellerPaused")) { |
| 3118 hasSellerPaused = _json["hasSellerPaused"]; |
| 3119 } |
| 3120 } |
| 3121 |
| 3122 core.Map toJson() { |
| 3123 var _json = new core.Map(); |
| 3124 if (hasBuyerPaused != null) { |
| 3125 _json["hasBuyerPaused"] = hasBuyerPaused; |
| 3126 } |
| 3127 if (hasSellerPaused != null) { |
| 3128 _json["hasSellerPaused"] = hasSellerPaused; |
| 3129 } |
| 3130 return _json; |
| 3131 } |
| 3132 } |
| 3133 |
| 2974 class DealTerms { | 3134 class DealTerms { |
| 2975 /** Visibilty of the URL in bid requests. */ | 3135 /** Visibilty of the URL in bid requests. */ |
| 2976 core.String brandingType; | 3136 core.String brandingType; |
| 2977 /** Description for the proposed terms of the deal. */ | 3137 /** Description for the proposed terms of the deal. */ |
| 2978 core.String description; | 3138 core.String description; |
| 2979 /** | 3139 /** |
| 2980 * Non-binding estimate of the estimated gross spend for this deal Can be set | 3140 * Non-binding estimate of the estimated gross spend for this deal Can be set |
| 2981 * by buyer or seller. | 3141 * by buyer or seller. |
| 2982 */ | 3142 */ |
| 2983 Price estimatedGrossSpend; | 3143 Price estimatedGrossSpend; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3080 _json["guaranteedImpressions"] = guaranteedImpressions; | 3240 _json["guaranteedImpressions"] = guaranteedImpressions; |
| 3081 } | 3241 } |
| 3082 if (guaranteedLooks != null) { | 3242 if (guaranteedLooks != null) { |
| 3083 _json["guaranteedLooks"] = guaranteedLooks; | 3243 _json["guaranteedLooks"] = guaranteedLooks; |
| 3084 } | 3244 } |
| 3085 return _json; | 3245 return _json; |
| 3086 } | 3246 } |
| 3087 } | 3247 } |
| 3088 | 3248 |
| 3089 class DealTermsNonGuaranteedAuctionTerms { | 3249 class DealTermsNonGuaranteedAuctionTerms { |
| 3090 /** Id of the corresponding private auction. */ | 3250 /** |
| 3091 core.String privateAuctionId; | 3251 * True if open auction buyers are allowed to compete with invited buyers in |
| 3252 * this private auction (buyer-readonly). |
| 3253 */ |
| 3254 core.bool autoOptimizePrivateAuction; |
| 3092 /** Reserve price for the specified buyer. */ | 3255 /** Reserve price for the specified buyer. */ |
| 3093 core.List<PricePerBuyer> reservePricePerBuyers; | 3256 core.List<PricePerBuyer> reservePricePerBuyers; |
| 3094 | 3257 |
| 3095 DealTermsNonGuaranteedAuctionTerms(); | 3258 DealTermsNonGuaranteedAuctionTerms(); |
| 3096 | 3259 |
| 3097 DealTermsNonGuaranteedAuctionTerms.fromJson(core.Map _json) { | 3260 DealTermsNonGuaranteedAuctionTerms.fromJson(core.Map _json) { |
| 3098 if (_json.containsKey("privateAuctionId")) { | 3261 if (_json.containsKey("autoOptimizePrivateAuction")) { |
| 3099 privateAuctionId = _json["privateAuctionId"]; | 3262 autoOptimizePrivateAuction = _json["autoOptimizePrivateAuction"]; |
| 3100 } | 3263 } |
| 3101 if (_json.containsKey("reservePricePerBuyers")) { | 3264 if (_json.containsKey("reservePricePerBuyers")) { |
| 3102 reservePricePerBuyers = _json["reservePricePerBuyers"].map((value) => new
PricePerBuyer.fromJson(value)).toList(); | 3265 reservePricePerBuyers = _json["reservePricePerBuyers"].map((value) => new
PricePerBuyer.fromJson(value)).toList(); |
| 3103 } | 3266 } |
| 3104 } | 3267 } |
| 3105 | 3268 |
| 3106 core.Map toJson() { | 3269 core.Map toJson() { |
| 3107 var _json = new core.Map(); | 3270 var _json = new core.Map(); |
| 3108 if (privateAuctionId != null) { | 3271 if (autoOptimizePrivateAuction != null) { |
| 3109 _json["privateAuctionId"] = privateAuctionId; | 3272 _json["autoOptimizePrivateAuction"] = autoOptimizePrivateAuction; |
| 3110 } | 3273 } |
| 3111 if (reservePricePerBuyers != null) { | 3274 if (reservePricePerBuyers != null) { |
| 3112 _json["reservePricePerBuyers"] = reservePricePerBuyers.map((value) => (val
ue).toJson()).toList(); | 3275 _json["reservePricePerBuyers"] = reservePricePerBuyers.map((value) => (val
ue).toJson()).toList(); |
| 3113 } | 3276 } |
| 3114 return _json; | 3277 return _json; |
| 3115 } | 3278 } |
| 3116 } | 3279 } |
| 3117 | 3280 |
| 3118 class DealTermsNonGuaranteedFixedPriceTerms { | 3281 class DealTermsNonGuaranteedFixedPriceTerms { |
| 3119 /** Fixed price for the specified buyer. */ | 3282 /** Fixed price for the specified buyer. */ |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3326 if (updateAction != null) { | 3489 if (updateAction != null) { |
| 3327 _json["updateAction"] = updateAction; | 3490 _json["updateAction"] = updateAction; |
| 3328 } | 3491 } |
| 3329 return _json; | 3492 return _json; |
| 3330 } | 3493 } |
| 3331 } | 3494 } |
| 3332 | 3495 |
| 3333 class EditAllOrderDealsResponse { | 3496 class EditAllOrderDealsResponse { |
| 3334 /** List of all deals in the proposal after edit. */ | 3497 /** List of all deals in the proposal after edit. */ |
| 3335 core.List<MarketplaceDeal> deals; | 3498 core.List<MarketplaceDeal> deals; |
| 3499 /** The latest revision number after the update has been applied. */ |
| 3500 core.String orderRevisionNumber; |
| 3336 | 3501 |
| 3337 EditAllOrderDealsResponse(); | 3502 EditAllOrderDealsResponse(); |
| 3338 | 3503 |
| 3339 EditAllOrderDealsResponse.fromJson(core.Map _json) { | 3504 EditAllOrderDealsResponse.fromJson(core.Map _json) { |
| 3340 if (_json.containsKey("deals")) { | 3505 if (_json.containsKey("deals")) { |
| 3341 deals = _json["deals"].map((value) => new MarketplaceDeal.fromJson(value))
.toList(); | 3506 deals = _json["deals"].map((value) => new MarketplaceDeal.fromJson(value))
.toList(); |
| 3342 } | 3507 } |
| 3508 if (_json.containsKey("orderRevisionNumber")) { |
| 3509 orderRevisionNumber = _json["orderRevisionNumber"]; |
| 3510 } |
| 3343 } | 3511 } |
| 3344 | 3512 |
| 3345 core.Map toJson() { | 3513 core.Map toJson() { |
| 3346 var _json = new core.Map(); | 3514 var _json = new core.Map(); |
| 3347 if (deals != null) { | 3515 if (deals != null) { |
| 3348 _json["deals"] = deals.map((value) => (value).toJson()).toList(); | 3516 _json["deals"] = deals.map((value) => (value).toJson()).toList(); |
| 3349 } | 3517 } |
| 3518 if (orderRevisionNumber != null) { |
| 3519 _json["orderRevisionNumber"] = orderRevisionNumber; |
| 3520 } |
| 3350 return _json; | 3521 return _json; |
| 3351 } | 3522 } |
| 3352 } | 3523 } |
| 3353 | 3524 |
| 3354 class GetOffersResponse { | 3525 class GetOffersResponse { |
| 3355 /** The returned list of products. */ | 3526 /** The returned list of products. */ |
| 3356 core.List<Product> products; | 3527 core.List<Product> products; |
| 3357 | 3528 |
| 3358 GetOffersResponse(); | 3529 GetOffersResponse(); |
| 3359 | 3530 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3428 | 3599 |
| 3429 core.Map toJson() { | 3600 core.Map toJson() { |
| 3430 var _json = new core.Map(); | 3601 var _json = new core.Map(); |
| 3431 if (proposals != null) { | 3602 if (proposals != null) { |
| 3432 _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); | 3603 _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); |
| 3433 } | 3604 } |
| 3434 return _json; | 3605 return _json; |
| 3435 } | 3606 } |
| 3436 } | 3607 } |
| 3437 | 3608 |
| 3609 class GetPublisherProfilesByAccountIdResponse { |
| 3610 /** Profiles for the requested publisher */ |
| 3611 core.List<PublisherProfileApiProto> profiles; |
| 3612 |
| 3613 GetPublisherProfilesByAccountIdResponse(); |
| 3614 |
| 3615 GetPublisherProfilesByAccountIdResponse.fromJson(core.Map _json) { |
| 3616 if (_json.containsKey("profiles")) { |
| 3617 profiles = _json["profiles"].map((value) => new PublisherProfileApiProto.f
romJson(value)).toList(); |
| 3618 } |
| 3619 } |
| 3620 |
| 3621 core.Map toJson() { |
| 3622 var _json = new core.Map(); |
| 3623 if (profiles != null) { |
| 3624 _json["profiles"] = profiles.map((value) => (value).toJson()).toList(); |
| 3625 } |
| 3626 return _json; |
| 3627 } |
| 3628 } |
| 3629 |
| 3438 /** | 3630 /** |
| 3439 * A proposal can contain multiple deals. A deal contains the terms and | 3631 * A proposal can contain multiple deals. A deal contains the terms and |
| 3440 * targeting information that is used for serving. | 3632 * targeting information that is used for serving. |
| 3441 */ | 3633 */ |
| 3442 class MarketplaceDeal { | 3634 class MarketplaceDeal { |
| 3443 /** Buyer private data (hidden from seller). */ | 3635 /** Buyer private data (hidden from seller). */ |
| 3444 PrivateData buyerPrivateData; | 3636 PrivateData buyerPrivateData; |
| 3445 /** The time (ms since epoch) of the deal creation. (readonly) */ | 3637 /** The time (ms since epoch) of the deal creation. (readonly) */ |
| 3446 core.String creationTimeMs; | 3638 core.String creationTimeMs; |
| 3447 /** Specifies the creative pre-approval policy (buyer-readonly) */ | 3639 /** Specifies the creative pre-approval policy (buyer-readonly) */ |
| 3448 core.String creativePreApprovalPolicy; | 3640 core.String creativePreApprovalPolicy; |
| 3641 /** |
| 3642 * Specifies whether the creative is safeFrame compatible (buyer-readonly) |
| 3643 */ |
| 3644 core.String creativeSafeFrameCompatibility; |
| 3449 /** A unique deal=id for the deal (readonly). */ | 3645 /** A unique deal=id for the deal (readonly). */ |
| 3450 core.String dealId; | 3646 core.String dealId; |
| 3451 /** | 3647 /** |
| 3648 * Metadata about the serving status of this deal (readonly, writes via custom |
| 3649 * actions) |
| 3650 */ |
| 3651 DealServingMetadata dealServingMetadata; |
| 3652 /** |
| 3452 * The set of fields around delivery control that are interesting for a buyer | 3653 * The set of fields around delivery control that are interesting for a buyer |
| 3453 * to see but are non-negotiable. These are set by the publisher. This message | 3654 * to see but are non-negotiable. These are set by the publisher. This message |
| 3454 * is assigned an id of 100 since some day we would want to model this as a | 3655 * is assigned an id of 100 since some day we would want to model this as a |
| 3455 * protobuf extension. | 3656 * protobuf extension. |
| 3456 */ | 3657 */ |
| 3457 DeliveryControl deliveryControl; | 3658 DeliveryControl deliveryControl; |
| 3458 /** | 3659 /** |
| 3459 * The external deal id assigned to this deal once the deal is finalized. This | 3660 * The external deal id assigned to this deal once the deal is finalized. This |
| 3460 * is the deal-id that shows up in serving/reporting etc. (readonly) | 3661 * is the deal-id that shows up in serving/reporting etc. (readonly) |
| 3461 */ | 3662 */ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 3484 /** | 3685 /** |
| 3485 * The product-id from which this deal was created. (readonly, except on | 3686 * The product-id from which this deal was created. (readonly, except on |
| 3486 * create) | 3687 * create) |
| 3487 */ | 3688 */ |
| 3488 core.String productId; | 3689 core.String productId; |
| 3489 /** | 3690 /** |
| 3490 * The revision number of the product that the deal was created from | 3691 * The revision number of the product that the deal was created from |
| 3491 * (readonly, except on create) | 3692 * (readonly, except on create) |
| 3492 */ | 3693 */ |
| 3493 core.String productRevisionNumber; | 3694 core.String productRevisionNumber; |
| 3695 /** |
| 3696 * Specifies the creative source for programmatic deals, PUBLISHER means |
| 3697 * creative is provided by seller and ADVERTISR means creative is provided by |
| 3698 * buyer. (buyer-readonly) |
| 3699 */ |
| 3700 core.String programmaticCreativeSource; |
| 3494 core.String proposalId; | 3701 core.String proposalId; |
| 3495 /** Optional Seller contact information for the deal (buyer-readonly) */ | 3702 /** Optional Seller contact information for the deal (buyer-readonly) */ |
| 3496 core.List<ContactInformation> sellerContacts; | 3703 core.List<ContactInformation> sellerContacts; |
| 3497 /** The shared targeting visible to buyers and sellers. (updatable) */ | 3704 /** |
| 3705 * The shared targeting visible to buyers and sellers. Each shared targeting |
| 3706 * entity is AND'd together. (updatable) |
| 3707 */ |
| 3498 core.List<SharedTargeting> sharedTargetings; | 3708 core.List<SharedTargeting> sharedTargetings; |
| 3499 /** | 3709 /** |
| 3500 * The syndication product associated with the deal. (readonly, except on | 3710 * The syndication product associated with the deal. (readonly, except on |
| 3501 * create) | 3711 * create) |
| 3502 */ | 3712 */ |
| 3503 core.String syndicationProduct; | 3713 core.String syndicationProduct; |
| 3504 /** The negotiable terms of the deal. (updatable) */ | 3714 /** The negotiable terms of the deal. (updatable) */ |
| 3505 DealTerms terms; | 3715 DealTerms terms; |
| 3506 core.String webPropertyCode; | 3716 core.String webPropertyCode; |
| 3507 | 3717 |
| 3508 MarketplaceDeal(); | 3718 MarketplaceDeal(); |
| 3509 | 3719 |
| 3510 MarketplaceDeal.fromJson(core.Map _json) { | 3720 MarketplaceDeal.fromJson(core.Map _json) { |
| 3511 if (_json.containsKey("buyerPrivateData")) { | 3721 if (_json.containsKey("buyerPrivateData")) { |
| 3512 buyerPrivateData = new PrivateData.fromJson(_json["buyerPrivateData"]); | 3722 buyerPrivateData = new PrivateData.fromJson(_json["buyerPrivateData"]); |
| 3513 } | 3723 } |
| 3514 if (_json.containsKey("creationTimeMs")) { | 3724 if (_json.containsKey("creationTimeMs")) { |
| 3515 creationTimeMs = _json["creationTimeMs"]; | 3725 creationTimeMs = _json["creationTimeMs"]; |
| 3516 } | 3726 } |
| 3517 if (_json.containsKey("creativePreApprovalPolicy")) { | 3727 if (_json.containsKey("creativePreApprovalPolicy")) { |
| 3518 creativePreApprovalPolicy = _json["creativePreApprovalPolicy"]; | 3728 creativePreApprovalPolicy = _json["creativePreApprovalPolicy"]; |
| 3519 } | 3729 } |
| 3730 if (_json.containsKey("creativeSafeFrameCompatibility")) { |
| 3731 creativeSafeFrameCompatibility = _json["creativeSafeFrameCompatibility"]; |
| 3732 } |
| 3520 if (_json.containsKey("dealId")) { | 3733 if (_json.containsKey("dealId")) { |
| 3521 dealId = _json["dealId"]; | 3734 dealId = _json["dealId"]; |
| 3522 } | 3735 } |
| 3736 if (_json.containsKey("dealServingMetadata")) { |
| 3737 dealServingMetadata = new DealServingMetadata.fromJson(_json["dealServingM
etadata"]); |
| 3738 } |
| 3523 if (_json.containsKey("deliveryControl")) { | 3739 if (_json.containsKey("deliveryControl")) { |
| 3524 deliveryControl = new DeliveryControl.fromJson(_json["deliveryControl"]); | 3740 deliveryControl = new DeliveryControl.fromJson(_json["deliveryControl"]); |
| 3525 } | 3741 } |
| 3526 if (_json.containsKey("externalDealId")) { | 3742 if (_json.containsKey("externalDealId")) { |
| 3527 externalDealId = _json["externalDealId"]; | 3743 externalDealId = _json["externalDealId"]; |
| 3528 } | 3744 } |
| 3529 if (_json.containsKey("flightEndTimeMs")) { | 3745 if (_json.containsKey("flightEndTimeMs")) { |
| 3530 flightEndTimeMs = _json["flightEndTimeMs"]; | 3746 flightEndTimeMs = _json["flightEndTimeMs"]; |
| 3531 } | 3747 } |
| 3532 if (_json.containsKey("flightStartTimeMs")) { | 3748 if (_json.containsKey("flightStartTimeMs")) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3543 } | 3759 } |
| 3544 if (_json.containsKey("name")) { | 3760 if (_json.containsKey("name")) { |
| 3545 name = _json["name"]; | 3761 name = _json["name"]; |
| 3546 } | 3762 } |
| 3547 if (_json.containsKey("productId")) { | 3763 if (_json.containsKey("productId")) { |
| 3548 productId = _json["productId"]; | 3764 productId = _json["productId"]; |
| 3549 } | 3765 } |
| 3550 if (_json.containsKey("productRevisionNumber")) { | 3766 if (_json.containsKey("productRevisionNumber")) { |
| 3551 productRevisionNumber = _json["productRevisionNumber"]; | 3767 productRevisionNumber = _json["productRevisionNumber"]; |
| 3552 } | 3768 } |
| 3769 if (_json.containsKey("programmaticCreativeSource")) { |
| 3770 programmaticCreativeSource = _json["programmaticCreativeSource"]; |
| 3771 } |
| 3553 if (_json.containsKey("proposalId")) { | 3772 if (_json.containsKey("proposalId")) { |
| 3554 proposalId = _json["proposalId"]; | 3773 proposalId = _json["proposalId"]; |
| 3555 } | 3774 } |
| 3556 if (_json.containsKey("sellerContacts")) { | 3775 if (_json.containsKey("sellerContacts")) { |
| 3557 sellerContacts = _json["sellerContacts"].map((value) => new ContactInforma
tion.fromJson(value)).toList(); | 3776 sellerContacts = _json["sellerContacts"].map((value) => new ContactInforma
tion.fromJson(value)).toList(); |
| 3558 } | 3777 } |
| 3559 if (_json.containsKey("sharedTargetings")) { | 3778 if (_json.containsKey("sharedTargetings")) { |
| 3560 sharedTargetings = _json["sharedTargetings"].map((value) => new SharedTarg
eting.fromJson(value)).toList(); | 3779 sharedTargetings = _json["sharedTargetings"].map((value) => new SharedTarg
eting.fromJson(value)).toList(); |
| 3561 } | 3780 } |
| 3562 if (_json.containsKey("syndicationProduct")) { | 3781 if (_json.containsKey("syndicationProduct")) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3574 var _json = new core.Map(); | 3793 var _json = new core.Map(); |
| 3575 if (buyerPrivateData != null) { | 3794 if (buyerPrivateData != null) { |
| 3576 _json["buyerPrivateData"] = (buyerPrivateData).toJson(); | 3795 _json["buyerPrivateData"] = (buyerPrivateData).toJson(); |
| 3577 } | 3796 } |
| 3578 if (creationTimeMs != null) { | 3797 if (creationTimeMs != null) { |
| 3579 _json["creationTimeMs"] = creationTimeMs; | 3798 _json["creationTimeMs"] = creationTimeMs; |
| 3580 } | 3799 } |
| 3581 if (creativePreApprovalPolicy != null) { | 3800 if (creativePreApprovalPolicy != null) { |
| 3582 _json["creativePreApprovalPolicy"] = creativePreApprovalPolicy; | 3801 _json["creativePreApprovalPolicy"] = creativePreApprovalPolicy; |
| 3583 } | 3802 } |
| 3803 if (creativeSafeFrameCompatibility != null) { |
| 3804 _json["creativeSafeFrameCompatibility"] = creativeSafeFrameCompatibility; |
| 3805 } |
| 3584 if (dealId != null) { | 3806 if (dealId != null) { |
| 3585 _json["dealId"] = dealId; | 3807 _json["dealId"] = dealId; |
| 3586 } | 3808 } |
| 3809 if (dealServingMetadata != null) { |
| 3810 _json["dealServingMetadata"] = (dealServingMetadata).toJson(); |
| 3811 } |
| 3587 if (deliveryControl != null) { | 3812 if (deliveryControl != null) { |
| 3588 _json["deliveryControl"] = (deliveryControl).toJson(); | 3813 _json["deliveryControl"] = (deliveryControl).toJson(); |
| 3589 } | 3814 } |
| 3590 if (externalDealId != null) { | 3815 if (externalDealId != null) { |
| 3591 _json["externalDealId"] = externalDealId; | 3816 _json["externalDealId"] = externalDealId; |
| 3592 } | 3817 } |
| 3593 if (flightEndTimeMs != null) { | 3818 if (flightEndTimeMs != null) { |
| 3594 _json["flightEndTimeMs"] = flightEndTimeMs; | 3819 _json["flightEndTimeMs"] = flightEndTimeMs; |
| 3595 } | 3820 } |
| 3596 if (flightStartTimeMs != null) { | 3821 if (flightStartTimeMs != null) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3607 } | 3832 } |
| 3608 if (name != null) { | 3833 if (name != null) { |
| 3609 _json["name"] = name; | 3834 _json["name"] = name; |
| 3610 } | 3835 } |
| 3611 if (productId != null) { | 3836 if (productId != null) { |
| 3612 _json["productId"] = productId; | 3837 _json["productId"] = productId; |
| 3613 } | 3838 } |
| 3614 if (productRevisionNumber != null) { | 3839 if (productRevisionNumber != null) { |
| 3615 _json["productRevisionNumber"] = productRevisionNumber; | 3840 _json["productRevisionNumber"] = productRevisionNumber; |
| 3616 } | 3841 } |
| 3842 if (programmaticCreativeSource != null) { |
| 3843 _json["programmaticCreativeSource"] = programmaticCreativeSource; |
| 3844 } |
| 3617 if (proposalId != null) { | 3845 if (proposalId != null) { |
| 3618 _json["proposalId"] = proposalId; | 3846 _json["proposalId"] = proposalId; |
| 3619 } | 3847 } |
| 3620 if (sellerContacts != null) { | 3848 if (sellerContacts != null) { |
| 3621 _json["sellerContacts"] = sellerContacts.map((value) => (value).toJson()).
toList(); | 3849 _json["sellerContacts"] = sellerContacts.map((value) => (value).toJson()).
toList(); |
| 3622 } | 3850 } |
| 3623 if (sharedTargetings != null) { | 3851 if (sharedTargetings != null) { |
| 3624 _json["sharedTargetings"] = sharedTargetings.map((value) => (value).toJson
()).toList(); | 3852 _json["sharedTargetings"] = sharedTargetings.map((value) => (value).toJson
()).toList(); |
| 3625 } | 3853 } |
| 3626 if (syndicationProduct != null) { | 3854 if (syndicationProduct != null) { |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4610 * buyer or the seller. | 4838 * buyer or the seller. |
| 4611 */ | 4839 */ |
| 4612 class Product { | 4840 class Product { |
| 4613 /** Creation time in ms. since epoch (readonly) */ | 4841 /** Creation time in ms. since epoch (readonly) */ |
| 4614 core.String creationTimeMs; | 4842 core.String creationTimeMs; |
| 4615 /** | 4843 /** |
| 4616 * Optional contact information for the creator of this product. | 4844 * Optional contact information for the creator of this product. |
| 4617 * (buyer-readonly) | 4845 * (buyer-readonly) |
| 4618 */ | 4846 */ |
| 4619 core.List<ContactInformation> creatorContacts; | 4847 core.List<ContactInformation> creatorContacts; |
| 4848 /** |
| 4849 * The set of fields around delivery control that are interesting for a buyer |
| 4850 * to see but are non-negotiable. These are set by the publisher. This message |
| 4851 * is assigned an id of 100 since some day we would want to model this as a |
| 4852 * protobuf extension. |
| 4853 */ |
| 4854 DeliveryControl deliveryControl; |
| 4620 /** The proposed end time for the deal (ms since epoch) (buyer-readonly) */ | 4855 /** The proposed end time for the deal (ms since epoch) (buyer-readonly) */ |
| 4621 core.String flightEndTimeMs; | 4856 core.String flightEndTimeMs; |
| 4622 /** | 4857 /** |
| 4623 * Inventory availability dates. (times are in ms since epoch) The granularity | 4858 * Inventory availability dates. (times are in ms since epoch) The granularity |
| 4624 * is generally in the order of seconds. (buyer-readonly) | 4859 * is generally in the order of seconds. (buyer-readonly) |
| 4625 */ | 4860 */ |
| 4626 core.String flightStartTimeMs; | 4861 core.String flightStartTimeMs; |
| 4627 /** | 4862 /** |
| 4628 * If the creator has already signed off on the product, then the buyer can | 4863 * If the creator has already signed off on the product, then the buyer can |
| 4629 * finalize the deal by accepting the product as is. When copying to a | 4864 * finalize the deal by accepting the product as is. When copying to a |
| 4630 * proposal, if any of the terms are changed, then auto_finalize is | 4865 * proposal, if any of the terms are changed, then auto_finalize is |
| 4631 * automatically set to false. | 4866 * automatically set to false. |
| 4632 */ | 4867 */ |
| 4633 core.bool hasCreatorSignedOff; | 4868 core.bool hasCreatorSignedOff; |
| 4634 /** | 4869 /** |
| 4635 * What exchange will provide this inventory (readonly, except on create). | 4870 * What exchange will provide this inventory (readonly, except on create). |
| 4636 */ | 4871 */ |
| 4637 core.String inventorySource; | 4872 core.String inventorySource; |
| 4638 /** | 4873 /** |
| 4639 * Identifies what kind of resource this is. Value: the fixed string | 4874 * Identifies what kind of resource this is. Value: the fixed string |
| 4640 * "adexchangebuyer#product". | 4875 * "adexchangebuyer#product". |
| 4641 */ | 4876 */ |
| 4642 core.String kind; | 4877 core.String kind; |
| 4643 /** Optional List of labels for the product (optional, buyer-readonly). */ | 4878 /** Optional List of labels for the product (optional, buyer-readonly). */ |
| 4644 core.List<MarketplaceLabel> labels; | 4879 core.List<MarketplaceLabel> labels; |
| 4645 /** Time of last update in ms. since epoch (readonly) */ | 4880 /** Time of last update in ms. since epoch (readonly) */ |
| 4646 core.String lastUpdateTimeMs; | 4881 core.String lastUpdateTimeMs; |
| 4882 /** Optional legacy offer id if this offer is a preferred deal offer. */ |
| 4883 core.String legacyOfferId; |
| 4647 /** The name for this product as set by the seller. (buyer-readonly) */ | 4884 /** The name for this product as set by the seller. (buyer-readonly) */ |
| 4648 core.String name; | 4885 core.String name; |
| 4886 /** Optional private auction id if this offer is a private auction offer. */ |
| 4887 core.String privateAuctionId; |
| 4649 /** The unique id for the product (readonly) */ | 4888 /** The unique id for the product (readonly) */ |
| 4650 core.String productId; | 4889 core.String productId; |
| 4651 /** The revision number of the product. (readonly) */ | 4890 /** The revision number of the product. (readonly) */ |
| 4652 core.String revisionNumber; | 4891 core.String revisionNumber; |
| 4653 /** | 4892 /** |
| 4654 * Information about the seller that created this product (readonly, except on | 4893 * Information about the seller that created this product (readonly, except on |
| 4655 * create) | 4894 * create) |
| 4656 */ | 4895 */ |
| 4657 Seller seller; | 4896 Seller seller; |
| 4658 /** | 4897 /** |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4674 | 4913 |
| 4675 Product(); | 4914 Product(); |
| 4676 | 4915 |
| 4677 Product.fromJson(core.Map _json) { | 4916 Product.fromJson(core.Map _json) { |
| 4678 if (_json.containsKey("creationTimeMs")) { | 4917 if (_json.containsKey("creationTimeMs")) { |
| 4679 creationTimeMs = _json["creationTimeMs"]; | 4918 creationTimeMs = _json["creationTimeMs"]; |
| 4680 } | 4919 } |
| 4681 if (_json.containsKey("creatorContacts")) { | 4920 if (_json.containsKey("creatorContacts")) { |
| 4682 creatorContacts = _json["creatorContacts"].map((value) => new ContactInfor
mation.fromJson(value)).toList(); | 4921 creatorContacts = _json["creatorContacts"].map((value) => new ContactInfor
mation.fromJson(value)).toList(); |
| 4683 } | 4922 } |
| 4923 if (_json.containsKey("deliveryControl")) { |
| 4924 deliveryControl = new DeliveryControl.fromJson(_json["deliveryControl"]); |
| 4925 } |
| 4684 if (_json.containsKey("flightEndTimeMs")) { | 4926 if (_json.containsKey("flightEndTimeMs")) { |
| 4685 flightEndTimeMs = _json["flightEndTimeMs"]; | 4927 flightEndTimeMs = _json["flightEndTimeMs"]; |
| 4686 } | 4928 } |
| 4687 if (_json.containsKey("flightStartTimeMs")) { | 4929 if (_json.containsKey("flightStartTimeMs")) { |
| 4688 flightStartTimeMs = _json["flightStartTimeMs"]; | 4930 flightStartTimeMs = _json["flightStartTimeMs"]; |
| 4689 } | 4931 } |
| 4690 if (_json.containsKey("hasCreatorSignedOff")) { | 4932 if (_json.containsKey("hasCreatorSignedOff")) { |
| 4691 hasCreatorSignedOff = _json["hasCreatorSignedOff"]; | 4933 hasCreatorSignedOff = _json["hasCreatorSignedOff"]; |
| 4692 } | 4934 } |
| 4693 if (_json.containsKey("inventorySource")) { | 4935 if (_json.containsKey("inventorySource")) { |
| 4694 inventorySource = _json["inventorySource"]; | 4936 inventorySource = _json["inventorySource"]; |
| 4695 } | 4937 } |
| 4696 if (_json.containsKey("kind")) { | 4938 if (_json.containsKey("kind")) { |
| 4697 kind = _json["kind"]; | 4939 kind = _json["kind"]; |
| 4698 } | 4940 } |
| 4699 if (_json.containsKey("labels")) { | 4941 if (_json.containsKey("labels")) { |
| 4700 labels = _json["labels"].map((value) => new MarketplaceLabel.fromJson(valu
e)).toList(); | 4942 labels = _json["labels"].map((value) => new MarketplaceLabel.fromJson(valu
e)).toList(); |
| 4701 } | 4943 } |
| 4702 if (_json.containsKey("lastUpdateTimeMs")) { | 4944 if (_json.containsKey("lastUpdateTimeMs")) { |
| 4703 lastUpdateTimeMs = _json["lastUpdateTimeMs"]; | 4945 lastUpdateTimeMs = _json["lastUpdateTimeMs"]; |
| 4704 } | 4946 } |
| 4947 if (_json.containsKey("legacyOfferId")) { |
| 4948 legacyOfferId = _json["legacyOfferId"]; |
| 4949 } |
| 4705 if (_json.containsKey("name")) { | 4950 if (_json.containsKey("name")) { |
| 4706 name = _json["name"]; | 4951 name = _json["name"]; |
| 4707 } | 4952 } |
| 4953 if (_json.containsKey("privateAuctionId")) { |
| 4954 privateAuctionId = _json["privateAuctionId"]; |
| 4955 } |
| 4708 if (_json.containsKey("productId")) { | 4956 if (_json.containsKey("productId")) { |
| 4709 productId = _json["productId"]; | 4957 productId = _json["productId"]; |
| 4710 } | 4958 } |
| 4711 if (_json.containsKey("revisionNumber")) { | 4959 if (_json.containsKey("revisionNumber")) { |
| 4712 revisionNumber = _json["revisionNumber"]; | 4960 revisionNumber = _json["revisionNumber"]; |
| 4713 } | 4961 } |
| 4714 if (_json.containsKey("seller")) { | 4962 if (_json.containsKey("seller")) { |
| 4715 seller = new Seller.fromJson(_json["seller"]); | 4963 seller = new Seller.fromJson(_json["seller"]); |
| 4716 } | 4964 } |
| 4717 if (_json.containsKey("sharedTargetings")) { | 4965 if (_json.containsKey("sharedTargetings")) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 4732 } | 4980 } |
| 4733 | 4981 |
| 4734 core.Map toJson() { | 4982 core.Map toJson() { |
| 4735 var _json = new core.Map(); | 4983 var _json = new core.Map(); |
| 4736 if (creationTimeMs != null) { | 4984 if (creationTimeMs != null) { |
| 4737 _json["creationTimeMs"] = creationTimeMs; | 4985 _json["creationTimeMs"] = creationTimeMs; |
| 4738 } | 4986 } |
| 4739 if (creatorContacts != null) { | 4987 if (creatorContacts != null) { |
| 4740 _json["creatorContacts"] = creatorContacts.map((value) => (value).toJson()
).toList(); | 4988 _json["creatorContacts"] = creatorContacts.map((value) => (value).toJson()
).toList(); |
| 4741 } | 4989 } |
| 4990 if (deliveryControl != null) { |
| 4991 _json["deliveryControl"] = (deliveryControl).toJson(); |
| 4992 } |
| 4742 if (flightEndTimeMs != null) { | 4993 if (flightEndTimeMs != null) { |
| 4743 _json["flightEndTimeMs"] = flightEndTimeMs; | 4994 _json["flightEndTimeMs"] = flightEndTimeMs; |
| 4744 } | 4995 } |
| 4745 if (flightStartTimeMs != null) { | 4996 if (flightStartTimeMs != null) { |
| 4746 _json["flightStartTimeMs"] = flightStartTimeMs; | 4997 _json["flightStartTimeMs"] = flightStartTimeMs; |
| 4747 } | 4998 } |
| 4748 if (hasCreatorSignedOff != null) { | 4999 if (hasCreatorSignedOff != null) { |
| 4749 _json["hasCreatorSignedOff"] = hasCreatorSignedOff; | 5000 _json["hasCreatorSignedOff"] = hasCreatorSignedOff; |
| 4750 } | 5001 } |
| 4751 if (inventorySource != null) { | 5002 if (inventorySource != null) { |
| 4752 _json["inventorySource"] = inventorySource; | 5003 _json["inventorySource"] = inventorySource; |
| 4753 } | 5004 } |
| 4754 if (kind != null) { | 5005 if (kind != null) { |
| 4755 _json["kind"] = kind; | 5006 _json["kind"] = kind; |
| 4756 } | 5007 } |
| 4757 if (labels != null) { | 5008 if (labels != null) { |
| 4758 _json["labels"] = labels.map((value) => (value).toJson()).toList(); | 5009 _json["labels"] = labels.map((value) => (value).toJson()).toList(); |
| 4759 } | 5010 } |
| 4760 if (lastUpdateTimeMs != null) { | 5011 if (lastUpdateTimeMs != null) { |
| 4761 _json["lastUpdateTimeMs"] = lastUpdateTimeMs; | 5012 _json["lastUpdateTimeMs"] = lastUpdateTimeMs; |
| 4762 } | 5013 } |
| 5014 if (legacyOfferId != null) { |
| 5015 _json["legacyOfferId"] = legacyOfferId; |
| 5016 } |
| 4763 if (name != null) { | 5017 if (name != null) { |
| 4764 _json["name"] = name; | 5018 _json["name"] = name; |
| 4765 } | 5019 } |
| 5020 if (privateAuctionId != null) { |
| 5021 _json["privateAuctionId"] = privateAuctionId; |
| 5022 } |
| 4766 if (productId != null) { | 5023 if (productId != null) { |
| 4767 _json["productId"] = productId; | 5024 _json["productId"] = productId; |
| 4768 } | 5025 } |
| 4769 if (revisionNumber != null) { | 5026 if (revisionNumber != null) { |
| 4770 _json["revisionNumber"] = revisionNumber; | 5027 _json["revisionNumber"] = revisionNumber; |
| 4771 } | 5028 } |
| 4772 if (seller != null) { | 5029 if (seller != null) { |
| 4773 _json["seller"] = (seller).toJson(); | 5030 _json["seller"] = (seller).toJson(); |
| 4774 } | 5031 } |
| 4775 if (sharedTargetings != null) { | 5032 if (sharedTargetings != null) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4825 */ | 5082 */ |
| 4826 core.bool hasSellerSignedOff; | 5083 core.bool hasSellerSignedOff; |
| 4827 /** | 5084 /** |
| 4828 * What exchange will provide this inventory (readonly, except on create). | 5085 * What exchange will provide this inventory (readonly, except on create). |
| 4829 */ | 5086 */ |
| 4830 core.String inventorySource; | 5087 core.String inventorySource; |
| 4831 /** True if the proposal is being renegotiated (readonly). */ | 5088 /** True if the proposal is being renegotiated (readonly). */ |
| 4832 core.bool isRenegotiating; | 5089 core.bool isRenegotiating; |
| 4833 /** | 5090 /** |
| 4834 * True, if the buyside inventory setup is complete for this proposal. | 5091 * True, if the buyside inventory setup is complete for this proposal. |
| 4835 * (readonly) | 5092 * (readonly, except via OrderSetupCompleted action) |
| 4836 */ | 5093 */ |
| 4837 core.bool isSetupComplete; | 5094 core.bool isSetupComplete; |
| 4838 /** | 5095 /** |
| 4839 * Identifies what kind of resource this is. Value: the fixed string | 5096 * Identifies what kind of resource this is. Value: the fixed string |
| 4840 * "adexchangebuyer#proposal". | 5097 * "adexchangebuyer#proposal". |
| 4841 */ | 5098 */ |
| 4842 core.String kind; | 5099 core.String kind; |
| 4843 /** List of labels associated with the proposal. (readonly) */ | 5100 /** List of labels associated with the proposal. (readonly) */ |
| 4844 core.List<MarketplaceLabel> labels; | 5101 core.List<MarketplaceLabel> labels; |
| 4845 /** | 5102 /** |
| 4846 * The role of the last user that either updated the proposal or left a | 5103 * The role of the last user that either updated the proposal or left a |
| 4847 * comment. (readonly) | 5104 * comment. (readonly) |
| 4848 */ | 5105 */ |
| 4849 core.String lastUpdaterOrCommentorRole; | 5106 core.String lastUpdaterOrCommentorRole; |
| 4850 core.String lastUpdaterRole; | 5107 core.String lastUpdaterRole; |
| 4851 /** The name for the proposal (updatable) */ | 5108 /** The name for the proposal (updatable) */ |
| 4852 core.String name; | 5109 core.String name; |
| 5110 /** Optional negotiation id if this proposal is a preferred deal proposal. */ |
| 5111 core.String negotiationId; |
| 4853 /** Indicates whether the buyer/seller created the proposal.(readonly) */ | 5112 /** Indicates whether the buyer/seller created the proposal.(readonly) */ |
| 4854 core.String originatorRole; | 5113 core.String originatorRole; |
| 5114 /** |
| 5115 * Optional private auction id if this proposal is a private auction proposal. |
| 5116 */ |
| 5117 core.String privateAuctionId; |
| 4855 /** The unique id of the proposal. (readonly). */ | 5118 /** The unique id of the proposal. (readonly). */ |
| 4856 core.String proposalId; | 5119 core.String proposalId; |
| 4857 /** The current state of the proposal. (readonly) */ | 5120 /** The current state of the proposal. (readonly) */ |
| 4858 core.String proposalState; | 5121 core.String proposalState; |
| 4859 /** The revision number for the proposal (readonly). */ | 5122 /** The revision number for the proposal (readonly). */ |
| 4860 core.String revisionNumber; | 5123 core.String revisionNumber; |
| 4861 /** | 5124 /** |
| 4862 * The time (ms since epoch) when the proposal was last revised (readonly). | 5125 * The time (ms since epoch) when the proposal was last revised (readonly). |
| 4863 */ | 5126 */ |
| 4864 core.String revisionTimeMs; | 5127 core.String revisionTimeMs; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4905 } | 5168 } |
| 4906 if (_json.containsKey("lastUpdaterOrCommentorRole")) { | 5169 if (_json.containsKey("lastUpdaterOrCommentorRole")) { |
| 4907 lastUpdaterOrCommentorRole = _json["lastUpdaterOrCommentorRole"]; | 5170 lastUpdaterOrCommentorRole = _json["lastUpdaterOrCommentorRole"]; |
| 4908 } | 5171 } |
| 4909 if (_json.containsKey("lastUpdaterRole")) { | 5172 if (_json.containsKey("lastUpdaterRole")) { |
| 4910 lastUpdaterRole = _json["lastUpdaterRole"]; | 5173 lastUpdaterRole = _json["lastUpdaterRole"]; |
| 4911 } | 5174 } |
| 4912 if (_json.containsKey("name")) { | 5175 if (_json.containsKey("name")) { |
| 4913 name = _json["name"]; | 5176 name = _json["name"]; |
| 4914 } | 5177 } |
| 5178 if (_json.containsKey("negotiationId")) { |
| 5179 negotiationId = _json["negotiationId"]; |
| 5180 } |
| 4915 if (_json.containsKey("originatorRole")) { | 5181 if (_json.containsKey("originatorRole")) { |
| 4916 originatorRole = _json["originatorRole"]; | 5182 originatorRole = _json["originatorRole"]; |
| 4917 } | 5183 } |
| 5184 if (_json.containsKey("privateAuctionId")) { |
| 5185 privateAuctionId = _json["privateAuctionId"]; |
| 5186 } |
| 4918 if (_json.containsKey("proposalId")) { | 5187 if (_json.containsKey("proposalId")) { |
| 4919 proposalId = _json["proposalId"]; | 5188 proposalId = _json["proposalId"]; |
| 4920 } | 5189 } |
| 4921 if (_json.containsKey("proposalState")) { | 5190 if (_json.containsKey("proposalState")) { |
| 4922 proposalState = _json["proposalState"]; | 5191 proposalState = _json["proposalState"]; |
| 4923 } | 5192 } |
| 4924 if (_json.containsKey("revisionNumber")) { | 5193 if (_json.containsKey("revisionNumber")) { |
| 4925 revisionNumber = _json["revisionNumber"]; | 5194 revisionNumber = _json["revisionNumber"]; |
| 4926 } | 5195 } |
| 4927 if (_json.containsKey("revisionTimeMs")) { | 5196 if (_json.containsKey("revisionTimeMs")) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4972 } | 5241 } |
| 4973 if (lastUpdaterOrCommentorRole != null) { | 5242 if (lastUpdaterOrCommentorRole != null) { |
| 4974 _json["lastUpdaterOrCommentorRole"] = lastUpdaterOrCommentorRole; | 5243 _json["lastUpdaterOrCommentorRole"] = lastUpdaterOrCommentorRole; |
| 4975 } | 5244 } |
| 4976 if (lastUpdaterRole != null) { | 5245 if (lastUpdaterRole != null) { |
| 4977 _json["lastUpdaterRole"] = lastUpdaterRole; | 5246 _json["lastUpdaterRole"] = lastUpdaterRole; |
| 4978 } | 5247 } |
| 4979 if (name != null) { | 5248 if (name != null) { |
| 4980 _json["name"] = name; | 5249 _json["name"] = name; |
| 4981 } | 5250 } |
| 5251 if (negotiationId != null) { |
| 5252 _json["negotiationId"] = negotiationId; |
| 5253 } |
| 4982 if (originatorRole != null) { | 5254 if (originatorRole != null) { |
| 4983 _json["originatorRole"] = originatorRole; | 5255 _json["originatorRole"] = originatorRole; |
| 4984 } | 5256 } |
| 5257 if (privateAuctionId != null) { |
| 5258 _json["privateAuctionId"] = privateAuctionId; |
| 5259 } |
| 4985 if (proposalId != null) { | 5260 if (proposalId != null) { |
| 4986 _json["proposalId"] = proposalId; | 5261 _json["proposalId"] = proposalId; |
| 4987 } | 5262 } |
| 4988 if (proposalState != null) { | 5263 if (proposalState != null) { |
| 4989 _json["proposalState"] = proposalState; | 5264 _json["proposalState"] = proposalState; |
| 4990 } | 5265 } |
| 4991 if (revisionNumber != null) { | 5266 if (revisionNumber != null) { |
| 4992 _json["revisionNumber"] = revisionNumber; | 5267 _json["revisionNumber"] = revisionNumber; |
| 4993 } | 5268 } |
| 4994 if (revisionTimeMs != null) { | 5269 if (revisionTimeMs != null) { |
| 4995 _json["revisionTimeMs"] = revisionTimeMs; | 5270 _json["revisionTimeMs"] = revisionTimeMs; |
| 4996 } | 5271 } |
| 4997 if (seller != null) { | 5272 if (seller != null) { |
| 4998 _json["seller"] = (seller).toJson(); | 5273 _json["seller"] = (seller).toJson(); |
| 4999 } | 5274 } |
| 5000 if (sellerContacts != null) { | 5275 if (sellerContacts != null) { |
| 5001 _json["sellerContacts"] = sellerContacts.map((value) => (value).toJson()).
toList(); | 5276 _json["sellerContacts"] = sellerContacts.map((value) => (value).toJson()).
toList(); |
| 5002 } | 5277 } |
| 5003 return _json; | 5278 return _json; |
| 5004 } | 5279 } |
| 5005 } | 5280 } |
| 5006 | 5281 |
| 5282 class PublisherProfileApiProto { |
| 5283 /** A pitch statement for the buyer */ |
| 5284 core.String buyerPitchStatement; |
| 5285 /** Link to publisher's Google+ page. */ |
| 5286 core.String googlePlusLink; |
| 5287 /** |
| 5288 * True, if this is the parent profile, which represents all domains owned by |
| 5289 * the publisher. |
| 5290 */ |
| 5291 core.bool isParent; |
| 5292 /** |
| 5293 * Identifies what kind of resource this is. Value: the fixed string |
| 5294 * "adexchangebuyer#publisherProfileApiProto". |
| 5295 */ |
| 5296 core.String kind; |
| 5297 /** The url to the logo for the publisher. */ |
| 5298 core.String logoUrl; |
| 5299 /** The url for additional marketing and sales materials. */ |
| 5300 core.String mediaKitLink; |
| 5301 core.String name; |
| 5302 /** Publisher provided overview. */ |
| 5303 core.String overview; |
| 5304 /** Unique id for the publisher profile */ |
| 5305 core.int profileId; |
| 5306 /** |
| 5307 * The list of domains represented in this publisher profile. Empty if this is |
| 5308 * a parent profile. |
| 5309 */ |
| 5310 core.List<core.String> publisherDomains; |
| 5311 /** Link to publisher rate card */ |
| 5312 core.String rateCardInfoLink; |
| 5313 /** Link for a sample content page. */ |
| 5314 core.String samplePageLink; |
| 5315 /** Publisher provided key metrics and rankings. */ |
| 5316 core.List<core.String> topHeadlines; |
| 5317 |
| 5318 PublisherProfileApiProto(); |
| 5319 |
| 5320 PublisherProfileApiProto.fromJson(core.Map _json) { |
| 5321 if (_json.containsKey("buyerPitchStatement")) { |
| 5322 buyerPitchStatement = _json["buyerPitchStatement"]; |
| 5323 } |
| 5324 if (_json.containsKey("googlePlusLink")) { |
| 5325 googlePlusLink = _json["googlePlusLink"]; |
| 5326 } |
| 5327 if (_json.containsKey("isParent")) { |
| 5328 isParent = _json["isParent"]; |
| 5329 } |
| 5330 if (_json.containsKey("kind")) { |
| 5331 kind = _json["kind"]; |
| 5332 } |
| 5333 if (_json.containsKey("logoUrl")) { |
| 5334 logoUrl = _json["logoUrl"]; |
| 5335 } |
| 5336 if (_json.containsKey("mediaKitLink")) { |
| 5337 mediaKitLink = _json["mediaKitLink"]; |
| 5338 } |
| 5339 if (_json.containsKey("name")) { |
| 5340 name = _json["name"]; |
| 5341 } |
| 5342 if (_json.containsKey("overview")) { |
| 5343 overview = _json["overview"]; |
| 5344 } |
| 5345 if (_json.containsKey("profileId")) { |
| 5346 profileId = _json["profileId"]; |
| 5347 } |
| 5348 if (_json.containsKey("publisherDomains")) { |
| 5349 publisherDomains = _json["publisherDomains"]; |
| 5350 } |
| 5351 if (_json.containsKey("rateCardInfoLink")) { |
| 5352 rateCardInfoLink = _json["rateCardInfoLink"]; |
| 5353 } |
| 5354 if (_json.containsKey("samplePageLink")) { |
| 5355 samplePageLink = _json["samplePageLink"]; |
| 5356 } |
| 5357 if (_json.containsKey("topHeadlines")) { |
| 5358 topHeadlines = _json["topHeadlines"]; |
| 5359 } |
| 5360 } |
| 5361 |
| 5362 core.Map toJson() { |
| 5363 var _json = new core.Map(); |
| 5364 if (buyerPitchStatement != null) { |
| 5365 _json["buyerPitchStatement"] = buyerPitchStatement; |
| 5366 } |
| 5367 if (googlePlusLink != null) { |
| 5368 _json["googlePlusLink"] = googlePlusLink; |
| 5369 } |
| 5370 if (isParent != null) { |
| 5371 _json["isParent"] = isParent; |
| 5372 } |
| 5373 if (kind != null) { |
| 5374 _json["kind"] = kind; |
| 5375 } |
| 5376 if (logoUrl != null) { |
| 5377 _json["logoUrl"] = logoUrl; |
| 5378 } |
| 5379 if (mediaKitLink != null) { |
| 5380 _json["mediaKitLink"] = mediaKitLink; |
| 5381 } |
| 5382 if (name != null) { |
| 5383 _json["name"] = name; |
| 5384 } |
| 5385 if (overview != null) { |
| 5386 _json["overview"] = overview; |
| 5387 } |
| 5388 if (profileId != null) { |
| 5389 _json["profileId"] = profileId; |
| 5390 } |
| 5391 if (publisherDomains != null) { |
| 5392 _json["publisherDomains"] = publisherDomains; |
| 5393 } |
| 5394 if (rateCardInfoLink != null) { |
| 5395 _json["rateCardInfoLink"] = rateCardInfoLink; |
| 5396 } |
| 5397 if (samplePageLink != null) { |
| 5398 _json["samplePageLink"] = samplePageLink; |
| 5399 } |
| 5400 if (topHeadlines != null) { |
| 5401 _json["topHeadlines"] = topHeadlines; |
| 5402 } |
| 5403 return _json; |
| 5404 } |
| 5405 } |
| 5406 |
| 5007 class Seller { | 5407 class Seller { |
| 5008 /** | 5408 /** |
| 5009 * The unique id for the seller. The seller fills in this field. The seller | 5409 * The unique id for the seller. The seller fills in this field. The seller |
| 5010 * account id is then available to buyer in the product. | 5410 * account id is then available to buyer in the product. |
| 5011 */ | 5411 */ |
| 5012 core.String accountId; | 5412 core.String accountId; |
| 5013 /** Optional sub-account id for the seller. */ | 5413 /** Optional sub-account id for the seller. */ |
| 5014 core.String subAccountId; | 5414 core.String subAccountId; |
| 5015 | 5415 |
| 5016 Seller(); | 5416 Seller(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 5030 _json["accountId"] = accountId; | 5430 _json["accountId"] = accountId; |
| 5031 } | 5431 } |
| 5032 if (subAccountId != null) { | 5432 if (subAccountId != null) { |
| 5033 _json["subAccountId"] = subAccountId; | 5433 _json["subAccountId"] = subAccountId; |
| 5034 } | 5434 } |
| 5035 return _json; | 5435 return _json; |
| 5036 } | 5436 } |
| 5037 } | 5437 } |
| 5038 | 5438 |
| 5039 class SharedTargeting { | 5439 class SharedTargeting { |
| 5040 /** The list of values to exclude from targeting. */ | 5440 /** |
| 5441 * The list of values to exclude from targeting. Each value is AND'd together. |
| 5442 */ |
| 5041 core.List<TargetingValue> exclusions; | 5443 core.List<TargetingValue> exclusions; |
| 5042 /** The list of value to include as part of the targeting. */ | 5444 /** |
| 5445 * The list of value to include as part of the targeting. Each value is OR'd |
| 5446 * together. |
| 5447 */ |
| 5043 core.List<TargetingValue> inclusions; | 5448 core.List<TargetingValue> inclusions; |
| 5044 /** The key representing the shared targeting criterion. */ | 5449 /** The key representing the shared targeting criterion. */ |
| 5045 core.String key; | 5450 core.String key; |
| 5046 | 5451 |
| 5047 SharedTargeting(); | 5452 SharedTargeting(); |
| 5048 | 5453 |
| 5049 SharedTargeting.fromJson(core.Map _json) { | 5454 SharedTargeting.fromJson(core.Map _json) { |
| 5050 if (_json.containsKey("exclusions")) { | 5455 if (_json.containsKey("exclusions")) { |
| 5051 exclusions = _json["exclusions"].map((value) => new TargetingValue.fromJso
n(value)).toList(); | 5456 exclusions = _json["exclusions"].map((value) => new TargetingValue.fromJso
n(value)).toList(); |
| 5052 } | 5457 } |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5257 var _json = new core.Map(); | 5662 var _json = new core.Map(); |
| 5258 if (height != null) { | 5663 if (height != null) { |
| 5259 _json["height"] = height; | 5664 _json["height"] = height; |
| 5260 } | 5665 } |
| 5261 if (width != null) { | 5666 if (width != null) { |
| 5262 _json["width"] = width; | 5667 _json["width"] = width; |
| 5263 } | 5668 } |
| 5264 return _json; | 5669 return _json; |
| 5265 } | 5670 } |
| 5266 } | 5671 } |
| OLD | NEW |