AdsApp.​ProductTypeBuilder

  • The ProductTypeBuilder is used to create ProductType objects.

  • The build() method creates the product type and returns a ProductTypeOperation.

  • The withBid(bid) method specifies the bid for the product type, defaulting to the parent's bid if not set.

  • The withValue(value) method sets the value for the product type.

Builder for ProductType objects.

Methods:

MemberTypeDescription
build() AdsApp.ProductTypeOperation Builds the product type.
withBid(bid) AdsApp.ProductTypeBuilder Specifies the bid of the product type.
withValue(value) AdsApp.ProductTypeBuilder Specifies the value of the product type.

build()

Builds the product type. Returns a ProductTypeOperation that corresponds to the creation of the ProductType.

Return values:

TypeDescription
AdsApp.ProductTypeOperation The ProductTypeOperation.

withBid(bid)

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

Arguments:

NameTypeDescription
bid double The bid.

Return values:

TypeDescription
AdsApp.ProductTypeBuilder The ProductTypeBuilder with the specified bid.

withValue(value)

Specifies the value of the product type.

Arguments:

NameTypeDescription
value String The value.

Return values:

TypeDescription
AdsApp.ProductTypeBuilder The ProductTypeBuilder with the specified value.