use of com.google.api.ads.admanager.axis.v202205.TextValue in project googleads-java-lib by googleads.
the class PqlTest method testCreateValue_textSet.
@Test
public void testCreateValue_textSet() {
Set<String> textSet = new LinkedHashSet<String>();
textSet.add("value1");
Value value1 = ((SetValue) Pql.createValue(textSet)).getValues(0);
assertEquals("value1", ((TextValue) value1).getValue());
}
use of com.google.api.ads.admanager.axis.v202205.TextValue in project googleads-java-lib by googleads.
the class PqlTest method testCreateValue_commaTextSet.
@Test
public void testCreateValue_commaTextSet() {
Set<String> textSet = new LinkedHashSet<String>();
textSet.add("value1");
textSet.add("comma \",\" separated");
Value value1 = ((SetValue) Pql.createValue(textSet)).getValues(0);
Value value2 = ((SetValue) Pql.createValue(textSet)).getValues(1);
assertEquals("value1", ((TextValue) value1).getValue());
assertEquals("comma \",\" separated", ((TextValue) value2).getValue());
}
use of com.google.api.ads.admanager.axis.v202205.TextValue in project googleads-java-lib by googleads.
the class PqlTest method testCreateValue_commaTextSet.
@Test
public void testCreateValue_commaTextSet() {
Set<String> textSet = new LinkedHashSet<String>();
textSet.add("value1");
textSet.add("comma \",\" separated");
Value value1 = ((SetValue) Pql.createValue(textSet)).getValues(0);
Value value2 = ((SetValue) Pql.createValue(textSet)).getValues(1);
assertEquals("value1", ((TextValue) value1).getValue());
assertEquals("comma \",\" separated", ((TextValue) value2).getValue());
}
use of com.google.api.ads.admanager.axis.v202205.TextValue in project googleads-java-lib by googleads.
the class PqlTest method testCreateValue_commaTextSet.
@Test
public void testCreateValue_commaTextSet() {
Set<String> textSet = new LinkedHashSet<String>();
textSet.add("value1");
textSet.add("comma \",\" separated");
Value value1 = ((SetValue) Pql.createValue(textSet)).getValues(0);
Value value2 = ((SetValue) Pql.createValue(textSet)).getValues(1);
assertEquals("value1", ((TextValue) value1).getValue());
assertEquals("comma \",\" separated", ((TextValue) value2).getValue());
}
use of com.google.api.ads.admanager.axis.v202205.TextValue in project googleads-java-lib by googleads.
the class PqlTest method testCreateValue_textSet.
@Test
public void testCreateValue_textSet() {
Set<String> textSet = new LinkedHashSet<String>();
textSet.add("value1");
Value value1 = ((SetValue) Pql.createValue(textSet)).getValues(0);
assertEquals("value1", ((TextValue) value1).getValue());
}
Aggregations