Package com.google.api.ads.adwords.jaxws.v201309.cm

Examples of com.google.api.ads.adwords.jaxws.v201309.cm.ExperimentPage


   * Tests that the built selectors don't share internal Predicate state.
   */
  @Test
  public void testUniqueInternalPredicateState() {
    SelectorBuilder builder = new SelectorBuilder();
    Selector selectorOne = builder.by("Id", "test").build();
    Selector selectorTwo = builder.build();

    Predicate predicateTwo = selectorTwo.getPredicates().get(0);
    predicateTwo.setField("Status");

    Assert.assertEquals("Id", selectorOne.getPredicates().get(0).getField());
    Assert.assertEquals("Status", selectorTwo.getPredicates().get(0).getField());
  }
View Full Code Here


    DateTime startOne = new DateTime(2013, 1, 1, 0, 0, 0, 0);
    DateTime endOne = new DateTime(2013, 1, 31, 0, 0, 0, 0);
    DateTime startTwo = new DateTime(2013, 2, 1, 0, 0, 0, 0);
    DateTime endTwo = new DateTime(2013, 2, 28, 0, 0, 0, 0);

    Selector selectorOne = builder.forDateRange(startOne, endOne).build();
    Selector selectorTwo = builder.forDateRange(startTwo, endTwo).build();

    Assert.assertEquals(dateFormat.format(startOne.toDate()), selectorOne.getDateRange().getMin());
    Assert.assertEquals(dateFormat.format(endOne.toDate()), selectorOne.getDateRange().getMax());
    Assert.assertEquals(dateFormat.format(startTwo.toDate()), selectorTwo.getDateRange().getMin());
    Assert.assertEquals(dateFormat.format(endTwo.toDate()), selectorTwo.getDateRange().getMax());
  }
View Full Code Here

      Predicate campaignIdPredicate =
          new Predicate("CampaignId", PredicateOperator.IN, new String[] {campaignId.toString()});
      selector.setPredicates(new Predicate[] {campaignIdPredicate});

      // Get all experiments.
      ExperimentPage page = experimentService.get(selector);

      if (page.getEntries() != null) {
        for(Experiment experiment : page.getEntries()) {
          System.out.println("Experiment with name \"" + experiment.getName() + "\", id \""
              + experiment.getId() + "\", and control id \"" + experiment.getControlId()
              + "\" was found.\nIt includes "
              + experiment.getExperimentSummaryStats().getAdGroupsCount() + " ad groups, "
              + experiment.getExperimentSummaryStats().getAdGroupCriteriaCount()
View Full Code Here

      Predicate campaignIdPredicate =
          new Predicate("CampaignId", PredicateOperator.IN, new String[] {campaignId.toString()});
      selector.setPredicates(new Predicate[] {campaignIdPredicate});

      // Get all experiments.
      ExperimentPage page = experimentService.get(selector);

      if (page.getEntries() != null) {
        for(Experiment experiment : page.getEntries()) {
          System.out.println("Experiment with name \"" + experiment.getName() + "\", id \""
              + experiment.getId() + "\", and control id \"" + experiment.getControlId()
              + "\" was found.\nIt includes "
              + experiment.getExperimentSummaryStats().getAdGroupsCount() + " ad groups, "
              + experiment.getExperimentSummaryStats().getAdGroupCriteriaCount()
View Full Code Here

TOP

Related Classes of com.google.api.ads.adwords.jaxws.v201309.cm.ExperimentPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.