Class: Google::Apis::YoutubePartnerV1::Campaign

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Campaign

Returns a new instance of Campaign.


585
586
587
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 585

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

Instance Attribute Details

#campaign_dataGoogle::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


557
558
559
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 557

def campaign_data
  @campaign_data
end

#idString

The unique ID that YouTube uses to identify the campaign. Corresponds to the JSON property id

Returns:

  • (String)

562
563
564
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 562

def id
  @id
end

#kindString

The type of the API resource. For campaign resources, this value is youtubePartner#campaign. Corresponds to the JSON property kind

Returns:

  • (String)

568
569
570
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 568

def kind
  @kind
end

#statusString

The status of the campaign. Corresponds to the JSON property status

Returns:

  • (String)

573
574
575
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 573

def status
  @status
end

#time_createdDateTime

The time the campaign was created. Corresponds to the JSON property timeCreated

Returns:

  • (DateTime)

578
579
580
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 578

def time_created
  @time_created
end

#time_last_modifiedDateTime

The time the campaign was last modified. Corresponds to the JSON property timeLastModified

Returns:

  • (DateTime)

583
584
585
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 583

def time_last_modified
  @time_last_modified
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


590
591
592
593
594
595
596
597
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 590

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