public class ProductScope extends Criterion
If there is no ProductScope, all products are included in the campaign. If a campaign
has more than one ProductScope, products are included as long as they match any.
Campaigns of AdvertisingChannelType.SHOPPING can have at most one ProductScope.
This is disabled for AdX when it is contained within Operators: ADD, SET.
Java class for ProductScope complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ProductScope">
<complexContent>
<extension base="{https://adwords.google.com/api/adwords/cm/v201809}Criterion">
<sequence>
<element name="dimensions" type="{https://adwords.google.com/api/adwords/cm/v201809}ProductDimension" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<ProductDimension> |
dimensions |
criterionType, id, type| Constructor and Description |
|---|
ProductScope() |
| Modifier and Type | Method and Description |
|---|---|
List<ProductDimension> |
getDimensions()
Gets the value of the dimensions property.
|
getCriterionType, getId, getType, setCriterionType, setId, setTypeprotected List<ProductDimension> dimensions
public List<ProductDimension> getDimensions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the dimensions property.
For example, to add a new item, do as follows:
getDimensions().add(newItem);
Objects of the following type(s) are allowed in the list
ProductDimension
Copyright © 2023. All rights reserved.