get
Returns sets of sitelinks that match the specified criteria.## Learn more
Restrictions
The method returns a maximum of page-size
objects.
Request
Request structure in JSON format:
{
"method": "get",
"params": { /* params */
"SelectionCriteria": { /* IdsCriteria */
"Ids": [(long), ... ] /* required */
},
"FieldNames": [( "Id" | "Sitelinks" ), ... ],
"SitelinkFieldNames": [( "Title" | "Href" | "Description" | "TurboPageId" ), ... ],
"Page": { /* LimitOffset */
"Limit": (long),
"Offset": (long)
}
}
}
Parameter |
Type |
Description |
Required |
params structure (for JSON) / GetRequest (for SOAP) |
|||
|
IdsCriteria |
Criteria for selecting sets. If omitted, all the advertiser's sets are returned. |
No |
|
array of SitelinksSetFieldEnum |
Names of top-level parameters to get. If the If you need to get a different set of fields, list their names in the |
No |
|
array of SitelinkFieldEnum |
Names of sitelink fields to get. |
No |
|
Structure that defines the page for paginated selection of data. |
No |
|
IdsCriteria structure |
|||
|
array of long |
IDs of sets to get. |
Yes |
Response
Response structure in JSON format:
{
"result": { /* result */
"SitelinksSets": [{ /* SitelinksSetGetItem */
"Id": (long),
"Sitelinks": [{ /* Sitelink */
"Title": (string),
"Href": (string), /* nillable */
"Description": (string), /* nillable */
"TurboPageId": (long) /* nillable */
}, ... ]
}, ... ],
"LimitedBy": (long)
}
}
Parameter |
Type |
Description |
result structure (for JSON) / GetResponse (for SOAP) |
||
|
array of SitelinksSetGetItem |
Sets of sitelinks. |
|
long |
Sequential number of the last object returned. It is included if there was a limit on the number of objects in the response. See the section Paginated data selection. |
SitelinksSetGetItem structure |
||
|
long |
ID of a set of sitelinks. |
|
Sitelink |
Array of 1 to 4 Sitelink objects. |
Sitelink structure |
||
|
string |
Sitelink text. |
|
string, nillable |
Sitelink address. |
|
string, nillable |
Sitelink description for displaying the ad in expanded format. |
|
long, nillable |
ID of the Turbo page. |