Search in sources :

Example 31 with BooleanValue

use of com.google.api.ads.admanager.axis.v202205.BooleanValue in project googleads-java-lib by googleads.

the class StatementBuilderTest method testBindVariables_bool.

@Test
public void testBindVariables_bool() {
    StatementBuilder statementBuilder = new StatementBuilder();
    Statement statement = statementBuilder.where("bool = :bool").withBindVariableValue("bool", true).toStatement();
    String_ValueMapEntry entry = statement.getValues(0);
    assertEquals("bool", entry.getKey());
    assertEquals(BooleanValue.class, entry.getValue().getClass());
    assertEquals(true, ((BooleanValue) entry.getValue()).getValue());
}
Also used : String_ValueMapEntry(com.google.api.ads.admanager.axis.v202205.String_ValueMapEntry) Statement(com.google.api.ads.admanager.axis.v202205.Statement) Test(org.junit.Test)

Aggregations

LinkedHashSet (java.util.LinkedHashSet)20 ParseException (java.text.ParseException)10 Set (java.util.Set)10 Before (org.junit.Before)10 BooleanValue (com.google.api.ads.admanager.axis.v202108.BooleanValue)3 DateTimeValue (com.google.api.ads.admanager.axis.v202108.DateTimeValue)3 DateValue (com.google.api.ads.admanager.axis.v202108.DateValue)3 NumberValue (com.google.api.ads.admanager.axis.v202108.NumberValue)3 SetValue (com.google.api.ads.admanager.axis.v202108.SetValue)3 TargetingValue (com.google.api.ads.admanager.axis.v202108.TargetingValue)3 TextValue (com.google.api.ads.admanager.axis.v202108.TextValue)3 BooleanValue (com.google.api.ads.admanager.axis.v202111.BooleanValue)3 DateTimeValue (com.google.api.ads.admanager.axis.v202111.DateTimeValue)3 DateValue (com.google.api.ads.admanager.axis.v202111.DateValue)3 NumberValue (com.google.api.ads.admanager.axis.v202111.NumberValue)3 SetValue (com.google.api.ads.admanager.axis.v202111.SetValue)3 TargetingValue (com.google.api.ads.admanager.axis.v202111.TargetingValue)3 TextValue (com.google.api.ads.admanager.axis.v202111.TextValue)3 BooleanValue (com.google.api.ads.admanager.jaxws.v202108.BooleanValue)3 DateTimeValue (com.google.api.ads.admanager.jaxws.v202108.DateTimeValue)3