private static function getFeeds(
        AdWordsServices $adWordsServices,
        AdWordsSession $session
    ) {
        $feedService = $adWordsServices->get($session, FeedService::class);

        // Create paging controls.
        $totalNumEntries = 0;
        $offset = 0;
        $query = 'SELECT Id, Name, Attributes WHERE Origin="USER" AND '
            . 'FeedStatus="ENABLED"';
        $feeds = [];
        do {
            $pageQuery =
                sprintf('%s LIMIT %d,%d', $query, $offset, self::PAGE_LIMIT);

            // Make the query request.
            $page = $feedService->query($pageQuery);

            if ($page->getEntries() !== null) {
                $totalNumEntries = $page->getTotalNumEntries();
                foreach ($page->getEntries() as $feed) {
                    $feeds[] = $feed;
                }
            }
            // Advance the paging offset.
            $offset += self::PAGE_LIMIT;
        } while ($offset < $totalNumEntries);

        return $feeds;
    }