KeywordOperation
Contains the methods for determining whether the keyword was successfully added. For information about builders, operation objects, and performance considerations, see What are builders?
Because calling any of this object's methods forces Scripts to flush the build queue, be sure to read the performance considerations carefully.
Methods
Method Name | Return Type | Description |
---|---|---|
getErrors | string[] | Gets the errors that occurred when adding the keyword. |
getResult | Keyword | Gets the keyword that was added. |
isSuccessful | boolean | Gets a Boolean value that indicates whether the add operation succeeded. |
getErrors
Gets the errors that occurred when adding the ad group.
Returns
Type | Description |
---|---|
string[] | An array of symbolic error codes if the add operation failed; otherwise, an empty array. For example, if the bid amount is not valid, the call returns CampaignServiceInvalidSearchBids. For a description of these codes, see Operation error codes. |
getResult
Gets the keyword that was added.
Returns
Type | Description |
---|---|
Keyword | The keyword that was added if the operation succeeded; otherwise, null. |
isSuccessful
Gets a Boolean value that indicates whether this operation succeeded.
Returns
Type | Description |
---|---|
Boolean | Is true if this operation succeeded; otherwise, false. |