All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pdd.pop.sdk.http.api.pop.request.PddAdApiUnitUpdateUnitBidRequest Maven / Gradle / Ivy

package com.pdd.pop.sdk.http.api.pop.request;

import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.api.pop.response.PddAdApiUnitUpdateUnitBidResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;

import java.util.Map;

public class PddAdApiUnitUpdateUnitBidRequest extends PopBaseHttpRequest {

    /**
     * 广告单元Id
     */
    @JsonProperty("adId")
    private Long adId;

    /**
     * 出价不得为空。单位厘。
     */
    @JsonProperty("bid")
    private Long bid;

    @Override
    public String getVersion() {
        return "V1";
    }

    @Override
    public String getDataType() {
        return "JSON";
    }

    @Override
    public Integer getPlatform() {
        return 0;
    }

    @Override
    public String getType() {
        return "pdd.ad.api.unit.update.unit.bid";
    }

    @Override
    public HttpMethod getHttpMethod() {
        return HttpMethod.POST;
    }

    @Override
    public Class getResponseClass() {
        return PddAdApiUnitUpdateUnitBidResponse.class;
    }

    @Override
    protected void setUserParams(Map params) {
        setUserParam(params, "adId", adId);
        setUserParam(params, "bid", bid);
    }

    public void setAdId(Long adId) {
        this.adId = adId;
    }

    public void setBid(Long bid) {
        this.bid = bid;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy