Class: Google::Apis::RealtimebiddingV1::UserList

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

Overview

Represents an Authorized Buyers user list. Authorized Buyers can create/update/ list user lists. Once a user list is created in the system, Authorized Buyers can add users to the user list using the bulk uploader API. Alternatively, users can be added by hosting a tag on the advertiser's page.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserList

Returns a new instance of UserList.



1694
1695
1696
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1694

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

Instance Attribute Details

#descriptionString

The description for the user list. Corresponds to the JSON property description

Returns:

  • (String)


1659
1660
1661
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1659

def description
  @description
end

#display_nameString

Required. Display name of the user list. This must be unique across all user lists for a given account. Corresponds to the JSON property displayName

Returns:

  • (String)


1665
1666
1667
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1665

def display_name
  @display_name
end

#membership_duration_daysFixnum

Required. The number of days a user's cookie stays on the user list. The field must be between 0 and 540 inclusive. Corresponds to the JSON property membershipDurationDays

Returns:

  • (Fixnum)


1671
1672
1673
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1671

def membership_duration_days
  @membership_duration_days
end

#nameString

Output only. Name of the user list that must follow the pattern buyers/buyer /userLists/user_list, wherebuyerrepresents the account ID of the buyer who owns the user list. For a bidder accessing user lists on behalf of a child seat buyer,buyerrepresents the account ID of the child seat buyer. user_list`is an int64 identifier assigned by Google to uniquely identify a user list. Corresponds to the JSON propertyname`

Returns:

  • (String)


1681
1682
1683
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1681

def name
  @name
end

#statusString

Output only. The status of the user list. A new user list starts out as open. Corresponds to the JSON property status

Returns:

  • (String)


1686
1687
1688
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1686

def status
  @status
end

#url_restrictionGoogle::Apis::RealtimebiddingV1::UrlRestriction

Represents the URL restriction (for the URL captured by the pixel callback) for a user list. Corresponds to the JSON property urlRestriction



1692
1693
1694
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1692

def url_restriction
  @url_restriction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1699
1700
1701
1702
1703
1704
1705
1706
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1699

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @membership_duration_days = args[:membership_duration_days] if args.key?(:membership_duration_days)
  @name = args[:name] if args.key?(:name)
  @status = args[:status] if args.key?(:status)
  @url_restriction = args[:url_restriction] if args.key?(:url_restriction)
end