src/Google/AdsApi/AdWords/Query/v201809/ServiceQuery.php
public function nextPage(Page $previousPage = null)
    {
        if (is_null($previousPage)) {
            $this->startIndex = $this->startIndex + $this->pageSize;
            return $this;
        }

        if (!($previousPage instanceof AdGroupBidLandscapePage) &&
            !($previousPage instanceof CriterionBidLandscapePage)) {
            throw new InvalidArgumentException('The page object must be an' .
                ' instance of either `AdGroupBidLandscapePage` or' .
                ' `CriterionBidLandscapePage` type');
        }

        $this->startIndex = $this->startIndex +
            self::countLandscapePoints($previousPage);

        return $this;
    }
public function nextPage(Page $previousPage = null)
    {
        if (is_null($previousPage)) {
            $this->startIndex = $this->startIndex + $this->pageSize;
            return $this;
        }

        if (!($previousPage instanceof AdGroupBidLandscapePage) &&
            !($previousPage instanceof CriterionBidLandscapePage)) {
            throw new InvalidArgumentException('The page object must be an' .
                ' instance of either `AdGroupBidLandscapePage` or' .
                ' `CriterionBidLandscapePage` type');
        }

        $this->startIndex = $this->startIndex +
            self::countLandscapePoints($previousPage);

        return $this;
    }
public function nextPage ( Page $ previousPage = null ) { if ( is_null ( $ previousPage ) ) { $ this -> startIndex = $ this -> startIndex + $ this -> pageSize ; return $ this ; } if ( ! ( $ previousPage instanceof AdGroupBidLandscapePage ) && ! ( $ previousPage instanceof CriterionBidLandscapePage ) ) { throw new InvalidArgumentException ( 'The page object must be an' . ' instance of either `AdGroupBidLandscapePage` or' . ' `CriterionBidLandscapePage` type' ) ; } $ this -> startIndex = $ this -> startIndex + self :: countLandscapePoints ( $ previousPage ) ; return $ this ; }
Increases the start index by the current page size.

<p>When querying against the `DataService`, an instance of
`AdGroupBidLandscapePage` or `AdGroupBidLandscapePage` is required for
this function to compute the current page size. These special page
classes have their own paging mechanism which is different from other
services. For details, see
https://developers.google.com/adwords/api/docs/guides/bid-landscapes#paging_through_results

@param Page|null $previousPage optional, the previously fetched page
which must be an instance of either `AdGroupBidLandscapePage` or
`AdGroupBidLandscapePage`
@return ServiceQuery the current `ServiceQuery` instance for chaining
Increases the start index by the current page size .