class Google::Apis::YoutubePartnerV1::Campaign
Attributes
The campaignData object contains details like the campaign's start and end dates, target and source. Corresponds to the JSON property `campaignData` @return [Google::Apis::YoutubePartnerV1::CampaignData]
The unique ID that YouTube uses to identify the campaign. Corresponds to the JSON property `id` @return [String]
The type of the API resource. For campaign resources, this value is youtubePartner#campaign. Corresponds to the JSON property `kind` @return [String]
The status of the campaign. Corresponds to the JSON property `status` @return [String]
The time the campaign was created. Corresponds to the JSON property `timeCreated` @return [String]
The time the campaign was last modified. Corresponds to the JSON property `timeLastModified` @return [String]
Public Class Methods
# File lib/google/apis/youtube_partner_v1/classes.rb, line 631 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/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