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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 /** | 125 /** |
126 * Updates an existing account. This method supports patch semantics. | 126 * Updates an existing account. This method supports patch semantics. |
127 * | 127 * |
128 * [request] - The metadata request object. | 128 * [request] - The metadata request object. |
129 * | 129 * |
130 * Request parameters: | 130 * Request parameters: |
131 * | 131 * |
132 * [id] - The account id | 132 * [id] - The account id |
133 * | 133 * |
| 134 * [confirmUnsafeAccountChange] - Confirmation for erasing bidder and cookie |
| 135 * matching urls. |
| 136 * |
134 * Completes with a [Account]. | 137 * Completes with a [Account]. |
135 * | 138 * |
136 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 139 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
137 * error. | 140 * error. |
138 * | 141 * |
139 * If the used [http.Client] completes with an error when making a REST call, | 142 * If the used [http.Client] completes with an error when making a REST call, |
140 * this method will complete with the same error. | 143 * this method will complete with the same error. |
141 */ | 144 */ |
142 async.Future<Account> patch(Account request, core.int id) { | 145 async.Future<Account> patch(Account request, core.int id, {core.bool confirmUn
safeAccountChange}) { |
143 var _url = null; | 146 var _url = null; |
144 var _queryParams = new core.Map(); | 147 var _queryParams = new core.Map(); |
145 var _uploadMedia = null; | 148 var _uploadMedia = null; |
146 var _uploadOptions = null; | 149 var _uploadOptions = null; |
147 var _downloadOptions = commons.DownloadOptions.Metadata; | 150 var _downloadOptions = commons.DownloadOptions.Metadata; |
148 var _body = null; | 151 var _body = null; |
149 | 152 |
150 if (request != null) { | 153 if (request != null) { |
151 _body = convert.JSON.encode((request).toJson()); | 154 _body = convert.JSON.encode((request).toJson()); |
152 } | 155 } |
153 if (id == null) { | 156 if (id == null) { |
154 throw new core.ArgumentError("Parameter id is required."); | 157 throw new core.ArgumentError("Parameter id is required."); |
155 } | 158 } |
| 159 if (confirmUnsafeAccountChange != null) { |
| 160 _queryParams["confirmUnsafeAccountChange"] = ["${confirmUnsafeAccountChang
e}"]; |
| 161 } |
156 | 162 |
157 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); | 163 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); |
158 | 164 |
159 var _response = _requester.request(_url, | 165 var _response = _requester.request(_url, |
160 "PATCH", | 166 "PATCH", |
161 body: _body, | 167 body: _body, |
162 queryParams: _queryParams, | 168 queryParams: _queryParams, |
163 uploadOptions: _uploadOptions, | 169 uploadOptions: _uploadOptions, |
164 uploadMedia: _uploadMedia, | 170 uploadMedia: _uploadMedia, |
165 downloadOptions: _downloadOptions); | 171 downloadOptions: _downloadOptions); |
166 return _response.then((data) => new Account.fromJson(data)); | 172 return _response.then((data) => new Account.fromJson(data)); |
167 } | 173 } |
168 | 174 |
169 /** | 175 /** |
170 * Updates an existing account. | 176 * Updates an existing account. |
171 * | 177 * |
172 * [request] - The metadata request object. | 178 * [request] - The metadata request object. |
173 * | 179 * |
174 * Request parameters: | 180 * Request parameters: |
175 * | 181 * |
176 * [id] - The account id | 182 * [id] - The account id |
177 * | 183 * |
| 184 * [confirmUnsafeAccountChange] - Confirmation for erasing bidder and cookie |
| 185 * matching urls. |
| 186 * |
178 * Completes with a [Account]. | 187 * Completes with a [Account]. |
179 * | 188 * |
180 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 189 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
181 * error. | 190 * error. |
182 * | 191 * |
183 * If the used [http.Client] completes with an error when making a REST call, | 192 * If the used [http.Client] completes with an error when making a REST call, |
184 * this method will complete with the same error. | 193 * this method will complete with the same error. |
185 */ | 194 */ |
186 async.Future<Account> update(Account request, core.int id) { | 195 async.Future<Account> update(Account request, core.int id, {core.bool confirmU
nsafeAccountChange}) { |
187 var _url = null; | 196 var _url = null; |
188 var _queryParams = new core.Map(); | 197 var _queryParams = new core.Map(); |
189 var _uploadMedia = null; | 198 var _uploadMedia = null; |
190 var _uploadOptions = null; | 199 var _uploadOptions = null; |
191 var _downloadOptions = commons.DownloadOptions.Metadata; | 200 var _downloadOptions = commons.DownloadOptions.Metadata; |
192 var _body = null; | 201 var _body = null; |
193 | 202 |
194 if (request != null) { | 203 if (request != null) { |
195 _body = convert.JSON.encode((request).toJson()); | 204 _body = convert.JSON.encode((request).toJson()); |
196 } | 205 } |
197 if (id == null) { | 206 if (id == null) { |
198 throw new core.ArgumentError("Parameter id is required."); | 207 throw new core.ArgumentError("Parameter id is required."); |
199 } | 208 } |
| 209 if (confirmUnsafeAccountChange != null) { |
| 210 _queryParams["confirmUnsafeAccountChange"] = ["${confirmUnsafeAccountChang
e}"]; |
| 211 } |
200 | 212 |
201 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); | 213 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); |
202 | 214 |
203 var _response = _requester.request(_url, | 215 var _response = _requester.request(_url, |
204 "PUT", | 216 "PUT", |
205 body: _body, | 217 body: _body, |
206 queryParams: _queryParams, | 218 queryParams: _queryParams, |
207 uploadOptions: _uploadOptions, | 219 uploadOptions: _uploadOptions, |
208 uploadMedia: _uploadMedia, | 220 uploadMedia: _uploadMedia, |
209 downloadOptions: _downloadOptions); | 221 downloadOptions: _downloadOptions); |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 "GET", | 684 "GET", |
673 body: _body, | 685 body: _body, |
674 queryParams: _queryParams, | 686 queryParams: _queryParams, |
675 uploadOptions: _uploadOptions, | 687 uploadOptions: _uploadOptions, |
676 uploadMedia: _uploadMedia, | 688 uploadMedia: _uploadMedia, |
677 downloadOptions: _downloadOptions); | 689 downloadOptions: _downloadOptions); |
678 return _response.then((data) => new CreativesList.fromJson(data)); | 690 return _response.then((data) => new CreativesList.fromJson(data)); |
679 } | 691 } |
680 | 692 |
681 /** | 693 /** |
| 694 * Lists the external deal ids associated with the creative. |
| 695 * |
| 696 * Request parameters: |
| 697 * |
| 698 * [accountId] - The id for the account that will serve this creative. |
| 699 * |
| 700 * [buyerCreativeId] - The buyer-specific id for this creative. |
| 701 * |
| 702 * Completes with a [CreativeDealIds]. |
| 703 * |
| 704 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 705 * error. |
| 706 * |
| 707 * If the used [http.Client] completes with an error when making a REST call, |
| 708 * this method will complete with the same error. |
| 709 */ |
| 710 async.Future<CreativeDealIds> listDeals(core.int accountId, core.String buyerC
reativeId) { |
| 711 var _url = null; |
| 712 var _queryParams = new core.Map(); |
| 713 var _uploadMedia = null; |
| 714 var _uploadOptions = null; |
| 715 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 716 var _body = null; |
| 717 |
| 718 if (accountId == null) { |
| 719 throw new core.ArgumentError("Parameter accountId is required."); |
| 720 } |
| 721 if (buyerCreativeId == null) { |
| 722 throw new core.ArgumentError("Parameter buyerCreativeId is required."); |
| 723 } |
| 724 |
| 725 _url = 'creatives/' + commons.Escaper.ecapeVariable('$accountId') + '/' + co
mmons.Escaper.ecapeVariable('$buyerCreativeId') + '/listDeals'; |
| 726 |
| 727 var _response = _requester.request(_url, |
| 728 "GET", |
| 729 body: _body, |
| 730 queryParams: _queryParams, |
| 731 uploadOptions: _uploadOptions, |
| 732 uploadMedia: _uploadMedia, |
| 733 downloadOptions: _downloadOptions); |
| 734 return _response.then((data) => new CreativeDealIds.fromJson(data)); |
| 735 } |
| 736 |
| 737 /** |
682 * Remove a deal id associated with the creative. | 738 * Remove a deal id associated with the creative. |
683 * | 739 * |
684 * Request parameters: | 740 * Request parameters: |
685 * | 741 * |
686 * [accountId] - The id for the account that will serve this creative. | 742 * [accountId] - The id for the account that will serve this creative. |
687 * | 743 * |
688 * [buyerCreativeId] - The buyer-specific id for this creative. | 744 * [buyerCreativeId] - The buyer-specific id for this creative. |
689 * | 745 * |
690 * [dealId] - The id of the deal id to disassociate with this creative. | 746 * [dealId] - The id of the deal id to disassociate with this creative. |
691 * | 747 * |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1603 * | 1659 * |
1604 * Request parameters: | 1660 * Request parameters: |
1605 * | 1661 * |
1606 * [proposalId] - The proposal id to update. | 1662 * [proposalId] - The proposal id to update. |
1607 * | 1663 * |
1608 * [revisionNumber] - The last known revision number to update. If the head | 1664 * [revisionNumber] - The last known revision number to update. If the head |
1609 * revision in the marketplace database has since changed, an error will be | 1665 * revision in the marketplace database has since changed, an error will be |
1610 * thrown. The caller should then fetch the latest proposal at head revision | 1666 * thrown. The caller should then fetch the latest proposal at head revision |
1611 * and retry the update at that revision. | 1667 * and retry the update at that revision. |
1612 * | 1668 * |
1613 * [updateAction] - The proposed action to take on the proposal. | 1669 * [updateAction] - The proposed action to take on the proposal. This field is |
| 1670 * required and it must be set when updating a proposal. |
1614 * Possible string values are: | 1671 * Possible string values are: |
1615 * - "accept" | 1672 * - "accept" |
1616 * - "cancel" | 1673 * - "cancel" |
1617 * - "propose" | 1674 * - "propose" |
| 1675 * - "proposeAndAccept" |
1618 * - "unknownAction" | 1676 * - "unknownAction" |
1619 * - "updateFinalized" | 1677 * - "updateFinalized" |
1620 * | 1678 * |
1621 * Completes with a [Proposal]. | 1679 * Completes with a [Proposal]. |
1622 * | 1680 * |
1623 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1681 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1624 * error. | 1682 * error. |
1625 * | 1683 * |
1626 * If the used [http.Client] completes with an error when making a REST call, | 1684 * If the used [http.Client] completes with an error when making a REST call, |
1627 * this method will complete with the same error. | 1685 * this method will complete with the same error. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1744 * | 1802 * |
1745 * Request parameters: | 1803 * Request parameters: |
1746 * | 1804 * |
1747 * [proposalId] - The proposal id to update. | 1805 * [proposalId] - The proposal id to update. |
1748 * | 1806 * |
1749 * [revisionNumber] - The last known revision number to update. If the head | 1807 * [revisionNumber] - The last known revision number to update. If the head |
1750 * revision in the marketplace database has since changed, an error will be | 1808 * revision in the marketplace database has since changed, an error will be |
1751 * thrown. The caller should then fetch the latest proposal at head revision | 1809 * thrown. The caller should then fetch the latest proposal at head revision |
1752 * and retry the update at that revision. | 1810 * and retry the update at that revision. |
1753 * | 1811 * |
1754 * [updateAction] - The proposed action to take on the proposal. | 1812 * [updateAction] - The proposed action to take on the proposal. This field is |
| 1813 * required and it must be set when updating a proposal. |
1755 * Possible string values are: | 1814 * Possible string values are: |
1756 * - "accept" | 1815 * - "accept" |
1757 * - "cancel" | 1816 * - "cancel" |
1758 * - "propose" | 1817 * - "propose" |
| 1818 * - "proposeAndAccept" |
1759 * - "unknownAction" | 1819 * - "unknownAction" |
1760 * - "updateFinalized" | 1820 * - "updateFinalized" |
1761 * | 1821 * |
1762 * Completes with a [Proposal]. | 1822 * Completes with a [Proposal]. |
1763 * | 1823 * |
1764 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1824 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1765 * error. | 1825 * error. |
1766 * | 1826 * |
1767 * If the used [http.Client] completes with an error when making a REST call, | 1827 * If the used [http.Client] completes with an error when making a REST call, |
1768 * this method will complete with the same error. | 1828 * this method will complete with the same error. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1850 | 1910 |
1851 } | 1911 } |
1852 | 1912 |
1853 | 1913 |
1854 | 1914 |
1855 class AccountBidderLocation { | 1915 class AccountBidderLocation { |
1856 /** | 1916 /** |
1857 * The protocol that the bidder endpoint is using. By default, OpenRTB | 1917 * The protocol that the bidder endpoint is using. By default, OpenRTB |
1858 * protocols use JSON, except PROTOCOL_OPENRTB_PROTOBUF. | 1918 * protocols use JSON, except PROTOCOL_OPENRTB_PROTOBUF. |
1859 * PROTOCOL_OPENRTB_PROTOBUF uses protobuf encoding over the latest OpenRTB | 1919 * PROTOCOL_OPENRTB_PROTOBUF uses protobuf encoding over the latest OpenRTB |
1860 * protocol version, which is 2.3 right now. Allowed values: | 1920 * protocol version, which is 2.4 right now. Allowed values: |
1861 * - PROTOCOL_ADX | 1921 * - PROTOCOL_ADX |
1862 * - PROTOCOL_OPENRTB_2_2 | 1922 * - PROTOCOL_OPENRTB_2_2 |
1863 * - PROTOCOL_OPENRTB_2_3 | 1923 * - PROTOCOL_OPENRTB_2_3 |
| 1924 * - PROTOCOL_OPENRTB_2_4 |
1864 * - PROTOCOL_OPENRTB_PROTOBUF | 1925 * - PROTOCOL_OPENRTB_PROTOBUF |
1865 */ | 1926 */ |
1866 core.String bidProtocol; | 1927 core.String bidProtocol; |
1867 /** The maximum queries per second the Ad Exchange will send. */ | 1928 /** The maximum queries per second the Ad Exchange will send. */ |
1868 core.int maximumQps; | 1929 core.int maximumQps; |
1869 /** | 1930 /** |
1870 * The geographical region the Ad Exchange should send requests from. Only | 1931 * The geographical region the Ad Exchange should send requests from. Only |
1871 * used by some quota systems, but always setting the value is recommended. | 1932 * used by some quota systems, but always setting the value is recommended. |
1872 * Allowed values: | 1933 * Allowed values: |
1873 * - ASIA | 1934 * - ASIA |
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2658 if (url != null) { | 2719 if (url != null) { |
2659 _json["url"] = url; | 2720 _json["url"] = url; |
2660 } | 2721 } |
2661 if (width != null) { | 2722 if (width != null) { |
2662 _json["width"] = width; | 2723 _json["width"] = width; |
2663 } | 2724 } |
2664 return _json; | 2725 return _json; |
2665 } | 2726 } |
2666 } | 2727 } |
2667 | 2728 |
2668 /** If nativeAd is set, HTMLSnippet and videoURL should not be set. */ | 2729 /** |
| 2730 * If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should |
| 2731 * not be set. (The videoURL inside nativeAd can be set.) |
| 2732 */ |
2669 class CreativeNativeAd { | 2733 class CreativeNativeAd { |
2670 core.String advertiser; | 2734 core.String advertiser; |
2671 /** The app icon, for app download ads. */ | 2735 /** The app icon, for app download ads. */ |
2672 CreativeNativeAdAppIcon appIcon; | 2736 CreativeNativeAdAppIcon appIcon; |
2673 /** A long description of the ad. */ | 2737 /** A long description of the ad. */ |
2674 core.String body; | 2738 core.String body; |
2675 /** A label for the button that the user is supposed to click. */ | 2739 /** A label for the button that the user is supposed to click. */ |
2676 core.String callToAction; | 2740 core.String callToAction; |
| 2741 /** The URL that the browser/SDK will load when the user clicks the ad. */ |
| 2742 core.String clickLinkUrl; |
2677 /** The URL to use for click tracking. */ | 2743 /** The URL to use for click tracking. */ |
2678 core.String clickTrackingUrl; | 2744 core.String clickTrackingUrl; |
2679 /** A short title for the ad. */ | 2745 /** A short title for the ad. */ |
2680 core.String headline; | 2746 core.String headline; |
2681 /** A large image. */ | 2747 /** A large image. */ |
2682 CreativeNativeAdImage image; | 2748 CreativeNativeAdImage image; |
2683 /** The URLs are called when the impression is rendered. */ | 2749 /** The URLs are called when the impression is rendered. */ |
2684 core.List<core.String> impressionTrackingUrl; | 2750 core.List<core.String> impressionTrackingUrl; |
2685 /** A smaller image, for the advertiser logo. */ | 2751 /** A smaller image, for the advertiser logo. */ |
2686 CreativeNativeAdLogo logo; | 2752 CreativeNativeAdLogo logo; |
2687 /** The price of the promoted app including the currency info. */ | 2753 /** The price of the promoted app including the currency info. */ |
2688 core.String price; | 2754 core.String price; |
2689 /** The app rating in the app store. Must be in the range [0-5]. */ | 2755 /** The app rating in the app store. Must be in the range [0-5]. */ |
2690 core.double starRating; | 2756 core.double starRating; |
2691 /** The URL to the app store to purchase/download the promoted app. */ | 2757 /** The URL to the app store to purchase/download the promoted app. */ |
2692 core.String store; | 2758 core.String store; |
| 2759 /** |
| 2760 * The URL of the XML VAST for a native ad. Note this is a separate field from |
| 2761 * resource.video_url. |
| 2762 */ |
| 2763 core.String videoURL; |
2693 | 2764 |
2694 CreativeNativeAd(); | 2765 CreativeNativeAd(); |
2695 | 2766 |
2696 CreativeNativeAd.fromJson(core.Map _json) { | 2767 CreativeNativeAd.fromJson(core.Map _json) { |
2697 if (_json.containsKey("advertiser")) { | 2768 if (_json.containsKey("advertiser")) { |
2698 advertiser = _json["advertiser"]; | 2769 advertiser = _json["advertiser"]; |
2699 } | 2770 } |
2700 if (_json.containsKey("appIcon")) { | 2771 if (_json.containsKey("appIcon")) { |
2701 appIcon = new CreativeNativeAdAppIcon.fromJson(_json["appIcon"]); | 2772 appIcon = new CreativeNativeAdAppIcon.fromJson(_json["appIcon"]); |
2702 } | 2773 } |
2703 if (_json.containsKey("body")) { | 2774 if (_json.containsKey("body")) { |
2704 body = _json["body"]; | 2775 body = _json["body"]; |
2705 } | 2776 } |
2706 if (_json.containsKey("callToAction")) { | 2777 if (_json.containsKey("callToAction")) { |
2707 callToAction = _json["callToAction"]; | 2778 callToAction = _json["callToAction"]; |
2708 } | 2779 } |
| 2780 if (_json.containsKey("clickLinkUrl")) { |
| 2781 clickLinkUrl = _json["clickLinkUrl"]; |
| 2782 } |
2709 if (_json.containsKey("clickTrackingUrl")) { | 2783 if (_json.containsKey("clickTrackingUrl")) { |
2710 clickTrackingUrl = _json["clickTrackingUrl"]; | 2784 clickTrackingUrl = _json["clickTrackingUrl"]; |
2711 } | 2785 } |
2712 if (_json.containsKey("headline")) { | 2786 if (_json.containsKey("headline")) { |
2713 headline = _json["headline"]; | 2787 headline = _json["headline"]; |
2714 } | 2788 } |
2715 if (_json.containsKey("image")) { | 2789 if (_json.containsKey("image")) { |
2716 image = new CreativeNativeAdImage.fromJson(_json["image"]); | 2790 image = new CreativeNativeAdImage.fromJson(_json["image"]); |
2717 } | 2791 } |
2718 if (_json.containsKey("impressionTrackingUrl")) { | 2792 if (_json.containsKey("impressionTrackingUrl")) { |
2719 impressionTrackingUrl = _json["impressionTrackingUrl"]; | 2793 impressionTrackingUrl = _json["impressionTrackingUrl"]; |
2720 } | 2794 } |
2721 if (_json.containsKey("logo")) { | 2795 if (_json.containsKey("logo")) { |
2722 logo = new CreativeNativeAdLogo.fromJson(_json["logo"]); | 2796 logo = new CreativeNativeAdLogo.fromJson(_json["logo"]); |
2723 } | 2797 } |
2724 if (_json.containsKey("price")) { | 2798 if (_json.containsKey("price")) { |
2725 price = _json["price"]; | 2799 price = _json["price"]; |
2726 } | 2800 } |
2727 if (_json.containsKey("starRating")) { | 2801 if (_json.containsKey("starRating")) { |
2728 starRating = _json["starRating"]; | 2802 starRating = _json["starRating"]; |
2729 } | 2803 } |
2730 if (_json.containsKey("store")) { | 2804 if (_json.containsKey("store")) { |
2731 store = _json["store"]; | 2805 store = _json["store"]; |
2732 } | 2806 } |
| 2807 if (_json.containsKey("videoURL")) { |
| 2808 videoURL = _json["videoURL"]; |
| 2809 } |
2733 } | 2810 } |
2734 | 2811 |
2735 core.Map toJson() { | 2812 core.Map toJson() { |
2736 var _json = new core.Map(); | 2813 var _json = new core.Map(); |
2737 if (advertiser != null) { | 2814 if (advertiser != null) { |
2738 _json["advertiser"] = advertiser; | 2815 _json["advertiser"] = advertiser; |
2739 } | 2816 } |
2740 if (appIcon != null) { | 2817 if (appIcon != null) { |
2741 _json["appIcon"] = (appIcon).toJson(); | 2818 _json["appIcon"] = (appIcon).toJson(); |
2742 } | 2819 } |
2743 if (body != null) { | 2820 if (body != null) { |
2744 _json["body"] = body; | 2821 _json["body"] = body; |
2745 } | 2822 } |
2746 if (callToAction != null) { | 2823 if (callToAction != null) { |
2747 _json["callToAction"] = callToAction; | 2824 _json["callToAction"] = callToAction; |
2748 } | 2825 } |
| 2826 if (clickLinkUrl != null) { |
| 2827 _json["clickLinkUrl"] = clickLinkUrl; |
| 2828 } |
2749 if (clickTrackingUrl != null) { | 2829 if (clickTrackingUrl != null) { |
2750 _json["clickTrackingUrl"] = clickTrackingUrl; | 2830 _json["clickTrackingUrl"] = clickTrackingUrl; |
2751 } | 2831 } |
2752 if (headline != null) { | 2832 if (headline != null) { |
2753 _json["headline"] = headline; | 2833 _json["headline"] = headline; |
2754 } | 2834 } |
2755 if (image != null) { | 2835 if (image != null) { |
2756 _json["image"] = (image).toJson(); | 2836 _json["image"] = (image).toJson(); |
2757 } | 2837 } |
2758 if (impressionTrackingUrl != null) { | 2838 if (impressionTrackingUrl != null) { |
2759 _json["impressionTrackingUrl"] = impressionTrackingUrl; | 2839 _json["impressionTrackingUrl"] = impressionTrackingUrl; |
2760 } | 2840 } |
2761 if (logo != null) { | 2841 if (logo != null) { |
2762 _json["logo"] = (logo).toJson(); | 2842 _json["logo"] = (logo).toJson(); |
2763 } | 2843 } |
2764 if (price != null) { | 2844 if (price != null) { |
2765 _json["price"] = price; | 2845 _json["price"] = price; |
2766 } | 2846 } |
2767 if (starRating != null) { | 2847 if (starRating != null) { |
2768 _json["starRating"] = starRating; | 2848 _json["starRating"] = starRating; |
2769 } | 2849 } |
2770 if (store != null) { | 2850 if (store != null) { |
2771 _json["store"] = store; | 2851 _json["store"] = store; |
2772 } | 2852 } |
| 2853 if (videoURL != null) { |
| 2854 _json["videoURL"] = videoURL; |
| 2855 } |
2773 return _json; | 2856 return _json; |
2774 } | 2857 } |
2775 } | 2858 } |
2776 | 2859 |
2777 class CreativeServingRestrictionsContexts { | 2860 class CreativeServingRestrictionsContexts { |
2778 /** | 2861 /** |
2779 * Only set when contextType=AUCTION_TYPE. Represents the auction types this | 2862 * Only set when contextType=AUCTION_TYPE. Represents the auction types this |
2780 * restriction applies to. | 2863 * restriction applies to. |
2781 */ | 2864 */ |
2782 core.List<core.String> auctionType; | 2865 core.List<core.String> auctionType; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2966 core.int height; | 3049 core.int height; |
2967 /** The set of urls to be called to record an impression. */ | 3050 /** The set of urls to be called to record an impression. */ |
2968 core.List<core.String> impressionTrackingUrl; | 3051 core.List<core.String> impressionTrackingUrl; |
2969 /** Resource type. */ | 3052 /** Resource type. */ |
2970 core.String kind; | 3053 core.String kind; |
2971 /** | 3054 /** |
2972 * Detected languages for this creative. Read-only. This field should not be | 3055 * Detected languages for this creative. Read-only. This field should not be |
2973 * set in requests. | 3056 * set in requests. |
2974 */ | 3057 */ |
2975 core.List<core.String> languages; | 3058 core.List<core.String> languages; |
2976 /** If nativeAd is set, HTMLSnippet and videoURL should not be set. */ | 3059 /** |
| 3060 * If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should |
| 3061 * not be set. (The videoURL inside nativeAd can be set.) |
| 3062 */ |
2977 CreativeNativeAd nativeAd; | 3063 CreativeNativeAd nativeAd; |
2978 /** | 3064 /** |
2979 * Top-level open auction status. Read-only. This field should not be set in | 3065 * Top-level open auction status. Read-only. This field should not be set in |
2980 * requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in | 3066 * requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in |
2981 * servingRestrictions will also exist. Note that this may be nuanced with | 3067 * servingRestrictions will also exist. Note that this may be nuanced with |
2982 * other contextual restrictions, in which case it may be preferable to read | 3068 * other contextual restrictions, in which case it may be preferable to read |
2983 * from ServingRestrictions directly. | 3069 * from ServingRestrictions directly. |
2984 */ | 3070 */ |
2985 core.String openAuctionStatus; | 3071 core.String openAuctionStatus; |
2986 /** | 3072 /** |
(...skipping 17 matching lines...) Expand all Loading... |
3004 * This field should not be set in requests. | 3090 * This field should not be set in requests. |
3005 */ | 3091 */ |
3006 core.List<CreativeServingRestrictions> servingRestrictions; | 3092 core.List<CreativeServingRestrictions> servingRestrictions; |
3007 /** All vendor types for the ads that may be shown from this snippet. */ | 3093 /** All vendor types for the ads that may be shown from this snippet. */ |
3008 core.List<core.int> vendorType; | 3094 core.List<core.int> vendorType; |
3009 /** | 3095 /** |
3010 * The version for this creative. Read-only. This field should not be set in | 3096 * The version for this creative. Read-only. This field should not be set in |
3011 * requests. | 3097 * requests. |
3012 */ | 3098 */ |
3013 core.int version; | 3099 core.int version; |
3014 /** The url to fetch a video ad. If set, HTMLSnippet should not be set. */ | 3100 /** |
| 3101 * 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 |
| 3103 * above. |
| 3104 */ |
3015 core.String videoURL; | 3105 core.String videoURL; |
3016 /** Ad width. */ | 3106 /** Ad width. */ |
3017 core.int width; | 3107 core.int width; |
3018 | 3108 |
3019 Creative(); | 3109 Creative(); |
3020 | 3110 |
3021 Creative.fromJson(core.Map _json) { | 3111 Creative.fromJson(core.Map _json) { |
3022 if (_json.containsKey("HTMLSnippet")) { | 3112 if (_json.containsKey("HTMLSnippet")) { |
3023 HTMLSnippet = _json["HTMLSnippet"]; | 3113 HTMLSnippet = _json["HTMLSnippet"]; |
3024 } | 3114 } |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3188 if (videoURL != null) { | 3278 if (videoURL != null) { |
3189 _json["videoURL"] = videoURL; | 3279 _json["videoURL"] = videoURL; |
3190 } | 3280 } |
3191 if (width != null) { | 3281 if (width != null) { |
3192 _json["width"] = width; | 3282 _json["width"] = width; |
3193 } | 3283 } |
3194 return _json; | 3284 return _json; |
3195 } | 3285 } |
3196 } | 3286 } |
3197 | 3287 |
| 3288 class CreativeDealIdsDealStatuses { |
| 3289 /** ARC approval status. */ |
| 3290 core.String arcStatus; |
| 3291 /** External deal ID. */ |
| 3292 core.String dealId; |
| 3293 /** Publisher ID. */ |
| 3294 core.int webPropertyId; |
| 3295 |
| 3296 CreativeDealIdsDealStatuses(); |
| 3297 |
| 3298 CreativeDealIdsDealStatuses.fromJson(core.Map _json) { |
| 3299 if (_json.containsKey("arcStatus")) { |
| 3300 arcStatus = _json["arcStatus"]; |
| 3301 } |
| 3302 if (_json.containsKey("dealId")) { |
| 3303 dealId = _json["dealId"]; |
| 3304 } |
| 3305 if (_json.containsKey("webPropertyId")) { |
| 3306 webPropertyId = _json["webPropertyId"]; |
| 3307 } |
| 3308 } |
| 3309 |
| 3310 core.Map toJson() { |
| 3311 var _json = new core.Map(); |
| 3312 if (arcStatus != null) { |
| 3313 _json["arcStatus"] = arcStatus; |
| 3314 } |
| 3315 if (dealId != null) { |
| 3316 _json["dealId"] = dealId; |
| 3317 } |
| 3318 if (webPropertyId != null) { |
| 3319 _json["webPropertyId"] = webPropertyId; |
| 3320 } |
| 3321 return _json; |
| 3322 } |
| 3323 } |
| 3324 |
| 3325 /** The external deal ids associated with a creative. */ |
| 3326 class CreativeDealIds { |
| 3327 /** A list of external deal ids and ARC approval status. */ |
| 3328 core.List<CreativeDealIdsDealStatuses> dealStatuses; |
| 3329 /** Resource type. */ |
| 3330 core.String kind; |
| 3331 |
| 3332 CreativeDealIds(); |
| 3333 |
| 3334 CreativeDealIds.fromJson(core.Map _json) { |
| 3335 if (_json.containsKey("dealStatuses")) { |
| 3336 dealStatuses = _json["dealStatuses"].map((value) => new CreativeDealIdsDea
lStatuses.fromJson(value)).toList(); |
| 3337 } |
| 3338 if (_json.containsKey("kind")) { |
| 3339 kind = _json["kind"]; |
| 3340 } |
| 3341 } |
| 3342 |
| 3343 core.Map toJson() { |
| 3344 var _json = new core.Map(); |
| 3345 if (dealStatuses != null) { |
| 3346 _json["dealStatuses"] = dealStatuses.map((value) => (value).toJson()).toLi
st(); |
| 3347 } |
| 3348 if (kind != null) { |
| 3349 _json["kind"] = kind; |
| 3350 } |
| 3351 return _json; |
| 3352 } |
| 3353 } |
| 3354 |
3198 /** | 3355 /** |
3199 * The creatives feed lists the active creatives for the Ad Exchange buyer | 3356 * The creatives feed lists the active creatives for the Ad Exchange buyer |
3200 * accounts that the user has access to. Each entry in the feed corresponds to a | 3357 * accounts that the user has access to. Each entry in the feed corresponds to a |
3201 * single creative. | 3358 * single creative. |
3202 */ | 3359 */ |
3203 class CreativesList { | 3360 class CreativesList { |
3204 /** A list of creatives. */ | 3361 /** A list of creatives. */ |
3205 core.List<Creative> items; | 3362 core.List<Creative> items; |
3206 /** Resource type. */ | 3363 /** Resource type. */ |
3207 core.String kind; | 3364 core.String kind; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3314 if (sellerPauseReason != null) { | 3471 if (sellerPauseReason != null) { |
3315 _json["sellerPauseReason"] = sellerPauseReason; | 3472 _json["sellerPauseReason"] = sellerPauseReason; |
3316 } | 3473 } |
3317 return _json; | 3474 return _json; |
3318 } | 3475 } |
3319 } | 3476 } |
3320 | 3477 |
3321 class DealTerms { | 3478 class DealTerms { |
3322 /** Visibilty of the URL in bid requests. */ | 3479 /** Visibilty of the URL in bid requests. */ |
3323 core.String brandingType; | 3480 core.String brandingType; |
| 3481 /** |
| 3482 * Indicates that this ExternalDealId exists under at least two different |
| 3483 * AdxInventoryDeals. Currently, the only case that the same ExternalDealId |
| 3484 * will exist is programmatic cross sell case. |
| 3485 */ |
| 3486 core.String crossListedExternalDealIdType; |
3324 /** Description for the proposed terms of the deal. */ | 3487 /** Description for the proposed terms of the deal. */ |
3325 core.String description; | 3488 core.String description; |
3326 /** | 3489 /** |
3327 * Non-binding estimate of the estimated gross spend for this deal Can be set | 3490 * Non-binding estimate of the estimated gross spend for this deal Can be set |
3328 * by buyer or seller. | 3491 * by buyer or seller. |
3329 */ | 3492 */ |
3330 Price estimatedGrossSpend; | 3493 Price estimatedGrossSpend; |
3331 /** | 3494 /** |
3332 * Non-binding estimate of the impressions served per day Can be set by buyer | 3495 * Non-binding estimate of the impressions served per day Can be set by buyer |
3333 * or seller. | 3496 * or seller. |
(...skipping 12 matching lines...) Expand all Loading... |
3346 * boundaries of a day (buyer-readonly) | 3509 * boundaries of a day (buyer-readonly) |
3347 */ | 3510 */ |
3348 core.String sellerTimeZone; | 3511 core.String sellerTimeZone; |
3349 | 3512 |
3350 DealTerms(); | 3513 DealTerms(); |
3351 | 3514 |
3352 DealTerms.fromJson(core.Map _json) { | 3515 DealTerms.fromJson(core.Map _json) { |
3353 if (_json.containsKey("brandingType")) { | 3516 if (_json.containsKey("brandingType")) { |
3354 brandingType = _json["brandingType"]; | 3517 brandingType = _json["brandingType"]; |
3355 } | 3518 } |
| 3519 if (_json.containsKey("crossListedExternalDealIdType")) { |
| 3520 crossListedExternalDealIdType = _json["crossListedExternalDealIdType"]; |
| 3521 } |
3356 if (_json.containsKey("description")) { | 3522 if (_json.containsKey("description")) { |
3357 description = _json["description"]; | 3523 description = _json["description"]; |
3358 } | 3524 } |
3359 if (_json.containsKey("estimatedGrossSpend")) { | 3525 if (_json.containsKey("estimatedGrossSpend")) { |
3360 estimatedGrossSpend = new Price.fromJson(_json["estimatedGrossSpend"]); | 3526 estimatedGrossSpend = new Price.fromJson(_json["estimatedGrossSpend"]); |
3361 } | 3527 } |
3362 if (_json.containsKey("estimatedImpressionsPerDay")) { | 3528 if (_json.containsKey("estimatedImpressionsPerDay")) { |
3363 estimatedImpressionsPerDay = _json["estimatedImpressionsPerDay"]; | 3529 estimatedImpressionsPerDay = _json["estimatedImpressionsPerDay"]; |
3364 } | 3530 } |
3365 if (_json.containsKey("guaranteedFixedPriceTerms")) { | 3531 if (_json.containsKey("guaranteedFixedPriceTerms")) { |
(...skipping 11 matching lines...) Expand all Loading... |
3377 if (_json.containsKey("sellerTimeZone")) { | 3543 if (_json.containsKey("sellerTimeZone")) { |
3378 sellerTimeZone = _json["sellerTimeZone"]; | 3544 sellerTimeZone = _json["sellerTimeZone"]; |
3379 } | 3545 } |
3380 } | 3546 } |
3381 | 3547 |
3382 core.Map toJson() { | 3548 core.Map toJson() { |
3383 var _json = new core.Map(); | 3549 var _json = new core.Map(); |
3384 if (brandingType != null) { | 3550 if (brandingType != null) { |
3385 _json["brandingType"] = brandingType; | 3551 _json["brandingType"] = brandingType; |
3386 } | 3552 } |
| 3553 if (crossListedExternalDealIdType != null) { |
| 3554 _json["crossListedExternalDealIdType"] = crossListedExternalDealIdType; |
| 3555 } |
3387 if (description != null) { | 3556 if (description != null) { |
3388 _json["description"] = description; | 3557 _json["description"] = description; |
3389 } | 3558 } |
3390 if (estimatedGrossSpend != null) { | 3559 if (estimatedGrossSpend != null) { |
3391 _json["estimatedGrossSpend"] = (estimatedGrossSpend).toJson(); | 3560 _json["estimatedGrossSpend"] = (estimatedGrossSpend).toJson(); |
3392 } | 3561 } |
3393 if (estimatedImpressionsPerDay != null) { | 3562 if (estimatedImpressionsPerDay != null) { |
3394 _json["estimatedImpressionsPerDay"] = estimatedImpressionsPerDay; | 3563 _json["estimatedImpressionsPerDay"] = estimatedImpressionsPerDay; |
3395 } | 3564 } |
3396 if (guaranteedFixedPriceTerms != null) { | 3565 if (guaranteedFixedPriceTerms != null) { |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4070 */ | 4239 */ |
4071 core.String flightEndTimeMs; | 4240 core.String flightEndTimeMs; |
4072 /** | 4241 /** |
4073 * Proposed flight start time of the deal (ms since epoch) This will generally | 4242 * Proposed flight start time of the deal (ms since epoch) This will generally |
4074 * be stored in a granularity of a second. (updatable) | 4243 * be stored in a granularity of a second. (updatable) |
4075 */ | 4244 */ |
4076 core.String flightStartTimeMs; | 4245 core.String flightStartTimeMs; |
4077 /** Description for the deal terms. (updatable) */ | 4246 /** Description for the deal terms. (updatable) */ |
4078 core.String inventoryDescription; | 4247 core.String inventoryDescription; |
4079 /** | 4248 /** |
| 4249 * Indicates whether the current deal is a RFP template. RFP template is |
| 4250 * created by buyer and not based on seller created products. |
| 4251 */ |
| 4252 core.bool isRfpTemplate; |
| 4253 /** |
4080 * Identifies what kind of resource this is. Value: the fixed string | 4254 * Identifies what kind of resource this is. Value: the fixed string |
4081 * "adexchangebuyer#marketplaceDeal". | 4255 * "adexchangebuyer#marketplaceDeal". |
4082 */ | 4256 */ |
4083 core.String kind; | 4257 core.String kind; |
4084 /** The time (ms since epoch) when the deal was last updated. (readonly) */ | 4258 /** The time (ms since epoch) when the deal was last updated. (readonly) */ |
4085 core.String lastUpdateTimeMs; | 4259 core.String lastUpdateTimeMs; |
4086 /** The name of the deal. (updatable) */ | 4260 /** The name of the deal. (updatable) */ |
4087 core.String name; | 4261 core.String name; |
4088 /** | 4262 /** |
4089 * The product-id from which this deal was created. (readonly, except on | 4263 * The product-id from which this deal was created. (readonly, except on |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4147 } | 4321 } |
4148 if (_json.containsKey("flightEndTimeMs")) { | 4322 if (_json.containsKey("flightEndTimeMs")) { |
4149 flightEndTimeMs = _json["flightEndTimeMs"]; | 4323 flightEndTimeMs = _json["flightEndTimeMs"]; |
4150 } | 4324 } |
4151 if (_json.containsKey("flightStartTimeMs")) { | 4325 if (_json.containsKey("flightStartTimeMs")) { |
4152 flightStartTimeMs = _json["flightStartTimeMs"]; | 4326 flightStartTimeMs = _json["flightStartTimeMs"]; |
4153 } | 4327 } |
4154 if (_json.containsKey("inventoryDescription")) { | 4328 if (_json.containsKey("inventoryDescription")) { |
4155 inventoryDescription = _json["inventoryDescription"]; | 4329 inventoryDescription = _json["inventoryDescription"]; |
4156 } | 4330 } |
| 4331 if (_json.containsKey("isRfpTemplate")) { |
| 4332 isRfpTemplate = _json["isRfpTemplate"]; |
| 4333 } |
4157 if (_json.containsKey("kind")) { | 4334 if (_json.containsKey("kind")) { |
4158 kind = _json["kind"]; | 4335 kind = _json["kind"]; |
4159 } | 4336 } |
4160 if (_json.containsKey("lastUpdateTimeMs")) { | 4337 if (_json.containsKey("lastUpdateTimeMs")) { |
4161 lastUpdateTimeMs = _json["lastUpdateTimeMs"]; | 4338 lastUpdateTimeMs = _json["lastUpdateTimeMs"]; |
4162 } | 4339 } |
4163 if (_json.containsKey("name")) { | 4340 if (_json.containsKey("name")) { |
4164 name = _json["name"]; | 4341 name = _json["name"]; |
4165 } | 4342 } |
4166 if (_json.containsKey("productId")) { | 4343 if (_json.containsKey("productId")) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4220 } | 4397 } |
4221 if (flightEndTimeMs != null) { | 4398 if (flightEndTimeMs != null) { |
4222 _json["flightEndTimeMs"] = flightEndTimeMs; | 4399 _json["flightEndTimeMs"] = flightEndTimeMs; |
4223 } | 4400 } |
4224 if (flightStartTimeMs != null) { | 4401 if (flightStartTimeMs != null) { |
4225 _json["flightStartTimeMs"] = flightStartTimeMs; | 4402 _json["flightStartTimeMs"] = flightStartTimeMs; |
4226 } | 4403 } |
4227 if (inventoryDescription != null) { | 4404 if (inventoryDescription != null) { |
4228 _json["inventoryDescription"] = inventoryDescription; | 4405 _json["inventoryDescription"] = inventoryDescription; |
4229 } | 4406 } |
| 4407 if (isRfpTemplate != null) { |
| 4408 _json["isRfpTemplate"] = isRfpTemplate; |
| 4409 } |
4230 if (kind != null) { | 4410 if (kind != null) { |
4231 _json["kind"] = kind; | 4411 _json["kind"] = kind; |
4232 } | 4412 } |
4233 if (lastUpdateTimeMs != null) { | 4413 if (lastUpdateTimeMs != null) { |
4234 _json["lastUpdateTimeMs"] = lastUpdateTimeMs; | 4414 _json["lastUpdateTimeMs"] = lastUpdateTimeMs; |
4235 } | 4415 } |
4236 if (name != null) { | 4416 if (name != null) { |
4237 _json["name"] = name; | 4417 _json["name"] = name; |
4238 } | 4418 } |
4239 if (productId != null) { | 4419 if (productId != null) { |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4908 * PRETARGETING_PLATFORM_TABLET. | 5088 * PRETARGETING_PLATFORM_TABLET. |
4909 */ | 5089 */ |
4910 core.List<core.String> platforms; | 5090 core.List<core.String> platforms; |
4911 /** | 5091 /** |
4912 * Creative attributes should be declared here if all creatives corresponding | 5092 * Creative attributes should be declared here if all creatives corresponding |
4913 * to this pretargeting configuration have that creative attribute. Values are | 5093 * to this pretargeting configuration have that creative attribute. Values are |
4914 * from pretargetable-creative-attributes.txt in the downloadable files | 5094 * from pretargetable-creative-attributes.txt in the downloadable files |
4915 * section. | 5095 * section. |
4916 */ | 5096 */ |
4917 core.List<core.String> supportedCreativeAttributes; | 5097 core.List<core.String> supportedCreativeAttributes; |
| 5098 /** |
| 5099 * Requests containing the specified type of user data will match. Possible |
| 5100 * values are HOSTED_MATCH_DATA, which means the request is cookie-targetable |
| 5101 * and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, |
| 5102 * which means the request has either a targetable cookie or an iOS IDFA. |
| 5103 */ |
| 5104 core.List<core.String> userIdentifierDataRequired; |
4918 /** Requests containing any of these user list ids will match. */ | 5105 /** Requests containing any of these user list ids will match. */ |
4919 core.List<core.String> userLists; | 5106 core.List<core.String> userLists; |
4920 /** | 5107 /** |
4921 * Requests that allow any of these vendor ids will match. Values are from | 5108 * Requests that allow any of these vendor ids will match. Values are from |
4922 * vendors.txt in the downloadable files section. | 5109 * vendors.txt in the downloadable files section. |
4923 */ | 5110 */ |
4924 core.List<core.String> vendorTypes; | 5111 core.List<core.String> vendorTypes; |
4925 /** Requests containing any of these vertical ids will match. */ | 5112 /** Requests containing any of these vertical ids will match. */ |
4926 core.List<core.String> verticals; | 5113 core.List<core.String> verticals; |
4927 /** | 5114 /** |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4985 } | 5172 } |
4986 if (_json.containsKey("placements")) { | 5173 if (_json.containsKey("placements")) { |
4987 placements = _json["placements"].map((value) => new PretargetingConfigPlac
ements.fromJson(value)).toList(); | 5174 placements = _json["placements"].map((value) => new PretargetingConfigPlac
ements.fromJson(value)).toList(); |
4988 } | 5175 } |
4989 if (_json.containsKey("platforms")) { | 5176 if (_json.containsKey("platforms")) { |
4990 platforms = _json["platforms"]; | 5177 platforms = _json["platforms"]; |
4991 } | 5178 } |
4992 if (_json.containsKey("supportedCreativeAttributes")) { | 5179 if (_json.containsKey("supportedCreativeAttributes")) { |
4993 supportedCreativeAttributes = _json["supportedCreativeAttributes"]; | 5180 supportedCreativeAttributes = _json["supportedCreativeAttributes"]; |
4994 } | 5181 } |
| 5182 if (_json.containsKey("userIdentifierDataRequired")) { |
| 5183 userIdentifierDataRequired = _json["userIdentifierDataRequired"]; |
| 5184 } |
4995 if (_json.containsKey("userLists")) { | 5185 if (_json.containsKey("userLists")) { |
4996 userLists = _json["userLists"]; | 5186 userLists = _json["userLists"]; |
4997 } | 5187 } |
4998 if (_json.containsKey("vendorTypes")) { | 5188 if (_json.containsKey("vendorTypes")) { |
4999 vendorTypes = _json["vendorTypes"]; | 5189 vendorTypes = _json["vendorTypes"]; |
5000 } | 5190 } |
5001 if (_json.containsKey("verticals")) { | 5191 if (_json.containsKey("verticals")) { |
5002 verticals = _json["verticals"]; | 5192 verticals = _json["verticals"]; |
5003 } | 5193 } |
5004 if (_json.containsKey("videoPlayerSizes")) { | 5194 if (_json.containsKey("videoPlayerSizes")) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5061 } | 5251 } |
5062 if (placements != null) { | 5252 if (placements != null) { |
5063 _json["placements"] = placements.map((value) => (value).toJson()).toList()
; | 5253 _json["placements"] = placements.map((value) => (value).toJson()).toList()
; |
5064 } | 5254 } |
5065 if (platforms != null) { | 5255 if (platforms != null) { |
5066 _json["platforms"] = platforms; | 5256 _json["platforms"] = platforms; |
5067 } | 5257 } |
5068 if (supportedCreativeAttributes != null) { | 5258 if (supportedCreativeAttributes != null) { |
5069 _json["supportedCreativeAttributes"] = supportedCreativeAttributes; | 5259 _json["supportedCreativeAttributes"] = supportedCreativeAttributes; |
5070 } | 5260 } |
| 5261 if (userIdentifierDataRequired != null) { |
| 5262 _json["userIdentifierDataRequired"] = userIdentifierDataRequired; |
| 5263 } |
5071 if (userLists != null) { | 5264 if (userLists != null) { |
5072 _json["userLists"] = userLists; | 5265 _json["userLists"] = userLists; |
5073 } | 5266 } |
5074 if (vendorTypes != null) { | 5267 if (vendorTypes != null) { |
5075 _json["vendorTypes"] = vendorTypes; | 5268 _json["vendorTypes"] = vendorTypes; |
5076 } | 5269 } |
5077 if (verticals != null) { | 5270 if (verticals != null) { |
5078 _json["verticals"] = verticals; | 5271 _json["verticals"] = verticals; |
5079 } | 5272 } |
5080 if (videoPlayerSizes != null) { | 5273 if (videoPlayerSizes != null) { |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5502 /** | 5695 /** |
5503 * Reference to the buyer that will get billed for this proposal. (readonly) | 5696 * Reference to the buyer that will get billed for this proposal. (readonly) |
5504 */ | 5697 */ |
5505 Buyer billedBuyer; | 5698 Buyer billedBuyer; |
5506 /** Reference to the buyer on the proposal. (readonly, except on create) */ | 5699 /** Reference to the buyer on the proposal. (readonly, except on create) */ |
5507 Buyer buyer; | 5700 Buyer buyer; |
5508 /** Optional contact information of the buyer. (seller-readonly) */ | 5701 /** Optional contact information of the buyer. (seller-readonly) */ |
5509 core.List<ContactInformation> buyerContacts; | 5702 core.List<ContactInformation> buyerContacts; |
5510 /** Private data for buyer. (hidden from seller). */ | 5703 /** Private data for buyer. (hidden from seller). */ |
5511 PrivateData buyerPrivateData; | 5704 PrivateData buyerPrivateData; |
| 5705 /** IDs of DBM advertisers permission to this proposal. */ |
| 5706 core.List<core.String> dbmAdvertiserIds; |
5512 /** | 5707 /** |
5513 * When an proposal is in an accepted state, indicates whether the buyer has | 5708 * When an proposal is in an accepted state, indicates whether the buyer has |
5514 * signed off. Once both sides have signed off on a deal, the proposal can be | 5709 * signed off. Once both sides have signed off on a deal, the proposal can be |
5515 * finalized by the seller. (seller-readonly) | 5710 * finalized by the seller. (seller-readonly) |
5516 */ | 5711 */ |
5517 core.bool hasBuyerSignedOff; | 5712 core.bool hasBuyerSignedOff; |
5518 /** | 5713 /** |
5519 * When an proposal is in an accepted state, indicates whether the buyer has | 5714 * When an proposal is in an accepted state, indicates whether the buyer has |
5520 * signed off Once both sides have signed off on a deal, the proposal can be | 5715 * signed off Once both sides have signed off on a deal, the proposal can be |
5521 * finalized by the seller. (buyer-readonly) | 5716 * finalized by the seller. (buyer-readonly) |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5577 } | 5772 } |
5578 if (_json.containsKey("buyer")) { | 5773 if (_json.containsKey("buyer")) { |
5579 buyer = new Buyer.fromJson(_json["buyer"]); | 5774 buyer = new Buyer.fromJson(_json["buyer"]); |
5580 } | 5775 } |
5581 if (_json.containsKey("buyerContacts")) { | 5776 if (_json.containsKey("buyerContacts")) { |
5582 buyerContacts = _json["buyerContacts"].map((value) => new ContactInformati
on.fromJson(value)).toList(); | 5777 buyerContacts = _json["buyerContacts"].map((value) => new ContactInformati
on.fromJson(value)).toList(); |
5583 } | 5778 } |
5584 if (_json.containsKey("buyerPrivateData")) { | 5779 if (_json.containsKey("buyerPrivateData")) { |
5585 buyerPrivateData = new PrivateData.fromJson(_json["buyerPrivateData"]); | 5780 buyerPrivateData = new PrivateData.fromJson(_json["buyerPrivateData"]); |
5586 } | 5781 } |
| 5782 if (_json.containsKey("dbmAdvertiserIds")) { |
| 5783 dbmAdvertiserIds = _json["dbmAdvertiserIds"]; |
| 5784 } |
5587 if (_json.containsKey("hasBuyerSignedOff")) { | 5785 if (_json.containsKey("hasBuyerSignedOff")) { |
5588 hasBuyerSignedOff = _json["hasBuyerSignedOff"]; | 5786 hasBuyerSignedOff = _json["hasBuyerSignedOff"]; |
5589 } | 5787 } |
5590 if (_json.containsKey("hasSellerSignedOff")) { | 5788 if (_json.containsKey("hasSellerSignedOff")) { |
5591 hasSellerSignedOff = _json["hasSellerSignedOff"]; | 5789 hasSellerSignedOff = _json["hasSellerSignedOff"]; |
5592 } | 5790 } |
5593 if (_json.containsKey("inventorySource")) { | 5791 if (_json.containsKey("inventorySource")) { |
5594 inventorySource = _json["inventorySource"]; | 5792 inventorySource = _json["inventorySource"]; |
5595 } | 5793 } |
5596 if (_json.containsKey("isRenegotiating")) { | 5794 if (_json.containsKey("isRenegotiating")) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5647 } | 5845 } |
5648 if (buyer != null) { | 5846 if (buyer != null) { |
5649 _json["buyer"] = (buyer).toJson(); | 5847 _json["buyer"] = (buyer).toJson(); |
5650 } | 5848 } |
5651 if (buyerContacts != null) { | 5849 if (buyerContacts != null) { |
5652 _json["buyerContacts"] = buyerContacts.map((value) => (value).toJson()).to
List(); | 5850 _json["buyerContacts"] = buyerContacts.map((value) => (value).toJson()).to
List(); |
5653 } | 5851 } |
5654 if (buyerPrivateData != null) { | 5852 if (buyerPrivateData != null) { |
5655 _json["buyerPrivateData"] = (buyerPrivateData).toJson(); | 5853 _json["buyerPrivateData"] = (buyerPrivateData).toJson(); |
5656 } | 5854 } |
| 5855 if (dbmAdvertiserIds != null) { |
| 5856 _json["dbmAdvertiserIds"] = dbmAdvertiserIds; |
| 5857 } |
5657 if (hasBuyerSignedOff != null) { | 5858 if (hasBuyerSignedOff != null) { |
5658 _json["hasBuyerSignedOff"] = hasBuyerSignedOff; | 5859 _json["hasBuyerSignedOff"] = hasBuyerSignedOff; |
5659 } | 5860 } |
5660 if (hasSellerSignedOff != null) { | 5861 if (hasSellerSignedOff != null) { |
5661 _json["hasSellerSignedOff"] = hasSellerSignedOff; | 5862 _json["hasSellerSignedOff"] = hasSellerSignedOff; |
5662 } | 5863 } |
5663 if (inventorySource != null) { | 5864 if (inventorySource != null) { |
5664 _json["inventorySource"] = inventorySource; | 5865 _json["inventorySource"] = inventorySource; |
5665 } | 5866 } |
5666 if (isRenegotiating != null) { | 5867 if (isRenegotiating != null) { |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6271 } | 6472 } |
6272 if (proposalRevisionNumber != null) { | 6473 if (proposalRevisionNumber != null) { |
6273 _json["proposalRevisionNumber"] = proposalRevisionNumber; | 6474 _json["proposalRevisionNumber"] = proposalRevisionNumber; |
6274 } | 6475 } |
6275 if (updateAction != null) { | 6476 if (updateAction != null) { |
6276 _json["updateAction"] = updateAction; | 6477 _json["updateAction"] = updateAction; |
6277 } | 6478 } |
6278 return _json; | 6479 return _json; |
6279 } | 6480 } |
6280 } | 6481 } |
OLD | NEW |