class Google::Apis::YoutubePartnerV1::Campaign

Attributes

campaign_data[RW]

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]

id[RW]

The unique ID that YouTube uses to identify the campaign. Corresponds to the JSON property `id` @return [String]

kind[RW]

The type of the API resource. For campaign resources, this value is youtubePartner#campaign. Corresponds to the JSON property `kind` @return [String]

status[RW]

The status of the campaign. Corresponds to the JSON property `status` @return [String]

time_created[RW]

The time the campaign was created. Corresponds to the JSON property `timeCreated` @return [String]

time_last_modified[RW]

The time the campaign was last modified. Corresponds to the JSON property `timeLastModified` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_partner_v1/classes.rb, line 631
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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