AdsApp.​VideoParentalStatusBuilder

Builder for VideoParentalStatus objects.

Example usage:

var videoParentalStatusBuilder = videoAdGroup
  .videoTargeting()
  .newParentalStatusBuilder();
var videoParentalStatusOperation = videoParentalStatusBuilder
  .withParentType('PARENT_PARENT')     // required
  .build();                            // create the parental status

Methods:

MemberTypeDescription
buildAdsApp.VideoParentalStatusOperationBuilds the video parental status.
excludeAdsApp.ExcludedVideoParentalStatusOperationBuilds the excluded video parental status.
withParentTypeAdsApp.VideoParentalStatusBuilderSets the parental status type.

build()

Builds the video parental status. Returns a VideoParentalStatusOperation that corresponds to the creation of the VideoParentalStatus.

Return values:

TypeDescription
AdsApp.VideoParentalStatusOperationThe VideoParentalStatusOperation.

exclude()

Builds the excluded video parental status. Returns an ExcludedVideoParentalStatusOperation that corresponds to the creation of the ExcludedVideoParentalStatus.

Return values:

TypeDescription
AdsApp.ExcludedVideoParentalStatusOperationThe ExcludedVideoParentalStatusOperation.

withParentType(parentalStatus)

Sets the parental status type. Parental status can be the following values:

PARENT_PARENT, PARENT_NOT_A_PARENT, PARENT_UNDETERMINED. More details can be found on Parental status.

Arguments:

NameTypeDescription
parentalStatusStringThe parental status type.

Return values:

TypeDescription
AdsApp.VideoParentalStatusBuilderA VideoParentalStatusBuilder with the specified parental status.