Class: Google::Apis::AdexchangebuyerV1_4::Budget

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

Overview

The configuration data for Ad Exchange RTB - Budget API.

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) ⇒ Budget

Returns a new instance of Budget.


362
363
364
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 362

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

Instance Attribute Details

#account_idString

The id of the account. This is required for get and update requests. Corresponds to the JSON property accountId

Returns:

  • (String)

333
334
335
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 333

def 
  @account_id
end

#billing_idString

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

Returns:

  • (String)

339
340
341
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 339

def billing_id
  @billing_id
end

#budget_amountString

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

Returns:

  • (String)

345
346
347
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 345

def budget_amount
  @budget_amount
end

#currency_codeString

The currency code for the buyer. This cannot be altered here. Corresponds to the JSON property currencyCode

Returns:

  • (String)

350
351
352
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 350

def currency_code
  @currency_code
end

#idString

The unique id that describes this item. Corresponds to the JSON property id

Returns:

  • (String)

355
356
357
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 355

def id
  @id
end

#kindString

The kind of the resource, i.e. "adexchangebuyer#budget". Corresponds to the JSON property kind

Returns:

  • (String)

360
361
362
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 360

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


367
368
369
370
371
372
373
374
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 367

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