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

com.tencent.ads.model.ExcludedDimension 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;

/**
 * 排除已转化用户定向范围<br/> 同应用,仅当推广目标为应用下载时可以使用,没有选择自定义转化行为(excluded_dimension)时
 * ,使用该定向出价需要满足是oCPC、oCPM广告;<br/>
 * 同商品,仅当SDPA商品广告下使用,不支持自定义转化行为默认排除已下单、和已付费用户,不限制出价方式;<br/>
 * 非同应用、非同商品,没有选择自定义转化行为(excluded_dimension)时 ,使用该定向出价需要满足是oCPC、oCPM广告;
 */
@JsonAdapter(ExcludedDimension.Adapter.class)
public enum ExcludedDimension {
  CAMPAIGN("EXCLUDED_DIMENSION_CAMPAIGN"),

  UID("EXCLUDED_DIMENSION_UID"),

  BUSINESS_MANAGER("EXCLUDED_DIMENSION_BUSINESS_MANAGER"),

  COMPANY_ACCOUNT("EXCLUDED_DIMENSION_COMPANY_ACCOUNT"),

  APP("EXCLUDED_DIMENSION_APP"),

  PRODUCT("EXCLUDED_DIMENSION_PRODUCT");

  private String value;

  ExcludedDimension(String value) {
    this.value = value;
  }

  public String getValue() {
    return value;
  }

  @Override
  public String toString() {
    return String.valueOf(value);
  }

  public static ExcludedDimension fromValue(String text) {
    for (ExcludedDimension b : ExcludedDimension.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 ExcludedDimension enumeration)
        throws IOException {
      jsonWriter.value(enumeration.getValue());
    }

    @Override
    public ExcludedDimension read(final JsonReader jsonReader) throws IOException {
      String value = jsonReader.nextString();
      return ExcludedDimension.fromValue(String.valueOf(value));
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy