AdsApp.​ExcludedContentLabel

Represents a Google Ads excluded content label target. For a list of content labels, please see the page on content label type enum.

Methods:

MemberTypeDescription
getBaseCampaign() AdsApp.Campaign Returns the base campaign to which this excluded content label belongs.
getCampaign() AdsApp.Campaign Returns the campaign to which this excluded content label belongs or null if it does not belong to a search or display campaign.
getCampaignType() String Returns the campaign type.
getContentLabelType() String Returns the content label type.
getEntityType() String Returns the type of this entity as a String, in this case, "ExcludedContentLabel".
getId() String Returns the ID of the excluded content label.
getResourceName() String Returns the resource name of the excluded content label.
getVideoCampaign() AdsApp.VideoCampaign Returns the video campaign to which this excluded content label belongs or null if it does not belong to a video campaign.
remove() void Removes the excluded content label.

getBaseCampaign()

Returns the base campaign to which this excluded content label belongs.

Return values:

TypeDescription
AdsApp.Campaign The base campaign to which this excluded content label belongs.

getCampaign()

Returns the campaign to which this excluded content label belongs or null if it does not belong to a search or display campaign.

Return values:

TypeDescription
AdsApp.Campaign The campaign to which this excluded content label belongs or null if it does not belong to a search or display campaign.

getCampaignType()

Returns the campaign type. Possible return values:

SEARCH_OR_DISPLAY, VIDEO, SHOPPING

Return values:

TypeDescription
String Video campaign type.

getContentLabelType()

Returns the content label type. Possible returned values for search or display campaigns:

ADULTISH, AFE, BELOW_THE_FOLD, CONFLICT, DP, EMBEDDED_VIDEO, GAMES, JUVENILE, PROFANITY, UGC_FORUMS, UGC_IMAGES, UGC_SOCIAL, UGC_VIDEOS, TRAGEDY, SIRENS, VIDEO, VIDEO_RATING_DV_G, VIDEO_RATING_DV_PG, VIDEO_RATING_DV_T, VIDEO_RATING_DV_MA, VIDEO_NOT_YET_RATED, LIVE_STREAMING_VIDEO, NON_INTERSTITIAL

Possible returned values for video campaigns:

VIDEO_RATING_DV_G, VIDEO_RATING_DV_PG, VIDEO_RATING_DV_T, VIDEO_RATING_DV_MA, VIDEO_NOT_YET_RATED, EMBEDDED_VIDEO, LIVE_STREAMING_VIDEO, GAMES, VIDEO_SENS_TRAGEDY, VIDEO_SENS_SOCIAL_ISSUES

Return values:

TypeDescription
String The content label type.

getEntityType()

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

Return values:

TypeDescription
String Type of this entity: "ExcludedContentLabel".

getId()

Returns the ID of the excluded content label.

Return values:

TypeDescription
String The ID of the excluded content label.

getResourceName()

Returns the resource name of the excluded content label.

Return values:

TypeDescription
String The resource name of the excluded content label.

getVideoCampaign()

Returns the video campaign to which this excluded content label belongs or null if it does not belong to a video campaign.

Return values:

TypeDescription
AdsApp.VideoCampaign The video campaign to which this excluded content label belongs or null if it does not belong to a video campaign.

remove()

Removes the excluded content label.

Returns nothing.