AdsApp.NegativeKeywordListBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for a negative keyword list under construction.
Typical usage:
var negativeKeywordListOperation =
AdsApp.newNegativeKeywordListBuilder()
.withName("NegativeKeywordList")
.build();
var negativeKeywordList = negativeKeywordListOperation.getResult();
Note that it is only necessary to call NegativeKeywordListOperation.getResult
if you need to access the actual negative keyword list for further
processing. Otherwise, calling NegativeKeywordListBuilder.build()
on the NegativeKeywordListBuilder
is sufficient to ensure that
the NegativeKeywordList is created.
Methods:
build()
Creates a
NegativeKeywordList.
Returns a
NegativeKeywordListOperation that can be used to get the new negative keyword list (or
access any associated errors if creation failed).
Return values:
withName(name)
Sets the name of the new negative keyword list to the specified value.
Arguments:
Name | Type | Description |
name |
String |
Name of the new negative keyword list. |
Return values:
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-01-28 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-01-28 UTC."],[[["The `NegativeKeywordListBuilder` is used to create new negative keyword lists in Google Ads."],["Calling `build()` on the builder is sufficient to create the negative keyword list."],["To access the created list for further actions, use `NegativeKeywordListOperation.getResult()` after calling `build()`."],["The `withName()` method allows assigning a specific name to the negative keyword list during creation."]]],[]]