NegativeKeywordListBuilder

Contains the methods for defining and creating a negative keyword list. For information about builders, see Builders.

Example usage:

     var operation = AdsApp.newNegativeKeywordListBuilder()
        .withName("NKW NAME GOES HERE")
        .build();

    // See the Builders topic for performance considerations
    // when using the operation object's methods.
    if (!operation.isSuccessful()) {
        for (var error of operation.getErrors()) {
            Logger.log(`${error}\n`);
        }
    }

Methods

Method Name Return Type Description
build NegativeKeywordListOperation Creates the negative keyword list and returns an operation object used to check whether the list was successfully added.
withName(string name) NegativeKeywordListBuilder Sets this negative keyword list's name.

build

Creates the negative keyword list and returns an operation object used to check whether the list was successfully added.

Returns

Type Description
NegativeKeywordListOperation An operation object used to check whether the list was successfully added.

withName(string name)

Sets this negative keyword list's name.

Arguments

Name Type Description
name string The name of the negative keyword list. The name may contain a maximum of 255 characters.

Returns

Type Description
NegativeKeywordListBuilder The negative keyword list builder with the name applied.