/
Creating an advertiser

Creating an advertiser



The request must be done through POST method.

URL: /admin/adnet/pub/admin/anunciantes.html?op=a&o=xml

Mandatory parameters:
  • a_nombre: advertiser name.  Must comply with valid names' guidelines (See below).
  • a_url: URL.  It must start with http:// and must be a valid URL.
  • sitipo_id: only if DSM service is active. Must specify the type of advertiser to create. See Appendix I for potential values.

Potential parameters:

  • a_observaciones: comments about the advertiser.

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>52112</identificador>
</operacion>


Response example with errors:

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

Related content