AdsApp.​Language

Represents a Google Ads language target.

Methods:

MemberTypeDescription
getBaseCampaignAdsApp.CampaignReturns the base campaign to which this language belongs.
getCampaignAdsApp.CampaignReturns the campaign to which this language belongs or null if it does not belong to a search or display campaign.
getCampaignTypeStringReturns the campaign type.
getEntityTypeStringReturns the type of this entity as a String, in this case, "Language".
getIdStringReturns the ID of the language.
getNameStringReturns the language name, e.g., "English", "German".
getResourceNameStringReturns the resource name of the language.
getVideoCampaignAdsApp.VideoCampaignReturns the video campaign to which this language belongs or null if it does not belong to a video campaign.
removevoidRemoves the language.

getBaseCampaign()

Returns the base campaign to which this language belongs.

Return values:

TypeDescription
AdsApp.CampaignThe 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:

TypeDescription
AdsApp.CampaignThe 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:

TypeDescription
StringVideo campaign type.

getEntityType()

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

Return values:

TypeDescription
StringType of this entity: "Language".

getId()

Returns the ID of the language.

Return values:

TypeDescription
StringThe ID of the language.

getName()

Returns the language name, e.g., "English", "German".

Return values:

TypeDescription
StringName of the language.

getResourceName()

Returns the resource name of the language.

Return values:

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

TypeDescription
AdsApp.VideoCampaignThe video campaign to which this language belongs or null if it does not belong to a video campaign.

remove()

Removes the language.

Returns nothing.