ExcludedLocationSelector
Contains the methods for filtering and ordering excluded locations. For information about selectors, see Selectors.
Example usage:
var shoppingCampaign = AdsApp.shoppingCampaigns().withIds(["123456789"]).get().next();
var iterator = shoppingCampaign.targeting().excludedLocations()
.withLimit(10)
.get();
while (iterator.hasNext()) {
var excludedLocation = iterator.next();
}
Methods
Method Name | Return Type | Description |
---|---|---|
get | ExcludedLocationIterator | Gets an iterator used to iterate through the list of excluded locations. |
withLimit(int limit) | ExcludedLocationSelector | Gets the top n excluded locations that match the selection criteria. |
get
Gets an iterator uses to iterate through the list of excluded locations.
Returns
Type | Description |
---|---|
ExcludedLocationIterator | An iterator used to iterate through the excluded locations. |
withLimit(int limit)
Gets the top n excluded locations that match the selection criteria.
Arguments
Name | Type | Description |
---|---|---|
limit | int | The number of excluded locations to return. The actual number may be less. |
Returns
Type | Description |
---|---|
ExcludedLocationSelector | Selector with limit applied. |
See also
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk