AdsApp.​ProductBrandBuilder

  • The ProductBrand builder facilitates the creation of new product brands within Google Ads.

  • It allows for customization of the brand's name, bid, and value during the building process.

  • The build() method finalizes the creation process and returns a ProductBrandOperation for execution.

  • Specifying a name using withName() is mandatory for successful brand creation, while bid and value can be inherited or explicitly set using withBid() and withValue() respectively.

Builder for ProductBrand objects.

Methods:

MemberTypeDescription
build() AdsApp.ProductBrandOperation Builds the product brand.
withBid(bid) AdsApp.ProductBrandBuilder Specifies the bid of the product brand.
withName(productBrandName) AdsApp.ProductBrandBuilder Specifies the name of the new product brand.
withValue(value) AdsApp.ProductBrandBuilder Specifies the value of the product brand.

build()

Builds the product brand. Returns a ProductBrandOperation that corresponds to the creation of the ProductBrand.

Return values:

TypeDescription
AdsApp.ProductBrandOperation The ProductBrandOperation.

withBid(bid)

Specifies the bid of the product brand. If this is unspecified, will use the bid of the parent product group.

Arguments:

NameTypeDescription
bid double The bid.

Return values:

TypeDescription
AdsApp.ProductBrandBuilder The ProductBrandBuilder with the specified bid.

withName(productBrandName)

Specifies the name of the new product brand. If the name is unspecified before calling ProductBrandBuilder.build(), the brand will fail to build.

Arguments:

NameTypeDescription
productBrandName String The name to specify for the new product brand.

Return values:

TypeDescription
AdsApp.ProductBrandBuilder Product brand builder with the specified name.

withValue(value)

Specifies the value of the product brand.

Arguments:

NameTypeDescription
value String The value.

Return values:

TypeDescription
AdsApp.ProductBrandBuilder The ProductBrandBuilder with the specified value.