Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAdGroupAsset
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAdGroupAsset
- 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 link between an ad group and an asset.
Instance Attribute Summary collapse
-
#ad_group ⇒ String
Required.
-
#asset ⇒ String
Required.
-
#resource_name ⇒ String
Immutable.
-
#status ⇒ String
Status of the ad group asset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAdGroupAsset
constructor
A new instance of GoogleAdsSearchads360V0ResourcesAdGroupAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAdGroupAsset
Returns a new instance of GoogleAdsSearchads360V0ResourcesAdGroupAsset.
4323 4324 4325 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4323 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_group ⇒ String
Required. Immutable. The ad group to which the asset is linked.
Corresponds to the JSON property adGroup
4304 4305 4306 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4304 def ad_group @ad_group end |
#asset ⇒ String
Required. Immutable. The asset which is linked to the ad group.
Corresponds to the JSON property asset
4309 4310 4311 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4309 def asset @asset end |
#resource_name ⇒ String
Immutable. The resource name of the ad group asset. AdGroupAsset resource
names have the form: customers/customer_id/adGroupAssets/ad_group_id~
asset_id~field_type`
Corresponds to the JSON propertyresourceName`
4316 4317 4318 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4316 def resource_name @resource_name end |
#status ⇒ String
Status of the ad group asset.
Corresponds to the JSON property status
4321 4322 4323 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4321 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4328 4329 4330 4331 4332 4333 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4328 def update!(**args) @ad_group = args[:ad_group] if args.key?(:ad_group) @asset = args[:asset] if args.key?(:asset) @resource_name = args[:resource_name] if args.key?(:resource_name) @status = args[:status] if args.key?(:status) end |