
com.tencent.ads.container.UserPropertySetsApiContainer Maven / Gradle / Ivy
/*
* Marketing API
* Marketing API
*
* OpenAPI spec version: 1.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.tencent.ads.container;
import com.google.inject.Inject;
import com.tencent.ads.ApiContainer;
import com.tencent.ads.ApiException;
import com.tencent.ads.anno.*;
import com.tencent.ads.api.UserPropertySetsApi;
import com.tencent.ads.exception.TencentAdsResponseException;
import com.tencent.ads.model.UserPropertySetsAddRequest;
import com.tencent.ads.model.UserPropertySetsAddResponse;
import com.tencent.ads.model.UserPropertySetsAddResponseData;
import com.tencent.ads.model.UserPropertySetsGetResponse;
import com.tencent.ads.model.UserPropertySetsGetResponseData;
import com.tencent.ads.model.UserPropertySetsUpdateRequest;
import com.tencent.ads.model.UserPropertySetsUpdateResponse;
import java.util.List;
public class UserPropertySetsApiContainer extends ApiContainer {
@Inject UserPropertySetsApi api;
/**
* 创建用户属性数据源
*
* @param data (required)
* @return UserPropertySetsAddResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
*/
public UserPropertySetsAddResponseData userPropertySetsAdd(UserPropertySetsAddRequest data)
throws ApiException, TencentAdsResponseException {
UserPropertySetsAddResponse resp = api.userPropertySetsAdd(data);
handleResponse(gson.toJson(resp));
return resp.getData();
}
/**
* 获取用户属性数据源
*
* @param accountId (required)
* @param userPropertySetId (optional)
* @param fields 返回参数的字段列表 (optional)
* @return UserPropertySetsGetResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
*/
public UserPropertySetsGetResponseData userPropertySetsGet(
Long accountId, Long userPropertySetId, List fields)
throws ApiException, TencentAdsResponseException {
UserPropertySetsGetResponse resp =
api.userPropertySetsGet(accountId, userPropertySetId, fields);
handleResponse(gson.toJson(resp));
return resp.getData();
}
/**
* 更新用户属性数据源
*
* @param data (required)
* @return UserPropertySetsUpdateResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
*/
public UserPropertySetsUpdateResponse userPropertySetsUpdate(UserPropertySetsUpdateRequest data)
throws ApiException, TencentAdsResponseException {
UserPropertySetsUpdateResponse resp = api.userPropertySetsUpdate(data);
handleResponse(gson.toJson(resp));
return resp;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy