Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb
Overview
A resource message representing a GA4 Audience.
Instance Attribute Summary collapse
-
#ads_personalization_enabled ⇒ Boolean
(also: #ads_personalization_enabled?)
Output only.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Required.
-
#display_name ⇒ String
Required.
-
#event_trigger ⇒ Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudienceEventTrigger
Specifies an event to log when a user joins the Audience.
-
#exclusion_duration_mode ⇒ String
Immutable.
-
#filter_clauses ⇒ Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudienceFilterClause>
Required.
-
#membership_duration_days ⇒ Fixnum
Required.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaAudience
constructor
A new instance of GoogleAnalyticsAdminV1alphaAudience.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaAudience
Returns a new instance of GoogleAnalyticsAdminV1alphaAudience.
952 953 954 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 952 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ads_personalization_enabled ⇒ Boolean Also known as: ads_personalization_enabled?
Output only. It is automatically set by GA to false if this is an NPA Audience
and is excluded from ads personalization.
Corresponds to the JSON property adsPersonalizationEnabled
904 905 906 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 904 def ads_personalization_enabled @ads_personalization_enabled end |
#create_time ⇒ String
Output only. Time when the Audience was created.
Corresponds to the JSON property createTime
910 911 912 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 910 def create_time @create_time end |
#description ⇒ String
Required. The description of the Audience.
Corresponds to the JSON property description
915 916 917 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 915 def description @description end |
#display_name ⇒ String
Required. The display name of the Audience.
Corresponds to the JSON property displayName
920 921 922 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 920 def display_name @display_name end |
#event_trigger ⇒ Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudienceEventTrigger
Specifies an event to log when a user joins the Audience.
Corresponds to the JSON property eventTrigger
925 926 927 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 925 def event_trigger @event_trigger end |
#exclusion_duration_mode ⇒ String
Immutable. Specifies how long an exclusion lasts for users that meet the
exclusion filter. It is applied to all EXCLUDE filter clauses and is ignored
when there is no EXCLUDE filter clause in the Audience.
Corresponds to the JSON property exclusionDurationMode
932 933 934 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 932 def exclusion_duration_mode @exclusion_duration_mode end |
#filter_clauses ⇒ Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudienceFilterClause>
Required. Immutable. Unordered list. Filter clauses that define the Audience.
All clauses will be AND’ed together.
Corresponds to the JSON property filterClauses
938 939 940 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 938 def filter_clauses @filter_clauses end |
#membership_duration_days ⇒ Fixnum
Required. Immutable. The duration a user should stay in an Audience. It cannot
be set to more than 540 days.
Corresponds to the JSON property membershipDurationDays
944 945 946 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 944 def membership_duration_days @membership_duration_days end |
#name ⇒ String
Output only. The resource name for this Audience resource. Format: properties/
propertyId
/audiences/audienceId
Corresponds to the JSON property name
950 951 952 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 950 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
957 958 959 960 961 962 963 964 965 966 967 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 957 def update!(**args) @ads_personalization_enabled = args[:ads_personalization_enabled] if args.key?(:ads_personalization_enabled) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @event_trigger = args[:event_trigger] if args.key?(:event_trigger) @exclusion_duration_mode = args[:exclusion_duration_mode] if args.key?(:exclusion_duration_mode) @filter_clauses = args[:filter_clauses] if args.key?(:filter_clauses) @membership_duration_days = args[:membership_duration_days] if args.key?(:membership_duration_days) @name = args[:name] if args.key?(:name) end |