Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonAssetInteractionTarget

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

An AssetInteractionTarget segment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonAssetInteractionTarget

Returns a new instance of GoogleAdsSearchads360V0CommonAssetInteractionTarget.



133
134
135
# File 'lib/google/apis/searchads360_v0/classes.rb', line 133

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

Instance Attribute Details

#assetString

The asset resource name. Corresponds to the JSON property asset

Returns:

  • (String)


123
124
125
# File 'lib/google/apis/searchads360_v0/classes.rb', line 123

def asset
  @asset
end

#interaction_on_this_assetBoolean Also known as: interaction_on_this_asset?

Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics. Indicates whether the interaction metrics occurred on the asset itself or a different asset or ad unit. Corresponds to the JSON property interactionOnThisAsset

Returns:

  • (Boolean)


130
131
132
# File 'lib/google/apis/searchads360_v0/classes.rb', line 130

def interaction_on_this_asset
  @interaction_on_this_asset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



138
139
140
141
# File 'lib/google/apis/searchads360_v0/classes.rb', line 138

def update!(**args)
  @asset = args[:asset] if args.key?(:asset)
  @interaction_on_this_asset = args[:interaction_on_this_asset] if args.key?(:interaction_on_this_asset)
end