Class: Google::Apis::DfareportingV2_6::AccountActiveAdSummary

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

Overview

Gets a summary of active ads in an account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountActiveAdSummary

Returns a new instance of AccountActiveAdSummary.



256
257
258
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 256

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

Instance Attribute Details

#account_idString

ID of the account. Corresponds to the JSON property accountId

Returns:

  • (String)


233
234
235
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 233

def 
  @account_id
end

#active_adsString

Ads that have been activated for the account Corresponds to the JSON property activeAds

Returns:

  • (String)


238
239
240
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 238

def active_ads
  @active_ads
end

#active_ads_limit_tierString

Maximum number of active ads allowed for the account. Corresponds to the JSON property activeAdsLimitTier

Returns:

  • (String)


243
244
245
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 243

def active_ads_limit_tier
  @active_ads_limit_tier
end

#available_adsString

Ads that can be activated for the account. Corresponds to the JSON property availableAds

Returns:

  • (String)


248
249
250
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 248

def available_ads
  @available_ads
end

#kindString

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

Returns:

  • (String)


254
255
256
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 254

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



261
262
263
264
265
266
267
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 261

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