use of com.google.api.ads.adwords.axis.v201809.cm.ProductChannelExclusivity in project googleads-java-lib by googleads.
the class ProductDimensionsTest method testCreateChannelExclusivity.
/**
* Test method for createChannelExclusivity.
*/
@Test
public void testCreateChannelExclusivity() {
ProductChannelExclusivity channelExclusivity = ProductDimensions.createChannelExclusivity(ShoppingProductChannelExclusivity.MULTI_CHANNEL);
assertEquals(ShoppingProductChannelExclusivity.MULTI_CHANNEL, channelExclusivity.getChannelExclusivity());
}
use of com.google.api.ads.adwords.axis.v201809.cm.ProductChannelExclusivity in project googleads-java-lib by googleads.
the class ProductDimensions method createChannelExclusivity.
/**
* Creates a new ProductChannelExclusivity.
*
* @param channelExclusivity may be null if creating an "other" dimension
*/
public static ProductChannelExclusivity createChannelExclusivity(@Nullable ShoppingProductChannelExclusivity channelExclusivity) {
ProductChannelExclusivity productChannelExclusivity = new ProductChannelExclusivity();
productChannelExclusivity.setChannelExclusivity(channelExclusivity);
return productChannelExclusivity;
}
Aggregations