AdsApp.​ExcludedAudience

Represents a Google Ads excluded audience.

Methods:

MemberTypeDescription
getAdGroup AdsApp.AdGroup Returns the ad group to which this excluded audience belongs.
getAudienceId long Returns the audience ID of the excluded audience.
getAudienceType String Returns the type of the excluded audience, either USER_INTEREST or USER_LIST.
getBaseAdGroup AdsApp.AdGroup Returns the base ad group to which this excluded audience belongs.
getBaseCampaign AdsApp.Campaign Returns the base campaign to which this excluded audience belongs.
getCampaign AdsApp.Campaign Returns the campaign to which this excluded audience belongs or null if it does not belong to a search or display campaign.
getId long Returns the ID of the excluded audience.
remove void Removes the excluded audience.

getAdGroup()

Returns the ad group to which this excluded audience belongs.

Return values:

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

getAudienceId()

Returns the audience ID of the excluded audience.

Return values:

TypeDescription
long The audience ID of the excluded audience.

getAudienceType()

Returns the type of the excluded audience, either USER_INTEREST or USER_LIST.

Return values:

TypeDescription
String The type of the excluded audience.

getBaseAdGroup()

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

Return values:

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

getBaseCampaign()

Returns the base campaign to which this excluded audience belongs.

Return values:

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

getCampaign()

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

getId()

Returns the ID of the excluded audience.

Return values:

TypeDescription
long The ID of the excluded audience.

remove()

Removes the excluded audience.

Returns nothing.

发送以下问题的反馈:

此网页
Google Ads scripts
Google Ads scripts
需要帮助?请访问我们的支持页面