Class: Google::Apis::ContentV2::LiaSettings

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

Overview

Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LiaSettings

Returns a new instance of LiaSettings.



3233
3234
3235
# File 'lib/google/apis/content_v2/classes.rb', line 3233

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

Instance Attribute Details

#account_idFixnum

The ID of the account to which these LIA settings belong. Ignored upon update, always present in get request responses. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


3220
3221
3222
# File 'lib/google/apis/content_v2/classes.rb', line 3220

def 
  @account_id
end

#country_settingsArray<Google::Apis::ContentV2::LiaCountrySettings>

The LIA settings for each country. Corresponds to the JSON property countrySettings



3225
3226
3227
# File 'lib/google/apis/content_v2/classes.rb', line 3225

def country_settings
  @country_settings
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# liaSettings" Corresponds to the JSON property kind

Returns:

  • (String)


3231
3232
3233
# File 'lib/google/apis/content_v2/classes.rb', line 3231

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3238
3239
3240
3241
3242
# File 'lib/google/apis/content_v2/classes.rb', line 3238

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @country_settings = args[:country_settings] if args.key?(:country_settings)
  @kind = args[:kind] if args.key?(:kind)
end