protected function setRequestDimensions($request, array $handler)
    {
        if (!empty($handler['query']['dimensions'])) {

            $dimensions = array();

            foreach ((array) $handler['query']['dimensions'] as $name) {
                $dimension = new \Google_Service_AnalyticsReporting_Dimension;
                $dimension->setName($name);
                $dimensions[] = $dimension;
            }

            $request->setDimensions($dimensions);
        }
    }
protected function setRequestDimensions($request, array $handler)
    {
        if (!empty($handler['query']['dimensions'])) {

            $dimensions = array();

            foreach ((array) $handler['query']['dimensions'] as $name) {
                $dimension = new \Google_Service_AnalyticsReporting_Dimension;
                $dimension->setName($name);
                $dimensions[] = $dimension;
            }

            $request->setDimensions($dimensions);
        }
    }
protected function setRequestDimensions ( $ request , array $ handler ) { if ( ! empty ( $ handler [ 'query' ] [ 'dimensions' ] ) ) { $ dimensions = array ( ) ; foreach ( ( array ) $ handler [ 'query' ] [ 'dimensions' ] as $ name ) { $ dimension = new \ Google_Service_AnalyticsReporting_Dimension ; $ dimension -> setName ( $ name ) ; $ dimensions [ ] = $ dimension ; } $ request -> setDimensions ( $ dimensions ) ; } }
Sets request dimensions from a handler
@param \Google_Service_AnalyticsReporting_ReportRequest $request
@param array $handler
Sets request dimensions from a handler