Class: Google::Apis::AnalyticsV3::RemarketingAudience

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

Overview

JSON template for an Analytics remarketing audience.

Defined Under Namespace

Classes: AudienceDefinition, StateBasedAudienceDefinition

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RemarketingAudience

Returns a new instance of RemarketingAudience



4488
4489
4490
# File 'generated/google/apis/analytics_v3/classes.rb', line 4488

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

Instance Attribute Details

#account_idString

Account ID to which this remarketing audience belongs. Corresponds to the JSON property accountId

Returns:

  • (String)


4417
4418
4419
# File 'generated/google/apis/analytics_v3/classes.rb', line 4417

def 
  @account_id
end

#audience_definitionGoogle::Apis::AnalyticsV3::RemarketingAudience::AudienceDefinition

The simple audience definition that will cause a user to be added to an audience. Corresponds to the JSON property audienceDefinition



4423
4424
4425
# File 'generated/google/apis/analytics_v3/classes.rb', line 4423

def audience_definition
  @audience_definition
end

#audience_typeString

The type of audience, either SIMPLE or STATE_BASED. Corresponds to the JSON property audienceType

Returns:

  • (String)


4428
4429
4430
# File 'generated/google/apis/analytics_v3/classes.rb', line 4428

def audience_type
  @audience_type
end

#createdDateTime

Time this remarketing audience was created. Corresponds to the JSON property created

Returns:

  • (DateTime)


4433
4434
4435
# File 'generated/google/apis/analytics_v3/classes.rb', line 4433

def created
  @created
end

#descriptionString

The description of this remarketing audience. Corresponds to the JSON property description

Returns:

  • (String)


4438
4439
4440
# File 'generated/google/apis/analytics_v3/classes.rb', line 4438

def description
  @description
end

#idString

Remarketing Audience ID. Corresponds to the JSON property id

Returns:

  • (String)


4443
4444
4445
# File 'generated/google/apis/analytics_v3/classes.rb', line 4443

def id
  @id
end

#internal_web_property_idString

Internal ID for the web property to which this remarketing audience belongs. Corresponds to the JSON property internalWebPropertyId

Returns:

  • (String)


4448
4449
4450
# File 'generated/google/apis/analytics_v3/classes.rb', line 4448

def internal_web_property_id
  @internal_web_property_id
end

#kindString

Collection type. Corresponds to the JSON property kind

Returns:

  • (String)


4453
4454
4455
# File 'generated/google/apis/analytics_v3/classes.rb', line 4453

def kind
  @kind
end

#linked_ad_accountsArray<Google::Apis::AnalyticsV3::LinkedForeignAccount>

The linked ad accounts associated with this remarketing audience. A remarketing audience can have only one linkedAdAccount currently. Corresponds to the JSON property linkedAdAccounts



4459
4460
4461
# File 'generated/google/apis/analytics_v3/classes.rb', line 4459

def linked_ad_accounts
  @linked_ad_accounts
end

#linked_viewsArray<String>

The views (profiles) that this remarketing audience is linked to. Corresponds to the JSON property linkedViews

Returns:

  • (Array<String>)


4464
4465
4466
# File 'generated/google/apis/analytics_v3/classes.rb', line 4464

def linked_views
  @linked_views
end

#nameString

The name of this remarketing audience. Corresponds to the JSON property name

Returns:

  • (String)


4469
4470
4471
# File 'generated/google/apis/analytics_v3/classes.rb', line 4469

def name
  @name
end

#state_based_audience_definitionGoogle::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition

A state based audience definition that will cause a user to be added or removed from an audience. Corresponds to the JSON property stateBasedAudienceDefinition



4475
4476
4477
# File 'generated/google/apis/analytics_v3/classes.rb', line 4475

def state_based_audience_definition
  @state_based_audience_definition
end

#updatedDateTime

Time this remarketing audience was last modified. Corresponds to the JSON property updated

Returns:

  • (DateTime)


4480
4481
4482
# File 'generated/google/apis/analytics_v3/classes.rb', line 4480

def updated
  @updated
end

#web_property_idString

Web property ID of the form UA-XXXXX-YY to which this remarketing audience belongs. Corresponds to the JSON property webPropertyId

Returns:

  • (String)


4486
4487
4488
# File 'generated/google/apis/analytics_v3/classes.rb', line 4486

def web_property_id
  @web_property_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
# File 'generated/google/apis/analytics_v3/classes.rb', line 4493

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @audience_definition = args[:audience_definition] if args.key?(:audience_definition)
  @audience_type = args[:audience_type] if args.key?(:audience_type)
  @created = args[:created] if args.key?(:created)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id)
  @kind = args[:kind] if args.key?(:kind)
  @linked_ad_accounts = args[:linked_ad_accounts] if args.key?(:linked_ad_accounts)
  @linked_views = args[:linked_views] if args.key?(:linked_views)
  @name = args[:name] if args.key?(:name)
  @state_based_audience_definition = args[:state_based_audience_definition] if args.key?(:state_based_audience_definition)
  @updated = args[:updated] if args.key?(:updated)
  @web_property_id = args[:web_property_id] if args.key?(:web_property_id)
end