Package com.google.api.ads.dfa.axis.v1_20

Examples of com.google.api.ads.dfa.axis.v1_20.AdvertiserSearchCriteria


      DfaServices dfaServices, DfaSession session, String searchString) throws Exception {
    // Request the placement service from the service client factory.
    PlacementRemote placementService = dfaServices.get(session, PlacementRemote.class);

    // Set placement search criteria.
    PlacementSearchCriteria searchCriteria = new PlacementSearchCriteria();
    searchCriteria.setPageSize(10);
    searchCriteria.setSearchString(searchString);

    // Get placement types.
    PlacementRecordSet placements = placementService.getPlacementsByCriteria(searchCriteria);

    // Display placment names and IDs.
View Full Code Here


        new PlacementStrategySearchCriteria();
    placementStrategySearchCriteria.setPageSize(10);
    placementStrategySearchCriteria.setSearchString(searchString);

    // Get placement strategy record set.
    PlacementStrategyRecordSet placementStrategyRecordSet =
        service.getPlacementStrategiesByCriteria(placementStrategySearchCriteria);

    // Display placement strategy names, IDs and descriptions.
    if (placementStrategyRecordSet.getRecords() != null) {
      for (PlacementStrategy result : placementStrategyRecordSet.getRecords()) {
        System.out.println("Placement Strategy with name \"" + result.getName()
            + "\" and ID \"" + result.getId() + "\" was found.");
      }
    } else {
      System.out.print("No placement strategies found for your criteria.");
View Full Code Here

  private static final String SEARCH_STRING = "INSERT_SEARCH_CRITERIA_HERE";

  public static void runExample(
      DfaServices dfaServices, DfaSession session, String searchString) throws Exception {
    // Request the service.
    PlacementStrategyRemote service = dfaServices.get(session, PlacementStrategyRemote.class);

    // Create placement strategy search criteria structure.
    PlacementStrategySearchCriteria placementStrategySearchCriteria =
        new PlacementStrategySearchCriteria();
    placementStrategySearchCriteria.setPageSize(10);
    placementStrategySearchCriteria.setSearchString(searchString);

    // Get placement strategy record set.
    PlacementStrategyRecordSet placementStrategyRecordSet =
        service.getPlacementStrategiesByCriteria(placementStrategySearchCriteria);

    // Display placement strategy names, IDs and descriptions.
    if (placementStrategyRecordSet.getRecords() != null) {
      for (PlacementStrategy result : placementStrategyRecordSet.getRecords()) {
        System.out.println("Placement Strategy with name \"" + result.getName()
View Full Code Here

      DfaServices dfaServices, DfaSession session, String searchString) throws Exception {
    // Request the service.
    PlacementStrategyRemote service = dfaServices.get(session, PlacementStrategyRemote.class);

    // Create placement strategy search criteria structure.
    PlacementStrategySearchCriteria placementStrategySearchCriteria =
        new PlacementStrategySearchCriteria();
    placementStrategySearchCriteria.setPageSize(10);
    placementStrategySearchCriteria.setSearchString(searchString);

    // Get placement strategy record set.
    PlacementStrategyRecordSet placementStrategyRecordSet =
        service.getPlacementStrategiesByCriteria(placementStrategySearchCriteria);
View Full Code Here

    // Create report request object.
    ReportRequest reportRequest = new ReportRequest();
    reportRequest.setQueryId(queryId);

    // Request generation of a report for your query.
    ReportInfo reportInfo = reportService.runDeferredReport(reportRequest);

    // Display success message.
    System.out.printf("Report with ID \"%s\" has been scheduled.%n", reportInfo.getReportId());
  }
View Full Code Here

  public static void runExample(
      DfaServices dfaServices, DfaSession session, long queryId) throws Exception {

    // Request the report service from the service client factory.
    ReportRemote reportService = dfaServices.get(session, ReportRemote.class);

    // Create report request object.
    ReportRequest reportRequest = new ReportRequest();
    reportRequest.setQueryId(queryId);

    // Request generation of a report for your query.
    ReportInfo reportInfo = reportService.runDeferredReport(reportRequest);

    // Display success message.
    System.out.printf("Report with ID \"%s\" has been scheduled.%n", reportInfo.getReportId());
  }
View Full Code Here

    // Request the report service from the service client factory.
    ReportRemote reportService = dfaServices.get(session, ReportRemote.class);

    // Create report request object.
    ReportRequest reportRequest = new ReportRequest();
    reportRequest.setQueryId(queryId);

    // Request generation of a report for your query.
    ReportInfo reportInfo = reportService.runDeferredReport(reportRequest);

    // Display success message.
View Full Code Here

  private static final String SEARCH_STRING = "INSERT_SEARCH_CRITERIA_HERE";

  public static void runExample(
      DfaServices dfaServices, DfaSession session, String searchString) throws Exception {
    // Request the service.
    SiteRemote service = dfaServices.get(session, SiteRemote.class);

    // Create DFA site search criteria structure.
    DfaSiteSearchCriteria searchCriteria = new DfaSiteSearchCriteria();
    searchCriteria.setPageSize(10);
    searchCriteria.setSearchString(searchString);

    // Get the sites.
    DfaSiteRecordSet dfaSiteRecordSet = service.getDfaSites(searchCriteria);

    // Display DFA site names and IDs.
    if (dfaSiteRecordSet.getRecords() != null) {
      for (DfaSite result : dfaSiteRecordSet.getRecords()) {
        System.out.println("DFA site with name \"" + result.getName()
View Full Code Here

    // Get size.
    SizeSearchCriteria sizeSearchCriteria = new SizeSearchCriteria();
    sizeSearchCriteria.setHeight(height);
    sizeSearchCriteria.setWidth(width);
    SizeRecordSet sizeRecordSet = sizeService.getSizes(sizeSearchCriteria);

    // Display size ID.
    if (sizeRecordSet.getRecords().length > 0) {
      for (Size size: sizeRecordSet.getRecords()) {
        System.out.printf("Size ID for \"%sx%s\" is \"%s\".%n", width, height, size.getId());
      }
    } else {
      System.out.println("No sizes found for your criteria.");
    }
View Full Code Here

  private static final String HEIGHT = "INSERT_HEIGHT_HERE";

  public static void runExample(
      DfaServices dfaServices, DfaSession session, int width, int height) throws Exception {
    // Request the size service from the service client factory.
    SizeRemote sizeService = dfaServices.get(session, SizeRemote.class);

    // Get size.
    SizeSearchCriteria sizeSearchCriteria = new SizeSearchCriteria();
    sizeSearchCriteria.setHeight(height);
    sizeSearchCriteria.setWidth(width);
    SizeRecordSet sizeRecordSet = sizeService.getSizes(sizeSearchCriteria);

    // Display size ID.
    if (sizeRecordSet.getRecords().length > 0) {
      for (Size size: sizeRecordSet.getRecords()) {
        System.out.printf("Size ID for \"%sx%s\" is \"%s\".%n", width, height, size.getId());
View Full Code Here

TOP

Related Classes of com.google.api.ads.dfa.axis.v1_20.AdvertiserSearchCriteria

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.