/
Editing dates and quantity on a Campaigns
Editing dates and quantity on a Campaigns
The request must be done through POST method
URL: /admin/adnet/pub/admin/pautas.html?op=mfc&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).
- If the campaign is already running, the start date cannot be modified.
- The campaign must not have been completed.
- Start date must be set in a future date. End date must be subsequent to the start date and must be also set in a future date.
Pauta_id parameter must be included, along with campaign identifier. Also, the following parameters must be included:
- fecha_inicio: campaign start date. It can only be specified if the campaign is in Programmed or Programmed and Approved status. It must be set in a future date.
- fecha_fin: fcampaign end date. It must be set in a future date and must be subsequent to the start date.
- cantidad_total: number of impressions, clicks or conversions 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.
- hora_inicio: campaign start hour. If not specified, default hour would be 00:00:00.
- hora_fin: campaign end hour, at fecha_fin. If omited, default value would be 23:59:59.
URL: /admin/adnet/pub/admin/pautas.html?op=mfc&o=xml
Parameters
pauta_id=43242&&cantidad_total=100000&fecha_inicio=23/03/2006&fecha_fin=23/04/2006&hora_inicio=15:00:00&hora_fin=23:59:59
Parameters explanation:
- pauta_id: campaign identifier
- cantidad_total: 100,000 impressions
- fecha_inicio: 23/03/2006
- fecha_fin: 23/04/2006
- hora_inicio: 15:00:00
- hora_fin: 23:59:59
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=”fecha_fin” mensaje=” The end date cannot be less than the start date”> </errores> </operacion> |
, multiple selections available,