Class: Google::Apis::YoutubePartnerV1::CampaignData
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::CampaignData
- 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_source ⇒ Google::Apis::YoutubePartnerV1::CampaignSource
The campaignSource object contains information about the assets for which the campaign will generate links.
-
#expire_time ⇒ DateTime
The time at which the campaign should expire.
-
#name ⇒ String
The user-given name of the campaign.
-
#promoted_content ⇒ Array<Google::Apis::YoutubePartnerV1::PromotedContent>
A list of videos or channels that will be linked to from claimed videos that are included in the campaign.
-
#start_time ⇒ DateTime
The time at which the campaign should start.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CampaignData
constructor
A new instance of CampaignData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CampaignData
Returns a new instance of CampaignData.
633 634 635 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 633 def initialize(**args) update!(**args) end |
Instance Attribute Details
#campaign_source ⇒ Google::Apis::YoutubePartnerV1::CampaignSource
The campaignSource object contains information about the assets for which the
campaign will generate links.
Corresponds to the JSON property campaignSource
608 609 610 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 608 def campaign_source @campaign_source end |
#expire_time ⇒ DateTime
The time at which the campaign should expire. Do not specify a value if the
campaign has no expiration time.
Corresponds to the JSON property expireTime
614 615 616 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 614 def expire_time @expire_time end |
#name ⇒ String
The user-given name of the campaign.
Corresponds to the JSON property name
619 620 621 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 619 def name @name end |
#promoted_content ⇒ Array<Google::Apis::YoutubePartnerV1::PromotedContent>
A list of videos or channels that will be linked to from claimed videos that
are included in the campaign.
Corresponds to the JSON property promotedContent
625 626 627 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 625 def promoted_content @promoted_content end |
#start_time ⇒ DateTime
The time at which the campaign should start. Do not specify a value if the
campaign should start immediately.
Corresponds to the JSON property startTime
631 632 633 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 631 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
638 639 640 641 642 643 644 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 638 def update!(**args) @campaign_source = args[:campaign_source] if args.key?(:campaign_source) @expire_time = args[:expire_time] if args.key?(:expire_time) @name = args[:name] if args.key?(:name) @promoted_content = args[:promoted_content] if args.key?(:promoted_content) @start_time = args[:start_time] if args.key?(:start_time) end |