class Google::Apis::YoutubePartnerV1::Conditions

Attributes

content_match_type[RW]

This match condition specifies whether the user- or partner-uploaded content needs to match the audio, video or audiovisual content of a reference file for the rule to apply. Corresponds to the JSON property `contentMatchType` @return [Array<String>]

match_duration[RW]

This match condition specifies an amount of time that the user- or partner- uploaded content needs to match a reference file for the rule to apply. Corresponds to the JSON property `matchDuration` @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]

match_percent[RW]

This match condition specifies a percentage of the user- or partner-uploaded content that needs to match a reference file for the rule to apply. Corresponds to the JSON property `matchPercent` @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]

reference_duration[RW]

This match condition indicates that the reference must be a certain duration for the rule to apply. Corresponds to the JSON property `referenceDuration` @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]

reference_percent[RW]

This match condition indicates that the specified percentage of a reference file must match the user- or partner-uploaded content for the rule to apply. Corresponds to the JSON property `referencePercent` @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]

required_territories[RW]

This watch condition specifies where users are (or or not) allowed to watch ( or listen to) an asset. YouTube determines whether the condition is satisfied based on the user's location. Corresponds to the JSON property `requiredTerritories` @return [Google::Apis::YoutubePartnerV1::TerritoryCondition]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_partner_v1/classes.rb, line 1293
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 1298
def update!(**args)
  @content_match_type = args[:content_match_type] if args.key?(:content_match_type)
  @match_duration = args[:match_duration] if args.key?(:match_duration)
  @match_percent = args[:match_percent] if args.key?(:match_percent)
  @reference_duration = args[:reference_duration] if args.key?(:reference_duration)
  @reference_percent = args[:reference_percent] if args.key?(:reference_percent)
  @required_territories = args[:required_territories] if args.key?(:required_territories)
end