public class ProductDimensions extends Object
For example, createBrand(String)
has a single brand
parameter since the
brand
attribute is what uniquely identifies a ProductBrand
, while
createBiddingCategory(ProductDimensionType, Long)
has both a
productDimensionType
and a biddingCategoryId
parameter since both attributes are
required to uniquely identify a ProductBiddingCategory
.
Note that this factory only includes methods for subclasses of ProductDimension that are supported by Shopping Campaigns.
Modifier and Type | Method and Description |
---|---|
static com.google.api.ads.adwords.axis.v201409.cm.ProductBiddingCategory |
createBiddingCategory(com.google.api.ads.adwords.axis.v201409.cm.ProductDimensionType productDimensionType,
Long biddingCategoryId)
Creates a new ProductBiddingCategory.
|
static com.google.api.ads.adwords.axis.v201409.cm.ProductBrand |
createBrand(String brand)
Creates a new ProductBrand.
|
static com.google.api.ads.adwords.axis.v201409.cm.ProductCanonicalCondition |
createCanonicalCondition(com.google.api.ads.adwords.axis.v201409.cm.ProductCanonicalConditionCondition condition)
Creates a new ProductCanonicalCondition.
|
static com.google.api.ads.adwords.axis.v201409.cm.ProductCustomAttribute |
createCustomAttribute(com.google.api.ads.adwords.axis.v201409.cm.ProductDimensionType productDimensionType,
String attributeValue)
Creates a new ProductCustomAttribute.
|
static com.google.api.ads.adwords.axis.v201409.cm.ProductOfferId |
createOfferId(String offerId)
Creates a new ProductOfferId.
|
static com.google.api.ads.adwords.axis.v201409.cm.ProductType |
createType(com.google.api.ads.adwords.axis.v201409.cm.ProductDimensionType productDimensionType,
String productTypeValue)
Creates a new ProductType.
|
public static com.google.api.ads.adwords.axis.v201409.cm.ProductType createType(com.google.api.ads.adwords.axis.v201409.cm.ProductDimensionType productDimensionType, @Nullable String productTypeValue)
productDimensionType
- requiredproductTypeValue
- may be null if creating an "other" dimensionpublic static com.google.api.ads.adwords.axis.v201409.cm.ProductCanonicalCondition createCanonicalCondition(@Nullable com.google.api.ads.adwords.axis.v201409.cm.ProductCanonicalConditionCondition condition)
condition
- may be null if creating an "other" dimensionpublic static com.google.api.ads.adwords.axis.v201409.cm.ProductBiddingCategory createBiddingCategory(com.google.api.ads.adwords.axis.v201409.cm.ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId)
productDimensionType
- requiredbiddingCategoryId
- may be null if creating an "other" dimensionpublic static com.google.api.ads.adwords.axis.v201409.cm.ProductOfferId createOfferId(@Nullable String offerId)
offerId
- may be null if creating an "other" dimensionpublic static com.google.api.ads.adwords.axis.v201409.cm.ProductBrand createBrand(@Nullable String brand)
brand
- may be null if creating an "other" dimensionpublic static com.google.api.ads.adwords.axis.v201409.cm.ProductCustomAttribute createCustomAttribute(com.google.api.ads.adwords.axis.v201409.cm.ProductDimensionType productDimensionType, @Nullable String attributeValue)
productDimensionType
- requiredattributeValue
- may be null if creating an "other" dimensionCopyright © 2015. All Rights Reserved.