Examples of runReportJob()


Examples of com.google.api.ads.dfp.v201208.ReportServiceInterface.runReportJob()

      reportQuery.setCustomFieldIds(ArrayUtils.toPrimitive(customFieldIds.toArray(new Long[]{})));
      reportQuery.setColumns(new Column[] {Column.AD_SERVER_IMPRESSIONS});
      reportJob.setReportQuery(reportQuery);

      // Run report job.
      reportJob = reportService.runReportJob(reportJob);

      do {
        System.out.println("Report with ID '" + reportJob.getId() + "' is still running.");
        Thread.sleep(30000);
        // Get report job.
View Full Code Here

Examples of com.google.api.ads.dfp.v201208.ReportServiceInterface.runReportJob()

      reportQuery.setColumns(new Column[] {Column.AD_SERVER_IMPRESSIONS,
          Column.AD_SERVER_CPM_AND_CPC_REVENUE, Column.AD_SERVER_AVERAGE_ECPM});
      reportJob.setReportQuery(reportQuery);

      // Run report job.
      reportJob = reportService.runReportJob(reportJob);

      do {
        System.out.println("Report with ID '" + reportJob.getId() + "' is still running.");
        Thread.sleep(30000);
        // Get report job.
View Full Code Here

Examples of com.google.api.ads.dfp.v201208.ReportServiceInterface.runReportJob()

          Column.TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE});
      reportQuery.setAdUnitView(ReportQueryAdUnitView.HIERARCHICAL);
      reportJob.setReportQuery(reportQuery);

      // Run report job.
      reportJob = reportService.runReportJob(reportJob);

      do {
        System.out.println("Report with ID '" + reportJob.getId() + "' is still running.");
        Thread.sleep(30000);
        // Get report job.
View Full Code Here

Examples of com.google.api.ads.dfp.v201208.ReportServiceInterface.runReportJob()

          Column.AD_SERVER_CLICKS, Column.AD_SERVER_CTR,
          Column.AD_SERVER_CPM_AND_CPC_REVENUE, Column.AD_SERVER_AVERAGE_ECPM});
      reportJob.setReportQuery(reportQuery);

      // Run report job.
      reportJob = reportService.runReportJob(reportJob);

      do {
        System.out.println("Report with ID '" + reportJob.getId() + "' is still running.");
        Thread.sleep(30000);
        // Get report job.
View Full Code Here

Examples of com.google.api.ads.dfp.v201211.ReportServiceInterface.runReportJob()

    reportJob.setReportQuery(reportQuery);

    System.out.println("Running report job.");

    // Run report job.
    long reportJobId = reportService.runReportJob(reportJob).getId();

    final ReportUtils reportUtils = new ReportUtils(reportService, reportJobId);

    // Change to your file location.
    final String gzCsvPath = "/path/to/filename.csv.gz";
View Full Code Here

Examples of com.google.api.ads.dfp.v201211.ReportServiceInterface.runReportJob()

    reportJob.setReportQuery(reportQuery);

    System.out.println("Running report job.");

    // Run report job.
    long reportJobId = reportService.runReportJob(reportJob).getId();

    final ReportUtils reportUtils = new ReportUtils(reportService, reportJobId);

    // Change to use synchronous or asynchronous downloading.
    boolean useSynchronous = true;
View Full Code Here

Examples of com.google.api.ads.dfp.v201211.ReportServiceInterface.runReportJob()

          Column.MERGED_AD_SERVER_CLICKS, Column.MERGED_AD_SERVER_CTR,
          Column.MERGED_AD_SERVER_CPM_AND_CPC_REVENUE, Column.MERGED_AD_SERVER_AVERAGE_ECPM});
      reportJob.setReportQuery(reportQuery);

      // Run report job.
      reportJob = reportService.runReportJob(reportJob);

      do {
        System.out.println("Report with ID '" + reportJob.getId() + "' is still running.");
        Thread.sleep(30000);
        // Get report job.
View Full Code Here

Examples of com.google.api.ads.dfp.v201211.ReportServiceInterface.runReportJob()

      reportQuery.setCustomFieldIds(ArrayUtils.toPrimitive(customFieldIds.toArray(new Long[]{})));
      reportQuery.setColumns(new Column[] {Column.AD_SERVER_IMPRESSIONS});
      reportJob.setReportQuery(reportQuery);

      // Run report job.
      reportJob = reportService.runReportJob(reportJob);

      do {
        System.out.println("Report with ID '" + reportJob.getId() + "' is still running.");
        Thread.sleep(30000);
        // Get report job.
View Full Code Here

Examples of com.google.api.ads.dfp.v201211.ReportServiceInterface.runReportJob()

      reportQuery.setColumns(new Column[] {Column.AD_SERVER_IMPRESSIONS,
          Column.AD_SERVER_CPM_AND_CPC_REVENUE, Column.AD_SERVER_AVERAGE_ECPM});
      reportJob.setReportQuery(reportQuery);

      // Run report job.
      reportJob = reportService.runReportJob(reportJob);

      do {
        System.out.println("Report with ID '" + reportJob.getId() + "' is still running.");
        Thread.sleep(30000);
        // Get report job.
View Full Code Here

Examples of com.google.api.ads.dfp.v201211.ReportServiceInterface.runReportJob()

          Column.TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE});
      reportQuery.setAdUnitView(ReportQueryAdUnitView.HIERARCHICAL);
      reportJob.setReportQuery(reportQuery);

      // Run report job.
      reportJob = reportService.runReportJob(reportJob);

      do {
        System.out.println("Report with ID '" + reportJob.getId() + "' is still running.");
        Thread.sleep(30000);
        // Get report job.
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.