AdsApp.VideoGenderBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for
VideoGender objects.
Example usage:
var videoGenderBuilder = videoAdGroup.videoTargeting().newGenderBuilder();
var videoGenderOperation = videoGenderBuilder
.withGenderType('GENDER_FEMALE') // required
.build(); // create the gender
Methods:
build()
Builds the video gender. Returns a
VideoGenderOperation that corresponds to the creation of the
VideoGender.
Return values:
exclude()
Builds the excluded video gender. Returns an
ExcludedVideoGenderOperation that corresponds to the creation of the
ExcludedVideoGender.
Return values:
withGenderType(genderType)
Sets the gender type. Gender type can be the following values:
GENDER_FEMALE, GENDER_MALE, GENDER_UNDETERMINED
More
details can be found on our Genders
page.
Arguments:
Name | Type | Description |
genderType |
String |
The gender 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.
[null,null,["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eThis page documents the \u003ccode\u003eVideoGenderBuilder\u003c/code\u003e which is used to create or exclude video gender targeting for video ad groups.\u003c/p\u003e\n"],["\u003cp\u003eThe builder provides methods to specify the gender type (\u003ccode\u003ewithGenderType\u003c/code\u003e) and to build the operation (\u003ccode\u003ebuild\u003c/code\u003e or \u003ccode\u003eexclude\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ebuild()\u003c/code\u003e creates a \u003ccode\u003eVideoGender\u003c/code\u003e object for targeting, while \u003ccode\u003eexclude()\u003c/code\u003e creates an \u003ccode\u003eExcludedVideoGender\u003c/code\u003e object for exclusion.\u003c/p\u003e\n"],["\u003cp\u003eAvailable gender types are \u003ccode\u003eGENDER_FEMALE\u003c/code\u003e, \u003ccode\u003eGENDER_MALE\u003c/code\u003e, and \u003ccode\u003eGENDER_UNDETERMINED\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# AdsApp.VideoGenderBuilder\n\nBuilder for [VideoGender](/google-ads/scripts/docs/reference/adsapp/adsapp_videogender) objects.\n\nExample usage:\n\n```gdscript\nvar videoGenderBuilder = videoAdGroup.videoTargeting().newGenderBuilder();\nvar videoGenderOperation = videoGenderBuilder\n .withGenderType('GENDER_FEMALE') // required\n .build(); // create the gender\n```\n\n### Methods:\n\n| Member | Type | Description |\n|----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|-----------------------------------|\n| [build()](#build) | [AdsApp.VideoGenderOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_videogenderoperation) | Builds the video gender. |\n| [exclude()](#exclude) | [AdsApp.ExcludedVideoGenderOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideogenderoperation) | Builds the excluded video gender. |\n| [withGenderType(genderType)](#withGenderType_genderType) | [AdsApp.VideoGenderBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_videogenderbuilder) | Sets the gender type. |\n\n`build()`\n---------\n\nBuilds the video gender. Returns a [VideoGenderOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_videogenderoperation) that corresponds to the creation of the [VideoGender](/google-ads/scripts/docs/reference/adsapp/adsapp_videogender).\n\n### Return values:\n\n| Type | Description |\n|------------------------------------------------------------------------------------------------------|---------------------------|\n| [AdsApp.VideoGenderOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_videogenderoperation) | The VideoGenderOperation. |\n\n`exclude()`\n-----------\n\nBuilds the excluded video gender. Returns an [ExcludedVideoGenderOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideogenderoperation) that corresponds to the creation of the [ExcludedVideoGender](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideogender).\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------------------------------------|-----------------------------------|\n| [AdsApp.ExcludedVideoGenderOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideogenderoperation) | The ExcludedVideoGenderOperation. |\n\n`withGenderType(genderType)`\n----------------------------\n\nSets the gender type. Gender type can be the following values:\n\n`GENDER_FEMALE, GENDER_MALE, GENDER_UNDETERMINED` More\ndetails can be found on our [Genders](/google-ads/api/reference/data/codes-formats#genders)\npage.\n\n### Arguments:\n\n| Name | Type | Description |\n|------------|----------|------------------|\n| genderType | `String` | The gender type. |\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------------|------------------------------------------------------|\n| [AdsApp.VideoGenderBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_videogenderbuilder) | A VideoGenderBuilder with the specified gender type. |"]]