src/Google/AdsApi/AdManager/Util/v201805/ReportDownloader.php
public function waitForReportToFinish()
    {
        $reportJobStatus = $this->reportService
            ->getReportJobStatus($this->reportJobId);
        while ($reportJobStatus === ReportJobStatus::IN_PROGRESS) {
            $this->logger->info(
                sprintf(
                    'Report job ID %d has status %s. Sleeping for %d seconds '
                    . 'before polling again for report status.',
                    $this->reportJobId,
                    $reportJobStatus,
                    $this->pollTimeSeconds
                )
            );
            sleep($this->pollTimeSeconds);
            $reportJobStatus = $this->reportService
                ->getReportJobStatus($this->reportJobId);
        }

        return $reportJobStatus === ReportJobStatus::COMPLETED;
    }
public function waitForReportToFinish()
    {
        $reportJobStatus = $this->reportService
            ->getReportJobStatus($this->reportJobId);
        while ($reportJobStatus === ReportJobStatus::IN_PROGRESS) {
            $this->logger->info(
                sprintf(
                    'Report job ID %d has status %s. Sleeping for %d seconds '
                    . 'before polling again for report status.',
                    $this->reportJobId,
                    $reportJobStatus,
                    $this->pollTimeSeconds
                )
            );
            sleep($this->pollTimeSeconds);
            $reportJobStatus = $this->reportService
                ->getReportJobStatus($this->reportJobId);
        }

        return $reportJobStatus === ReportJobStatus::COMPLETED;
    }
public function waitForReportToFinish ( ) { $ reportJobStatus = $ this -> reportService -> getReportJobStatus ( $ this -> reportJobId ) ; while ( $ reportJobStatus === ReportJobStatus :: IN_PROGRESS ) { $ this -> logger -> info ( sprintf ( 'Report job ID %d has status %s. Sleeping for %d seconds ' . 'before polling again for report status.' , $ this -> reportJobId , $ reportJobStatus , $ this -> pollTimeSeconds ) ) ; sleep ( $ this -> pollTimeSeconds ) ; $ reportJobStatus = $ this -> reportService -> getReportJobStatus ( $ this -> reportJobId ) ; } return $ reportJobStatus === ReportJobStatus :: COMPLETED ; }
Blocks and waits for the report to finish running by polling for the
report's status and sleeping in between polls.

@return bool whether or not the report finished successfully
Blocks and waits for the report to finish running by polling for the report s status and sleeping in between polls .