| 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_beta.adexchangebuyer2.v2beta1; | 3 library googleapis_beta.adexchangebuyer2.v2beta1; |
| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 } | 147 } |
| 148 | 148 |
| 149 /** | 149 /** |
| 150 * Lists all the clients for the current sponsor buyer. | 150 * Lists all the clients for the current sponsor buyer. |
| 151 * | 151 * |
| 152 * Request parameters: | 152 * Request parameters: |
| 153 * | 153 * |
| 154 * [accountId] - Unique numerical account ID of the sponsor buyer to list the | 154 * [accountId] - Unique numerical account ID of the sponsor buyer to list the |
| 155 * clients for. | 155 * clients for. |
| 156 * | 156 * |
| 157 * [pageSize] - Requested page size. The server may return fewer clients than | |
| 158 * requested. | |
| 159 * If unspecified, the server will pick an appropriate default. | |
| 160 * | |
| 161 * [pageToken] - A token identifying a page of results the server should | 157 * [pageToken] - A token identifying a page of results the server should |
| 162 * return. | 158 * return. |
| 163 * Typically, this is the value of | 159 * Typically, this is the value of |
| 164 * ListClientsResponse.nextPageToken | 160 * ListClientsResponse.nextPageToken |
| 165 * returned from the previous call to the | 161 * returned from the previous call to the |
| 166 * accounts.clients.list method. | 162 * accounts.clients.list method. |
| 167 * | 163 * |
| 164 * [pageSize] - Requested page size. The server may return fewer clients than |
| 165 * requested. |
| 166 * If unspecified, the server will pick an appropriate default. |
| 167 * |
| 168 * Completes with a [ListClientsResponse]. | 168 * Completes with a [ListClientsResponse]. |
| 169 * | 169 * |
| 170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 171 * error. | 171 * error. |
| 172 * | 172 * |
| 173 * If the used [http.Client] completes with an error when making a REST call, | 173 * If the used [http.Client] completes with an error when making a REST call, |
| 174 * this method will complete with the same error. | 174 * this method will complete with the same error. |
| 175 */ | 175 */ |
| 176 async.Future<ListClientsResponse> list(core.String accountId, {core.int pageSi
ze, core.String pageToken}) { | 176 async.Future<ListClientsResponse> list(core.String accountId, {core.String pag
eToken, core.int pageSize}) { |
| 177 var _url = null; | 177 var _url = null; |
| 178 var _queryParams = new core.Map(); | 178 var _queryParams = new core.Map(); |
| 179 var _uploadMedia = null; | 179 var _uploadMedia = null; |
| 180 var _uploadOptions = null; | 180 var _uploadOptions = null; |
| 181 var _downloadOptions = commons.DownloadOptions.Metadata; | 181 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 182 var _body = null; | 182 var _body = null; |
| 183 | 183 |
| 184 if (accountId == null) { | 184 if (accountId == null) { |
| 185 throw new core.ArgumentError("Parameter accountId is required."); | 185 throw new core.ArgumentError("Parameter accountId is required."); |
| 186 } | 186 } |
| 187 if (pageToken != null) { |
| 188 _queryParams["pageToken"] = [pageToken]; |
| 189 } |
| 187 if (pageSize != null) { | 190 if (pageSize != null) { |
| 188 _queryParams["pageSize"] = ["${pageSize}"]; | 191 _queryParams["pageSize"] = ["${pageSize}"]; |
| 189 } | 192 } |
| 190 if (pageToken != null) { | |
| 191 _queryParams["pageToken"] = [pageToken]; | |
| 192 } | |
| 193 | 193 |
| 194 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients'; | 194 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients'; |
| 195 | 195 |
| 196 var _response = _requester.request(_url, | 196 var _response = _requester.request(_url, |
| 197 "GET", | 197 "GET", |
| 198 body: _body, | 198 body: _body, |
| 199 queryParams: _queryParams, | 199 queryParams: _queryParams, |
| 200 uploadOptions: _uploadOptions, | 200 uploadOptions: _uploadOptions, |
| 201 uploadMedia: _uploadMedia, | 201 uploadMedia: _uploadMedia, |
| 202 downloadOptions: _downloadOptions); | 202 downloadOptions: _downloadOptions); |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 * List all creative-deal associations. | 1038 * List all creative-deal associations. |
| 1039 * | 1039 * |
| 1040 * Request parameters: | 1040 * Request parameters: |
| 1041 * | 1041 * |
| 1042 * [accountId] - The account to list the associations from. | 1042 * [accountId] - The account to list the associations from. |
| 1043 * Specify "-" to list all creatives the current user has access to. | 1043 * Specify "-" to list all creatives the current user has access to. |
| 1044 * | 1044 * |
| 1045 * [creativeId] - The creative ID to list the associations from. | 1045 * [creativeId] - The creative ID to list the associations from. |
| 1046 * Specify "-" to list all creatives under the above account. | 1046 * Specify "-" to list all creatives under the above account. |
| 1047 * | 1047 * |
| 1048 * [pageToken] - A token identifying a page of results the server should |
| 1049 * return. |
| 1050 * Typically, this is the value of |
| 1051 * ListDealAssociationsResponse.next_page_token |
| 1052 * returned from the previous call to 'ListDealAssociations' method. |
| 1053 * |
| 1054 * [pageSize] - Requested page size. Server may return fewer associations than |
| 1055 * requested. |
| 1056 * If unspecified, server will pick an appropriate default. |
| 1057 * |
| 1048 * [query] - An optional query string to filter deal associations. If no | 1058 * [query] - An optional query string to filter deal associations. If no |
| 1049 * filter is | 1059 * filter is |
| 1050 * specified, all associations will be returned. | 1060 * specified, all associations will be returned. |
| 1051 * Supported queries are: | 1061 * Supported queries are: |
| 1052 * <ul> | 1062 * <ul> |
| 1053 * <li>accountId=<i>account_id_string</i> | 1063 * <li>accountId=<i>account_id_string</i> |
| 1054 * <li>creativeId=<i>creative_id_string</i> | 1064 * <li>creativeId=<i>creative_id_string</i> |
| 1055 * <li>dealsId=<i>deals_id_string</i> | 1065 * <li>dealsId=<i>deals_id_string</i> |
| 1056 * <li>dealsStatus:{approved, conditionally_approved, disapproved, | 1066 * <li>dealsStatus:{approved, conditionally_approved, disapproved, |
| 1057 * not_checked} | 1067 * not_checked} |
| 1058 * <li>openAuctionStatus:{approved, conditionally_approved, disapproved, | 1068 * <li>openAuctionStatus:{approved, conditionally_approved, disapproved, |
| 1059 * not_checked} | 1069 * not_checked} |
| 1060 * </ul> | 1070 * </ul> |
| 1061 * Example: 'dealsId=12345 AND dealsStatus:disapproved' | 1071 * Example: 'dealsId=12345 AND dealsStatus:disapproved' |
| 1062 * | 1072 * |
| 1063 * [pageToken] - A token identifying a page of results the server should | |
| 1064 * return. | |
| 1065 * Typically, this is the value of | |
| 1066 * ListDealAssociationsResponse.next_page_token | |
| 1067 * returned from the previous call to 'ListDealAssociations' method. | |
| 1068 * | |
| 1069 * [pageSize] - Requested page size. Server may return fewer associations than | |
| 1070 * requested. | |
| 1071 * If unspecified, server will pick an appropriate default. | |
| 1072 * | |
| 1073 * Completes with a [ListDealAssociationsResponse]. | 1073 * Completes with a [ListDealAssociationsResponse]. |
| 1074 * | 1074 * |
| 1075 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1075 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1076 * error. | 1076 * error. |
| 1077 * | 1077 * |
| 1078 * If the used [http.Client] completes with an error when making a REST call, | 1078 * If the used [http.Client] completes with an error when making a REST call, |
| 1079 * this method will complete with the same error. | 1079 * this method will complete with the same error. |
| 1080 */ | 1080 */ |
| 1081 async.Future<ListDealAssociationsResponse> list(core.String accountId, core.St
ring creativeId, {core.String query, core.String pageToken, core.int pageSize})
{ | 1081 async.Future<ListDealAssociationsResponse> list(core.String accountId, core.St
ring creativeId, {core.String pageToken, core.int pageSize, core.String query})
{ |
| 1082 var _url = null; | 1082 var _url = null; |
| 1083 var _queryParams = new core.Map(); | 1083 var _queryParams = new core.Map(); |
| 1084 var _uploadMedia = null; | 1084 var _uploadMedia = null; |
| 1085 var _uploadOptions = null; | 1085 var _uploadOptions = null; |
| 1086 var _downloadOptions = commons.DownloadOptions.Metadata; | 1086 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1087 var _body = null; | 1087 var _body = null; |
| 1088 | 1088 |
| 1089 if (accountId == null) { | 1089 if (accountId == null) { |
| 1090 throw new core.ArgumentError("Parameter accountId is required."); | 1090 throw new core.ArgumentError("Parameter accountId is required."); |
| 1091 } | 1091 } |
| 1092 if (creativeId == null) { | 1092 if (creativeId == null) { |
| 1093 throw new core.ArgumentError("Parameter creativeId is required."); | 1093 throw new core.ArgumentError("Parameter creativeId is required."); |
| 1094 } | 1094 } |
| 1095 if (query != null) { | |
| 1096 _queryParams["query"] = [query]; | |
| 1097 } | |
| 1098 if (pageToken != null) { | 1095 if (pageToken != null) { |
| 1099 _queryParams["pageToken"] = [pageToken]; | 1096 _queryParams["pageToken"] = [pageToken]; |
| 1100 } | 1097 } |
| 1101 if (pageSize != null) { | 1098 if (pageSize != null) { |
| 1102 _queryParams["pageSize"] = ["${pageSize}"]; | 1099 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1103 } | 1100 } |
| 1101 if (query != null) { |
| 1102 _queryParams["query"] = [query]; |
| 1103 } |
| 1104 | 1104 |
| 1105 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + '/dealAssociations
'; | 1105 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + '/dealAssociations
'; |
| 1106 | 1106 |
| 1107 var _response = _requester.request(_url, | 1107 var _response = _requester.request(_url, |
| 1108 "GET", | 1108 "GET", |
| 1109 body: _body, | 1109 body: _body, |
| 1110 queryParams: _queryParams, | 1110 queryParams: _queryParams, |
| 1111 uploadOptions: _uploadOptions, | 1111 uploadOptions: _uploadOptions, |
| 1112 uploadMedia: _uploadMedia, | 1112 uploadMedia: _uploadMedia, |
| 1113 downloadOptions: _downloadOptions); | 1113 downloadOptions: _downloadOptions); |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1682 /** | 1682 /** |
| 1683 * List all reasons for which bids were filtered, with the number of bids | 1683 * List all reasons for which bids were filtered, with the number of bids |
| 1684 * filtered for each reason. | 1684 * filtered for each reason. |
| 1685 * | 1685 * |
| 1686 * Request parameters: | 1686 * Request parameters: |
| 1687 * | 1687 * |
| 1688 * [accountId] - Account ID of the buyer. | 1688 * [accountId] - Account ID of the buyer. |
| 1689 * | 1689 * |
| 1690 * [filterSetId] - The ID of the filter set to apply. | 1690 * [filterSetId] - The ID of the filter set to apply. |
| 1691 * | 1691 * |
| 1692 * [pageSize] - Requested page size. The server may return fewer results than | |
| 1693 * requested. | |
| 1694 * If unspecified, the server will pick an appropriate default. | |
| 1695 * | |
| 1696 * [pageToken] - A token identifying a page of results the server should | 1692 * [pageToken] - A token identifying a page of results the server should |
| 1697 * return. | 1693 * return. |
| 1698 * Typically, this is the value of | 1694 * Typically, this is the value of |
| 1699 * ListFilteredBidsResponse.nextPageToken | 1695 * ListFilteredBidsResponse.nextPageToken |
| 1700 * returned from the previous call to the | 1696 * returned from the previous call to the |
| 1701 * accounts.filterSets.filteredBids.list | 1697 * accounts.filterSets.filteredBids.list |
| 1702 * method. | 1698 * method. |
| 1703 * | 1699 * |
| 1700 * [pageSize] - Requested page size. The server may return fewer results than |
| 1701 * requested. |
| 1702 * If unspecified, the server will pick an appropriate default. |
| 1703 * |
| 1704 * Completes with a [ListFilteredBidsResponse]. | 1704 * Completes with a [ListFilteredBidsResponse]. |
| 1705 * | 1705 * |
| 1706 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1706 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1707 * error. | 1707 * error. |
| 1708 * | 1708 * |
| 1709 * If the used [http.Client] completes with an error when making a REST call, | 1709 * If the used [http.Client] completes with an error when making a REST call, |
| 1710 * this method will complete with the same error. | 1710 * this method will complete with the same error. |
| 1711 */ | 1711 */ |
| 1712 async.Future<ListFilteredBidsResponse> list(core.String accountId, core.String
filterSetId, {core.int pageSize, core.String pageToken}) { | 1712 async.Future<ListFilteredBidsResponse> list(core.String accountId, core.String
filterSetId, {core.String pageToken, core.int pageSize}) { |
| 1713 var _url = null; | 1713 var _url = null; |
| 1714 var _queryParams = new core.Map(); | 1714 var _queryParams = new core.Map(); |
| 1715 var _uploadMedia = null; | 1715 var _uploadMedia = null; |
| 1716 var _uploadOptions = null; | 1716 var _uploadOptions = null; |
| 1717 var _downloadOptions = commons.DownloadOptions.Metadata; | 1717 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1718 var _body = null; | 1718 var _body = null; |
| 1719 | 1719 |
| 1720 if (accountId == null) { | 1720 if (accountId == null) { |
| 1721 throw new core.ArgumentError("Parameter accountId is required."); | 1721 throw new core.ArgumentError("Parameter accountId is required."); |
| 1722 } | 1722 } |
| 1723 if (filterSetId == null) { | 1723 if (filterSetId == null) { |
| 1724 throw new core.ArgumentError("Parameter filterSetId is required."); | 1724 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1725 } | 1725 } |
| 1726 if (pageToken != null) { |
| 1727 _queryParams["pageToken"] = [pageToken]; |
| 1728 } |
| 1726 if (pageSize != null) { | 1729 if (pageSize != null) { |
| 1727 _queryParams["pageSize"] = ["${pageSize}"]; | 1730 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1728 } | 1731 } |
| 1729 if (pageToken != null) { | |
| 1730 _queryParams["pageToken"] = [pageToken]; | |
| 1731 } | |
| 1732 | 1732 |
| 1733 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids'; | 1733 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids'; |
| 1734 | 1734 |
| 1735 var _response = _requester.request(_url, | 1735 var _response = _requester.request(_url, |
| 1736 "GET", | 1736 "GET", |
| 1737 body: _body, | 1737 body: _body, |
| 1738 queryParams: _queryParams, | 1738 queryParams: _queryParams, |
| 1739 uploadOptions: _uploadOptions, | 1739 uploadOptions: _uploadOptions, |
| 1740 uploadMedia: _uploadMedia, | 1740 uploadMedia: _uploadMedia, |
| 1741 downloadOptions: _downloadOptions); | 1741 downloadOptions: _downloadOptions); |
| 1742 return _response.then((data) => new ListFilteredBidsResponse.fromJson(data))
; | 1742 return _response.then((data) => new ListFilteredBidsResponse.fromJson(data))
; |
| 1743 } | 1743 } |
| 1744 | 1744 |
| 1745 } | 1745 } |
| 1746 | 1746 |
| 1747 | 1747 |
| 1748 class AccountsFilterSetsFilteredBidsCreativesResourceApi { | 1748 class AccountsFilterSetsFilteredBidsCreativesResourceApi { |
| 1749 final commons.ApiRequester _requester; | 1749 final commons.ApiRequester _requester; |
| 1750 | 1750 |
| 1751 AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi get details => new A
ccountsFilterSetsFilteredBidsCreativesDetailsResourceApi(_requester); | |
| 1752 | |
| 1753 AccountsFilterSetsFilteredBidsCreativesResourceApi(commons.ApiRequester client
) : | 1751 AccountsFilterSetsFilteredBidsCreativesResourceApi(commons.ApiRequester client
) : |
| 1754 _requester = client; | 1752 _requester = client; |
| 1755 | 1753 |
| 1756 /** | 1754 /** |
| 1757 * List all creatives associated with a specific reason for which bids were | 1755 * List all creatives associated with a specific reason for which bids were |
| 1758 * filtered, with the number of bids filtered for each creative. | 1756 * filtered, with the number of bids filtered for each creative. |
| 1759 * | 1757 * |
| 1760 * Request parameters: | 1758 * Request parameters: |
| 1761 * | 1759 * |
| 1762 * [accountId] - Account ID of the buyer. | 1760 * [accountId] - Account ID of the buyer. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1821 queryParams: _queryParams, | 1819 queryParams: _queryParams, |
| 1822 uploadOptions: _uploadOptions, | 1820 uploadOptions: _uploadOptions, |
| 1823 uploadMedia: _uploadMedia, | 1821 uploadMedia: _uploadMedia, |
| 1824 downloadOptions: _downloadOptions); | 1822 downloadOptions: _downloadOptions); |
| 1825 return _response.then((data) => new ListCreativeStatusBreakdownByCreativeRes
ponse.fromJson(data)); | 1823 return _response.then((data) => new ListCreativeStatusBreakdownByCreativeRes
ponse.fromJson(data)); |
| 1826 } | 1824 } |
| 1827 | 1825 |
| 1828 } | 1826 } |
| 1829 | 1827 |
| 1830 | 1828 |
| 1831 class AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi { | |
| 1832 final commons.ApiRequester _requester; | |
| 1833 | |
| 1834 AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi(commons.ApiRequester
client) : | |
| 1835 _requester = client; | |
| 1836 | |
| 1837 /** | |
| 1838 * List all details associated with a specific reason for which bids were | |
| 1839 * filtered and a specific creative that was filtered for that reason, with | |
| 1840 * the number of bids filtered for each detail. | |
| 1841 * | |
| 1842 * Request parameters: | |
| 1843 * | |
| 1844 * [accountId] - Account ID of the buyer. | |
| 1845 * | |
| 1846 * [filterSetId] - The ID of the filter set to apply. | |
| 1847 * | |
| 1848 * [creativeStatusId] - The ID of the creative status for which to retrieve a | |
| 1849 * breakdown by detail. | |
| 1850 * See | |
| 1851 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). | |
| 1852 * | |
| 1853 * [creativeId] - The creative ID for which to retrieve a breakdown by detail. | |
| 1854 * | |
| 1855 * [pageToken] - A token identifying a page of results the server should | |
| 1856 * return. | |
| 1857 * Typically, this is the value of | |
| 1858 * ListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToken | |
| 1859 * returned from the previous call to the | |
| 1860 * accounts.filterSets.filteredBids.creatives.details.list | |
| 1861 * method. | |
| 1862 * | |
| 1863 * [pageSize] - Requested page size. The server may return fewer results than | |
| 1864 * requested. | |
| 1865 * If unspecified, the server will pick an appropriate default. | |
| 1866 * | |
| 1867 * Completes with a [ListCreativeStatusAndCreativeBreakdownByDetailResponse]. | |
| 1868 * | |
| 1869 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 1870 * error. | |
| 1871 * | |
| 1872 * If the used [http.Client] completes with an error when making a REST call, | |
| 1873 * this method will complete with the same error. | |
| 1874 */ | |
| 1875 async.Future<ListCreativeStatusAndCreativeBreakdownByDetailResponse> list(core
.String accountId, core.String filterSetId, core.int creativeStatusId, core.Stri
ng creativeId, {core.String pageToken, core.int pageSize}) { | |
| 1876 var _url = null; | |
| 1877 var _queryParams = new core.Map(); | |
| 1878 var _uploadMedia = null; | |
| 1879 var _uploadOptions = null; | |
| 1880 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 1881 var _body = null; | |
| 1882 | |
| 1883 if (accountId == null) { | |
| 1884 throw new core.ArgumentError("Parameter accountId is required."); | |
| 1885 } | |
| 1886 if (filterSetId == null) { | |
| 1887 throw new core.ArgumentError("Parameter filterSetId is required."); | |
| 1888 } | |
| 1889 if (creativeStatusId == null) { | |
| 1890 throw new core.ArgumentError("Parameter creativeStatusId is required."); | |
| 1891 } | |
| 1892 if (creativeId == null) { | |
| 1893 throw new core.ArgumentError("Parameter creativeId is required."); | |
| 1894 } | |
| 1895 if (pageToken != null) { | |
| 1896 _queryParams["pageToken"] = [pageToken]; | |
| 1897 } | |
| 1898 if (pageSize != null) { | |
| 1899 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1900 } | |
| 1901 | |
| 1902 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/'
+ commons.Escaper.ecapeVariable('$creativeStatusId') + '/creatives/' + commons.
Escaper.ecapeVariable('$creativeId') + '/details'; | |
| 1903 | |
| 1904 var _response = _requester.request(_url, | |
| 1905 "GET", | |
| 1906 body: _body, | |
| 1907 queryParams: _queryParams, | |
| 1908 uploadOptions: _uploadOptions, | |
| 1909 uploadMedia: _uploadMedia, | |
| 1910 downloadOptions: _downloadOptions); | |
| 1911 return _response.then((data) => new ListCreativeStatusAndCreativeBreakdownBy
DetailResponse.fromJson(data)); | |
| 1912 } | |
| 1913 | |
| 1914 } | |
| 1915 | |
| 1916 | |
| 1917 class AccountsFilterSetsFilteredBidsDetailsResourceApi { | 1829 class AccountsFilterSetsFilteredBidsDetailsResourceApi { |
| 1918 final commons.ApiRequester _requester; | 1830 final commons.ApiRequester _requester; |
| 1919 | 1831 |
| 1920 AccountsFilterSetsFilteredBidsDetailsResourceApi(commons.ApiRequester client)
: | 1832 AccountsFilterSetsFilteredBidsDetailsResourceApi(commons.ApiRequester client)
: |
| 1921 _requester = client; | 1833 _requester = client; |
| 1922 | 1834 |
| 1923 /** | 1835 /** |
| 1924 * List all details associated with a specific reason for which bids were | 1836 * List all details associated with a specific reason for which bids were |
| 1925 * filtered, with the number of bids filtered for each detail. | 1837 * filtered, with the number of bids filtered for each detail. |
| 1926 * | 1838 * |
| 1927 * Request parameters: | 1839 * Request parameters: |
| 1928 * | 1840 * |
| 1929 * [accountId] - Account ID of the buyer. | 1841 * [accountId] - Account ID of the buyer. |
| 1930 * | 1842 * |
| 1931 * [filterSetId] - The ID of the filter set to apply. | 1843 * [filterSetId] - The ID of the filter set to apply. |
| 1932 * | 1844 * |
| 1933 * [creativeStatusId] - The ID of the creative status for which to retrieve a | 1845 * [creativeStatusId] - The ID of the creative status for which to retrieve a |
| 1934 * breakdown by detail. | 1846 * breakdown by detail. |
| 1935 * See | 1847 * See |
| 1936 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). | 1848 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). |
| 1849 * Details are only available for statuses 14, 15, 17, 18, 19, 86, and 87. |
| 1937 * | 1850 * |
| 1938 * [pageToken] - A token identifying a page of results the server should | 1851 * [pageToken] - A token identifying a page of results the server should |
| 1939 * return. | 1852 * return. |
| 1940 * Typically, this is the value of | 1853 * Typically, this is the value of |
| 1941 * ListCreativeStatusBreakdownByDetailResponse.nextPageToken | 1854 * ListCreativeStatusBreakdownByDetailResponse.nextPageToken |
| 1942 * returned from the previous call to the | 1855 * returned from the previous call to the |
| 1943 * accounts.filterSets.filteredBids.details.list | 1856 * accounts.filterSets.filteredBids.details.list |
| 1944 * method. | 1857 * method. |
| 1945 * | 1858 * |
| 1946 * [pageSize] - Requested page size. The server may return fewer results than | 1859 * [pageSize] - Requested page size. The server may return fewer results than |
| (...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3573 * publisher networks). | 3486 * publisher networks). |
| 3574 * See | 3487 * See |
| 3575 * [seller-network-ids](https://developers.google.com/ad-exchange/rtb/download
s/seller-network-ids) | 3488 * [seller-network-ids](https://developers.google.com/ad-exchange/rtb/download
s/seller-network-ids) |
| 3576 * file for the set of existing seller network IDs. | 3489 * file for the set of existing seller network IDs. |
| 3577 */ | 3490 */ |
| 3578 core.List<core.int> sellerNetworkIds; | 3491 core.List<core.int> sellerNetworkIds; |
| 3579 /** | 3492 /** |
| 3580 * The granularity of time intervals if a time series breakdown is desired; | 3493 * The granularity of time intervals if a time series breakdown is desired; |
| 3581 * optional. | 3494 * optional. |
| 3582 * Possible string values are: | 3495 * Possible string values are: |
| 3583 * - "INTERVAL_UNSPECIFIED" : A placeholder for an unspecified interval; no | 3496 * - "TIME_SERIES_GRANULARITY_UNSPECIFIED" : A placeholder for an unspecified |
| 3584 * time series is applied. | 3497 * interval; no time series is applied. |
| 3585 * All rows in response will contain data for the entire requested time range. | 3498 * All rows in response will contain data for the entire requested time range. |
| 3586 * - "HOURLY" : Indicates that data will be broken down by the hour. | 3499 * - "HOURLY" : Indicates that data will be broken down by the hour. |
| 3587 * - "DAILY" : Indicates that data will be broken down by the day. | 3500 * - "DAILY" : Indicates that data will be broken down by the day. |
| 3588 */ | 3501 */ |
| 3589 core.String timeSeriesGranularity; | 3502 core.String timeSeriesGranularity; |
| 3590 | 3503 |
| 3591 FilterSet(); | 3504 FilterSet(); |
| 3592 | 3505 |
| 3593 FilterSet.fromJson(core.Map _json) { | 3506 FilterSet.fromJson(core.Map _json) { |
| 3594 if (_json.containsKey("absoluteDateRange")) { | 3507 if (_json.containsKey("absoluteDateRange")) { |
| (...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4194 _json["clients"] = clients.map((value) => (value).toJson()).toList(); | 4107 _json["clients"] = clients.map((value) => (value).toJson()).toList(); |
| 4195 } | 4108 } |
| 4196 if (nextPageToken != null) { | 4109 if (nextPageToken != null) { |
| 4197 _json["nextPageToken"] = nextPageToken; | 4110 _json["nextPageToken"] = nextPageToken; |
| 4198 } | 4111 } |
| 4199 return _json; | 4112 return _json; |
| 4200 } | 4113 } |
| 4201 } | 4114 } |
| 4202 | 4115 |
| 4203 /** | 4116 /** |
| 4204 * Response message for listing all details associated with a given filtered bid | |
| 4205 * reason and a given creative. | |
| 4206 */ | |
| 4207 class ListCreativeStatusAndCreativeBreakdownByDetailResponse { | |
| 4208 /** | |
| 4209 * The type of detail that the detail IDs represent. | |
| 4210 * Possible string values are: | |
| 4211 * - "TYPE_UNSPECIFIED" : A placeholder for an undefined status. | |
| 4212 * This value will never be returned in responses. | |
| 4213 * - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a creative | |
| 4214 * attribute; see | |
| 4215 * [publisher-excludable-creative-attributes](https://developers.google.com/ad
-exchange/rtb/downloads/publisher-excludable-creative-attributes). | |
| 4216 * - "VENDOR" : Indicates that the detail ID refers to a vendor; see | |
| 4217 * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). | |
| 4218 * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive | |
| 4219 * category; see | |
| 4220 * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/dow
nloads/ad-sensitive-categories). | |
| 4221 * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product | |
| 4222 * category; see | |
| 4223 * [ad-product-categories](https://developers.google.com/ad-exchange/rtb/downl
oads/ad-product-categories). | |
| 4224 */ | |
| 4225 core.String detailType; | |
| 4226 /** | |
| 4227 * List of rows, with counts of bids with a given creative status and | |
| 4228 * creative, aggregated by detail. | |
| 4229 */ | |
| 4230 core.List<FilteredBidDetailRow> filteredBidDetailRows; | |
| 4231 /** | |
| 4232 * A token to retrieve the next page of results. | |
| 4233 * Pass this value in the | |
| 4234 * ListCreativeStatusAndCreativeBreakdownByDetailRequest.pageToken | |
| 4235 * field in the subsequent call to the | |
| 4236 * accounts.filterSets.filteredBids.creatives.details.list | |
| 4237 * method to retrieve the next page of results. | |
| 4238 */ | |
| 4239 core.String nextPageToken; | |
| 4240 | |
| 4241 ListCreativeStatusAndCreativeBreakdownByDetailResponse(); | |
| 4242 | |
| 4243 ListCreativeStatusAndCreativeBreakdownByDetailResponse.fromJson(core.Map _json
) { | |
| 4244 if (_json.containsKey("detailType")) { | |
| 4245 detailType = _json["detailType"]; | |
| 4246 } | |
| 4247 if (_json.containsKey("filteredBidDetailRows")) { | |
| 4248 filteredBidDetailRows = _json["filteredBidDetailRows"].map((value) => new
FilteredBidDetailRow.fromJson(value)).toList(); | |
| 4249 } | |
| 4250 if (_json.containsKey("nextPageToken")) { | |
| 4251 nextPageToken = _json["nextPageToken"]; | |
| 4252 } | |
| 4253 } | |
| 4254 | |
| 4255 core.Map<core.String, core.Object> toJson() { | |
| 4256 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | |
| 4257 if (detailType != null) { | |
| 4258 _json["detailType"] = detailType; | |
| 4259 } | |
| 4260 if (filteredBidDetailRows != null) { | |
| 4261 _json["filteredBidDetailRows"] = filteredBidDetailRows.map((value) => (val
ue).toJson()).toList(); | |
| 4262 } | |
| 4263 if (nextPageToken != null) { | |
| 4264 _json["nextPageToken"] = nextPageToken; | |
| 4265 } | |
| 4266 return _json; | |
| 4267 } | |
| 4268 } | |
| 4269 | |
| 4270 /** | |
| 4271 * Response message for listing all creatives associated with a given filtered | 4117 * Response message for listing all creatives associated with a given filtered |
| 4272 * bid reason. | 4118 * bid reason. |
| 4273 */ | 4119 */ |
| 4274 class ListCreativeStatusBreakdownByCreativeResponse { | 4120 class ListCreativeStatusBreakdownByCreativeResponse { |
| 4275 /** | 4121 /** |
| 4276 * List of rows, with counts of bids with a given creative status aggregated | 4122 * List of rows, with counts of bids with a given creative status aggregated |
| 4277 * by creative. | 4123 * by creative. |
| 4278 */ | 4124 */ |
| 4279 core.List<FilteredBidCreativeRow> filteredBidCreativeRows; | 4125 core.List<FilteredBidCreativeRow> filteredBidCreativeRows; |
| 4280 /** | 4126 /** |
| (...skipping 30 matching lines...) Expand all Loading... |
| 4311 } | 4157 } |
| 4312 | 4158 |
| 4313 /** | 4159 /** |
| 4314 * Response message for listing all details associated with a given filtered bid | 4160 * Response message for listing all details associated with a given filtered bid |
| 4315 * reason. | 4161 * reason. |
| 4316 */ | 4162 */ |
| 4317 class ListCreativeStatusBreakdownByDetailResponse { | 4163 class ListCreativeStatusBreakdownByDetailResponse { |
| 4318 /** | 4164 /** |
| 4319 * The type of detail that the detail IDs represent. | 4165 * The type of detail that the detail IDs represent. |
| 4320 * Possible string values are: | 4166 * Possible string values are: |
| 4321 * - "TYPE_UNSPECIFIED" : A placeholder for an undefined status. | 4167 * - "DETAIL_TYPE_UNSPECIFIED" : A placeholder for an undefined status. |
| 4322 * This value will never be returned in responses. | 4168 * This value will never be returned in responses. |
| 4323 * - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a creative | 4169 * - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a creative |
| 4324 * attribute; see | 4170 * attribute; see |
| 4325 * [publisher-excludable-creative-attributes](https://developers.google.com/ad
-exchange/rtb/downloads/publisher-excludable-creative-attributes). | 4171 * [publisher-excludable-creative-attributes](https://developers.google.com/ad
-exchange/rtb/downloads/publisher-excludable-creative-attributes). |
| 4326 * - "VENDOR" : Indicates that the detail ID refers to a vendor; see | 4172 * - "VENDOR" : Indicates that the detail ID refers to a vendor; see |
| 4327 * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). | 4173 * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). |
| 4328 * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive | 4174 * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive |
| 4329 * category; see | 4175 * category; see |
| 4330 * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/dow
nloads/ad-sensitive-categories). | 4176 * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/dow
nloads/ad-sensitive-categories). |
| 4331 * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product | 4177 * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product |
| (...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5360 } | 5206 } |
| 5361 | 5207 |
| 5362 core.Map<core.String, core.Object> toJson() { | 5208 core.Map<core.String, core.Object> toJson() { |
| 5363 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5209 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5364 if (topic != null) { | 5210 if (topic != null) { |
| 5365 _json["topic"] = topic; | 5211 _json["topic"] = topic; |
| 5366 } | 5212 } |
| 5367 return _json; | 5213 return _json; |
| 5368 } | 5214 } |
| 5369 } | 5215 } |
| OLD | NEW |