AI-generated Key Takeaways
-
This operation facilitates the creation of new product custom labels within Google Ads.
-
Calling any of its methods (
getErrors
,getResult
, orisSuccessful
) will trigger the creation process. -
For enhanced efficiency, store operations in an array and execute methods after constructing all desired operations.
-
The operation provides methods to check for errors (
getErrors
), retrieve the created label (getResult
), and confirm operation success (isSuccessful
).
Methods:
Member | Type | Description |
---|---|---|
getErrors() | String[] |
Returns an empty array if the operation was successful, otherwise returns the list of errors encountered when trying to create the ProductCustomLabel. |
getResult() | AdsApp.ProductCustomLabel |
Returns the newly created ProductCustomLabel, or null if
the operation was unsuccessful. |
isSuccessful() | boolean |
Returns true if the operation was successful. |
getErrors()
Returns an empty array if the operation was successful, otherwise returns
the list of errors encountered when trying to create the ProductCustomLabel. Return values:
Type | Description |
---|---|
String[] |
The errors that occurred during the ProductCustomLabelOperation . |
getResult()
Returns the newly created ProductCustomLabel, or null
if
the operation was unsuccessful. Return values:
Type | Description |
---|---|
AdsApp.ProductCustomLabel |
The ProductCustomLabel created by the ProductCustomLabelOperation. |
isSuccessful()
Returns true
if the operation was successful. Return values:
Type | Description |
---|---|
boolean |
true if the operation was successful. |