Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAdGroupAsset

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 link between an ad group and an asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAdGroupAsset

Returns a new instance of GoogleAdsSearchads360V0ResourcesAdGroupAsset.



4376
4377
4378
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4376

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

Instance Attribute Details

#ad_groupString

Required. Immutable. The ad group to which the asset is linked. Corresponds to the JSON property adGroup

Returns:

  • (String)


4357
4358
4359
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4357

def ad_group
  @ad_group
end

#assetString

Required. Immutable. The asset which is linked to the ad group. Corresponds to the JSON property asset

Returns:

  • (String)


4362
4363
4364
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4362

def asset
  @asset
end

#resource_nameString

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`

Returns:

  • (String)


4369
4370
4371
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4369

def resource_name
  @resource_name
end

#statusString

Status of the ad group asset. Corresponds to the JSON property status

Returns:

  • (String)


4374
4375
4376
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4374

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4381
4382
4383
4384
4385
4386
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4381

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