NAME
Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator
SYNOPSIS
my $search_request =
Google::Ads::GoogleAds::V13::Services::GoogleAdsService::SearchGoogleAdsRequest
->new({
customerId => $customer_id,
query => "SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.id",
pageSize => 100
});
my $google_ads_service = $api_client->GoogleAdsService();
my $iterator = Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator->new({
service => $google_ads_service,
request => $search_request
});
while ($iterator->has_next) {
my $google_ads_row = $iterator->next;
# Do something with each GooglerAdsRow object.
}
DESCRIPTION
The iterator class to access all rows that match the search query. The iterator should be constructed with a Google::Ads::GoogleAds::V13::Services::GoogleAdsService and a Google::Ads::GoogleAds::V13::Services::GoogleAdsService::SearchGoogleAdsRequest.
my $iterator = Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator->new({
service => $google_ads_service,
request => $search_request
});
METHODS
has_next
Checks whether the iteration has more elements.
Returns
True, if the iteration has more elements. False, otherwise.
next
Returns the next element in the iteration.
Returns
The next element in the iteration if there's any, otherwise undef.
LICENSE AND COPYRIGHT
Copyright 2019 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
REPOSITORY INFORMATION
$Rev: $
$LastChangedBy: $
$Id: $