Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator
my $search_request = Google::Ads::GoogleAds::V14::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. }
The iterator class to access all rows that match the search query. The iterator should be constructed with a Google::Ads::GoogleAds::V14::Services::GoogleAdsService and a Google::Ads::GoogleAds::V14::Services::GoogleAdsService::SearchGoogleAdsRequest.
my $iterator = Google::Ads::GoogleAds::Utils::SearchGoogleAdsIterator->new({ service => $google_ads_service, request => $search_request });
Checks whether the iteration has more elements.
True, if the iteration has more elements. False, otherwise.
Returns the next element in the iteration.
The next element in the iteration if there's any, otherwise undef.
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.
$Rev: $ $LastChangedBy: $ $Id: $
To install Google::Ads::GoogleAds::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Ads::GoogleAds::Client
CPAN shell
perl -MCPAN -e shell install Google::Ads::GoogleAds::Client
For more information on module installation, please visit the detailed CPAN module installation guide.