AI-generated Key Takeaways
-
The
ExcludedPlacementListBuilder
is used to create new excluded placement lists in Google Ads. -
To create an excluded placement list, you need to specify a name using
withName()
and then callbuild()
. -
Calling
ExcludedPlacementListOperation.getResult()
is only necessary if you need to access the created excluded placement list for further operations. -
build()
returns anExcludedPlacementListOperation
object, which contains the newly created excluded placement list or any errors encountered during creation.
Typical usage:
var excludedPlacementListOperation = AdsApp.newExcludedPlacementListBuilder() .withName("ExcludedPlacementList") .build(); var excludedPlacementList = excludedPlacementListOperation.getResult();
Note that it is only necessary to call ExcludedPlacementListOperation.getResult
if you need to access the actual excluded placement list for further
processing. Otherwise, calling ExcludedPlacementListBuilder.build()
on the ExcludedPlacementListBuilder
is sufficient to ensure that
the ExcludedPlacementList is created.
Methods:
Member | Type | Description |
---|---|---|
build() | AdsApp.ExcludedPlacementListOperation |
Creates a ExcludedPlacementList. |
withName(name) | AdsApp.ExcludedPlacementListBuilder |
Sets the name of the new excluded placement list to the specified value. |
build()
Creates a ExcludedPlacementList.
Returns a ExcludedPlacementListOperation that can be used to get the new excluded placement list (or
access any associated errors if creation failed). Return values:
Type | Description |
---|---|
AdsApp.ExcludedPlacementListOperation |
The associated excluded placement list operation. |
withName(name)
Sets the name of the new excluded placement list to the specified value. Arguments:
Name | Type | Description |
---|---|---|
name | String |
Name of the new excluded placement list. |
Return values:
Type | Description |
---|---|
AdsApp.ExcludedPlacementListBuilder |
The excluded placement list builder with the specified name. |