Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesGeoTargetConstant
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesGeoTargetConstant
- 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 geo target constant.
Instance Attribute Summary collapse
-
#canonical_name ⇒ String
Output only.
-
#country_code ⇒ String
Output only.
-
#id ⇒ Fixnum
Output only.
-
#name ⇒ String
Output only.
-
#parent_geo_target ⇒ String
Output only.
-
#resource_name ⇒ String
Output only.
-
#status ⇒ String
Output only.
-
#target_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesGeoTargetConstant
constructor
A new instance of GoogleAdsSearchads360V0ResourcesGeoTargetConstant.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesGeoTargetConstant
Returns a new instance of GoogleAdsSearchads360V0ResourcesGeoTargetConstant.
6975 6976 6977 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6975 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_name ⇒ String
Output only. The fully qualified English name, consisting of the target's name
and that of its parent and country.
Corresponds to the JSON property canonicalName
6934 6935 6936 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6934 def canonical_name @canonical_name end |
#country_code ⇒ String
Output only. The ISO-3166-1 alpha-2 country code that is associated with the
target.
Corresponds to the JSON property countryCode
6940 6941 6942 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6940 def country_code @country_code end |
#id ⇒ Fixnum
Output only. The ID of the geo target constant.
Corresponds to the JSON property id
6945 6946 6947 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6945 def id @id end |
#name ⇒ String
Output only. Geo target constant English name.
Corresponds to the JSON property name
6950 6951 6952 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6950 def name @name end |
#parent_geo_target ⇒ String
Output only. The resource name of the parent geo target constant. Geo target
constant resource names have the form: geoTargetConstants/
parent_geo_target_constant_id`
Corresponds to the JSON propertyparentGeoTarget`
6957 6958 6959 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6957 def parent_geo_target @parent_geo_target end |
#resource_name ⇒ String
Output only. The resource name of the geo target constant. Geo target constant
resource names have the form: geoTargetConstants/geo_target_constant_id`
Corresponds to the JSON propertyresourceName`
6963 6964 6965 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6963 def resource_name @resource_name end |
#status ⇒ String
Output only. Geo target constant status.
Corresponds to the JSON property status
6968 6969 6970 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6968 def status @status end |
#target_type ⇒ String
Output only. Geo target constant target type.
Corresponds to the JSON property targetType
6973 6974 6975 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6973 def target_type @target_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 6980 def update!(**args) @canonical_name = args[:canonical_name] if args.key?(:canonical_name) @country_code = args[:country_code] if args.key?(:country_code) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @parent_geo_target = args[:parent_geo_target] if args.key?(:parent_geo_target) @resource_name = args[:resource_name] if args.key?(:resource_name) @status = args[:status] if args.key?(:status) @target_type = args[:target_type] if args.key?(:target_type) end |