AdsApp.ExcludedPlacementListBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for an excluded placement list under construction.
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:
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:
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:
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-08-25 UTC.
[null,null,["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eExcludedPlacementListBuilder\u003c/code\u003e is used to create new excluded placement lists in Google Ads.\u003c/p\u003e\n"],["\u003cp\u003eTo create an excluded placement list, you need to specify a name using \u003ccode\u003ewithName()\u003c/code\u003e and then call \u003ccode\u003ebuild()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003eExcludedPlacementListOperation.getResult()\u003c/code\u003e is only necessary if you need to access the created excluded placement list for further operations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ebuild()\u003c/code\u003e returns an \u003ccode\u003eExcludedPlacementListOperation\u003c/code\u003e object, which contains the newly created excluded placement list or any errors encountered during creation.\u003c/p\u003e\n"]]],[],null,["# AdsApp.ExcludedPlacementListBuilder\n\nBuilder for an excluded placement list under construction.\n\nTypical usage:\n\n```gdscript\nvar excludedPlacementListOperation =\n AdsApp.newExcludedPlacementListBuilder()\n .withName(\"ExcludedPlacementList\")\n .build();\nvar excludedPlacementList = excludedPlacementListOperation.getResult();\n```\n\nNote that it is only necessary to call [ExcludedPlacementListOperation.getResult](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedplacementlistoperation#getResult)\nif you need to access the actual excluded placement list for further\nprocessing. Otherwise, calling [ExcludedPlacementListBuilder.build()](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedplacementlistbuilder#build)\non the `ExcludedPlacementListBuilder` is sufficient to ensure that\nthe ExcludedPlacementList is created.\n\n### Methods:\n\n| Member | Type | Description |\n|----------------------------------|--------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| [build()](#build) | [AdsApp.ExcludedPlacementListOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedplacementlistoperation) | Creates a [ExcludedPlacementList](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedplacementlist). |\n| [withName(name)](#withName_name) | [AdsApp.ExcludedPlacementListBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedplacementlistbuilder) | Sets the name of the new excluded placement list to the specified value. |\n\n`build()`\n---------\n\nCreates a [ExcludedPlacementList](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedplacementlist). Returns a [ExcludedPlacementListOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedplacementlistoperation) that can be used to get the new excluded placement list (or access any associated errors if creation failed).\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------|\n| [AdsApp.ExcludedPlacementListOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedplacementlistoperation) | The associated excluded placement list operation. |\n\n`withName(name)`\n----------------\n\nSets the name of the new excluded placement list to the specified value.\n\n### Arguments:\n\n| Name | Type | Description |\n|------|----------|------------------------------------------|\n| name | `String` | Name of the new excluded placement list. |\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|\n| [AdsApp.ExcludedPlacementListBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_excludedplacementlistbuilder) | The excluded placement list builder with the specified name. |"]]