AI-generated Key Takeaways
-
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
orexclude
). -
build()
creates aVideoGender
object for targeting, whileexclude()
creates anExcludedVideoGender
object for exclusion. -
Available gender types are
GENDER_FEMALE
,GENDER_MALE
, andGENDER_UNDETERMINED
.
Example usage:
var videoGenderBuilder = videoAdGroup.videoTargeting().newGenderBuilder(); var videoGenderOperation = videoGenderBuilder .withGenderType('GENDER_FEMALE') // required .build(); // create the gender
Methods:
Member | Type | Description |
---|---|---|
build() | AdsApp.VideoGenderOperation |
Builds the video gender. |
exclude() | AdsApp.ExcludedVideoGenderOperation |
Builds the excluded video gender. |
withGenderType(genderType) | AdsApp.VideoGenderBuilder |
Sets the gender type. |
build()
Builds the video gender. Returns a
VideoGenderOperation that corresponds to the creation of the VideoGender. Return values:
Type | Description |
---|---|
AdsApp.VideoGenderOperation |
The VideoGenderOperation. |
exclude()
Builds the excluded video gender. Returns an
ExcludedVideoGenderOperation that corresponds to the creation of the ExcludedVideoGender. Return values:
Type | Description |
---|---|
AdsApp.ExcludedVideoGenderOperation |
The ExcludedVideoGenderOperation. |
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:
Type | Description |
---|---|
AdsApp.VideoGenderBuilder |
A VideoGenderBuilder with the specified gender type. |