Examples of UpdateResult


Examples of com.google.api.ads.dfp.v201302.UpdateResult

        // Create action.
        DeleteUserTeamAssociations action = new DeleteUserTeamAssociations();

        // Perform action.
        UpdateResult result =
            userTeamAssociationService.performUserTeamAssociationAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of teams that the user was removed from: "
              + result.getNumChanges());
        } else {
          System.out.println("No user team associations were deleted.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201302.UpdateResult

        // Create action.
        DeactivateAdUnits action = new DeactivateAdUnits();

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

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

Examples of com.google.api.ads.dfp.v201302.UpdateResult

        // Create action.
        DeactivateLineItemCreativeAssociations action =
            new DeactivateLineItemCreativeAssociations();

        // Perform action.
        UpdateResult result =
            licaService.performLineItemCreativeAssociationAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of LICAs deactivated: " + result.getNumChanges());
        } else {
          System.out.println("No LICAs were deactivated.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201302.UpdateResult

        // Create action.
        DeleteCustomTargetingKeys action = new DeleteCustomTargetingKeys();

        // Perform action.
        UpdateResult result = customTargetingService.performCustomTargetingKeyAction(
            action, statementBuilder.toStatement());

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of custom targeting keys deleted: " + result.getNumChanges());
        } else {
          System.out.println("No custom targeting keys were deleted.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201302.UpdateResult

      // Create action.
      DeactivatePlacements action = new DeactivatePlacements();

      // Perform action.
      UpdateResult result = placementService.performPlacementAction(action, filterStatement);

      // Display results.
      if (result != null && result.getNumChanges() > 0) {
        System.out.println("Number of placements deactivated: " + result.getNumChanges());
      } else {
        System.out.println("No placements were deactivated.");
      }
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of com.google.api.ads.dfp.v201302.UpdateResult

        // Create action.
        ArchiveThirdPartySlots action = new ArchiveThirdPartySlots();

        // Perform action.
        UpdateResult result =
            thirdpartySlotService.performThirdPartySlotAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of third party slots archived: " + result.getNumChanges());
        } else {
          System.out.println("No third party slots were archived.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201306.UpdateResult

        // Create action.
        DeactivateLabels action = new DeactivateLabels();

        // Perform action.
        UpdateResult result = labelService.performLabelAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of labels deactivated: " + result.getNumChanges());
        } else {
          System.out.println("No labels were deactivated.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201306.UpdateResult

        // Create action.
        DeleteUserTeamAssociations action = new DeleteUserTeamAssociations();

        // Perform action.
        UpdateResult result =
            userTeamAssociationService.performUserTeamAssociationAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of teams that the user was removed from: "
              + result.getNumChanges());
        } else {
          System.out.println("No user team associations were deleted.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201306.UpdateResult

        // Create action.
        DeactivateUsers action = new DeactivateUsers();

        // Perform action.
        UpdateResult result = userService.performUserAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of users deactivated: " + result.getNumChanges());
        } else {
          System.out.println("No users were deactivated.");
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of com.google.api.ads.dfp.v201306.UpdateResult

        // Create action.
        DeactivateCreativeWrappers action = new DeactivateCreativeWrappers();

        // Perform action.
        UpdateResult result =
            creativeWrapperService.performCreativeWrapperAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of creative wrappers deactivated: " + result.getNumChanges());
        } else {
          System.out.println("No creative wrappers were deactivated.");
        }
      }
    } catch (Exception e) {
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.