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-01-28 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-01-28 UTC."],[[["This page documents the `VideoGenderBuilder` which is used to create or exclude video gender targeting for video ad groups."],["The builder provides methods to specify the gender type (`withGenderType`) and to build the operation (`build` or `exclude`)."],["`build()` creates a `VideoGender` object for targeting, while `exclude()` creates an `ExcludedVideoGender` object for exclusion."],["Available gender types are `GENDER_FEMALE`, `GENDER_MALE`, and `GENDER_UNDETERMINED`."]]],[]]