add
Creates extensions.
Only one type of extension, the callout, is available at this time.
Learn more
Restrictions
To check the callout limit for an advertiser, use the Clients.get or AgencyClients.get method (look for the AD_EXTENSIONS_TOTAL element in the Restrictions array).
Maximum of 1000 extensions per method call.
If there are identical extensions, an error is returned for each of them.
Request
Request structure in JSON format:
{
"method": "add",
"params": { /* params */
"AdExtensions": [{ /* AdExtensionAddItem */
"Callout": { /* Callout */
"CalloutText": (string) /* required */
}
}, ... ] /* required */
}
}
Parameter |
Type |
Description |
Required |
params structure (for JSON) / AddRequest structure (for SOAP) |
|||
|
array of AdExtensionAddItem |
Extensions to add. |
Yes |
AdExtensionAddItem structure |
|||
|
Callout |
A callout. |
No |
Callout structure |
|||
|
string |
Callout text. Maximum of 25 characters. |
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 extensions. |
ActionResult structure |
||
|
long |
ID of the created extension. 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. |