Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Adzerk Decision API
* Adzerk Decision API
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.adzerk.sdk.generated.api;
import com.adzerk.sdk.generated.ApiCallback;
import com.adzerk.sdk.generated.ApiClient;
import com.adzerk.sdk.generated.ApiException;
import com.adzerk.sdk.generated.ApiResponse;
import com.adzerk.sdk.generated.Configuration;
import com.adzerk.sdk.generated.Pair;
import com.adzerk.sdk.generated.ProgressRequestBody;
import com.adzerk.sdk.generated.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.adzerk.sdk.generated.model.ConsentRequest;
import java.io.File;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class UserdbApi {
private ApiClient localVarApiClient;
public UserdbApi() {
this(Configuration.getDefaultApiClient());
}
public UserdbApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for addCustomProperties
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param body (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call addCustomPropertiesCall(Integer networkId, String userKey, Object body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/udb/{networkId}/custom"
.replaceAll("\\{" + "networkId" + "\\}", localVarApiClient.escapeString(networkId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (userKey != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("userKey", userKey));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"image/gif"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "ApiKeyAuth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call addCustomPropertiesValidateBeforeCall(Integer networkId, String userKey, Object body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'networkId' is set
if (networkId == null) {
throw new ApiException("Missing the required parameter 'networkId' when calling addCustomProperties(Async)");
}
// verify the required parameter 'userKey' is set
if (userKey == null) {
throw new ApiException("Missing the required parameter 'userKey' when calling addCustomProperties(Async)");
}
okhttp3.Call localVarCall = addCustomPropertiesCall(networkId, userKey, body, _callback);
return localVarCall;
}
/**
*
* Add Custom Properties to a User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param body (optional)
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public File addCustomProperties(Integer networkId, String userKey, Object body) throws ApiException {
ApiResponse localVarResp = addCustomPropertiesWithHttpInfo(networkId, userKey, body);
return localVarResp.getData();
}
/**
*
* Add Custom Properties to a User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param body (optional)
* @return ApiResponse<File>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public ApiResponse addCustomPropertiesWithHttpInfo(Integer networkId, String userKey, Object body) throws ApiException {
okhttp3.Call localVarCall = addCustomPropertiesValidateBeforeCall(networkId, userKey, body, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Add Custom Properties to a User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param body (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call addCustomPropertiesAsync(Integer networkId, String userKey, Object body, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = addCustomPropertiesValidateBeforeCall(networkId, userKey, body, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for addInterests
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param interest Comma Seperated list of interests (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call addInterestsCall(Integer networkId, String userKey, String interest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/udb/{networkId}/interest/i.gif"
.replaceAll("\\{" + "networkId" + "\\}", localVarApiClient.escapeString(networkId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (userKey != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("userKey", userKey));
}
if (interest != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("interest", interest));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"image/gif"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call addInterestsValidateBeforeCall(Integer networkId, String userKey, String interest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'networkId' is set
if (networkId == null) {
throw new ApiException("Missing the required parameter 'networkId' when calling addInterests(Async)");
}
// verify the required parameter 'userKey' is set
if (userKey == null) {
throw new ApiException("Missing the required parameter 'userKey' when calling addInterests(Async)");
}
// verify the required parameter 'interest' is set
if (interest == null) {
throw new ApiException("Missing the required parameter 'interest' when calling addInterests(Async)");
}
okhttp3.Call localVarCall = addInterestsCall(networkId, userKey, interest, _callback);
return localVarCall;
}
/**
*
* Add Interests to a User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param interest Comma Seperated list of interests (required)
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public File addInterests(Integer networkId, String userKey, String interest) throws ApiException {
ApiResponse localVarResp = addInterestsWithHttpInfo(networkId, userKey, interest);
return localVarResp.getData();
}
/**
*
* Add Interests to a User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param interest Comma Seperated list of interests (required)
* @return ApiResponse<File>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public ApiResponse addInterestsWithHttpInfo(Integer networkId, String userKey, String interest) throws ApiException {
okhttp3.Call localVarCall = addInterestsValidateBeforeCall(networkId, userKey, interest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Add Interests to a User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param interest Comma Seperated list of interests (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call addInterestsAsync(Integer networkId, String userKey, String interest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = addInterestsValidateBeforeCall(networkId, userKey, interest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for addRetargetingSegment
* @param networkId Your Network Id (required)
* @param advertiserId The Advertiser's ID (required)
* @param retargetingSegmentId The Segment's ID (required)
* @param userKey The User's UserDB Key (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call addRetargetingSegmentCall(Integer networkId, Integer advertiserId, Integer retargetingSegmentId, String userKey, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/udb/{networkId}/rt/{advertiserId}/{retargetingSegmentId}/i.gif"
.replaceAll("\\{" + "networkId" + "\\}", localVarApiClient.escapeString(networkId.toString()))
.replaceAll("\\{" + "advertiserId" + "\\}", localVarApiClient.escapeString(advertiserId.toString()))
.replaceAll("\\{" + "retargetingSegmentId" + "\\}", localVarApiClient.escapeString(retargetingSegmentId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (userKey != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("userKey", userKey));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"image/gif"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call addRetargetingSegmentValidateBeforeCall(Integer networkId, Integer advertiserId, Integer retargetingSegmentId, String userKey, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'networkId' is set
if (networkId == null) {
throw new ApiException("Missing the required parameter 'networkId' when calling addRetargetingSegment(Async)");
}
// verify the required parameter 'advertiserId' is set
if (advertiserId == null) {
throw new ApiException("Missing the required parameter 'advertiserId' when calling addRetargetingSegment(Async)");
}
// verify the required parameter 'retargetingSegmentId' is set
if (retargetingSegmentId == null) {
throw new ApiException("Missing the required parameter 'retargetingSegmentId' when calling addRetargetingSegment(Async)");
}
// verify the required parameter 'userKey' is set
if (userKey == null) {
throw new ApiException("Missing the required parameter 'userKey' when calling addRetargetingSegment(Async)");
}
okhttp3.Call localVarCall = addRetargetingSegmentCall(networkId, advertiserId, retargetingSegmentId, userKey, _callback);
return localVarCall;
}
/**
*
* Add User to a Retargeting Segment
* @param networkId Your Network Id (required)
* @param advertiserId The Advertiser's ID (required)
* @param retargetingSegmentId The Segment's ID (required)
* @param userKey The User's UserDB Key (required)
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public File addRetargetingSegment(Integer networkId, Integer advertiserId, Integer retargetingSegmentId, String userKey) throws ApiException {
ApiResponse localVarResp = addRetargetingSegmentWithHttpInfo(networkId, advertiserId, retargetingSegmentId, userKey);
return localVarResp.getData();
}
/**
*
* Add User to a Retargeting Segment
* @param networkId Your Network Id (required)
* @param advertiserId The Advertiser's ID (required)
* @param retargetingSegmentId The Segment's ID (required)
* @param userKey The User's UserDB Key (required)
* @return ApiResponse<File>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public ApiResponse addRetargetingSegmentWithHttpInfo(Integer networkId, Integer advertiserId, Integer retargetingSegmentId, String userKey) throws ApiException {
okhttp3.Call localVarCall = addRetargetingSegmentValidateBeforeCall(networkId, advertiserId, retargetingSegmentId, userKey, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Add User to a Retargeting Segment
* @param networkId Your Network Id (required)
* @param advertiserId The Advertiser's ID (required)
* @param retargetingSegmentId The Segment's ID (required)
* @param userKey The User's UserDB Key (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call addRetargetingSegmentAsync(Integer networkId, Integer advertiserId, Integer retargetingSegmentId, String userKey, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = addRetargetingSegmentValidateBeforeCall(networkId, advertiserId, retargetingSegmentId, userKey, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for forget
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call forgetCall(Integer networkId, String userKey, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/udb/{networkId}"
.replaceAll("\\{" + "networkId" + "\\}", localVarApiClient.escapeString(networkId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (userKey != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("userKey", userKey));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "ApiKeyAuth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call forgetValidateBeforeCall(Integer networkId, String userKey, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'networkId' is set
if (networkId == null) {
throw new ApiException("Missing the required parameter 'networkId' when calling forget(Async)");
}
// verify the required parameter 'userKey' is set
if (userKey == null) {
throw new ApiException("Missing the required parameter 'userKey' when calling forget(Async)");
}
okhttp3.Call localVarCall = forgetCall(networkId, userKey, _callback);
return localVarCall;
}
/**
*
* Forget User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public void forget(Integer networkId, String userKey) throws ApiException {
forgetWithHttpInfo(networkId, userKey);
}
/**
*
* Forget User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public ApiResponse forgetWithHttpInfo(Integer networkId, String userKey) throws ApiException {
okhttp3.Call localVarCall = forgetValidateBeforeCall(networkId, userKey, null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
* Forget User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call forgetAsync(Integer networkId, String userKey, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = forgetValidateBeforeCall(networkId, userKey, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for gdprConsent
* @param networkId Your Network Id (required)
* @param consentRequest (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call gdprConsentCall(Integer networkId, ConsentRequest consentRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = consentRequest;
// create path and map variables
String localVarPath = "/udb/{networkId}/consent"
.replaceAll("\\{" + "networkId" + "\\}", localVarApiClient.escapeString(networkId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"image/gif"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "ApiKeyAuth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call gdprConsentValidateBeforeCall(Integer networkId, ConsentRequest consentRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'networkId' is set
if (networkId == null) {
throw new ApiException("Missing the required parameter 'networkId' when calling gdprConsent(Async)");
}
okhttp3.Call localVarCall = gdprConsentCall(networkId, consentRequest, _callback);
return localVarCall;
}
/**
*
* GDPR Consent
* @param networkId Your Network Id (required)
* @param consentRequest (optional)
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public File gdprConsent(Integer networkId, ConsentRequest consentRequest) throws ApiException {
ApiResponse localVarResp = gdprConsentWithHttpInfo(networkId, consentRequest);
return localVarResp.getData();
}
/**
*
* GDPR Consent
* @param networkId Your Network Id (required)
* @param consentRequest (optional)
* @return ApiResponse<File>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public ApiResponse gdprConsentWithHttpInfo(Integer networkId, ConsentRequest consentRequest) throws ApiException {
okhttp3.Call localVarCall = gdprConsentValidateBeforeCall(networkId, consentRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* GDPR Consent
* @param networkId Your Network Id (required)
* @param consentRequest (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call gdprConsentAsync(Integer networkId, ConsentRequest consentRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = gdprConsentValidateBeforeCall(networkId, consentRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for ipOverride
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param ip This is the IP to exclude (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The updated UserDB record
-
*/
public okhttp3.Call ipOverrideCall(Integer networkId, String userKey, String ip, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/udb/{networkId}/ip/i.gif"
.replaceAll("\\{" + "networkId" + "\\}", localVarApiClient.escapeString(networkId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (userKey != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("userKey", userKey));
}
if (ip != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("ip", ip));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"image/gif"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call ipOverrideValidateBeforeCall(Integer networkId, String userKey, String ip, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'networkId' is set
if (networkId == null) {
throw new ApiException("Missing the required parameter 'networkId' when calling ipOverride(Async)");
}
// verify the required parameter 'userKey' is set
if (userKey == null) {
throw new ApiException("Missing the required parameter 'userKey' when calling ipOverride(Async)");
}
// verify the required parameter 'ip' is set
if (ip == null) {
throw new ApiException("Missing the required parameter 'ip' when calling ipOverride(Async)");
}
okhttp3.Call localVarCall = ipOverrideCall(networkId, userKey, ip, _callback);
return localVarCall;
}
/**
*
* IP Address Override
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param ip This is the IP to exclude (required)
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The updated UserDB record
-
*/
public File ipOverride(Integer networkId, String userKey, String ip) throws ApiException {
ApiResponse localVarResp = ipOverrideWithHttpInfo(networkId, userKey, ip);
return localVarResp.getData();
}
/**
*
* IP Address Override
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param ip This is the IP to exclude (required)
* @return ApiResponse<File>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The updated UserDB record
-
*/
public ApiResponse ipOverrideWithHttpInfo(Integer networkId, String userKey, String ip) throws ApiException {
okhttp3.Call localVarCall = ipOverrideValidateBeforeCall(networkId, userKey, ip, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* IP Address Override
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param ip This is the IP to exclude (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The updated UserDB record
-
*/
public okhttp3.Call ipOverrideAsync(Integer networkId, String userKey, String ip, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = ipOverrideValidateBeforeCall(networkId, userKey, ip, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for matchUser
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param partnerId The ID of the RTB provider in Adzerk. Contact Support if you don't have the ID. (required)
* @param userId This is the UserID the individual RTB provider has of the user. This is NOT the UserDB userkey. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call matchUserCall(Integer networkId, String userKey, Integer partnerId, Integer userId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/udb/{networkId}/sync/i.gif"
.replaceAll("\\{" + "networkId" + "\\}", localVarApiClient.escapeString(networkId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (userKey != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("userKey", userKey));
}
if (partnerId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("partnerId", partnerId));
}
if (userId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"image/gif"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call matchUserValidateBeforeCall(Integer networkId, String userKey, Integer partnerId, Integer userId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'networkId' is set
if (networkId == null) {
throw new ApiException("Missing the required parameter 'networkId' when calling matchUser(Async)");
}
// verify the required parameter 'userKey' is set
if (userKey == null) {
throw new ApiException("Missing the required parameter 'userKey' when calling matchUser(Async)");
}
// verify the required parameter 'partnerId' is set
if (partnerId == null) {
throw new ApiException("Missing the required parameter 'partnerId' when calling matchUser(Async)");
}
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling matchUser(Async)");
}
okhttp3.Call localVarCall = matchUserCall(networkId, userKey, partnerId, userId, _callback);
return localVarCall;
}
/**
*
* User Matching
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param partnerId The ID of the RTB provider in Adzerk. Contact Support if you don't have the ID. (required)
* @param userId This is the UserID the individual RTB provider has of the user. This is NOT the UserDB userkey. (required)
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public File matchUser(Integer networkId, String userKey, Integer partnerId, Integer userId) throws ApiException {
ApiResponse localVarResp = matchUserWithHttpInfo(networkId, userKey, partnerId, userId);
return localVarResp.getData();
}
/**
*
* User Matching
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param partnerId The ID of the RTB provider in Adzerk. Contact Support if you don't have the ID. (required)
* @param userId This is the UserID the individual RTB provider has of the user. This is NOT the UserDB userkey. (required)
* @return ApiResponse<File>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public ApiResponse matchUserWithHttpInfo(Integer networkId, String userKey, Integer partnerId, Integer userId) throws ApiException {
okhttp3.Call localVarCall = matchUserValidateBeforeCall(networkId, userKey, partnerId, userId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* User Matching
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param partnerId The ID of the RTB provider in Adzerk. Contact Support if you don't have the ID. (required)
* @param userId This is the UserID the individual RTB provider has of the user. This is NOT the UserDB userkey. (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public okhttp3.Call matchUserAsync(Integer networkId, String userKey, Integer partnerId, Integer userId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = matchUserValidateBeforeCall(networkId, userKey, partnerId, userId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for optOut
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Sucess
-
*/
public okhttp3.Call optOutCall(Integer networkId, String userKey, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/udb/{networkId}/optout/i.gif"
.replaceAll("\\{" + "networkId" + "\\}", localVarApiClient.escapeString(networkId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (userKey != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("userKey", userKey));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"image/gif"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call optOutValidateBeforeCall(Integer networkId, String userKey, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'networkId' is set
if (networkId == null) {
throw new ApiException("Missing the required parameter 'networkId' when calling optOut(Async)");
}
// verify the required parameter 'userKey' is set
if (userKey == null) {
throw new ApiException("Missing the required parameter 'userKey' when calling optOut(Async)");
}
okhttp3.Call localVarCall = optOutCall(networkId, userKey, _callback);
return localVarCall;
}
/**
*
* Opt-Out a User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Sucess
-
*/
public File optOut(Integer networkId, String userKey) throws ApiException {
ApiResponse localVarResp = optOutWithHttpInfo(networkId, userKey);
return localVarResp.getData();
}
/**
*
* Opt-Out a User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @return ApiResponse<File>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Sucess
-
*/
public ApiResponse optOutWithHttpInfo(Integer networkId, String userKey) throws ApiException {
okhttp3.Call localVarCall = optOutValidateBeforeCall(networkId, userKey, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Opt-Out a User
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Sucess
-
*/
public okhttp3.Call optOutAsync(Integer networkId, String userKey, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = optOutValidateBeforeCall(networkId, userKey, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for read
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The UserDB record
-
*/
public okhttp3.Call readCall(Integer networkId, String userKey, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/udb/{networkId}/read"
.replaceAll("\\{" + "networkId" + "\\}", localVarApiClient.escapeString(networkId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (userKey != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("userKey", userKey));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call readValidateBeforeCall(Integer networkId, String userKey, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'networkId' is set
if (networkId == null) {
throw new ApiException("Missing the required parameter 'networkId' when calling read(Async)");
}
// verify the required parameter 'userKey' is set
if (userKey == null) {
throw new ApiException("Missing the required parameter 'userKey' when calling read(Async)");
}
okhttp3.Call localVarCall = readCall(networkId, userKey, _callback);
return localVarCall;
}
/**
*
* Read a User's UserDB Record
* @param networkId Your Network Id (required)
* @param userKey The User's UserDB Key (required)
* @return Object
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details