Package com.google.api.ads.dfp.lib

Examples of com.google.api.ads.dfp.lib.ServiceAccountant


    // Since autoCreateAccountant is set to true in the service accountant
    // manager, all service accountants will be created during this method call.
    performOperations(companyService, userService, inventoryService, creativeService);

    // Get the CompanyService ServiceAccountant.
    ServiceAccountant companyServiceAccountant =
        serviceAccountantManager.getServiceAccountant(companyService);

    // Get the UserService ServiceAccountant.
    ServiceAccountant userServiceAccountant =
        serviceAccountantManager.getServiceAccountant(userService);

    // Get the InventoryService ServiceAccountant.
    ServiceAccountant inventoryServiceAccountant =
        serviceAccountantManager.getServiceAccountant(inventoryService);

    // Get the CreativeService ServiceAccountant.
    ServiceAccountant creativeServiceAccountant =
        serviceAccountantManager.getServiceAccountant(creativeService);

    // Retrieve the total response time for each service object we used.
    System.out.println("CampaignService used "
        + companyServiceAccountant.getTotalResponseTime() + " millisecond(s).");
    System.out.println("UserService used "
        + userServiceAccountant.getTotalResponseTime() + " millisecond(s).");
    System.out.println("InventoryService used "
        + inventoryServiceAccountant.getTotalResponseTime() + " millisecond(s).");
    System.out.println("CreativeService used "
        + creativeServiceAccountant.getTotalResponseTime() + " millisecond(s).");

    // Retrieve the total amounts using the ServiceAccountantManager.
    System.out.println("There were " + ServiceAccountantManager.getInstance().getTotalResponseTime()
        + " millisecond(s) used all together.");
    System.out.println("There were "
View Full Code Here

TOP

Related Classes of com.google.api.ads.dfp.lib.ServiceAccountant

Copyright © 2018 www.massapicom. 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.