Search in sources :

Example 41 with TextValue

use of com.google.api.ads.admanager.axis.v202108.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());
}
Also used : LinkedHashSet(java.util.LinkedHashSet) BooleanValue(com.google.api.ads.admanager.axis.v202202.BooleanValue) NumberValue(com.google.api.ads.admanager.axis.v202202.NumberValue) TargetingValue(com.google.api.ads.admanager.axis.v202202.TargetingValue) Value(com.google.api.ads.admanager.axis.v202202.Value) DateValue(com.google.api.ads.admanager.axis.v202202.DateValue) SetValue(com.google.api.ads.admanager.axis.v202202.SetValue) DateTimeValue(com.google.api.ads.admanager.axis.v202202.DateTimeValue) TextValue(com.google.api.ads.admanager.axis.v202202.TextValue) SetValue(com.google.api.ads.admanager.axis.v202202.SetValue) Test(org.junit.Test)

Aggregations

LinkedHashSet (java.util.LinkedHashSet)32 Test (org.junit.Test)17 Set (java.util.Set)8 Before (org.junit.Before)8 BooleanValue (com.google.api.ads.admanager.axis.v202105.BooleanValue)5 DateTimeValue (com.google.api.ads.admanager.axis.v202105.DateTimeValue)5 DateValue (com.google.api.ads.admanager.axis.v202105.DateValue)5 NumberValue (com.google.api.ads.admanager.axis.v202105.NumberValue)5 SetValue (com.google.api.ads.admanager.axis.v202105.SetValue)5 TargetingValue (com.google.api.ads.admanager.axis.v202105.TargetingValue)5 TextValue (com.google.api.ads.admanager.axis.v202105.TextValue)5 BooleanValue (com.google.api.ads.admanager.axis.v202108.BooleanValue)5 DateTimeValue (com.google.api.ads.admanager.axis.v202108.DateTimeValue)5 DateValue (com.google.api.ads.admanager.axis.v202108.DateValue)5 NumberValue (com.google.api.ads.admanager.axis.v202108.NumberValue)5 SetValue (com.google.api.ads.admanager.axis.v202108.SetValue)5 TargetingValue (com.google.api.ads.admanager.axis.v202108.TargetingValue)5 TextValue (com.google.api.ads.admanager.axis.v202108.TextValue)5 BooleanValue (com.google.api.ads.admanager.jaxws.v202108.BooleanValue)5 DateTimeValue (com.google.api.ads.admanager.jaxws.v202108.DateTimeValue)5