AI-generated Key Takeaways
-
The ShoppingAdGroupAudienceOperation represents the creation of a new shopping audience.
-
Calling
getErrors(),getResult(), orisSuccessful()on an operation executes it. -
To improve script efficiency, store operations in an array and execute them together.
-
The
getErrors()method returns errors if the operation failed. -
The
getResult()method returns the created ShoppingAdGroupAudience or null if unsuccessful. -
The
isSuccessful()method indicates if the operation completed without errors.
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 ShoppingAdGroupAudience. |
| getResult() | AdsApp.ShoppingAdGroupAudience |
Returns the newly created ShoppingAdGroupAudience, 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 ShoppingAdGroupAudience. Return values:
| Type | Description |
|---|---|
String[] |
The errors that occurred during the ShoppingAdGroupAudienceOperation . |
getResult()
Returns the newly created ShoppingAdGroupAudience, or null if
the operation was unsuccessful. Return values:
| Type | Description |
|---|---|
AdsApp.ShoppingAdGroupAudience |
The ShoppingAdGroupAudience created by the ShoppingAdGroupAudienceOperation. |
isSuccessful()
Returns true if the operation was successful. Return values:
| Type | Description |
|---|---|
boolean |
true if the operation was successful. |