Returns the type of this entity as a String, in this case,
"UserList".
Return values:
Type
Description
String
Type of this entity: "UserList".
getId()
Returns the ID of the user list.
Return values:
Type
Description
String
The ID of the user list.
getMembershipLifeSpan()
Returns the number of days a user's cookie stays on your list since its
most recent addition to the list.
Return values:
Type
Description
long
Number of days a user is a member.
getName()
Returns the name of the user list.
Return values:
Type
Description
String
Name of the user list.
getResourceName()
Returns the resource name of the user list.
Return values:
Type
Description
String
The resource name of the user list.
getSizeForDisplay()
Estimated number of users in this user list, on the Google Display Network.
This value is null if the number of users has not yet been
determined.
Return values:
Type
Description
long
Number of members in the list.
getSizeForSearch()
Estimated number of users in this user list in the google.com domain. These
are the users available for targeting in search campaigns. This value is
null if the number of users has not yet been determined.
Return values:
Type
Description
long
Number of members in the list.
getSizeRangeForDisplay()
Size range in terms of number of users of the UserList for ads on Google
Display Network.
Return values:
Type
Description
String
Size range of the list.
getSizeRangeForSearch()
Size range in terms of number of users of the UserList, for Search ads.
Return values:
Type
Description
String
Size range of the list.
getType()
Type of this list: remarketing/logical/external remarketing. Enumerations:
UNKNOWN, REMARKETING, LOGICAL, EXTERNAL_REMARKETING, RULE_BASED, SIMILAR,
CRM_BASED.
Return values:
Type
Description
String
Type type of user list.
isClosed()
Is the user list closed to new members being added.
Return values:
Type
Description
boolean
true if user list not adding more members,
false if it is accruing new members.
isEligibleForDisplay()
Is the user list eligible for display campaigns/ad groups.
Return values:
Type
Description
boolean
true if user list is eligible for display,
false if it is NOT eligible for display.
isEligibleForSearch()
Is the user list eligible for search campaigns/ad groups.
Return values:
Type
Description
boolean
true if user list is eligible for search,
false if it is NOT eligible for search.
isOpen()
Is the user list accruing new members.
Return values:
Type
Description
boolean
true if user list accruing new members,
false if it is NOT accruing new members.
isReadOnly()
Is the user list read only.
Return values:
Type
Description
boolean
true if user list is read only, false if
it is editable.
open()
Open user list to accrue new members.
Returns nothing.
setDescription(description)
Sets the description of the user list.
Returns nothing.
Arguments:
Name
Type
Description
description
String
The new description for the user list.
setMembershipLifeSpan(membershipLifeSpan)
Sets the number of days a user's cookie stays on your list since its most
recent addition to the list. This field must be between 0 and 540
inclusive. However, for CRM based user lists, this field can be set to
10000 which means no expiration.
Returns nothing.
Arguments:
Name
Type
Description
membershipLifeSpan
long
Number of days a user is a member.
setName(name)
Sets the name of the user list.
Returns nothing.
Arguments:
Name
Type
Description
name
String
The new name for user list.
targetedAdGroups()
Returns a selector of all the search/display ad groups targeting this user
list.
[null,null,["Last updated 2024-12-18 UTC."],[[["Represents a Google Ads user list, providing methods to manage its membership, targeting, and properties."],["Enables control over user list settings, including opening/closing to new members, setting membership lifespan, and updating descriptions."],["Provides access to selectors for ad groups and campaigns that are targeting or negatively targeting the user list."],["Offers methods to retrieve key information about the user list, such as its ID, name, size, type, and eligibility for display and search campaigns."]]],[]]