Editing the Campaign type

Editing the Campaign type



The request must be done through POST method.

URL: /admin/adnet/pub/admin/pautas.html?op=mt&o=xml

Requirements:

  • The campaign must be created already

  • Campaign identifier must be known (pauta_id)

  • The campaign must not have been cancelled

  • The campaign must not have multiple start and end dates.

  • The campaign must not have per-space action allocations (impressions or clicks).

  • The campaign must not have action limits per time gap. I.e: by hour, by week, etc)

  • The campaign must not have been completed.

Mandatory parameters:

Pauta_id parameter must be included along with campaign identifier. Also, the following parameters must be included:

  • tipoventa_id:  campaign marketing type. See values in Annex. CPM, CPC or sponsorship options only.

  • cantidad_total: alloted to the campaign. It must be a whole number greater than or equal to the number of impressions (clicks or conversions) already completed. I.e: if the campaign already complete 5,000 impressions, a number lower than 5,000 cannot be specified. This value is optional for sponsorship campaigns.

Request example:
URL: /admin/adnet/pub/admin/pautas.html?op=mt&o=xml

Parameters:
pauta_id=43242&&cantidad_total=100000&tipoventa_id=1

Parameters explanation:

  • pauta_id: campaign identifier

  • cantidad_total: 100,000 impressions

  • tipoventa_id: 1 – CPM campaign

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


Response example with errors:

<operacion>
    <resultado>0</resultado>
    <errores>
        <error atributo=”cantidad_total” mensaje=”You cannot set an amount of impressions lower than the amount of impressions already run”>
    </errores>
</operacion>