Page Summary
-
VideoAudienceOperation represents the creation of a new video audience.
-
Calling methods like
getErrors,getResult, orisSuccessfulexecutes the operation and creates the video audience. -
To improve script efficiency, store operations in an array and call methods only after all operations are constructed.
-
The
getErrorsmethod returns a list of errors if the operation fails. -
The
getResultmethod returns the newly created VideoAudience on success, or null on failure. -
The
isSuccessfulmethod indicates if the operation completed without errors.
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 VideoAudience. | |
AdsApp.VideoAudience
|
Returns the newly created VideoAudience, 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 VideoAudience. Return values:
| Type | Description |
|---|---|
String[]
|
The errors that occurred during the VideoAudienceOperation . |
getResult()
Returns the newly created VideoAudience, or null
if
the operation was unsuccessful. Return values:
| Type | Description |
|---|---|
AdsApp.VideoAudience
|
The VideoAudience created by the VideoAudienceOperation. |
isSuccessful()
Returns true
if the operation was successful. Return values:
| Type | Description |
|---|---|
boolean
|
true
if the operation was successful. |

