Class: Google::Apis::AdmobV1beta::Campaign
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::Campaign
- 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
-
#cpi_setting ⇒ Google::Apis::AdmobV1beta::CampaignCpiSetting
CPI setting for AdMob campaign.
-
#display_name ⇒ String
Output only.
-
#goal_type ⇒ String
Output only.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Campaign
constructor
A new instance of Campaign.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_setting ⇒ Google::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_name ⇒ String
Output only. The display name for the campaign.
Corresponds to the JSON property displayName
502 503 504 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 502 def display_name @display_name end |
#goal_type ⇒ String
Output only. The Goal type of the campaign.
Corresponds to the JSON property goalType
507 508 509 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 507 def goal_type @goal_type end |
#name ⇒ String
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
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 |