add
Creates sets of sitelinks.## Learn more
Restrictions
Maximum of 1000 sets of sitelinks per method call.
If all the fields in the sets are identical, only one set is created.
Request
Request structure in JSON format:
{
"method": "add",
"params": { /* params */
"SitelinksSets": [{ /* SitelinksSetAddItem */
"Sitelinks": [{ /* Sitelink */
"Title": (string), /* required */
"Href": (string),
"Description": (string),
"TurboPageId": (long)
}, ... ] /* required */
}, ... ] /* required */
}
}
Parameter |
Type |
Description |
Required |
params structure (for JSON) / AddRequest structure (for SOAP) |
|||
|
array of SitelinksSetAddItem |
The sets of sitelinks to add. |
Yes |
SitelinksSetAddItem structure |
|||
|
array of Sitelink |
Set of sitelinks. From 1 to 8 items in the array. |
Yes |
Sitelink structure |
|||
|
string |
Text of a sitelink (maximum 30 characters). The maximum total length of texts for sitelinks 1–4 is 66 characters. The maximum total length of texts for sitelinks 5–8 is 66 characters. |
Yes |
|
string |
Link to the advertiser's website (maximum of 1024 characters). It must include the protocol and domain name. May contain substitution variablessubstitution variables. Alert The values of the |
One or both of the |
|
long |
ID of the Turbo page. |
|
|
string |
Sitelink description (maximum 60 characters) for displaying the ad in expanded format. |
No |
Response
Response structure in JSON format:
{
"result": { /* result */
"AddResults": [{ /* ActionResult */
"Id": (long),
"Warnings": [{ /* ExceptionNotification */
"Code": (int), /* required */
"Message": (string), /* required */
"Details": (string)
}, ... ],
"Errors": [{ /* ExceptionNotification */
"Code": (int), /* required */
"Message": (string), /* required */
"Details": (string)
}, ... ]
}, ... ]
}
}
Parameter |
Type |
Description |
result structure (for JSON) / AddResponse structure (for SOAP) |
||
|
array of ActionResult |
Results of adding sets of sitelinks. |
ActionResult object |
||
|
long |
ID of the created set of sitelinks. 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. |