Class: Google::Apis::AdmobV1beta::Campaign

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

Overview

Describes an AdMob campaign.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Campaign

Returns a new instance of Campaign.



516
517
518
# File 'lib/google/apis/admob_v1beta/classes.rb', line 516

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

Instance Attribute Details

#cpi_settingGoogle::Apis::AdmobV1beta::CampaignCpiSetting

CPI setting for AdMob campaign. Ignored unless campaign goal type is MAX_CPI or TARGET_CPI. Corresponds to the JSON property cpiSetting



497
498
499
# File 'lib/google/apis/admob_v1beta/classes.rb', line 497

def cpi_setting
  @cpi_setting
end

#display_nameString

Output only. The display name for the campaign. Corresponds to the JSON property displayName

Returns:

  • (String)


502
503
504
# File 'lib/google/apis/admob_v1beta/classes.rb', line 502

def display_name
  @display_name
end

#goal_typeString

Output only. The Goal type of the campaign. Corresponds to the JSON property goalType

Returns:

  • (String)


507
508
509
# File 'lib/google/apis/admob_v1beta/classes.rb', line 507

def goal_type
  @goal_type
end

#nameString

Output only. Resource name for this campaign. Format is: accounts/ publisher_id/campaigns/campaign_id Example: accounts/pub-9876543210987654/ campaigns/0123456789 Corresponds to the JSON property name

Returns:

  • (String)


514
515
516
# File 'lib/google/apis/admob_v1beta/classes.rb', line 514

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



521
522
523
524
525
526
# File 'lib/google/apis/admob_v1beta/classes.rb', line 521

def update!(**args)
  @cpi_setting = args[:cpi_setting] if args.key?(:cpi_setting)
  @display_name = args[:display_name] if args.key?(:display_name)
  @goal_type = args[:goal_type] if args.key?(:goal_type)
  @name = args[:name] if args.key?(:name)
end