Search in sources :

Example 1 with ProductDimensionType

use of com.google.api.ads.adwords.axis.v201809.cm.ProductDimensionType in project googleads-java-lib by googleads.

the class ProductDimensions method createType.

/**
 * Creates a new ProductType.
 *
 * @param productDimensionType required
 * @param productTypeValue may be null if creating an "other" dimension
 */
public static ProductType createType(ProductDimensionType productDimensionType, @Nullable String productTypeValue) {
    Preconditions.checkNotNull(productDimensionType, "ProductDimensionType is required when creating a ProductType");
    ProductType productType = new ProductType();
    productType.setType(productDimensionType);
    productType.setValue(productTypeValue);
    return productType;
}
Also used : ProductType(com.google.api.ads.adwords.axis.v201809.cm.ProductType)

Example 2 with ProductDimensionType

use of com.google.api.ads.adwords.axis.v201809.cm.ProductDimensionType in project googleads-java-lib by googleads.

the class ProductDimensions method createBiddingCategory.

/**
 * Creates a new ProductBiddingCategory.
 *
 * @param productDimensionType required
 * @param biddingCategoryId may be null if creating an "other" dimension
 */
public static ProductBiddingCategory createBiddingCategory(ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId) {
    Preconditions.checkNotNull(productDimensionType, "ProductDimensionType is required when creating a ProductBiddingCategory");
    ProductBiddingCategory productBiddingCategory = new ProductBiddingCategory();
    productBiddingCategory.setType(productDimensionType);
    productBiddingCategory.setValue(biddingCategoryId);
    return productBiddingCategory;
}
Also used : ProductBiddingCategory(com.google.api.ads.adwords.axis.v201809.cm.ProductBiddingCategory)

Example 3 with ProductDimensionType

use of com.google.api.ads.adwords.axis.v201809.cm.ProductDimensionType in project googleads-java-lib by googleads.

the class ProductDimensions method createCustomAttribute.

/**
 * Creates a new ProductCustomAttribute.
 *
 * @param productDimensionType required
 * @param attributeValue may be null if creating an "other" dimension
 */
public static ProductCustomAttribute createCustomAttribute(ProductDimensionType productDimensionType, @Nullable String attributeValue) {
    Preconditions.checkNotNull(productDimensionType, "ProductDimensionType is required when creating a ProductCustomAttribute");
    ProductCustomAttribute productCustomAttribute = new ProductCustomAttribute();
    productCustomAttribute.setType(productDimensionType);
    productCustomAttribute.setValue(attributeValue);
    return productCustomAttribute;
}
Also used : ProductCustomAttribute(com.google.api.ads.adwords.axis.v201809.cm.ProductCustomAttribute)

Aggregations

ProductBiddingCategory (com.google.api.ads.adwords.axis.v201809.cm.ProductBiddingCategory)1 ProductCustomAttribute (com.google.api.ads.adwords.axis.v201809.cm.ProductCustomAttribute)1 ProductType (com.google.api.ads.adwords.axis.v201809.cm.ProductType)1