AdsApp.VideoParentalStatusBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for
VideoParentalStatus
objects.
Example usage:
var videoParentalStatusBuilder = videoAdGroup
.videoTargeting()
.newParentalStatusBuilder();
var videoParentalStatusOperation = videoParentalStatusBuilder
.withParentType('PARENT_PARENT') // required
.build(); // create the parental status
Methods:
build()
Builds the video parental status. Returns a
VideoParentalStatusOperation that corresponds to the creation of the
VideoParentalStatus.
Return values:
exclude()
Builds the excluded video parental status. Returns an
ExcludedVideoParentalStatusOperation that corresponds to the creation of the
ExcludedVideoParentalStatus.
Return values:
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:
Name | Type | Description |
parentalStatus |
String |
The parental status type. |
Return values:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eVideoParentalStatusBuilder\u003c/code\u003e is used to create or exclude video parental status targeting for video ad groups.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods like \u003ccode\u003ebuild()\u003c/code\u003e to create a \u003ccode\u003eVideoParentalStatus\u003c/code\u003e and \u003ccode\u003eexclude()\u003c/code\u003e to create an \u003ccode\u003eExcludedVideoParentalStatus\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ewithParentType()\u003c/code\u003e method allows specifying the target parental status type (e.g., 'PARENT_PARENT', 'PARENT_NOT_A_PARENT').\u003c/p\u003e\n"]]],[],null,["# AdsApp.VideoParentalStatusBuilder\n\nBuilder for [VideoParentalStatus](/google-ads/scripts/docs/reference/adsapp/adsapp_videoparentalstatus) objects.\n\nExample usage:\n\n```gdscript\nvar videoParentalStatusBuilder = videoAdGroup\n .videoTargeting()\n .newParentalStatusBuilder();\nvar videoParentalStatusOperation = videoParentalStatusBuilder\n .withParentType('PARENT_PARENT') // required\n .build(); // create the parental status\n```\n\n### Methods:\n\n| Member | Type | Description |\n|------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|\n| [build()](#build) | [AdsApp.VideoParentalStatusOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_videoparentalstatusoperation) | Builds the video parental status. |\n| [exclude()](#exclude) | [AdsApp.ExcludedVideoParentalStatusOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideoparentalstatusoperation) | Builds the excluded video parental status. |\n| [withParentType(parentalStatus)](#withParentType_parentalStatus) | [AdsApp.VideoParentalStatusBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_videoparentalstatusbuilder) | Sets the parental status type. |\n\n`build()`\n---------\n\nBuilds the video parental status. Returns a [VideoParentalStatusOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_videoparentalstatusoperation) that corresponds to the creation of the [VideoParentalStatus](/google-ads/scripts/docs/reference/adsapp/adsapp_videoparentalstatus).\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------------------------------------|-----------------------------------|\n| [AdsApp.VideoParentalStatusOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_videoparentalstatusoperation) | The VideoParentalStatusOperation. |\n\n`exclude()`\n-----------\n\nBuilds the excluded video parental status. Returns an [ExcludedVideoParentalStatusOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideoparentalstatusoperation) that corresponds to the creation of the [ExcludedVideoParentalStatus](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideoparentalstatus).\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|\n| [AdsApp.ExcludedVideoParentalStatusOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideoparentalstatusoperation) | The ExcludedVideoParentalStatusOperation. |\n\n`withParentType(parentalStatus)`\n--------------------------------\n\nSets the parental status type. Parental status can be the following values:\n\n`PARENT_PARENT, PARENT_NOT_A_PARENT, PARENT_UNDETERMINED`.\nMore details can be found on [Parental\nstatus](/google-ads/api/reference/data/codes-formats#parental-status).\n\n### Arguments:\n\n| Name | Type | Description |\n|----------------|----------|---------------------------|\n| parentalStatus | `String` | The parental status type. |\n\n### Return values:\n\n| Type | Description |\n|------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------|\n| [AdsApp.VideoParentalStatusBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_videoparentalstatusbuilder) | A VideoParentalStatusBuilder with the specified parental status. |"]]