update
Changes the parameters of keywords and autotargetings.## Learn more
Restrictions
Maximum of 1000 objects per method call.
Request
Request structure in JSON format:
{
"method": "update",
"params": { /* params */
"Keywords": [{ /* KeywordUpdateItem */
"Id": (long), /* required */
"Keyword": (string),
"UserParam1": (string), /* nillable */
"UserParam2": (string), /* nillable */
"AutotargetingCategories" : [{ /* AutotargetingCategoriesUpdateItem */
"Category" : ("EXACT"|"ALTERNATIVE"|"COMPETITOR"|"BROADER"|"ACCESSORY") /* required */,
"Value" : ("YES"|"NO") /* required */
}, ...],
"AutotargetingSettings" : {
"Categories" : {
"Exact" : ("YES"|"NO"),
"Narrow" : ("YES"|"NO"),
"Alternative" : ("YES"|"NO"),
"Accessory" : ("YES"|"NO"),
"Broader" : ("YES"|"NO")
},
"BrandOptions" : {
"WithoutBrands" : ("YES"|"NO"),
"WithAdvertiserBrand" : ("YES"|"NO"),
"WithCompetitorsBrand" : ("YES"|"NO")
}
}
}, ... ] /* required */
}
}
Parameter |
Type |
Description |
Mandatory |
||||||||||||
params structure (for JSON) / UpdateRequest structure (for SOAP) |
|||||||||||||||
|
array of KeywordUpdateItem |
Keywords and autotargetings to change the parameters for. |
Yes |
||||||||||||
KeywordUpdateItem structure |
|||||||||||||||
|
long |
ID of the keyword or autotargeting. |
Yes |
||||||||||||
|
string |
Keywords. It can contain negative keywords, which are specified with the minus sign before the word, such as lightning -thunder -rain. The maximum length of a keyword is 4096 characters. The “!” operator before a negative keyword is not counted in the keyword length (the sequence “-!” is considered one character). Maximum of 7 words per keyword, not counting stop words and negative keywords. Each word can have up to 35 characters, not counting the minus sign before a negative keyword. Alert
For autotargeting, the value can't be changed. |
No |
||||||||||||
|
string, nillable |
Value of the |
No |
||||||||||||
|
string, nillable |
Value of the |
No |
||||||||||||
|
array of AutotargetingCategoriesUpdateItem |
Targeting categories to update. Alert This structure is obsolete and no longer supported. You can't pass both |
No |
||||||||||||
|
AutotargetingSettingsUpdateItem |
Targeting settings to update. |
No |
||||||||||||
AutotargetingCategoriesUpdateItem structure |
|||||||||||||||
|
AutotargetingCategoriesEnum |
Targeting category:
Alert This field is deprecated and will soon cease to be supported. The settings specified using the API are converted for the web interface as follows:
|
Yes |
||||||||||||
|
YesNoEnum |
The flag indicating that the specified targeting category is enabled. All targeting categories are enabled by default. |
Yes |
||||||||||||
AutotargetingSettingsUpdateItem structure |
|||||||||||||||
|
AutotargetingSettingsCategoriesFieldNames |
Targeting categories. Available options:
|
No |
||||||||||||
|
AutotargetingSettingsBrandOptionsFieldNames |
Brand mention settings. Available options:
|
No |
Response
Response structure in JSON format:
{
"result": { /* result */
"UpdateResults": [{ /* ActionResult */
"Id": (long),
"Warnings": [{ /* ExceptionNotification */
"Code": (int), /* required */
"Message": (string), /* required */
"Details": (string)
}, ...
],
"Errors": [{ /* ExceptionNotification */
"Code": (int), /* required */
"Message": (string), /* required */
"Details": (string)
}, ...
]
}, ... ] /* required */
}
}
Parameter |
Type |
Description |
result structure (for JSON) / UpdateResponse structure (for SOAP) |
||
|
array of ActionResult |
Results of changing parameters of keywords and autotargetings. |
ActionResult structure |
||
|
long |
ID of the changed keyword or autotargeting. Returned if there aren't any errors. See the section Operations on object arrays. |
|
array of ExceptionNotification |
Warnings that occurred during the operation. |
|
array of ExceptionNotification |
Errors that occurred during the operation. |