Class: Google::Apis::AdexchangebuyerV1_3::Budget
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_3::Budget
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer_v1_3/classes.rb,
generated/google/apis/adexchangebuyer_v1_3/representations.rb,
generated/google/apis/adexchangebuyer_v1_3/representations.rb
Overview
The configuration data for Ad Exchange RTB - Budget API.
Instance Attribute Summary collapse
-
#account_id ⇒ Fixnum
The id of the account.
-
#billing_id ⇒ Fixnum
The billing id to determine which adgroup to provide budget information for.
-
#budget_amount ⇒ Fixnum
The daily budget amount in unit amount of the account currency to apply for the billingId provided.
-
#currency_code ⇒ String
The currency code for the buyer.
-
#id ⇒ String
The unique id that describes this item.
-
#kind ⇒ String
The kind of the resource, i.e.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Budget
constructor
A new instance of Budget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Budget
Returns a new instance of Budget
255 256 257 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 255 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
The id of the account. This is required for get and update requests.
Corresponds to the JSON property accountId
226 227 228 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 226 def account_id @account_id end |
#billing_id ⇒ Fixnum
The billing id to determine which adgroup to provide budget information for.
This is required for get and update requests.
Corresponds to the JSON property billingId
232 233 234 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 232 def billing_id @billing_id end |
#budget_amount ⇒ Fixnum
The daily budget amount in unit amount of the account currency to apply for
the billingId provided. This is required for update requests.
Corresponds to the JSON property budgetAmount
238 239 240 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 238 def budget_amount @budget_amount end |
#currency_code ⇒ String
The currency code for the buyer. This cannot be altered here.
Corresponds to the JSON property currencyCode
243 244 245 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 243 def currency_code @currency_code end |
#id ⇒ String
The unique id that describes this item.
Corresponds to the JSON property id
248 249 250 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 248 def id @id end |
#kind ⇒ String
The kind of the resource, i.e. "adexchangebuyer#budget".
Corresponds to the JSON property kind
253 254 255 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 253 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
260 261 262 263 264 265 266 267 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 260 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @billing_id = args[:billing_id] if args.key?(:billing_id) @budget_amount = args[:budget_amount] if args.key?(:budget_amount) @currency_code = args[:currency_code] if args.key?(:currency_code) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) end |