Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCampaignBudget

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

Overview

A campaign budget.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCampaignBudget

Returns a new instance of GoogleAdsSearchads360V0ResourcesCampaignBudget.



3552
3553
3554
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3552

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

Instance Attribute Details

#amount_microsFixnum

The amount of the budget, in the local currency for the account. Amount is specified in micros, where one million is equivalent to one currency unit. Monthly spend is capped at 30.4 times this amount. Corresponds to the JSON property amountMicros

Returns:

  • (Fixnum)


3531
3532
3533
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3531

def amount_micros
  @amount_micros
end

#delivery_methodString

The delivery method that determines the rate at which the campaign budget is spent. Defaults to STANDARD if unspecified in a create operation. Corresponds to the JSON property deliveryMethod

Returns:

  • (String)


3537
3538
3539
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3537

def delivery_method
  @delivery_method
end

#periodString

Immutable. Period over which to spend the budget. Defaults to DAILY if not specified. Corresponds to the JSON property period

Returns:

  • (String)


3543
3544
3545
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3543

def period
  @period
end

#resource_nameString

Immutable. The resource name of the campaign budget. Campaign budget resource names have the form: customers/customer_id/campaignBudgets/ campaign_budget_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


3550
3551
3552
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3550

def resource_name
  @resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3557
3558
3559
3560
3561
3562
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3557

def update!(**args)
  @amount_micros = args[:amount_micros] if args.key?(:amount_micros)
  @delivery_method = args[:delivery_method] if args.key?(:delivery_method)
  @period = args[:period] if args.key?(:period)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
end