ad.precall_postback.set
Sets the call start postback URL for the specified ad campaign.
Request syntax
{
"jsonrpc": "2.0",
"id": 1,
"method": "ad.precall_postback.set",
"params": [
"cmpid",
"precall_postback"
]
}
Request parameters
The request contains the following positional parameters. All of the parameters are required, and they must be in the order listed in the Request syntax.
- cmpid
- Required string. The unique, system-generated campaign ID of the specified ad campaign.
- precall_postback
- Required string, which can contain up to 256 characters that represents a valid URI. The call start postback URL for the specified ad campaign.
Response syntax
{
"jsonrpc": "2.0",
"id": 1,
"result": result
}
Response parameters
- result
- Required integer. An integer that indicates successful completion of the method, for methods that do not have explicit return values. If the method was successful, this result value is returned, and can be ignored. If the method was unsuccessful, an error object is returned instead of this result value.
Permissions
The user must have administrator permissions for the account to which the specified ad campaign is associated.
Example
The following JSON-RPC request and response describe a successful call to the ad.precall_postback.set method. The request sets the precall postback URL for the specified ad campaign to "http://mydomain.com/precall_postback".
Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "ad.precall_postback.set",
"params": [
"CtjSZlGlCNZF0AAm",
"http://mydomain.com/precall_postback"
]
}
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": 17
}