Class: Google::Apis::YoutubePartnerV1::Campaign
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::Campaign
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/representations.rb
Instance Attribute Summary collapse
-
#campaign_data ⇒ Google::Apis::YoutubePartnerV1::CampaignData
The campaignData object contains details like the campaign's start and end dates, target and source.
-
#id ⇒ String
The unique ID that YouTube uses to identify the campaign.
-
#kind ⇒ String
The type of the API resource.
-
#status ⇒ String
The status of the campaign.
-
#time_created ⇒ String
The time the campaign was created.
-
#time_last_modified ⇒ String
The time the campaign was last modified.
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.
631 632 633 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 631 def initialize(**args) update!(**args) end |
Instance Attribute Details
#campaign_data ⇒ Google::Apis::YoutubePartnerV1::CampaignData
The campaignData object contains details like the campaign's start and end
dates, target and source.
Corresponds to the JSON property campaignData
603 604 605 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 603 def campaign_data @campaign_data end |
#id ⇒ String
The unique ID that YouTube uses to identify the campaign.
Corresponds to the JSON property id
608 609 610 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 608 def id @id end |
#kind ⇒ String
The type of the API resource. For campaign resources, this value is
youtubePartner#campaign.
Corresponds to the JSON property kind
614 615 616 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 614 def kind @kind end |
#status ⇒ String
The status of the campaign.
Corresponds to the JSON property status
619 620 621 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 619 def status @status end |
#time_created ⇒ String
The time the campaign was created.
Corresponds to the JSON property timeCreated
624 625 626 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 624 def time_created @time_created end |
#time_last_modified ⇒ String
The time the campaign was last modified.
Corresponds to the JSON property timeLastModified
629 630 631 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 629 def time_last_modified @time_last_modified end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
636 637 638 639 640 641 642 643 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 636 def update!(**args) @campaign_data = args[:campaign_data] if args.key?(:campaign_data) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @status = args[:status] if args.key?(:status) @time_created = args[:time_created] if args.key?(:time_created) @time_last_modified = args[:time_last_modified] if args.key?(:time_last_modified) end |