Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCustomColumn

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 custom column. See Search Ads 360 custom column at https://support.google. com/sa360/answer/9633916

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCustomColumn

Returns a new instance of GoogleAdsSearchads360V0ResourcesCustomColumn.



3590
3591
3592
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3590

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

Instance Attribute Details

#descriptionString

Output only. User-defined description of the custom column. Corresponds to the JSON property description

Returns:

  • (String)


3540
3541
3542
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3540

def description
  @description
end

#idFixnum

Output only. ID of the custom column. Corresponds to the JSON property id

Returns:

  • (Fixnum)


3545
3546
3547
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3545

def id
  @id
end

#nameString

Output only. User-defined name of the custom column. Corresponds to the JSON property name

Returns:

  • (String)


3550
3551
3552
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3550

def name
  @name
end

#queryableBoolean Also known as: queryable?

Output only. True when the custom column is available to be used in the query of SearchAds360Service.Search and SearchAds360Service.SearchStream. Corresponds to the JSON property queryable

Returns:

  • (Boolean)


3556
3557
3558
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3556

def queryable
  @queryable
end

#referenced_system_columnsArray<String>

Output only. The list of the referenced system columns of this custom column. For example, A custom column "sum of impressions and clicks" has referenced system columns of "metrics.clicks", "metrics.impressions". Corresponds to the JSON property referencedSystemColumns

Returns:

  • (Array<String>)


3564
3565
3566
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3564

def referenced_system_columns
  @referenced_system_columns
end

#references_attributesBoolean Also known as: references_attributes?

Output only. True when the custom column is referring to one or more attributes. Corresponds to the JSON property referencesAttributes

Returns:

  • (Boolean)


3570
3571
3572
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3570

def references_attributes
  @references_attributes
end

#references_metricsBoolean Also known as: references_metrics?

Output only. True when the custom column is referring to one or more metrics. Corresponds to the JSON property referencesMetrics

Returns:

  • (Boolean)


3576
3577
3578
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3576

def references_metrics
  @references_metrics
end

#resource_nameString

Immutable. The resource name of the custom column. Custom column resource names have the form: customers/customer_id/customColumns/custom_column_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


3583
3584
3585
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3583

def resource_name
  @resource_name
end

#value_typeString

Output only. The type of the result value of the custom column. Corresponds to the JSON property valueType

Returns:

  • (String)


3588
3589
3590
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3588

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3595

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @queryable = args[:queryable] if args.key?(:queryable)
  @referenced_system_columns = args[:referenced_system_columns] if args.key?(:referenced_system_columns)
  @references_attributes = args[:references_attributes] if args.key?(:references_attributes)
  @references_metrics = args[:references_metrics] if args.key?(:references_metrics)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @value_type = args[:value_type] if args.key?(:value_type)
end