Creating a Site
This function allows to create a zone within the system.
The request must be done through POST method.
URL:/admin/adnet/pub/admin/sitios.html?op=a&o=xml
Mandatory parameters:
name: site’s name. It must have at least 2 characters. It is recommended to include only letters and names, with no spaces.
url: site´s URL
sitipo_id: (only to Network or Agency interfaces) sitipo type - to indicate if it’s an own site (64) or 3rd party site (2).
atributos_1: (only Network interfaces) it allows to indicate that the site shall approve the ads before publishing them. Indicate 1 or 0 accordingly.
atributos_2: (only if DSM module is active): to indicate if the site will be enable run DSM campaigns.
Response:
It contains an object <operacion> that contains a tag <resultado>. The result could be either 1 (successful operation) or 0 (failed operation).
If the operation is unsuccessful, it adds a list of errors through tags <error>, containing the attribute that specifies the attribute's name with error, and message with the error message
Response example without errors:
<operacion> |
Response example with errors:
<operacion> |