public class AudienceApi
extends java.lang.Object
| Constructor and Description |
|---|
AudienceApi() |
AudienceApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
NewAudienceResponse |
createAudience(NewAudienceRequest newAudienceRequest)
Create an Audience for an Advertiser
|
okhttp3.Call |
createAudienceAsync(NewAudienceRequest newAudienceRequest,
ApiCallback<NewAudienceResponse> _callback)
(asynchronously)
Create an Audience for an Advertiser
|
okhttp3.Call |
createAudienceCall(NewAudienceRequest newAudienceRequest,
ApiCallback _callback)
Build call for createAudience
|
ApiResponse<NewAudienceResponse> |
createAudienceWithHttpInfo(NewAudienceRequest newAudienceRequest)
Create an Audience for an Advertiser
|
DeleteAudienceContactListResponse |
deleteIdentifiers(java.lang.String audienceId)
delete all identifiers from an Audience
|
okhttp3.Call |
deleteIdentifiersAsync(java.lang.String audienceId,
ApiCallback<DeleteAudienceContactListResponse> _callback)
(asynchronously)
delete all identifiers from an Audience
|
okhttp3.Call |
deleteIdentifiersCall(java.lang.String audienceId,
ApiCallback _callback)
Build call for deleteIdentifiers
|
ApiResponse<DeleteAudienceContactListResponse> |
deleteIdentifiersWithHttpInfo(java.lang.String audienceId)
delete all identifiers from an Audience
|
ApiClient |
getApiClient() |
GetAudiencesResponse |
getAudiences(java.lang.String advertiserId)
Get a list of all the audiences for the user or for the given advertiser_id
|
okhttp3.Call |
getAudiencesAsync(java.lang.String advertiserId,
ApiCallback<GetAudiencesResponse> _callback)
(asynchronously)
Get a list of all the audiences for the user or for the given advertiser_id
|
okhttp3.Call |
getAudiencesCall(java.lang.String advertiserId,
ApiCallback _callback)
Build call for getAudiences
|
ApiResponse<GetAudiencesResponse> |
getAudiencesWithHttpInfo(java.lang.String advertiserId)
Get a list of all the audiences for the user or for the given advertiser_id
|
ReplaceAudienceResponse |
modifyAudience(java.lang.String audienceId,
ReplaceAudienceRequest replaceAudienceRequest)
Update user audience specified by the audience id
|
okhttp3.Call |
modifyAudienceAsync(java.lang.String audienceId,
ReplaceAudienceRequest replaceAudienceRequest,
ApiCallback<ReplaceAudienceResponse> _callback)
(asynchronously)
Update user audience specified by the audience id
|
okhttp3.Call |
modifyAudienceCall(java.lang.String audienceId,
ReplaceAudienceRequest replaceAudienceRequest,
ApiCallback _callback)
Build call for modifyAudience
|
ModifyAudienceResponse |
modifyAudienceUsers(java.lang.String audienceId,
ContactlistAmendmentRequest contactlistAmendmentRequest)
Add/remove users to or from an audience
|
okhttp3.Call |
modifyAudienceUsersAsync(java.lang.String audienceId,
ContactlistAmendmentRequest contactlistAmendmentRequest,
ApiCallback<ModifyAudienceResponse> _callback)
(asynchronously)
Add/remove users to or from an audience
|
okhttp3.Call |
modifyAudienceUsersCall(java.lang.String audienceId,
ContactlistAmendmentRequest contactlistAmendmentRequest,
ApiCallback _callback)
Build call for modifyAudienceUsers
|
ApiResponse<ModifyAudienceResponse> |
modifyAudienceUsersWithHttpInfo(java.lang.String audienceId,
ContactlistAmendmentRequest contactlistAmendmentRequest)
Add/remove users to or from an audience
|
ApiResponse<ReplaceAudienceResponse> |
modifyAudienceWithHttpInfo(java.lang.String audienceId,
ReplaceAudienceRequest replaceAudienceRequest)
Update user audience specified by the audience id
|
DeleteAudienceResponse |
removeAudience(java.lang.String audienceId)
Delete an audience by id
|
okhttp3.Call |
removeAudienceAsync(java.lang.String audienceId,
ApiCallback<DeleteAudienceResponse> _callback)
(asynchronously)
Delete an audience by id
|
okhttp3.Call |
removeAudienceCall(java.lang.String audienceId,
ApiCallback _callback)
Build call for removeAudience
|
ApiResponse<DeleteAudienceResponse> |
removeAudienceWithHttpInfo(java.lang.String audienceId)
Delete an audience by id
|
void |
setApiClient(ApiClient apiClient) |
public AudienceApi()
public AudienceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call createAudienceCall(NewAudienceRequest newAudienceRequest, ApiCallback _callback) throws ApiException
newAudienceRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | The audience was created | - |
| 403 | Forbidden | - |
public NewAudienceResponse createAudience(NewAudienceRequest newAudienceRequest) throws ApiException
newAudienceRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The audience was created | - |
| 403 | Forbidden | - |
public ApiResponse<NewAudienceResponse> createAudienceWithHttpInfo(NewAudienceRequest newAudienceRequest) throws ApiException
newAudienceRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The audience was created | - |
| 403 | Forbidden | - |
public okhttp3.Call createAudienceAsync(NewAudienceRequest newAudienceRequest, ApiCallback<NewAudienceResponse> _callback) throws ApiException
newAudienceRequest - (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 | The audience was created | - |
| 403 | Forbidden | - |
public okhttp3.Call deleteIdentifiersCall(java.lang.String audienceId,
ApiCallback _callback)
throws ApiException
audienceId - The id of the audience to amend (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | The contactlist was deleted | - |
| 403 | Forbidden | - |
public DeleteAudienceContactListResponse deleteIdentifiers(java.lang.String audienceId) throws ApiException
audienceId - The id of the audience to amend (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The contactlist was deleted | - |
| 403 | Forbidden | - |
public ApiResponse<DeleteAudienceContactListResponse> deleteIdentifiersWithHttpInfo(java.lang.String audienceId) throws ApiException
audienceId - The id of the audience to amend (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The contactlist was deleted | - |
| 403 | Forbidden | - |
public okhttp3.Call deleteIdentifiersAsync(java.lang.String audienceId,
ApiCallback<DeleteAudienceContactListResponse> _callback)
throws ApiException
audienceId - The id of the audience to amend (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 | The contactlist was deleted | - |
| 403 | Forbidden | - |
public okhttp3.Call getAudiencesCall(java.lang.String advertiserId,
ApiCallback _callback)
throws ApiException
advertiserId - The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | The list was retrieved. | - |
| 403 | Forbidden | - |
public GetAudiencesResponse getAudiences(java.lang.String advertiserId) throws ApiException
advertiserId - The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The list was retrieved. | - |
| 403 | Forbidden | - |
public ApiResponse<GetAudiencesResponse> getAudiencesWithHttpInfo(java.lang.String advertiserId) throws ApiException
advertiserId - The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The list was retrieved. | - |
| 403 | Forbidden | - |
public okhttp3.Call getAudiencesAsync(java.lang.String advertiserId,
ApiCallback<GetAudiencesResponse> _callback)
throws ApiException
advertiserId - The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio (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 | The list was retrieved. | - |
| 403 | Forbidden | - |
public okhttp3.Call modifyAudienceCall(java.lang.String audienceId,
ReplaceAudienceRequest replaceAudienceRequest,
ApiCallback _callback)
throws ApiException
audienceId - The id of the audience to amend (required)replaceAudienceRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | The audience was updated | - |
| 403 | Forbidden | - |
public ReplaceAudienceResponse modifyAudience(java.lang.String audienceId, ReplaceAudienceRequest replaceAudienceRequest) throws ApiException
audienceId - The id of the audience to amend (required)replaceAudienceRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The audience was updated | - |
| 403 | Forbidden | - |
public ApiResponse<ReplaceAudienceResponse> modifyAudienceWithHttpInfo(java.lang.String audienceId, ReplaceAudienceRequest replaceAudienceRequest) throws ApiException
audienceId - The id of the audience to amend (required)replaceAudienceRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The audience was updated | - |
| 403 | Forbidden | - |
public okhttp3.Call modifyAudienceAsync(java.lang.String audienceId,
ReplaceAudienceRequest replaceAudienceRequest,
ApiCallback<ReplaceAudienceResponse> _callback)
throws ApiException
audienceId - The id of the audience to amend (required)replaceAudienceRequest - (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 | The audience was updated | - |
| 403 | Forbidden | - |
public okhttp3.Call modifyAudienceUsersCall(java.lang.String audienceId,
ContactlistAmendmentRequest contactlistAmendmentRequest,
ApiCallback _callback)
throws ApiException
audienceId - The id of the audience to amend (required)contactlistAmendmentRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Summary of created request | - |
| 403 | Forbidden | - |
| 404 | Audience 123 not found | - |
public ModifyAudienceResponse modifyAudienceUsers(java.lang.String audienceId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException
audienceId - The id of the audience to amend (required)contactlistAmendmentRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Summary of created request | - |
| 403 | Forbidden | - |
| 404 | Audience 123 not found | - |
public ApiResponse<ModifyAudienceResponse> modifyAudienceUsersWithHttpInfo(java.lang.String audienceId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException
audienceId - The id of the audience to amend (required)contactlistAmendmentRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Summary of created request | - |
| 403 | Forbidden | - |
| 404 | Audience 123 not found | - |
public okhttp3.Call modifyAudienceUsersAsync(java.lang.String audienceId,
ContactlistAmendmentRequest contactlistAmendmentRequest,
ApiCallback<ModifyAudienceResponse> _callback)
throws ApiException
audienceId - The id of the audience to amend (required)contactlistAmendmentRequest - (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 | Summary of created request | - |
| 403 | Forbidden | - |
| 404 | Audience 123 not found | - |
public okhttp3.Call removeAudienceCall(java.lang.String audienceId,
ApiCallback _callback)
throws ApiException
audienceId - The id of the audience to amend (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | The audience was deleted | - |
| 403 | Forbidden | - |
public DeleteAudienceResponse removeAudience(java.lang.String audienceId) throws ApiException
audienceId - The id of the audience to amend (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The audience was deleted | - |
| 403 | Forbidden | - |
public ApiResponse<DeleteAudienceResponse> removeAudienceWithHttpInfo(java.lang.String audienceId) throws ApiException
audienceId - The id of the audience to amend (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | The audience was deleted | - |
| 403 | Forbidden | - |
public okhttp3.Call removeAudienceAsync(java.lang.String audienceId,
ApiCallback<DeleteAudienceResponse> _callback)
throws ApiException
audienceId - The id of the audience to amend (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 | The audience was deleted | - |
| 403 | Forbidden | - |
Copyright © 2021. All rights reserved.