Page Summary
-
ProductAdOperation represents the creation of a new product ad and executes when you call getErrors, getResult, or isSuccessful.
-
It is recommended to store operations in an array and call methods only after constructing all operations for efficiency.
-
The getErrors method returns an empty array for success or a list of errors otherwise.
-
The getResult method returns the newly created ProductAd on success or null if unsuccessful.
-
The isSuccessful method returns a boolean indicating if the operation was successful.
Methods:
| Member | Type | Description |
|---|---|---|
String[]
|
Returns an empty array if the operation was successful, otherwise returns the list of errors encountered when trying to create the ProductAd. | |
AdsApp.ProductAd
|
Returns the newly created ProductAd, or null
if
the operation was unsuccessful. |
|
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 ProductAd. Return values:
| Type | Description |
|---|---|
String[]
|
The errors that occurred during the ProductAdOperation . |
getResult()
Returns the newly created ProductAd, or null
if
the operation was unsuccessful. Return values:
| Type | Description |
|---|---|
AdsApp.ProductAd
|
The ProductAd created by the ProductAdOperation. |
isSuccessful()
Returns true
if the operation was successful. Return values:
| Type | Description |
|---|---|
boolean
|
true
if the operation was successful. |

