Search in sources :

Example 51 with TextValue

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

the class StatementBuilderTest method testBindVariables_text.

@Test
public void testBindVariables_text() {
    StatementBuilder statementBuilder = new StatementBuilder();
    Statement statement = statementBuilder.where("text = :text").withBindVariableValue("text", "foo").toStatement();
    String_ValueMapEntry entry = statement.getValues(0);
    assertEquals("text", entry.getKey());
    assertEquals(TextValue.class, entry.getValue().getClass());
    assertEquals("foo", ((TextValue) 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)40 Test (org.junit.Test)21 ParseException (java.text.ParseException)10 Set (java.util.Set)10 Before (org.junit.Before)10 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