AdsApp.​ExcludedVideoGender

  • Represents an excluded gender criterion within Google Ads Video Campaigns, allowing advertisers to refine targeting.

  • Provides methods to access and manage the excluded gender criteria, including retrieving gender type and associated campaign/ad group.

  • Enables advertisers to exclude specific genders (Male, Female, Undetermined) from their video ad targeting.

  • Offers functionality to re-include previously excluded gender criteria back into the targeting.

Represents a Google Ads excluded Gender criterion in a Video Campaign.

Methods:

MemberTypeDescription
getEntityType() String Returns the type of this entity as a String, in this case, "ExcludedVideoGender".
getGenderType() String Returns the gender type.
getId() String Returns the ID of the excluded video gender.
getResourceName() String Returns the resource name of the excluded video gender.
getVideoAdGroup() 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.
getVideoCampaign() AdsApp.VideoCampaign Returns the campaign to which this excluded video gender belongs.
include() void Enable this excluded video gender in the ad group.

getEntityType()

Returns the type of this entity as a String, in this case, "ExcludedVideoGender".

Return values:

TypeDescription
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:

TypeDescription
String The gender type.

getId()

Returns the ID of the excluded video gender.

Return values:

TypeDescription
String The ID of the excluded video gender.

getResourceName()

Returns the resource name of the excluded video gender.

Return values:

TypeDescription
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:

TypeDescription
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:

TypeDescription
AdsApp.VideoCampaign The campaign to which this excluded video gender belongs.

include()

Enable this excluded video gender in the ad group.

Returns nothing.