Examples of UpdateResult


Examples of com.google.api.ads.dfp.v201308.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.v201308.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.v201308.UpdateResult

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

        // Perform action.
        UpdateResult result = orderService.performOrderAction(action, filterStatement);

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

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

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

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

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

Examples of com.google.api.ads.dfp.v201308.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.v201311.UpdateResult

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

        // Perform action.
        UpdateResult result = customFieldService.performCustomFieldAction(action, filterStatement);

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

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

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

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

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

Examples of com.google.api.ads.dfp.v201311.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

Examples of com.google.api.ads.dfp.v201311.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.v201311.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
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.