コード例 #1
0
  /**
   * @see com.google.api.ads.adwords.awreporting.model.definitions.
   *     AbstractReportDefinitionTest#testLastEntry(
   *     com.google.api.ads.adwords.awreporting.model.entities.Report)
   */
  @Override
  protected void testLastEntry(ReportAdGroup last) {

    Assert.assertEquals(1230945123L, last.getAccountId().longValue());
    Assert.assertEquals("2013-05-10", last.getDay());
    Assert.assertEquals(0.60, last.getCost().doubleValue());
    Assert.assertEquals(1L, last.getClicks().longValue());
    Assert.assertEquals(72L, last.getImpressions().longValue());
    Assert.assertEquals(0L, last.getConvertedClicks().longValue());
    Assert.assertEquals(1.39, last.getCtrBigDecimal().doubleValue());
    Assert.assertEquals(8.33, last.getAvgCpm().doubleValue());
    Assert.assertEquals(0.60, last.getAvgCpc().doubleValue());
    Assert.assertEquals(2.58, last.getAvgPositionBigDecimal().doubleValue());
    Assert.assertEquals("EUR", last.getCurrencyCode());
    Assert.assertEquals(129807304L, last.getCampaignId().longValue());
    Assert.assertEquals(7253055064L, last.getAdGroupId().longValue());
    Assert.assertEquals("enabled", last.getAdGroupStatus());
    Assert.assertEquals(2.01, last.getTargetCpa().doubleValue());
  }
コード例 #2
0
  /**
   * @see com.google.api.ads.adwords.awreporting.model.definitions.
   *     AbstractReportDefinitionTest#testFirstEntry(
   *     com.google.api.ads.adwords.awreporting.model.entities.Report)
   */
  @Override
  protected void testFirstEntry(ReportAdGroup first) {

    Assert.assertEquals(1230945123L, first.getAccountId().longValue());
    Assert.assertEquals("2013-05-07", first.getDay());
    Assert.assertEquals(2.72, first.getCost().doubleValue());
    Assert.assertEquals(6L, first.getClicks().longValue());
    Assert.assertEquals(16L, first.getImpressions().longValue());
    Assert.assertEquals(0L, first.getConvertedClicks().longValue());
    Assert.assertEquals(37.50, first.getCtrBigDecimal().doubleValue());
    Assert.assertEquals(170.00, first.getAvgCpm().doubleValue());
    Assert.assertEquals(0.45, first.getAvgCpc().doubleValue());
    Assert.assertEquals(2.69, first.getAvgPositionBigDecimal().doubleValue());
    Assert.assertEquals("EUR", first.getCurrencyCode());
    Assert.assertEquals(129807304L, first.getCampaignId().longValue());
    Assert.assertEquals(7253055064L, first.getAdGroupId().longValue());
    Assert.assertEquals("enabled", first.getAdGroupStatus());
    Assert.assertEquals(0.05, first.getTargetCpa().doubleValue());
  }