AdsApp.Language
Stay organized with collections
Save and categorize content based on your preferences.
Represents a Google Ads language target.
Methods:
getBaseCampaign()
Returns the base campaign to which this language belongs.
Return values:
Type | Description |
AdsApp.Campaign |
The base campaign to which this language belongs. |
getCampaign()
Returns the campaign to which this language 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 language 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. |
getEntityType()
Returns the type of this entity as a
String
, in this case,
"Language"
.
Return values:
Type | Description |
String |
Type of this entity: "Language" . |
getId()
Returns the ID of the language.
Return values:
Type | Description |
String |
The ID of the language. |
getName()
Returns the language name, e.g., "English", "German".
Return values:
Type | Description |
String |
Name of the language. |
getResourceName()
Returns the resource name of the language.
Return values:
Type | Description |
String |
The resource name of the language. |
getVideoCampaign()
Returns the video campaign to which this language belongs or
null
if it does not belong to a video campaign.
Return values:
Type | Description |
AdsApp.VideoCampaign |
The video campaign to which this language belongs or
null if it
does not belong to a video campaign. |
remove()
Removes the language.
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-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eRepresents a language target within Google Ads, enabling ad delivery to users who speak a specific language.\u003c/p\u003e\n"],["\u003cp\u003eProvides methods to identify the associated campaign type (Search, Display, Video, Shopping) and retrieve campaign details.\u003c/p\u003e\n"],["\u003cp\u003eAllows retrieval of language attributes like ID, name, and resource name for management purposes.\u003c/p\u003e\n"],["\u003cp\u003eOffers functionalities to retrieve or remove the language target from campaigns.\u003c/p\u003e\n"]]],[],null,["Represents a Google Ads language target.\n\nMethods:\n\n| Member | Type | Description |\n|-----------------------------------------|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [getBaseCampaign](#getBaseCampaign_0) | [AdsApp.Campaign](/google-ads/scripts/docs/reference/adsapp/adsapp_campaign) | Returns the base campaign to which this language belongs. |\n| [getCampaign](#getCampaign_0) | [AdsApp.Campaign](/google-ads/scripts/docs/reference/adsapp/adsapp_campaign) | Returns the campaign to which this language belongs or `null` if it does not belong to a search or display campaign. |\n| [getCampaignType](#getCampaignType_0) | `String` | Returns the campaign type. |\n| [getEntityType](#getEntityType_0) | `String` | Returns the type of this entity as a `String`, in this case, `\"Language\"`. |\n| [getId](#getId_0) | `String` | Returns the ID of the language. |\n| [getName](#getName_0) | `String` | Returns the language name, e.g., \"English\", \"German\". |\n| [getResourceName](#getResourceName_0) | `String` | Returns the resource name of the language. |\n| [getVideoCampaign](#getVideoCampaign_0) | [AdsApp.VideoCampaign](/google-ads/scripts/docs/reference/adsapp/adsapp_videocampaign) | Returns the video campaign to which this language belongs or `null` if it does not belong to a video campaign. |\n| [remove](#remove_0) | `void` | Removes the language. |\n\n`getBaseCampaign()` Returns the base campaign to which this language belongs.\n\nReturn values:\n\n| Type | Description |\n|------------------------------------------------------------------------------|---------------------------------------------------|\n| [AdsApp.Campaign](/google-ads/scripts/docs/reference/adsapp/adsapp_campaign) | The base campaign to which this language belongs. |\n\n`getCampaign()` Returns the campaign to which this language belongs or `null` if it does not belong to a search or display campaign.\n\nReturn values:\n\n| Type | Description |\n|------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| [AdsApp.Campaign](/google-ads/scripts/docs/reference/adsapp/adsapp_campaign) | The campaign to which this language belongs or `null` if it does not belong to a search or display campaign. |\n\n`getCampaignType()` Returns the campaign type. Possible return values:\n\n`SEARCH_OR_DISPLAY, VIDEO, SHOPPING`\n\nReturn values:\n\n| Type | Description |\n|----------|----------------------|\n| `String` | Video campaign type. |\n\n`getEntityType()` Returns the type of this entity as a `String`, in this case, `\"Language\"`.\n\nReturn values:\n\n| Type | Description |\n|----------|------------------------------------|\n| `String` | Type of this entity: `\"Language\"`. |\n\n`getId()` Returns the ID of the language.\n\nReturn values:\n\n| Type | Description |\n|----------|-------------------------|\n| `String` | The ID of the language. |\n\n`getName()` Returns the language name, e.g., \"English\", \"German\".\n\nReturn values:\n\n| Type | Description |\n|----------|-----------------------|\n| `String` | Name of the language. |\n\n`getResourceName()` Returns the resource name of the language.\n\nReturn values:\n\n| Type | Description |\n|----------|------------------------------------|\n| `String` | The resource name of the language. |\n\n`getVideoCampaign()` Returns the video campaign to which this language belongs or `null` if it does not belong to a video campaign.\n\nReturn values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| [AdsApp.VideoCampaign](/google-ads/scripts/docs/reference/adsapp/adsapp_videocampaign) | The video campaign to which this language belongs or `null` if it does not belong to a video campaign. |\n\n`remove()` Removes the language.\n\nReturns nothing."]]