public class CategoryApi
extends java.lang.Object
| Constructor and Description |
|---|
CategoryApi() |
CategoryApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
java.util.List<CategoryMessage> |
getCategories(java.lang.String campaignIds,
java.lang.String advertiserIds,
java.lang.String categoryHashCodes,
java.lang.Boolean enabledOnly)
Gets categories
Get the list of categories with the specified filters.
|
okhttp3.Call |
getCategoriesAsync(java.lang.String campaignIds,
java.lang.String advertiserIds,
java.lang.String categoryHashCodes,
java.lang.Boolean enabledOnly,
ApiCallback<java.util.List<CategoryMessage>> _callback)
Gets categories (asynchronously)
Get the list of categories with the specified filters.
|
okhttp3.Call |
getCategoriesCall(java.lang.String campaignIds,
java.lang.String advertiserIds,
java.lang.String categoryHashCodes,
java.lang.Boolean enabledOnly,
ApiCallback _callback)
Build call for getCategories
|
ApiResponse<java.util.List<CategoryMessage>> |
getCategoriesWithHttpInfo(java.lang.String campaignIds,
java.lang.String advertiserIds,
java.lang.String categoryHashCodes,
java.lang.Boolean enabledOnly)
Gets categories
Get the list of categories with the specified filters.
|
void |
setApiClient(ApiClient apiClient) |
java.util.List<CategoryUpdatesPerCatalog> |
updateCategories(java.util.List<CategoryUpdatesPerCatalog> categoriesPerCatalog)
Enables/disables categories
Update categories for multiple catalogs.<br /> Please note that all validations need to pass before applying the requested changes; the subsequent validation error messages will be returned in the response.<br /> Please note that bidding will still happen for disabled categories, but using the Camapign's bid.
|
okhttp3.Call |
updateCategoriesAsync(java.util.List<CategoryUpdatesPerCatalog> categoriesPerCatalog,
ApiCallback<java.util.List<CategoryUpdatesPerCatalog>> _callback)
Enables/disables categories (asynchronously)
Update categories for multiple catalogs.<br /> Please note that all validations need to pass before applying the requested changes; the subsequent validation error messages will be returned in the response.<br /> Please note that bidding will still happen for disabled categories, but using the Camapign's bid.
|
okhttp3.Call |
updateCategoriesCall(java.util.List<CategoryUpdatesPerCatalog> categoriesPerCatalog,
ApiCallback _callback)
Build call for updateCategories
|
ApiResponse<java.util.List<CategoryUpdatesPerCatalog>> |
updateCategoriesWithHttpInfo(java.util.List<CategoryUpdatesPerCatalog> categoriesPerCatalog)
Enables/disables categories
Update categories for multiple catalogs.<br /> Please note that all validations need to pass before applying the requested changes; the subsequent validation error messages will be returned in the response.<br /> Please note that bidding will still happen for disabled categories, but using the Camapign's bid.
|
public CategoryApi()
public CategoryApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call getCategoriesCall(java.lang.String campaignIds,
java.lang.String advertiserIds,
java.lang.String categoryHashCodes,
java.lang.Boolean enabledOnly,
ApiCallback _callback)
throws ApiException
campaignIds - Optional. One or more campaign ids, E.g., 78, 12932, 45236. If the campaign ids requested are not liked to advertisers in the user's portfolio, they will be skipped. (optional)advertiserIds - Optional. One or more advertiser ids, E.g., 78, 12932, 45236. If the advertiser ids requested are not part of the user's portfolio, they will be skipped. (optional)categoryHashCodes - Optional. One or more category hash codes. (optional)enabledOnly - Optional. Returns only categories you can bid on. Defaults to false. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Categories returned OK. | - |
| 400 | There is not even one valid advertiserId or campaignId requested. | - |
| 401 | Authentication failed. | - |
| 429 | Throttling failure. Maximum sending rate exceeded. | - |
| 500 | Unknown error. | - |
public java.util.List<CategoryMessage> getCategories(java.lang.String campaignIds, java.lang.String advertiserIds, java.lang.String categoryHashCodes, java.lang.Boolean enabledOnly) throws ApiException
campaignIds - Optional. One or more campaign ids, E.g., 78, 12932, 45236. If the campaign ids requested are not liked to advertisers in the user's portfolio, they will be skipped. (optional)advertiserIds - Optional. One or more advertiser ids, E.g., 78, 12932, 45236. If the advertiser ids requested are not part of the user's portfolio, they will be skipped. (optional)categoryHashCodes - Optional. One or more category hash codes. (optional)enabledOnly - Optional. Returns only categories you can bid on. Defaults to false. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Categories returned OK. | - |
| 400 | There is not even one valid advertiserId or campaignId requested. | - |
| 401 | Authentication failed. | - |
| 429 | Throttling failure. Maximum sending rate exceeded. | - |
| 500 | Unknown error. | - |
public ApiResponse<java.util.List<CategoryMessage>> getCategoriesWithHttpInfo(java.lang.String campaignIds, java.lang.String advertiserIds, java.lang.String categoryHashCodes, java.lang.Boolean enabledOnly) throws ApiException
campaignIds - Optional. One or more campaign ids, E.g., 78, 12932, 45236. If the campaign ids requested are not liked to advertisers in the user's portfolio, they will be skipped. (optional)advertiserIds - Optional. One or more advertiser ids, E.g., 78, 12932, 45236. If the advertiser ids requested are not part of the user's portfolio, they will be skipped. (optional)categoryHashCodes - Optional. One or more category hash codes. (optional)enabledOnly - Optional. Returns only categories you can bid on. Defaults to false. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Categories returned OK. | - |
| 400 | There is not even one valid advertiserId or campaignId requested. | - |
| 401 | Authentication failed. | - |
| 429 | Throttling failure. Maximum sending rate exceeded. | - |
| 500 | Unknown error. | - |
public okhttp3.Call getCategoriesAsync(java.lang.String campaignIds,
java.lang.String advertiserIds,
java.lang.String categoryHashCodes,
java.lang.Boolean enabledOnly,
ApiCallback<java.util.List<CategoryMessage>> _callback)
throws ApiException
campaignIds - Optional. One or more campaign ids, E.g., 78, 12932, 45236. If the campaign ids requested are not liked to advertisers in the user's portfolio, they will be skipped. (optional)advertiserIds - Optional. One or more advertiser ids, E.g., 78, 12932, 45236. If the advertiser ids requested are not part of the user's portfolio, they will be skipped. (optional)categoryHashCodes - Optional. One or more category hash codes. (optional)enabledOnly - Optional. Returns only categories you can bid on. Defaults to false. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Categories returned OK. | - |
| 400 | There is not even one valid advertiserId or campaignId requested. | - |
| 401 | Authentication failed. | - |
| 429 | Throttling failure. Maximum sending rate exceeded. | - |
| 500 | Unknown error. | - |
public okhttp3.Call updateCategoriesCall(java.util.List<CategoryUpdatesPerCatalog> categoriesPerCatalog, ApiCallback _callback) throws ApiException
categoriesPerCatalog - The list of categories to be enabled/disabled, grouped by catalog. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Categories updated OK. | - |
| 400 | Invalid input. Please check returned message for details. | - |
| 401 | Authentication failed. | - |
| 429 | Throttling failure. Maximum sending rate exceeded. | - |
| 500 | Unknown error. | - |
public java.util.List<CategoryUpdatesPerCatalog> updateCategories(java.util.List<CategoryUpdatesPerCatalog> categoriesPerCatalog) throws ApiException
categoriesPerCatalog - The list of categories to be enabled/disabled, grouped by catalog. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Categories updated OK. | - |
| 400 | Invalid input. Please check returned message for details. | - |
| 401 | Authentication failed. | - |
| 429 | Throttling failure. Maximum sending rate exceeded. | - |
| 500 | Unknown error. | - |
public ApiResponse<java.util.List<CategoryUpdatesPerCatalog>> updateCategoriesWithHttpInfo(java.util.List<CategoryUpdatesPerCatalog> categoriesPerCatalog) throws ApiException
categoriesPerCatalog - The list of categories to be enabled/disabled, grouped by catalog. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Categories updated OK. | - |
| 400 | Invalid input. Please check returned message for details. | - |
| 401 | Authentication failed. | - |
| 429 | Throttling failure. Maximum sending rate exceeded. | - |
| 500 | Unknown error. | - |
public okhttp3.Call updateCategoriesAsync(java.util.List<CategoryUpdatesPerCatalog> categoriesPerCatalog, ApiCallback<java.util.List<CategoryUpdatesPerCatalog>> _callback) throws ApiException
categoriesPerCatalog - The list of categories to be enabled/disabled, grouped by catalog. (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Categories updated OK. | - |
| 400 | Invalid input. Please check returned message for details. | - |
| 401 | Authentication failed. | - |
| 429 | Throttling failure. Maximum sending rate exceeded. | - |
| 500 | Unknown error. | - |
Copyright © 2021. All rights reserved.