Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.84 KB

ExcludedLocationSelector.md

File metadata and controls

60 lines (44 loc) · 1.84 KB
title description author ms.author ms.service ms.topic
ExcludedLocationSelector object
Contains the methods for filtering the list of excluded locations to return.
jonmeyers
jonmeyers
bing-ads-scripts
article

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