Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAd

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAd

Returns a new instance of GoogleAdsSearchads360V0ResourcesAd.



3667
3668
3669
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3667

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

Instance Attribute Details

#display_urlString

The URL that appears in the ad description for some ad formats. Corresponds to the JSON property displayUrl

Returns:

  • (String)


3611
3612
3613
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3611

def display_url
  @display_url
end

#expanded_dynamic_search_adGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ExpandedDynamicSearchAdInfo

An expanded dynamic search ad. Corresponds to the JSON property expandedDynamicSearchAd



3616
3617
3618
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3616

def expanded_dynamic_search_ad
  @expanded_dynamic_search_ad
end

#expanded_text_adGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ExpandedTextAdInfo

A Search Ads 360 expanded text ad. Corresponds to the JSON property expandedTextAd



3621
3622
3623
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3621

def expanded_text_ad
  @expanded_text_ad
end

#final_urlsArray<String>

The list of possible final URLs after all cross-domain redirects for the ad. Corresponds to the JSON property finalUrls

Returns:

  • (Array<String>)


3626
3627
3628
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3626

def final_urls
  @final_urls
end

#idFixnum

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

Returns:

  • (Fixnum)


3631
3632
3633
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3631

def id
  @id
end

#nameString

Immutable. The name of the ad. This is only used to be able to identify the ad. It does not need to be unique and does not affect the served ad. The name field is currently only supported for DisplayUploadAd, ImageAd, ShoppingComparisonListingAd and VideoAd. Corresponds to the JSON property name

Returns:

  • (String)


3639
3640
3641
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3639

def name
  @name
end

#product_adGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ProductAdInfo

A Search Ads 360 product ad. Corresponds to the JSON property productAd



3644
3645
3646
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3644

def product_ad
  @product_ad
end

#resource_nameString

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

Returns:

  • (String)


3650
3651
3652
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3650

def resource_name
  @resource_name
end

#responsive_search_adGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360ResponsiveSearchAdInfo

A Search Ads 360 responsive search ad. Corresponds to the JSON property responsiveSearchAd



3655
3656
3657
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3655

def responsive_search_ad
  @responsive_search_ad
end

#text_adGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360TextAdInfo

A Search Ads 360 text ad. Corresponds to the JSON property textAd



3660
3661
3662
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3660

def text_ad
  @text_ad
end

#typeString

Output only. The type of ad. Corresponds to the JSON property type

Returns:

  • (String)


3665
3666
3667
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3665

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3672

def update!(**args)
  @display_url = args[:display_url] if args.key?(:display_url)
  @expanded_dynamic_search_ad = args[:expanded_dynamic_search_ad] if args.key?(:expanded_dynamic_search_ad)
  @expanded_text_ad = args[:expanded_text_ad] if args.key?(:expanded_text_ad)
  @final_urls = args[:final_urls] if args.key?(:final_urls)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @product_ad = args[:product_ad] if args.key?(:product_ad)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @responsive_search_ad = args[:responsive_search_ad] if args.key?(:responsive_search_ad)
  @text_ad = args[:text_ad] if args.key?(:text_ad)
  @type = args[:type] if args.key?(:type)
end