Class: Google::Apis::DfareportingV3_3::AccountActiveAdSummary

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

Overview

Gets a summary of active ads in an account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountActiveAdSummary

Returns a new instance of AccountActiveAdSummary.



206
207
208
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 206

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

Instance Attribute Details

#account_idFixnum

ID of the account. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


183
184
185
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 183

def 
  @account_id
end

#active_adsFixnum

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

Returns:

  • (Fixnum)


188
189
190
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 188

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)


193
194
195
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 193

def active_ads_limit_tier
  @active_ads_limit_tier
end

#available_adsFixnum

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

Returns:

  • (Fixnum)


198
199
200
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 198

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)


204
205
206
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 204

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



211
212
213
214
215
216
217
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 211

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