Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSegments

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

Segment only fields.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonSegments

Returns a new instance of GoogleAdsSearchads360V0CommonSegments.



2043
2044
2045
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2043

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

Instance Attribute Details

#ad_network_typeString

Ad network type. Corresponds to the JSON property adNetworkType

Returns:

  • (String)


1761
1762
1763
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1761

def ad_network_type
  @ad_network_type
end

#asset_interaction_targetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonAssetInteractionTarget

An AssetInteractionTarget segment. Corresponds to the JSON property assetInteractionTarget



1766
1767
1768
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1766

def asset_interaction_target
  @asset_interaction_target
end

#conversion_actionString

Resource name of the conversion action. Corresponds to the JSON property conversionAction

Returns:

  • (String)


1771
1772
1773
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1771

def conversion_action
  @conversion_action
end

#conversion_action_categoryString

Conversion action category. Corresponds to the JSON property conversionActionCategory

Returns:

  • (String)


1776
1777
1778
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1776

def conversion_action_category
  @conversion_action_category
end

#conversion_action_nameString

Conversion action name. Corresponds to the JSON property conversionActionName

Returns:

  • (String)


1781
1782
1783
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1781

def conversion_action_name
  @conversion_action_name
end

#dateString

Date to which metrics apply. yyyy-MM-dd format, for example, 2018-04-17. Corresponds to the JSON property date

Returns:

  • (String)


1786
1787
1788
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1786

def date
  @date
end

#day_of_weekString

Day of the week, for example, MONDAY. Corresponds to the JSON property dayOfWeek

Returns:

  • (String)


1791
1792
1793
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1791

def day_of_week
  @day_of_week
end

#deviceString

Device to which metrics apply. Corresponds to the JSON property device

Returns:

  • (String)


1796
1797
1798
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1796

def device
  @device
end

#keywordGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonKeyword

A Keyword criterion segment. Corresponds to the JSON property keyword



1801
1802
1803
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1801

def keyword
  @keyword
end

#monthString

Month as represented by the date of the first day of a month. Formatted as yyyy-MM-dd. Corresponds to the JSON property month

Returns:

  • (String)


1807
1808
1809
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1807

def month
  @month
end

#product_bidding_category_level1String

Bidding category (level 1) of the product. Corresponds to the JSON property productBiddingCategoryLevel1

Returns:

  • (String)


1812
1813
1814
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1812

def product_bidding_category_level1
  @product_bidding_category_level1
end

#product_bidding_category_level2String

Bidding category (level 2) of the product. Corresponds to the JSON property productBiddingCategoryLevel2

Returns:

  • (String)


1817
1818
1819
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1817

def product_bidding_category_level2
  @product_bidding_category_level2
end

#product_bidding_category_level3String

Bidding category (level 3) of the product. Corresponds to the JSON property productBiddingCategoryLevel3

Returns:

  • (String)


1822
1823
1824
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1822

def product_bidding_category_level3
  @product_bidding_category_level3
end

#product_bidding_category_level4String

Bidding category (level 4) of the product. Corresponds to the JSON property productBiddingCategoryLevel4

Returns:

  • (String)


1827
1828
1829
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1827

def product_bidding_category_level4
  @product_bidding_category_level4
end

#product_bidding_category_level5String

Bidding category (level 5) of the product. Corresponds to the JSON property productBiddingCategoryLevel5

Returns:

  • (String)


1832
1833
1834
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1832

def product_bidding_category_level5
  @product_bidding_category_level5
end

#product_brandString

Brand of the product. Corresponds to the JSON property productBrand

Returns:

  • (String)


1837
1838
1839
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1837

def product_brand
  @product_brand
end

#product_channelString

Channel of the product. Corresponds to the JSON property productChannel

Returns:

  • (String)


1842
1843
1844
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1842

def product_channel
  @product_channel
end

#product_channel_exclusivityString

Channel exclusivity of the product. Corresponds to the JSON property productChannelExclusivity

Returns:

  • (String)


1847
1848
1849
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1847

def product_channel_exclusivity
  @product_channel_exclusivity
end

#product_conditionString

Condition of the product. Corresponds to the JSON property productCondition

Returns:

  • (String)


1852
1853
1854
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1852

def product_condition
  @product_condition
end

#product_countryString

Resource name of the geo target constant for the country of sale of the product. Corresponds to the JSON property productCountry

Returns:

  • (String)


1858
1859
1860
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1858

def product_country
  @product_country
end

#product_custom_attribute0String

Custom attribute 0 of the product. Corresponds to the JSON property productCustomAttribute0

Returns:

  • (String)


1863
1864
1865
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1863

def product_custom_attribute0
  @product_custom_attribute0
end

#product_custom_attribute1String

Custom attribute 1 of the product. Corresponds to the JSON property productCustomAttribute1

Returns:

  • (String)


1868
1869
1870
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1868

def product_custom_attribute1
  @product_custom_attribute1
end

#product_custom_attribute2String

Custom attribute 2 of the product. Corresponds to the JSON property productCustomAttribute2

Returns:

  • (String)


1873
1874
1875
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1873

def product_custom_attribute2
  @product_custom_attribute2
end

#product_custom_attribute3String

Custom attribute 3 of the product. Corresponds to the JSON property productCustomAttribute3

Returns:

  • (String)


1878
1879
1880
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1878

def product_custom_attribute3
  @product_custom_attribute3
end

#product_custom_attribute4String

Custom attribute 4 of the product. Corresponds to the JSON property productCustomAttribute4

Returns:

  • (String)


1883
1884
1885
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1883

def product_custom_attribute4
  @product_custom_attribute4
end

#product_item_idString

Item ID of the product. Corresponds to the JSON property productItemId

Returns:

  • (String)


1888
1889
1890
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1888

def product_item_id
  @product_item_id
end

#product_languageString

Resource name of the language constant for the language of the product. Corresponds to the JSON property productLanguage

Returns:

  • (String)


1893
1894
1895
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1893

def product_language
  @product_language
end

#product_sold_bidding_category_level1String

Bidding category (level 1) of the product sold. Corresponds to the JSON property productSoldBiddingCategoryLevel1

Returns:

  • (String)


1898
1899
1900
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1898

def product_sold_bidding_category_level1
  @product_sold_bidding_category_level1
end

#product_sold_bidding_category_level2String

Bidding category (level 2) of the product sold. Corresponds to the JSON property productSoldBiddingCategoryLevel2

Returns:

  • (String)


1903
1904
1905
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1903

def product_sold_bidding_category_level2
  @product_sold_bidding_category_level2
end

#product_sold_bidding_category_level3String

Bidding category (level 3) of the product sold. Corresponds to the JSON property productSoldBiddingCategoryLevel3

Returns:

  • (String)


1908
1909
1910
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1908

def product_sold_bidding_category_level3
  @product_sold_bidding_category_level3
end

#product_sold_bidding_category_level4String

Bidding category (level 4) of the product sold. Corresponds to the JSON property productSoldBiddingCategoryLevel4

Returns:

  • (String)


1913
1914
1915
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1913

def product_sold_bidding_category_level4
  @product_sold_bidding_category_level4
end

#product_sold_bidding_category_level5String

Bidding category (level 5) of the product sold. Corresponds to the JSON property productSoldBiddingCategoryLevel5

Returns:

  • (String)


1918
1919
1920
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1918

def product_sold_bidding_category_level5
  @product_sold_bidding_category_level5
end

#product_sold_brandString

Brand of the product sold. Corresponds to the JSON property productSoldBrand

Returns:

  • (String)


1923
1924
1925
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1923

def product_sold_brand
  @product_sold_brand
end

#product_sold_conditionString

Condition of the product sold. Corresponds to the JSON property productSoldCondition

Returns:

  • (String)


1928
1929
1930
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1928

def product_sold_condition
  @product_sold_condition
end

#product_sold_custom_attribute0String

Custom attribute 0 of the product sold. Corresponds to the JSON property productSoldCustomAttribute0

Returns:

  • (String)


1933
1934
1935
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1933

def product_sold_custom_attribute0
  @product_sold_custom_attribute0
end

#product_sold_custom_attribute1String

Custom attribute 1 of the product sold. Corresponds to the JSON property productSoldCustomAttribute1

Returns:

  • (String)


1938
1939
1940
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1938

def product_sold_custom_attribute1
  @product_sold_custom_attribute1
end

#product_sold_custom_attribute2String

Custom attribute 2 of the product sold. Corresponds to the JSON property productSoldCustomAttribute2

Returns:

  • (String)


1943
1944
1945
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1943

def product_sold_custom_attribute2
  @product_sold_custom_attribute2
end

#product_sold_custom_attribute3String

Custom attribute 3 of the product sold. Corresponds to the JSON property productSoldCustomAttribute3

Returns:

  • (String)


1948
1949
1950
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1948

def product_sold_custom_attribute3
  @product_sold_custom_attribute3
end

#product_sold_custom_attribute4String

Custom attribute 4 of the product sold. Corresponds to the JSON property productSoldCustomAttribute4

Returns:

  • (String)


1953
1954
1955
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1953

def product_sold_custom_attribute4
  @product_sold_custom_attribute4
end

#product_sold_item_idString

Item ID of the product sold. Corresponds to the JSON property productSoldItemId

Returns:

  • (String)


1958
1959
1960
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1958

def product_sold_item_id
  @product_sold_item_id
end

#product_sold_titleString

Title of the product sold. Corresponds to the JSON property productSoldTitle

Returns:

  • (String)


1963
1964
1965
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1963

def product_sold_title
  @product_sold_title
end

#product_sold_type_l1String

Type (level 1) of the product sold. Corresponds to the JSON property productSoldTypeL1

Returns:

  • (String)


1968
1969
1970
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1968

def product_sold_type_l1
  @product_sold_type_l1
end

#product_sold_type_l2String

Type (level 2) of the product sold. Corresponds to the JSON property productSoldTypeL2

Returns:

  • (String)


1973
1974
1975
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1973

def product_sold_type_l2
  @product_sold_type_l2
end

#product_sold_type_l3String

Type (level 3) of the product sold. Corresponds to the JSON property productSoldTypeL3

Returns:

  • (String)


1978
1979
1980
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1978

def product_sold_type_l3
  @product_sold_type_l3
end

#product_sold_type_l4String

Type (level 4) of the product sold. Corresponds to the JSON property productSoldTypeL4

Returns:

  • (String)


1983
1984
1985
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1983

def product_sold_type_l4
  @product_sold_type_l4
end

#product_sold_type_l5String

Type (level 5) of the product sold. Corresponds to the JSON property productSoldTypeL5

Returns:

  • (String)


1988
1989
1990
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1988

def product_sold_type_l5
  @product_sold_type_l5
end

#product_store_idString

Store ID of the product. Corresponds to the JSON property productStoreId

Returns:

  • (String)


1993
1994
1995
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1993

def product_store_id
  @product_store_id
end

#product_titleString

Title of the product. Corresponds to the JSON property productTitle

Returns:

  • (String)


1998
1999
2000
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1998

def product_title
  @product_title
end

#product_type_l1String

Type (level 1) of the product. Corresponds to the JSON property productTypeL1

Returns:

  • (String)


2003
2004
2005
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2003

def product_type_l1
  @product_type_l1
end

#product_type_l2String

Type (level 2) of the product. Corresponds to the JSON property productTypeL2

Returns:

  • (String)


2008
2009
2010
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2008

def product_type_l2
  @product_type_l2
end

#product_type_l3String

Type (level 3) of the product. Corresponds to the JSON property productTypeL3

Returns:

  • (String)


2013
2014
2015
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2013

def product_type_l3
  @product_type_l3
end

#product_type_l4String

Type (level 4) of the product. Corresponds to the JSON property productTypeL4

Returns:

  • (String)


2018
2019
2020
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2018

def product_type_l4
  @product_type_l4
end

#product_type_l5String

Type (level 5) of the product. Corresponds to the JSON property productTypeL5

Returns:

  • (String)


2023
2024
2025
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2023

def product_type_l5
  @product_type_l5
end

#quarterString

Quarter as represented by the date of the first day of a quarter. Uses the calendar year for quarters, for example, the second quarter of 2018 starts on 2018-04-01. Formatted as yyyy-MM-dd. Corresponds to the JSON property quarter

Returns:

  • (String)


2030
2031
2032
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2030

def quarter
  @quarter
end

#weekString

Week as defined as Monday through Sunday, and represented by the date of Monday. Formatted as yyyy-MM-dd. Corresponds to the JSON property week

Returns:

  • (String)


2036
2037
2038
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2036

def week
  @week
end

#yearFixnum

Year, formatted as yyyy. Corresponds to the JSON property year

Returns:

  • (Fixnum)


2041
2042
2043
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2041

def year
  @year
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2048

def update!(**args)
  @ad_network_type = args[:ad_network_type] if args.key?(:ad_network_type)
  @asset_interaction_target = args[:asset_interaction_target] if args.key?(:asset_interaction_target)
  @conversion_action = args[:conversion_action] if args.key?(:conversion_action)
  @conversion_action_category = args[:conversion_action_category] if args.key?(:conversion_action_category)
  @conversion_action_name = args[:conversion_action_name] if args.key?(:conversion_action_name)
  @date = args[:date] if args.key?(:date)
  @day_of_week = args[:day_of_week] if args.key?(:day_of_week)
  @device = args[:device] if args.key?(:device)
  @keyword = args[:keyword] if args.key?(:keyword)
  @month = args[:month] if args.key?(:month)
  @product_bidding_category_level1 = args[:product_bidding_category_level1] if args.key?(:product_bidding_category_level1)
  @product_bidding_category_level2 = args[:product_bidding_category_level2] if args.key?(:product_bidding_category_level2)
  @product_bidding_category_level3 = args[:product_bidding_category_level3] if args.key?(:product_bidding_category_level3)
  @product_bidding_category_level4 = args[:product_bidding_category_level4] if args.key?(:product_bidding_category_level4)
  @product_bidding_category_level5 = args[:product_bidding_category_level5] if args.key?(:product_bidding_category_level5)
  @product_brand = args[:product_brand] if args.key?(:product_brand)
  @product_channel = args[:product_channel] if args.key?(:product_channel)
  @product_channel_exclusivity = args[:product_channel_exclusivity] if args.key?(:product_channel_exclusivity)
  @product_condition = args[:product_condition] if args.key?(:product_condition)
  @product_country = args[:product_country] if args.key?(:product_country)
  @product_custom_attribute0 = args[:product_custom_attribute0] if args.key?(:product_custom_attribute0)
  @product_custom_attribute1 = args[:product_custom_attribute1] if args.key?(:product_custom_attribute1)
  @product_custom_attribute2 = args[:product_custom_attribute2] if args.key?(:product_custom_attribute2)
  @product_custom_attribute3 = args[:product_custom_attribute3] if args.key?(:product_custom_attribute3)
  @product_custom_attribute4 = args[:product_custom_attribute4] if args.key?(:product_custom_attribute4)
  @product_item_id = args[:product_item_id] if args.key?(:product_item_id)
  @product_language = args[:product_language] if args.key?(:product_language)
  @product_sold_bidding_category_level1 = args[:product_sold_bidding_category_level1] if args.key?(:product_sold_bidding_category_level1)
  @product_sold_bidding_category_level2 = args[:product_sold_bidding_category_level2] if args.key?(:product_sold_bidding_category_level2)
  @product_sold_bidding_category_level3 = args[:product_sold_bidding_category_level3] if args.key?(:product_sold_bidding_category_level3)
  @product_sold_bidding_category_level4 = args[:product_sold_bidding_category_level4] if args.key?(:product_sold_bidding_category_level4)
  @product_sold_bidding_category_level5 = args[:product_sold_bidding_category_level5] if args.key?(:product_sold_bidding_category_level5)
  @product_sold_brand = args[:product_sold_brand] if args.key?(:product_sold_brand)
  @product_sold_condition = args[:product_sold_condition] if args.key?(:product_sold_condition)
  @product_sold_custom_attribute0 = args[:product_sold_custom_attribute0] if args.key?(:product_sold_custom_attribute0)
  @product_sold_custom_attribute1 = args[:product_sold_custom_attribute1] if args.key?(:product_sold_custom_attribute1)
  @product_sold_custom_attribute2 = args[:product_sold_custom_attribute2] if args.key?(:product_sold_custom_attribute2)
  @product_sold_custom_attribute3 = args[:product_sold_custom_attribute3] if args.key?(:product_sold_custom_attribute3)
  @product_sold_custom_attribute4 = args[:product_sold_custom_attribute4] if args.key?(:product_sold_custom_attribute4)
  @product_sold_item_id = args[:product_sold_item_id] if args.key?(:product_sold_item_id)
  @product_sold_title = args[:product_sold_title] if args.key?(:product_sold_title)
  @product_sold_type_l1 = args[:product_sold_type_l1] if args.key?(:product_sold_type_l1)
  @product_sold_type_l2 = args[:product_sold_type_l2] if args.key?(:product_sold_type_l2)
  @product_sold_type_l3 = args[:product_sold_type_l3] if args.key?(:product_sold_type_l3)
  @product_sold_type_l4 = args[:product_sold_type_l4] if args.key?(:product_sold_type_l4)
  @product_sold_type_l5 = args[:product_sold_type_l5] if args.key?(:product_sold_type_l5)
  @product_store_id = args[:product_store_id] if args.key?(:product_store_id)
  @product_title = args[:product_title] if args.key?(:product_title)
  @product_type_l1 = args[:product_type_l1] if args.key?(:product_type_l1)
  @product_type_l2 = args[:product_type_l2] if args.key?(:product_type_l2)
  @product_type_l3 = args[:product_type_l3] if args.key?(:product_type_l3)
  @product_type_l4 = args[:product_type_l4] if args.key?(:product_type_l4)
  @product_type_l5 = args[:product_type_l5] if args.key?(:product_type_l5)
  @quarter = args[:quarter] if args.key?(:quarter)
  @week = args[:week] if args.key?(:week)
  @year = args[:year] if args.key?(:year)
end