AdsApp.​ExcludedTopic

Represents a Google Ads excluded topic.

Methods:

MemberTypeDescription
getAdGroup() AdsApp.AdGroup Returns the ad group to which this excluded topic belongs.
getBaseAdGroup() AdsApp.AdGroup Returns the base ad group to which this excluded topic belongs.
getBaseCampaign() AdsApp.Campaign Returns the base campaign to which this excluded topic belongs.
getCampaign() AdsApp.Campaign Returns the campaign to which this excluded topic belongs or null if it does not belong to a search or display campaign.
getId() String Returns the ID of the excluded topic.
getResourceName() String Returns the resource name of the excluded topic.
getTopicId() String Returns the topic ID of the excluded topic.
remove() void Removes the excluded topic.

getAdGroup()

Returns the ad group to which this excluded topic belongs.

Return values:

TypeDescription
AdsApp.AdGroup The ad group to which this excluded topic belongs.

getBaseAdGroup()

Returns the base ad group to which this excluded topic belongs.

Return values:

TypeDescription
AdsApp.AdGroup The base ad group to which this excluded topic belongs.

getBaseCampaign()

Returns the base campaign to which this excluded topic belongs.

Return values:

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

getCampaign()

Returns the campaign to which this excluded topic 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 topic belongs or null if it does not belong to a search or display campaign.

getId()

Returns the ID of the excluded topic.

Return values:

TypeDescription
String The ID of the excluded topic.

getResourceName()

Returns the resource name of the excluded topic.

Return values:

TypeDescription
String The resource name of the excluded topic.

getTopicId()

Returns the topic ID of the excluded topic. The topic ID identifies the topic category. A list of valid topic IDs is available on our Verticals page.

Return values:

TypeDescription
String The topic ID of the excluded topic.

remove()

Removes the excluded topic.

Returns nothing.