コード例 #1
0
 @Override
 protected void testLastEntry(ReportGeo last) {
   Assert.assertEquals(8649799503L, last.getAdGroupId().longValue());
   Assert.assertEquals("Inventory", last.getAdGroupName());
   Assert.assertEquals("enabled", last.getAdGroupStatus());
   Assert.assertEquals("1014218", last.getCityCriteriaId());
   Assert.assertEquals("2840", last.getCountryCriteriaId());
   Assert.assertEquals("true", last.getIsTargetable());
   Assert.assertEquals("200825", last.getMetroCriteriaId());
   Assert.assertEquals("92124", last.getMostSpecificCriteriaId());
   Assert.assertEquals("Froody Rudy", last.getAccountDescriptiveName());
   Assert.assertEquals("2014-03-01", last.getMonth());
   Assert.assertEquals(0d, last.getCost().doubleValue());
   Assert.assertEquals(0, last.getClicks().longValue());
   Assert.assertEquals(1, last.getImpressions().longValue());
   Assert.assertEquals("0.00", last.getCtr());
   Assert.assertEquals(0d, last.getAvgCpm().doubleValue());
   Assert.assertEquals(0d, last.getAvgCpc().doubleValue());
   Assert.assertEquals("1.00", last.getAvgPosition());
   Assert.assertEquals("0.00", last.getConversionRateManyPerClick());
   Assert.assertEquals("0.00", last.getClickConversionRate());
   Assert.assertEquals(6671111111L, last.getAccountId().longValue());
 }
コード例 #2
0
 @Override
 protected void testFirstEntry(ReportGeo first) {
   Assert.assertEquals(6039084783L, first.getAdGroupId().longValue());
   Assert.assertEquals("General", first.getAdGroupName());
   Assert.assertEquals("enabled", first.getAdGroupStatus());
   Assert.assertEquals(" --", first.getCityCriteriaId());
   Assert.assertEquals("2840", first.getCountryCriteriaId());
   Assert.assertEquals("true", first.getIsTargetable());
   Assert.assertEquals(" --", first.getMetroCriteriaId());
   Assert.assertEquals("2840", first.getMostSpecificCriteriaId());
   Assert.assertEquals("Froody Rudy", first.getAccountDescriptiveName());
   Assert.assertEquals("2014-03-01", first.getMonth());
   Assert.assertEquals(0d, first.getCost().doubleValue());
   Assert.assertEquals(0, first.getClicks().longValue());
   Assert.assertEquals(2, first.getImpressions().longValue());
   Assert.assertEquals("0.00", first.getCtr());
   Assert.assertEquals(0d, first.getAvgCpm().doubleValue());
   Assert.assertEquals(0d, first.getAvgCpc().doubleValue());
   Assert.assertEquals("1.00", first.getAvgPosition());
   Assert.assertEquals("0.00", first.getConversionRateManyPerClick());
   Assert.assertEquals("0.00", first.getClickConversionRate());
   Assert.assertEquals(6671111111L, first.getAccountId().longValue());
 }