AdsApp.ProductItemIdBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for
ProductItemId
objects.
Methods:
build()
Builds the product item id. Returns a
ProductItemIdOperation that corresponds
to the creation of the
ProductItemId.
Return values:
withBid(bid)
Specifies the bid of the product item id. If this is unspecified, will
use the bid of the parent product group.
Arguments:
Name | Type | Description |
bid |
double |
The bid. |
Return values:
withValue(value)
Specifies the value of the product item id.
Arguments:
Name | Type | Description |
value |
String |
The value. |
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.
[[["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-08-25 UTC."],[[["\u003cp\u003eThis page documents the \u003ccode\u003eProductItemId\u003c/code\u003e builder, which is used to create and manage product item IDs in Google Ads scripts.\u003c/p\u003e\n"],["\u003cp\u003eThe builder provides methods to specify the bid and value for the product item ID.\u003c/p\u003e\n"],["\u003cp\u003eIf the bid is not specified using \u003ccode\u003ewithBid()\u003c/code\u003e, the system defaults to the parent product group's bid.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method finalizes the product item ID creation and returns a \u003ccode\u003eProductItemIdOperation\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# AdsApp.ProductItemIdBuilder\n\nBuilder for [ProductItemId](/google-ads/scripts/docs/reference/adsapp/adsapp_productitemid) objects.\n\n### Methods:\n\n| Member | Type | Description |\n|--------------------------------------|----------------------------------------------------------------------------------------------------------|---------------------------------------------|\n| [build()](#build) | [AdsApp.ProductItemIdOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_productitemidoperation) | Builds the product item id. |\n| [withBid(bid)](#withBid_bid) | [AdsApp.ProductItemIdBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_productitemidbuilder) | Specifies the bid of the product item id. |\n| [withValue(value)](#withValue_value) | [AdsApp.ProductItemIdBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_productitemidbuilder) | Specifies the value of the product item id. |\n\n`build()`\n---------\n\nBuilds the product item id. Returns a [ProductItemIdOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_productitemidoperation) that corresponds to the creation of the [ProductItemId](/google-ads/scripts/docs/reference/adsapp/adsapp_productitemid).\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------------------------|-----------------------------|\n| [AdsApp.ProductItemIdOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_productitemidoperation) | The ProductItemIdOperation. |\n\n`withBid(bid)`\n--------------\n\nSpecifies the bid of the product item id. If this is unspecified, will use the bid of the parent product group.\n\n### Arguments:\n\n| Name | Type | Description |\n|------|----------|-------------|\n| bid | `double` | The bid. |\n\n### Return values:\n\n| Type | Description |\n|------------------------------------------------------------------------------------------------------|--------------------------------------------------|\n| [AdsApp.ProductItemIdBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_productitemidbuilder) | The ProductItemIdBuilder with the specified bid. |\n\n`withValue(value)`\n------------------\n\nSpecifies the value of the product item id.\n\n### Arguments:\n\n| Name | Type | Description |\n|-------|----------|-------------|\n| value | `String` | The value. |\n\n### Return values:\n\n| Type | Description |\n|------------------------------------------------------------------------------------------------------|----------------------------------------------------|\n| [AdsApp.ProductItemIdBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_productitemidbuilder) | The ProductItemIdBuilder with the specified value. |"]]