Search in sources :

Example 1 with ProductChannelExclusivity

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());
}
Also used : ShoppingProductChannelExclusivity(com.google.api.ads.adwords.axis.v201809.cm.ShoppingProductChannelExclusivity) ProductChannelExclusivity(com.google.api.ads.adwords.axis.v201809.cm.ProductChannelExclusivity) Test(org.junit.Test)

Example 2 with ProductChannelExclusivity

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;
}
Also used : ShoppingProductChannelExclusivity(com.google.api.ads.adwords.axis.v201809.cm.ShoppingProductChannelExclusivity) ProductChannelExclusivity(com.google.api.ads.adwords.axis.v201809.cm.ProductChannelExclusivity)

Aggregations

ProductChannelExclusivity (com.google.api.ads.adwords.axis.v201809.cm.ProductChannelExclusivity)2 ShoppingProductChannelExclusivity (com.google.api.ads.adwords.axis.v201809.cm.ShoppingProductChannelExclusivity)2 Test (org.junit.Test)1