Examples of performAdUnitAction()


Examples of com.google.api.ads.dfp.axis.v201208.InventoryServiceInterface.performAdUnitAction()

      com.google.api.ads.dfp.axis.v201208.ArchiveAdUnits action =
          new com.google.api.ads.dfp.axis.v201208.ArchiveAdUnits();

      // Perform action.
      UpdateResult result =
          inventoryService.performAdUnitAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.println("Number of ad units archived: " + result.getNumChanges());
      } else {
        System.out.println("No ad units were archived.");
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201211.InventoryServiceInterface.performAdUnitAction()

      com.google.api.ads.dfp.axis.v201211.ArchiveAdUnits action =
          new com.google.api.ads.dfp.axis.v201211.ArchiveAdUnits();

      // Perform action.
      UpdateResult result =
          inventoryService.performAdUnitAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.println("Number of ad units archived: " + result.getNumChanges());
      } else {
        System.out.println("No ad units were archived.");
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201302.InventoryServiceInterface.performAdUnitAction()

      com.google.api.ads.dfp.axis.v201302.ArchiveAdUnits action =
          new com.google.api.ads.dfp.axis.v201302.ArchiveAdUnits();

      // Perform action.
      UpdateResult result =
          inventoryService.performAdUnitAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.printf("Number of ad units archived: %d\n", result.getNumChanges());
      } else {
        System.out.println("No ad units were archived.");
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201302.InventoryServiceInterface.performAdUnitAction()

          new com.google.api.ads.dfp.axis.v201302.AssignAdUnitsToPlacement();
      action.setPlacementId(placementId);

      // Perform action.
      UpdateResult result =
          inventoryService.performAdUnitAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.printf(
            "Number of ad units to be added to placement: %d\n", result.getNumChanges());
      } else {
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201306.InventoryServiceInterface.performAdUnitAction()

          new com.google.api.ads.dfp.axis.v201306.AssignAdUnitsToPlacement();
      action.setPlacementId(placementId);

      // Perform action.
      UpdateResult result =
          inventoryService.performAdUnitAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.printf(
            "Number of ad units to be added to placement: %d\n", result.getNumChanges());
      } else {
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201306.InventoryServiceInterface.performAdUnitAction()

      com.google.api.ads.dfp.axis.v201306.ArchiveAdUnits action =
          new com.google.api.ads.dfp.axis.v201306.ArchiveAdUnits();

      // Perform action.
      UpdateResult result =
          inventoryService.performAdUnitAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.printf("Number of ad units archived: %d\n", result.getNumChanges());
      } else {
        System.out.println("No ad units were archived.");
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201308.InventoryServiceInterface.performAdUnitAction()

          new com.google.api.ads.dfp.axis.v201308.AssignAdUnitsToPlacement();
      action.setPlacementId(placementId);

      // Perform action.
      UpdateResult result =
          inventoryService.performAdUnitAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.printf(
            "Number of ad units to be added to placement: %d\n", result.getNumChanges());
      } else {
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201308.InventoryServiceInterface.performAdUnitAction()

      com.google.api.ads.dfp.axis.v201308.ArchiveAdUnits action =
          new com.google.api.ads.dfp.axis.v201308.ArchiveAdUnits();

      // Perform action.
      UpdateResult result =
          inventoryService.performAdUnitAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.printf("Number of ad units archived: %d\n", result.getNumChanges());
      } else {
        System.out.println("No ad units were archived.");
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201311.InventoryServiceInterface.performAdUnitAction()

          new com.google.api.ads.dfp.axis.v201311.AssignAdUnitsToPlacement();
      action.setPlacementId(placementId);

      // Perform action.
      UpdateResult result =
          inventoryService.performAdUnitAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.printf(
            "Number of ad units to be added to placement: %d\n", result.getNumChanges());
      } else {
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201311.InventoryServiceInterface.performAdUnitAction()

      com.google.api.ads.dfp.axis.v201311.ArchiveAdUnits action =
          new com.google.api.ads.dfp.axis.v201311.ArchiveAdUnits();

      // Perform action.
      UpdateResult result =
          inventoryService.performAdUnitAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.printf("Number of ad units archived: %d\n", result.getNumChanges());
      } else {
        System.out.println("No ad units were archived.");
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.