AdsManagerApp.​ExecutionResult

Details passed into a callback function. The callback function is called when all the executions from an ManagedAccountSelector.executeInParallel call finish.

Methods:

MemberTypeDescription
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:

TypeDescription
String The customer ID of the account.

getError()

Returns null if the execution completed successfully. Otherwise, returns the encountered error.

Return values:

TypeDescription
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:

TypeDescription
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:

TypeDescription
String The status of the execution.