Page Summary
-
An ExcludedContentLabel represents a Google Ads excluded content label target.
-
You can retrieve the base campaign or specific campaign (search, display, or video) to which an excluded content label belongs.
-
You can get details about the excluded content label, including its type, the type of the entity, its ID, and its resource name.
-
An ExcludedContentLabel can be removed.
Methods:
| Member | Type | Description |
|---|---|---|
AdsApp.Campaign
|
Returns the base campaign to which this excluded content label belongs. | |
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. |
|
String
|
Returns the campaign type. | |
String
|
Returns the content label type. | |
String
|
Returns the type of this entity as a String
, in this case, "ExcludedContentLabel"
. |
|
String
|
Returns the ID of the excluded content label. | |
String
|
Returns the resource name of the excluded content label. | |
AdsApp.VideoCampaign
|
Returns the video campaign to which this excluded content label belongs or null
if it does not belong to a video campaign. |
|
void
|
Removes the excluded content label. |
getBaseCampaign()
Returns the base campaign to which this excluded content label belongs. Return values:
| Type | Description |
|---|---|
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:
| Type | Description |
|---|---|
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:
| Type | Description |
|---|---|
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:
| Type | Description |
|---|---|
String
|
The content label type. |
getEntityType()
Returns the type of this entity as a String
, in this case, "ExcludedContentLabel"
. Return values:
| Type | Description |
|---|---|
String
|
Type of this entity: "ExcludedContentLabel"
. |
getId()
Returns the ID of the excluded content label. Return values:
| Type | Description |
|---|---|
String
|
The ID of the excluded content label. |
getResourceName()
Returns the resource name of the excluded content label. Return values:
| Type | Description |
|---|---|
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:
| Type | Description |
|---|---|
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.

