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;
}
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;
}
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;
}
Aggregations