Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesPerStoreView

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb

Overview

A per store view. This view provides per store impression reach and local action conversion stats for advertisers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesPerStoreView

Returns a new instance of GoogleAdsSearchads360V23ResourcesPerStoreView.



32437
32438
32439
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32437

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

Instance Attribute Details

#address1String

Output only. First line of the store's address. Corresponds to the JSON property address1

Returns:

  • (String)


32389
32390
32391
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32389

def address1
  @address1
end

#address2String

Output only. Second line of the store's address. Corresponds to the JSON property address2

Returns:

  • (String)


32394
32395
32396
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32394

def address2
  @address2
end

#business_nameString

Output only. The name of the business. Corresponds to the JSON property businessName

Returns:

  • (String)


32399
32400
32401
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32399

def business_name
  @business_name
end

#cityString

Output only. The city where the store is located. Corresponds to the JSON property city

Returns:

  • (String)


32404
32405
32406
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32404

def city
  @city
end

#country_codeString

Output only. The two-letter country code for the store's location (e.g., "US"). Corresponds to the JSON property countryCode

Returns:

  • (String)


32409
32410
32411
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32409

def country_code
  @country_code
end

#phone_numberString

Output only. The phone number of the store. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


32414
32415
32416
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32414

def phone_number
  @phone_number
end

#place_idString

Output only. The place ID of the per store view. Corresponds to the JSON property placeId

Returns:

  • (String)


32419
32420
32421
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32419

def place_id
  @place_id
end

#postal_codeString

Output only. The postal code of the store's address. Corresponds to the JSON property postalCode

Returns:

  • (String)


32424
32425
32426
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32424

def postal_code
  @postal_code
end

#provinceString

Output only. The province or state of the store's address. Corresponds to the JSON property province

Returns:

  • (String)


32429
32430
32431
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32429

def province
  @province
end

#resource_nameString

Output only. The resource name of the per store view. Per Store view resource names have the form: customers/customer_id/perStoreViews/place_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


32435
32436
32437
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32435

def resource_name
  @resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32442
32443
32444
32445
32446
32447
32448
32449
32450
32451
32452
32453
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32442

def update!(**args)
  @address1 = args[:address1] if args.key?(:address1)
  @address2 = args[:address2] if args.key?(:address2)
  @business_name = args[:business_name] if args.key?(:business_name)
  @city = args[:city] if args.key?(:city)
  @country_code = args[:country_code] if args.key?(:country_code)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @place_id = args[:place_id] if args.key?(:place_id)
  @postal_code = args[:postal_code] if args.key?(:postal_code)
  @province = args[:province] if args.key?(:province)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
end