Examples of PlacementStrategyRemote


Examples of com.google.api.ads.dfa.axis.v1_19.PlacementStrategyRemote

  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

Examples of com.google.api.ads.dfa.axis.v1_19.PlacementStrategyRemote

  private static final String PLACEMENT_STRATEGY_NAME = "INSERT_PLACEMENT_STRATEGY_NAME_HERE";

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

    // Create the placement strategy.
    PlacementStrategy placementStrategy = new PlacementStrategy();
    placementStrategy.setId(0);
    placementStrategy.setName(placementStrategyName);

    // Save the placement strategy.
    PlacementStrategySaveResult placementStrategySaveResult =
        service.savePlacementStrategy(placementStrategy);

    // Display the new placement strategy ID.
    System.out.printf("Placement Strategy with ID \"%s\" was created.%n",
        placementStrategySaveResult.getId());
  }
View Full Code Here

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

  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

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

  private static final String PLACEMENT_STRATEGY_NAME = "INSERT_PLACEMENT_STRATEGY_NAME_HERE";

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

    // Create the placement strategy.
    PlacementStrategy placementStrategy = new PlacementStrategy();
    placementStrategy.setId(0);
    placementStrategy.setName(placementStrategyName);

    // Save the placement strategy.
    PlacementStrategySaveResult placementStrategySaveResult =
        service.savePlacementStrategy(placementStrategy);

    // Display the new placement strategy ID.
    System.out.printf("Placement Strategy with ID \"%s\" was created.%n",
        placementStrategySaveResult.getId());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.