Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesConversionAction

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 conversion action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesConversionAction

Returns a new instance of GoogleAdsSearchads360V0ResourcesConversionAction.



6477
6478
6479
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6477

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

Instance Attribute Details

#app_idString

App ID for an app conversion action. Corresponds to the JSON property appId

Returns:

  • (String)


6381
6382
6383
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6381

def app_id
  @app_id
end

#attribution_model_settingsGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesConversionActionAttributionModelSettings

Settings related to this conversion action's attribution model. Corresponds to the JSON property attributionModelSettings



6386
6387
6388
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6386

def attribution_model_settings
  @attribution_model_settings
end

#categoryString

The category of conversions reported for this conversion action. Corresponds to the JSON property category

Returns:

  • (String)


6391
6392
6393
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6391

def category
  @category
end

#click_through_lookback_window_daysFixnum

The maximum number of days that may elapse between an interaction (for example, a click) and a conversion event. Corresponds to the JSON property clickThroughLookbackWindowDays

Returns:

  • (Fixnum)


6397
6398
6399
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6397

def click_through_lookback_window_days
  @click_through_lookback_window_days
end

#creation_timeString

Output only. Timestamp of the Floodlight activity's creation, formatted in ISO 8601. Corresponds to the JSON property creationTime

Returns:

  • (String)


6403
6404
6405
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6403

def creation_time
  @creation_time
end

#floodlight_settingsGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesConversionActionFloodlightSettings

Settings related to a Floodlight conversion action. Corresponds to the JSON property floodlightSettings



6408
6409
6410
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6408

def floodlight_settings
  @floodlight_settings
end

#idFixnum

Output only. The ID of the conversion action. Corresponds to the JSON property id

Returns:

  • (Fixnum)


6413
6414
6415
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6413

def id
  @id
end

#include_in_client_account_conversions_metricBoolean Also known as: include_in_client_account_conversions_metric?

Whether this conversion action should be included in the " client_account_conversions" metric. Corresponds to the JSON property includeInClientAccountConversionsMetric

Returns:

  • (Boolean)


6419
6420
6421
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6419

def 
  @include_in_client_account_conversions_metric
end

#include_in_conversions_metricBoolean Also known as: include_in_conversions_metric?

Output only. Whether this conversion action should be included in the " conversions" metric. Corresponds to the JSON property includeInConversionsMetric

Returns:

  • (Boolean)


6426
6427
6428
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6426

def include_in_conversions_metric
  @include_in_conversions_metric
end

#nameString

The name of the conversion action. This field is required and should not be empty when creating new conversion actions. Corresponds to the JSON property name

Returns:

  • (String)


6433
6434
6435
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6433

def name
  @name
end

#owner_customerString

Output only. The resource name of the conversion action owner customer, or null if this is a system-defined conversion action. Corresponds to the JSON property ownerCustomer

Returns:

  • (String)


6439
6440
6441
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6439

def owner_customer
  @owner_customer
end

#primary_for_goalBoolean Also known as: primary_for_goal?

If a conversion action's primary_for_goal bit is false, the conversion action is non-biddable for all campaigns regardless of their customer conversion goal or campaign conversion goal. However, custom conversion goals do not respect primary_for_goal, so if a campaign has a custom conversion goal configured with a primary_for_goal = false conversion action, that conversion action is still biddable. By default, primary_for_goal will be true if not set. In V9, primary_for_goal can only be set to false after creation through an 'update' operation because it's not declared as optional. Corresponds to the JSON property primaryForGoal

Returns:

  • (Boolean)


6451
6452
6453
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6451

def primary_for_goal
  @primary_for_goal
end

#resource_nameString

Immutable. The resource name of the conversion action. Conversion action resource names have the form: customers/customer_id/conversionActions/ conversion_action_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


6459
6460
6461
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6459

def resource_name
  @resource_name
end

#statusString

The status of this conversion action for conversion event accrual. Corresponds to the JSON property status

Returns:

  • (String)


6464
6465
6466
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6464

def status
  @status
end

#typeString

Immutable. The type of this conversion action. Corresponds to the JSON property type

Returns:

  • (String)


6469
6470
6471
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6469

def type
  @type
end

#value_settingsGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesConversionActionValueSettings

Settings related to the value for conversion events associated with this conversion action. Corresponds to the JSON property valueSettings



6475
6476
6477
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6475

def value_settings
  @value_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6482

def update!(**args)
  @app_id = args[:app_id] if args.key?(:app_id)
  @attribution_model_settings = args[:attribution_model_settings] if args.key?(:attribution_model_settings)
  @category = args[:category] if args.key?(:category)
  @click_through_lookback_window_days = args[:click_through_lookback_window_days] if args.key?(:click_through_lookback_window_days)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @floodlight_settings = args[:floodlight_settings] if args.key?(:floodlight_settings)
  @id = args[:id] if args.key?(:id)
  @include_in_client_account_conversions_metric = args[:include_in_client_account_conversions_metric] if args.key?(:include_in_client_account_conversions_metric)
  @include_in_conversions_metric = args[:include_in_conversions_metric] if args.key?(:include_in_conversions_metric)
  @name = args[:name] if args.key?(:name)
  @owner_customer = args[:owner_customer] if args.key?(:owner_customer)
  @primary_for_goal = args[:primary_for_goal] if args.key?(:primary_for_goal)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
  @value_settings = args[:value_settings] if args.key?(:value_settings)
end