AI-generated Key Takeaways
-
ExecutionResult objects contain details passed into a callback function after parallel executions finish.
-
Key methods include retrieving the customer ID, checking for errors, getting return values, and determining the execution status.
-
The
getCustomerId()
method returns the account's customer ID in the standard Google Ads format. -
The
getError()
method returns null on successful execution or the encountered error string. -
The
getStatus()
method indicates if the execution was OK, resulted in an ERROR, or timed out.
Methods:
Member | Type | Description |
---|---|---|
getCustomerId() | String |
Returns the customer ID of the account. |
getError() | String |
Returns null if the execution completed successfully. |
getReturnValue() | String |
Returns null if no value was returned by the function that
executed on the account. |
getStatus() | String |
Returns the status of the execution. |
getCustomerId()
Returns the customer ID of the account. The returned value will be in the
standard Google Ads format, e.g. '123-456-7890'
. Return values:
Type | Description |
---|---|
String |
The customer ID of the account. |
getError()
Returns null
if the execution completed successfully.
Otherwise, returns the encountered error. Return values:
Type | Description |
---|---|
String |
null if the execution completed successfully.
Otherwise, returns the encountered error. |
getReturnValue()
Returns null
if no value was returned by the function that
executed on the account. Otherwise, returns the value returned. Return values:
Type | Description |
---|---|
String |
null if no value was returned. Otherwise, returns the
return value of the function. |
getStatus()
Returns the status of the execution.
Possible return values:
OK
- execution has finished successfully.ERROR
- execution has failed to finish due to an error.TIMEOUT
- execution has failed to finish because it ran out of time.
Return values:
Type | Description |
---|---|
String |
The status of the execution. |