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

Examples of com.google.api.ads.adwords.jaxws.v201309.o.TargetingIdeaPage


    selector.setIdeaType(IdeaType.KEYWORD);
    selector.setRequestType(RequestType.IDEAS);
    Paging paging = new Paging(0, 1);
    selector.setPaging(paging);

    TargetingIdeaPage page = service.get(selector);
  }
View Full Code Here


    selector.setRequestType(RequestType.IDEAS);

    Paging paging = new Paging(index, 100);
    selector.setPaging(paging);

    TargetingIdeaPage page = service.get(selector);
    ArrayList<TargetingIdea> result = new ArrayList<TargetingIdea>();

    while (paging.getStartIndex() + 100 <= page.getTotalNumEntries()) {
      assertNotNull(page);
      result.addAll(Arrays.asList(page.getEntries()));
      paging.setStartIndex(paging.getStartIndex() + 100);
      selector.setPaging(paging);
      page = service.get(selector);
    }
    assertEquals(page.getTotalNumEntries(), new Integer(result.size()));
  }
View Full Code Here

    selector.setRequestType(RequestType.IDEAS);

    Paging paging = new Paging(0, 1);
    selector.setPaging(paging);

    TargetingIdeaPage page = service.get(selector);
  }
View Full Code Here

    selector.setRequestType(RequestType.IDEAS);

    Paging paging = new Paging(0, 1);
    selector.setPaging(paging);

    TargetingIdeaPage page = service.get(selector);
  }
View Full Code Here

    selector.setRequestType(RequestType.IDEAS);

    Paging paging = new Paging(0, 1);
    selector.setPaging(paging);

    TargetingIdeaPage page = service.get(selector);
  }
View Full Code Here

      relatedToQuerySearchParameter.setQueries(new String[] {"mars cruise"});
      selector.setSearchParameters(
          new SearchParameter[] {relatedToQuerySearchParameter, languageParameter});

      // Get related keywords.
      TargetingIdeaPage page = targetingIdeaService.get(selector);

      // Display related keywords.
      if (page.getEntries() != null && page.getEntries().length > 0) {
        for (TargetingIdea targetingIdea : page.getEntries()) {
          Map<AttributeType, Attribute> data = MapUtils.toMap(targetingIdea.getData());
          StringAttribute keyword = (StringAttribute) data.get(AttributeType.KEYWORD_TEXT);
          IntegerSetAttribute categories =
              (IntegerSetAttribute) data.get(AttributeType.CATEGORY_PRODUCTS_AND_SERVICES);
          String categoriesString = "(none)";
View Full Code Here

      relatedToUrlSearchParameter.setUrls(new String[] {url});
      relatedToUrlSearchParameter.setIncludeSubUrls(false);
      selector.setSearchParameters(new SearchParameter[] {relatedToUrlSearchParameter});

      // Get related placements.
      TargetingIdeaPage page = targetingIdeaService.get(selector);

      // Display related placements.
      if (page.getEntries() != null && page.getEntries().length > 0) {
        for (TargetingIdea targetingIdea : page.getEntries()) {
          Map<AttributeType, Attribute> data = MapUtils.toMap(targetingIdea.getData());
          Placement placement =
              (Placement) ((CriterionAttribute) data.get(AttributeType.CRITERION)).getValue();
          SiteConstantsPlacementType placementType =
              ((PlacementTypeAttribute) data.get(AttributeType.PLACEMENT_TYPE)).getValue();
View Full Code Here

      relatedToQuerySearchParameter.setQueries(new String[] {"mars cruise"});
      selector.setSearchParameters(
          new SearchParameter[] {relatedToQuerySearchParameter, languageParameter});

      // Get related keywords.
      TargetingIdeaPage page = targetingIdeaService.get(selector);

      // Display related keywords.
      if (page.getEntries() != null && page.getEntries().length > 0) {
        for (TargetingIdea targetingIdea : page.getEntries()) {
          Map<AttributeType, Attribute> data = MapUtils.toMap(targetingIdea.getData());
          StringAttribute keyword = (StringAttribute) data.get(AttributeType.KEYWORD_TEXT);
          IntegerSetAttribute categories =
              (IntegerSetAttribute) data.get(AttributeType.CATEGORY_PRODUCTS_AND_SERVICES);
          String categoriesString = "(none)";
View Full Code Here

      relatedToUrlSearchParameter.setUrls(new String[] {url});
      relatedToUrlSearchParameter.setIncludeSubUrls(false);
      selector.setSearchParameters(new SearchParameter[] {relatedToUrlSearchParameter});

      // Get related placements.
      TargetingIdeaPage page = targetingIdeaService.get(selector);

      // Display related placements.
      if (page.getEntries() != null && page.getEntries().length > 0) {
        for (TargetingIdea targetingIdea : page.getEntries()) {
          Map<AttributeType, Attribute> data = MapUtils.toMap(targetingIdea.getData());
          Placement placement =
              (Placement) ((CriterionAttribute) data.get(AttributeType.CRITERION)).getValue();
          SiteConstantsPlacementType placementType =
              ((PlacementTypeAttribute) data.get(AttributeType.PLACEMENT_TYPE)).getValue();
View Full Code Here

TOP

Related Classes of com.google.api.ads.adwords.jaxws.v201309.o.TargetingIdeaPage

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.