
com.tencent.ads.model.DeepConversionWorthGoal 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.model;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
/** 优化ROI目标,不可更改,如修改深度优化效果值,需在结构体中传入已设置的优化ROI目标 */
@JsonAdapter(DeepConversionWorthGoal.Adapter.class)
public enum DeepConversionWorthGoal {
_30DAY_PURCHASE_ROAS("GOAL_30DAY_PURCHASE_ROAS"),
_30DAY_MONETIZATION_ROAS("GOAL_30DAY_MONETIZATION_ROAS"),
_7DAY_PURCHASE_ROAS("GOAL_7DAY_PURCHASE_ROAS"),
_30DAY_ORDER_ROAS("GOAL_30DAY_ORDER_ROAS"),
_1DAY_PURCHASE_ROAS("GOAL_1DAY_PURCHASE_ROAS"),
_1DAY_MONETIZATION_ROAS("GOAL_1DAY_MONETIZATION_ROAS"),
_7DAY_MONETIZATION_ROAS("GOAL_7DAY_MONETIZATION_ROAS");
private String value;
DeepConversionWorthGoal(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static DeepConversionWorthGoal fromValue(String text) {
for (DeepConversionWorthGoal b : DeepConversionWorthGoal.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final DeepConversionWorthGoal enumeration)
throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public DeepConversionWorthGoal read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return DeepConversionWorthGoal.fromValue(String.valueOf(value));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy