Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesUserList

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb

Overview

A user list. This is a list of users a customer may target.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesUserList

Returns a new instance of GoogleAdsSearchads360V0ResourcesUserList.



7702
7703
7704
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7702

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idFixnum

Output only. Id of the user list. Corresponds to the JSON property id

Returns:

  • (Fixnum)


7683
7684
7685
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7683

def id
  @id
end

#nameString

Name of this user list. Depending on its access_reason, the user list name may not be unique (for example, if access_reason=SHARED) Corresponds to the JSON property name

Returns:

  • (String)


7689
7690
7691
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7689

def name
  @name
end

#resource_nameString

Immutable. The resource name of the user list. User list resource names have the form: customers/customer_id/userLists/user_list_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


7695
7696
7697
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7695

def resource_name
  @resource_name
end

#typeString

Output only. Type of this list. This field is read-only. Corresponds to the JSON property type

Returns:

  • (String)


7700
7701
7702
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7700

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7707
7708
7709
7710
7711
7712
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7707

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @type = args[:type] if args.key?(:type)
end