public static class Page.APIRequestCreatePromotion extends APIRequest<APINode>
APIRequest.DefaultAsyncRequestExecutor, APIRequest.DefaultRequestExecutor, APIRequest.IAsyncRequestExecutor, APIRequest.IRequestExecutor, APIRequest.RequestHelper, APIRequest.ResponseParser<T extends APINode>, APIRequest.ResponseWrapper
Modifier and Type | Field and Description |
---|---|
static String[] |
FIELDS |
static String[] |
PARAMS |
context, endpoint, method, nodeId, paramNames, params, parser, returnFields, USER_AGENT, useVideoEndpoint
Constructor and Description |
---|
APIRequestCreatePromotion(String nodeId,
APIContext context) |
addToBatch, addToBatch, addToBatch, changeAsyncRequestExecutor, changeRequestExecutor, executeAsyncBase, executeAsyncBase, executeAsyncInternal, executeAsyncInternal, executeInternal, executeInternal, getAsyncExecutor, getContext, getExecutor, joinStringList, requestFieldInternal, setContext, setOverrideUrl, setParamInternal, setParamsInternal, setUseVideoEndpoint
public APIRequestCreatePromotion(String nodeId, APIContext context)
public APINode getLastResponse()
getLastResponse
in class APIRequest<APINode>
public APINode parseResponse(String response, String header) throws APIException
parseResponse
in class APIRequest<APINode>
APIException
public APINode execute() throws APIException
execute
in class APIRequest<APINode>
APIException
public APINode execute(Map<String,Object> extraParams) throws APIException
execute
in class APIRequest<APINode>
APIException
public com.google.common.util.concurrent.ListenableFuture<APINode> executeAsync() throws APIException
APIException
public com.google.common.util.concurrent.ListenableFuture<APINode> executeAsync(Map<String,Object> extraParams) throws APIException
APIException
public Page.APIRequestCreatePromotion setParam(String param, Object value)
setParam
in class APIRequest<APINode>
public Page.APIRequestCreatePromotion setParams(Map<String,Object> params)
setParams
in class APIRequest<APINode>
public Page.APIRequestCreatePromotion setAdAccountId(String adAccountId)
public Page.APIRequestCreatePromotion setBudget(Long budget)
public Page.APIRequestCreatePromotion setBudget(String budget)
public Page.APIRequestCreatePromotion setDuration(String duration)
public Page.APIRequestCreatePromotion setGender(Long gender)
public Page.APIRequestCreatePromotion setGender(String gender)
public Page.APIRequestCreatePromotion setGeoLevel(String geoLevel)
public Page.APIRequestCreatePromotion setMaxAge(Long maxAge)
public Page.APIRequestCreatePromotion setMaxAge(String maxAge)
public Page.APIRequestCreatePromotion setMinAge(Long minAge)
public Page.APIRequestCreatePromotion setMinAge(String minAge)
public Page.APIRequestCreatePromotion requestAllFields()
public Page.APIRequestCreatePromotion requestAllFields(boolean value)
public Page.APIRequestCreatePromotion requestFields(List<String> fields)
requestFields
in class APIRequest<APINode>
public Page.APIRequestCreatePromotion requestFields(List<String> fields, boolean value)
requestFields
in class APIRequest<APINode>
public Page.APIRequestCreatePromotion requestField(String field)
requestField
in class APIRequest<APINode>
public Page.APIRequestCreatePromotion requestField(String field, boolean value)
requestField
in class APIRequest<APINode>
Copyright © 2020. All rights reserved.