Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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>
       <resultado>1</resultado>
       <identificador>1241</identificador>
</operacion>


Response example with errors:

<operacion>
        <resultado>0</resultado>
        <errores>
                <error atributo=”nombre” mensaje=”Invalid option”/>
        </errores>
</operacion>