AdsApp.ExcludedVideoGender
Stay organized with collections
Save and categorize content based on your preferences.
Represents a Google Ads excluded Gender criterion in a Video Campaign.
Methods:
getEntityType()
Returns the type of this entity as a
String
, in this case,
"ExcludedVideoGender"
.
Return values:
Type | Description |
String |
Type of this entity: "ExcludedVideoGender" . |
getGenderType()
Returns the gender type. Possible return values:
GENDER_FEMALE, GENDER_MALE, GENDER_UNDETERMINED
More
details can be found on our Genders
page.
Return values:
Type | Description |
String |
The gender type. |
getId()
Returns the ID of the excluded video gender.
Return values:
Type | Description |
String |
The ID of the excluded video gender. |
getResourceName()
Returns the resource name of the excluded video gender.
Return values:
Type | Description |
String |
The resource name of the excluded video gender. |
getVideoAdGroup()
Returns the ad group to which this excluded video gender belongs, or
null
if the
excluded video gender is excluded at the campaign level.
Return values:
Type | Description |
AdsApp.VideoAdGroup |
The ad group to which this excluded video gender belongs or
null . |
getVideoCampaign()
Returns the campaign to which this excluded video gender belongs.
Return values:
include()
Enable this excluded video gender in the ad group.
Returns nothing.
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\u003eRepresents an excluded gender criterion within Google Ads Video Campaigns, allowing advertisers to refine targeting.\u003c/p\u003e\n"],["\u003cp\u003eProvides methods to access and manage the excluded gender criteria, including retrieving gender type and associated campaign/ad group.\u003c/p\u003e\n"],["\u003cp\u003eEnables advertisers to exclude specific genders (Male, Female, Undetermined) from their video ad targeting.\u003c/p\u003e\n"],["\u003cp\u003eOffers functionality to re-include previously excluded gender criteria back into the targeting.\u003c/p\u003e\n"]]],[],null,["# AdsApp.ExcludedVideoGender\n\nRepresents a Google Ads excluded Gender criterion in a Video Campaign.\n\n### Methods:\n\n| Member | Type | Description |\n|-----------------------------------------|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| [getEntityType()](#getEntityType) | `String` | Returns the type of this entity as a `String`, in this case, `\"ExcludedVideoGender\"`. |\n| [getGenderType()](#getGenderType) | `String` | Returns the gender type. |\n| [getId()](#getId) | `String` | Returns the ID of the excluded video gender. |\n| [getResourceName()](#getResourceName) | `String` | Returns the resource name of the excluded video gender. |\n| [getVideoAdGroup()](#getVideoAdGroup) | [AdsApp.VideoAdGroup](/google-ads/scripts/docs/reference/adsapp/adsapp_videoadgroup) | Returns the ad group to which this excluded video gender belongs, or `null` if the excluded video gender is excluded at the campaign level. |\n| [getVideoCampaign()](#getVideoCampaign) | [AdsApp.VideoCampaign](/google-ads/scripts/docs/reference/adsapp/adsapp_videocampaign) | Returns the campaign to which this excluded video gender belongs. |\n| [include()](#include) | `void` | Enable this excluded video gender in the ad group. |\n\n`getEntityType()`\n-----------------\n\nReturns the type of this entity as a `String`, in this case, `\"ExcludedVideoGender\"`.\n\n### Return values:\n\n| Type | Description |\n|----------|-----------------------------------------------|\n| `String` | Type of this entity: `\"ExcludedVideoGender\"`. |\n\n`getGenderType()`\n-----------------\n\nReturns the gender type. Possible return 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### Return values:\n\n| Type | Description |\n|----------|------------------|\n| `String` | The gender type. |\n\n`getId()`\n---------\n\nReturns the ID of the excluded video gender.\n\n### Return values:\n\n| Type | Description |\n|----------|--------------------------------------|\n| `String` | The ID of the excluded video gender. |\n\n`getResourceName()`\n-------------------\n\nReturns the resource name of the excluded video gender.\n\n### Return values:\n\n| Type | Description |\n|----------|-------------------------------------------------|\n| `String` | The resource name of the excluded video gender. |\n\n`getVideoAdGroup()`\n-------------------\n\nReturns the ad group to which this excluded video gender belongs, or `null` if the excluded video gender is excluded at the campaign level.\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------|---------------------------------------------------------------------|\n| [AdsApp.VideoAdGroup](/google-ads/scripts/docs/reference/adsapp/adsapp_videoadgroup) | The ad group to which this excluded video gender belongs or `null`. |\n\n`getVideoCampaign()`\n--------------------\n\nReturns the campaign to which this excluded video gender belongs.\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [AdsApp.VideoCampaign](/google-ads/scripts/docs/reference/adsapp/adsapp_videocampaign) | The campaign to which this excluded video gender belongs. |\n\n`include()`\n-----------\n\nEnable this excluded video gender in the ad group.\n\nReturns nothing."]]