Class: Google::Apis::DfareportingV2_6::AccountActiveAdSummary
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_6::AccountActiveAdSummary
- 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
-
#account_id ⇒ Fixnum
ID of the account.
-
#active_ads ⇒ Fixnum
Ads that have been activated for the account Corresponds to the JSON property
activeAds
. -
#active_ads_limit_tier ⇒ String
Maximum number of active ads allowed for the account.
-
#available_ads ⇒ Fixnum
Ads that can be activated for the account.
-
#kind ⇒ String
Identifies what kind of resource this is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountActiveAdSummary
constructor
A new instance of AccountActiveAdSummary.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AccountActiveAdSummary
Returns a new instance of AccountActiveAdSummary
258 259 260 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 258 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
ID of the account.
Corresponds to the JSON property accountId
235 236 237 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 235 def account_id @account_id end |
#active_ads ⇒ Fixnum
Ads that have been activated for the account
Corresponds to the JSON property activeAds
240 241 242 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 240 def active_ads @active_ads end |
#active_ads_limit_tier ⇒ String
Maximum number of active ads allowed for the account.
Corresponds to the JSON property activeAdsLimitTier
245 246 247 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 245 def active_ads_limit_tier @active_ads_limit_tier end |
#available_ads ⇒ Fixnum
Ads that can be activated for the account.
Corresponds to the JSON property availableAds
250 251 252 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 250 def available_ads @available_ads end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#accountActiveAdSummary".
Corresponds to the JSON property kind
256 257 258 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 256 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
263 264 265 266 267 268 269 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 263 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 |