Search in sources :

Example 26 with DateTime

use of com.google.api.ads.admanager.jaxws.v202105.DateTime in project googleads-java-lib by googleads.

the class PqlTest method testCreateValue_dateTimeSet.

@Test
public void testCreateValue_dateTimeSet() {
    Set<DateTime> dateTimeSet = new LinkedHashSet<DateTime>();
    dateTimeSet.add(dateTime1);
    Value value1 = ((SetValue) Pql.createValue(dateTimeSet)).getValues(0);
    assertEquals("2012-12-02T12:45:00+08:00", DateTimes.toStringWithTimeZone(((DateTimeValue) value1).getValue()));
}
Also used : LinkedHashSet(java.util.LinkedHashSet) DateTimeValue(com.google.api.ads.admanager.axis.v202202.DateTimeValue) 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) DateTime(com.google.api.ads.admanager.axis.v202202.DateTime) Test(org.junit.Test)

Aggregations

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