Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAdGroupAd

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAdGroupAd

Returns a new instance of GoogleAdsSearchads360V0ResourcesAdGroupAd.



2549
2550
2551
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2549

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

Instance Attribute Details

#adGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAd

An ad. Corresponds to the JSON property ad



2504
2505
2506
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2504

def ad
  @ad
end

#creation_timeString

Output only. The timestamp when this ad_group_ad was created. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. Corresponds to the JSON property creationTime

Returns:

  • (String)


2510
2511
2512
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2510

def creation_time
  @creation_time
end

#engine_idString

Output only. ID of the ad in the external engine account. This field is for SearchAds 360 account only, for example, Yahoo Japan, Microsoft, Baidu etc. For non-SearchAds 360 entity, use "ad_group_ad.ad.id" instead. Corresponds to the JSON property engineId

Returns:

  • (String)


2517
2518
2519
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2517

def engine_id
  @engine_id
end

#engine_statusString

Output only. Additional status of the ad in the external engine account. Possible statuses (depending on the type of external account) include active, eligible, pending review, etc. Corresponds to the JSON property engineStatus

Returns:

  • (String)


2524
2525
2526
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2524

def engine_status
  @engine_status
end

#labelsArray<String>

Output only. The resource names of labels attached to this ad group ad. Corresponds to the JSON property labels

Returns:

  • (Array<String>)


2529
2530
2531
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2529

def labels
  @labels
end

#last_modified_timeString

Output only. The datetime when this ad group ad was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. Corresponds to the JSON property lastModifiedTime

Returns:

  • (String)


2536
2537
2538
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2536

def last_modified_time
  @last_modified_time
end

#resource_nameString

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

Returns:

  • (String)


2542
2543
2544
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2542

def resource_name
  @resource_name
end

#statusString

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

Returns:

  • (String)


2547
2548
2549
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2547

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2554

def update!(**args)
  @ad = args[:ad] if args.key?(:ad)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @engine_id = args[:engine_id] if args.key?(:engine_id)
  @engine_status = args[:engine_status] if args.key?(:engine_status)
  @labels = args[:labels] if args.key?(:labels)
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @status = args[:status] if args.key?(:status)
end