Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAdGroup

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 ad group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAdGroup

Returns a new instance of GoogleAdsSearchads360V0ResourcesAdGroup.



1963
1964
1965
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1963

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

Instance Attribute Details

#ad_rotation_modeString

The ad rotation mode of the ad group. Corresponds to the JSON property adRotationMode

Returns:

  • (String)


1927
1928
1929
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1927

def ad_rotation_mode
  @ad_rotation_mode
end

#cpc_bid_microsFixnum

The maximum CPC (cost-per-click) bid. Corresponds to the JSON property cpcBidMicros

Returns:

  • (Fixnum)


1932
1933
1934
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1932

def cpc_bid_micros
  @cpc_bid_micros
end

#idFixnum

Output only. The ID of the ad group. Corresponds to the JSON property id

Returns:

  • (Fixnum)


1937
1938
1939
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1937

def id
  @id
end

#nameString

The name of the ad group. This field is required and should not be empty when creating new ad groups. It must contain fewer than 255 UTF-8 full-width characters. It must not contain any null (code point 0x0), NL line feed (code point 0xA) or carriage return (code point 0xD) characters. Corresponds to the JSON property name

Returns:

  • (String)


1945
1946
1947
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1945

def name
  @name
end

#resource_nameString

Immutable. The resource name of the ad group. Ad group resource names have the form: customers/customer_id/adGroups/ad_group_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


1951
1952
1953
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1951

def resource_name
  @resource_name
end

#statusString

The status of the ad group. Corresponds to the JSON property status

Returns:

  • (String)


1956
1957
1958
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1956

def status
  @status
end

#typeString

Immutable. The type of the ad group. Corresponds to the JSON property type

Returns:

  • (String)


1961
1962
1963
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1961

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1968
1969
1970
1971
1972
1973
1974
1975
1976
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1968

def update!(**args)
  @ad_rotation_mode = args[:ad_rotation_mode] if args.key?(:ad_rotation_mode)
  @cpc_bid_micros = args[:cpc_bid_micros] if args.key?(:cpc_bid_micros)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
end