Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAdGroup
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAdGroup
- 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
-
#ad_rotation_mode ⇒ String
The ad rotation mode of the ad group.
-
#cpc_bid_micros ⇒ Fixnum
The maximum CPC (cost-per-click) bid.
-
#id ⇒ Fixnum
Output only.
-
#name ⇒ String
The name of the ad group.
-
#resource_name ⇒ String
Immutable.
-
#status ⇒ String
The status of the ad group.
-
#type ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAdGroup
constructor
A new instance of GoogleAdsSearchads360V0ResourcesAdGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_mode ⇒ String
The ad rotation mode of the ad group.
Corresponds to the JSON property adRotationMode
1927 1928 1929 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1927 def ad_rotation_mode @ad_rotation_mode end |
#cpc_bid_micros ⇒ Fixnum
The maximum CPC (cost-per-click) bid.
Corresponds to the JSON property cpcBidMicros
1932 1933 1934 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1932 def cpc_bid_micros @cpc_bid_micros end |
#id ⇒ Fixnum
Output only. The ID of the ad group.
Corresponds to the JSON property id
1937 1938 1939 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1937 def id @id end |
#name ⇒ String
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
1945 1946 1947 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1945 def name @name end |
#resource_name ⇒ String
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`
1951 1952 1953 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1951 def resource_name @resource_name end |
#status ⇒ String
The status of the ad group.
Corresponds to the JSON property status
1956 1957 1958 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1956 def status @status end |
#type ⇒ String
Immutable. The type of the ad group.
Corresponds to the JSON property type
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 |