Examples of UpdateResult


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

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

        // Perform action.
        UpdateResult result = lineItemService.performLineItemAction(action, filterStatement);

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

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