get
Returns extensions that meet the specified criteria.
Only one type of extension, the callout, is available at this time.
Learn more
Restrictions
The method returns a maximum of 10,000 objects.
Request
Request structure in JSON format:
{
"method": "get",
"params": { /* params */
"SelectionCriteria": { /* AdExtensionsSelectionCriteria */
"Ids": [(long), ... ],
"Types": [( "CALLOUT" ), ... ],
"States": [( "ON" | "DELETED" ), ... ],
"Statuses": [( "ACCEPTED" | "DRAFT" | "MODERATION" | "REJECTED" ), ... ],
"ModifiedSince": (string)
}, /* required */
"FieldNames": [( "Id" | "Type" | "Status" | "StatusClarification" | "Associated" ), ... ], /* required */
"CalloutFieldNames": [( "CalloutText" )],
"Page": { /* LimitOffset */
"Limit": (long),
"Offset": (long)
}
}
}
Parameter |
Type |
Description |
Required |
params structure (for JSON) / GetRequest (for SOAP) |
|||
|
AdExtensionsSelectionCriteria |
Criteria for selecting extensions. To get all of an advertiser's extensions, leave |
Yes |
|
array of AdExtensionFieldEnum |
Names of parameters to get that are common to all types of extensions. |
Yes |
|
array of CalloutFieldEnum |
Parameter names for "Callout" extensions you want to get. |
No |
|
LimitOffset |
Structure that defines the page for paginated selection of data. |
No |
AdExtensionsSelectionCriteria structure |
|||
|
array of long |
Selects extensions with the specified IDs. Maximum of 10,000 items in the array. |
No |
|
array of AdExtensionTypeEnum |
Selects extensions based on the specified types. Currently, only one extension type is supported, the Callout (CALLOUT). |
No |
|
array of AdExtensionStateSelectionEnum |
Selects extensions based on the specified states. See Extension state. Note The "get" method returns an extension in the DELETED state only if the |
No |
|
array of ExtensionStatusSelectionEnum |
Selects extensions based on the specified statuses. See Status of the extension. |
No |
|
string |
Selects extensions that were changed after the specified date. Specified in the format |
No |
Response
Response structure in JSON format:
{
"result": { /* result */
"AdExtensions": [{ /* AdExtensionGetItem */
"Id": (long),
"Associated": ( "YES" | "NO" ),
"Type": ( "CALLOUT" | "UNKNOWN" ),
"Callout": { /* Callout */
"CalloutText": (string) /* required */
},
"State": [( "ON" | "DELETED" | "UNKNOWN" ), ... ],
"Status": ( "ACCEPTED" | "DRAFT" | "MODERATION" | "REJECTED" | "UNKNOWN" ),
"StatusClarification": (string)
}, ... ],
"LimitedBy": (long)
}
}
Parameter |
Type |
Description |
result structure (for JSON) / GetResponse (for SOAP) |
||
|
array of AdExtensionGetItem |
Ad extensions. |
|
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. |
AdExtensionGetItem structure |
||
|
long |
Extension ID. |
|
YesNoEnum |
Whether the extension is assigned to at least one of the client's ads. |
|
AdExtensionTypeEnum |
Extension type. |
|
Callout |
Parameters of a "Callout" extension. |
|
StateEnum |
State of the extension. See Extension state. |
|
StatusEnum |
Status of the extension. See Status of the extension. |
|
string |
Text explanation of the status and/or reasons for rejection after review. |
Callout structure |
||
|
string |
Callout text. |