
jp.co.yahoo.adssearchapi.v15.model.CampaignServiceCampaignConversionGoals Maven / Gradle / Ivy
/*
* Yahoo!広告 検索広告 API リファレンス / Yahoo! JAPAN Ads Search Ads API Reference
* Yahoo!広告 検索広告 APIのWebサービスについて説明します。 Search Ads API Web Services supported in Yahoo! JAPAN Ads API.
*
* The version of the OpenAPI document: v15
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package jp.co.yahoo.adssearchapi.v15.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jp.co.yahoo.adssearchapi.v15.model.CampaignServiceConversionActionCategory;
import jp.co.yahoo.adssearchapi.v15.model.CampaignServiceConversionSource;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">CampaignServiceCampaignConversionGoalsは、コンバージョンの発生元と目的を表します。<br> ConversionTrackerに存在しないSourceとCategoryの組み合わせを指定した場合、エラーコード「I0001」となり、detailsのrequestKeyには<br> ・conversionSetting/campaignConversionGoals[]/source<br> ・conversionSetting/campaignConversionGoals[]/category<br> が返却されるため、ConversionTrackerの状態をご確認ください。</div> <div lang=\"en\">CampaignServiceCampaignConversionGoals displays the combination of conversion source and purpose.<br> The error code \"I0001\" will be returned if you specify a Source and Category combination that does not exist in ConversionTracker.The requestKey in the details will contain:<br> * conversionSetting/campaignConversionGoals[]/source<br> * conversionSetting/campaignConversionGoals[]/category<br> Therefore, please check the content of ConversionTracker.</div>
*/
@ApiModel(description = "CampaignServiceCampaignConversionGoalsは、コンバージョンの発生元と目的を表します。
ConversionTrackerに存在しないSourceとCategoryの組み合わせを指定した場合、エラーコード「I0001」となり、detailsのrequestKeyには
・conversionSetting/campaignConversionGoals[]/source
・conversionSetting/campaignConversionGoals[]/category
が返却されるため、ConversionTrackerの状態をご確認ください。 CampaignServiceCampaignConversionGoals displays the combination of conversion source and purpose.
The error code \"I0001\" will be returned if you specify a Source and Category combination that does not exist in ConversionTracker.The requestKey in the details will contain:
* conversionSetting/campaignConversionGoals[]/source
* conversionSetting/campaignConversionGoals[]/category
Therefore, please check the content of ConversionTracker. ")
@JsonPropertyOrder({
CampaignServiceCampaignConversionGoals.JSON_PROPERTY_SOURCE,
CampaignServiceCampaignConversionGoals.JSON_PROPERTY_CATEGORY
})
@JsonTypeName("CampaignServiceCampaignConversionGoals")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignServiceCampaignConversionGoals {
public static final String JSON_PROPERTY_SOURCE = "source";
private CampaignServiceConversionSource source;
public static final String JSON_PROPERTY_CATEGORY = "category";
private CampaignServiceConversionActionCategory category;
public CampaignServiceCampaignConversionGoals() {
}
public CampaignServiceCampaignConversionGoals source(CampaignServiceConversionSource source) {
this.source = source;
return this;
}
/**
* Get source
* @return source
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CampaignServiceConversionSource getSource() {
return source;
}
@JsonProperty(JSON_PROPERTY_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSource(CampaignServiceConversionSource source) {
this.source = source;
}
public CampaignServiceCampaignConversionGoals category(CampaignServiceConversionActionCategory category) {
this.category = category;
return this;
}
/**
* Get category
* @return category
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CampaignServiceConversionActionCategory getCategory() {
return category;
}
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(CampaignServiceConversionActionCategory category) {
this.category = category;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CampaignServiceCampaignConversionGoals campaignServiceCampaignConversionGoals = (CampaignServiceCampaignConversionGoals) o;
return Objects.equals(this.source, campaignServiceCampaignConversionGoals.source) &&
Objects.equals(this.category, campaignServiceCampaignConversionGoals.category);
}
@Override
public int hashCode() {
return Objects.hash(source, category);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CampaignServiceCampaignConversionGoals {\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy