Knowledgebase: API
Campaign Groups - JSON
on 06 August 2014 01:22 PM
Add

It allows to create a campaign group in the system. The request must be done through POST method.

URL: /admin/jsapi/grupopauta?op=a


Mandatory parameters:

  • nombre: name
  • pauta_id  ej: 12314 13211: campaign identifiers
  • usuario_id ej: 12314 13211 : associated users ids  (If the group has no users associated, leave it in blank)

 

Optional parameters:

  • maximp_usuario_sesion: Impressions cap per viewer session
  • maximp_usuario:
  • maximpo_usuario_dia: Impressions cap per viewer per day
  • maximpo_usuario_semana: Impressions cap per viewer per week
  • maximpo_usuario_mes: Impressions cap per viewer per month
  • intervalo_sesiones:
  • competitivo: It indicates if the associated campaigns compete with each other (The campaigns indicated must be in an Active status). Values: 1 - YES / 0 - NO

 

Request example:

https://admin.eu.e-planning.net/admin/jsapi/grupopauta?op=a&nombre=grupoAPI&pauta_id=2784 2716&maximp_usuario_dia=2&usuario_id=

Response example without errors:

{"gpauta_id":"73","status":200}

Response example with errors:

{"errors":{"nombre":"ERROR_NOMBRE_DUPLICADO"},"status":400}



Edit

It allows to edit a campaign group in the system. The request must be done through POST method.

URL: /admin/jsapi/grupopauta?op=m


Mandatory parameters:

  • gpauta_id : Campaign group identifier
  • pauta_id  ej: 12314 13211: campaign ids
  • usuario_id ej: 12314 13211 : associated users ids  (If the group has no users associated, leave it in blank)

 

Optional parameters:

  • maximp_usuario_sesion: Impressions cap per viewer session
  • maximp_usuario:
  • maximpo_usuario_dia: Impressions cap per viewer per day
  • maximpo_usuario_semana: Impressions cap per viewer per week
  • maximpo_usuario_mes: Impressions cap per viewer per month
  • intervalo_sesiones:

The competitive condition cannot be assigned or changed once the campaign is created.

 

Request example:

https://admin.eu.e-planning.net/admin/jsapi/grupopauta?op=m&nombre=grupoAPIeditada&pauta_id=2784 2716 2854&maximp_usuario_dia=3&usuario_id=1543&gpauta_id=73

Response example without errors:

{"gpauta_id":"73","status":200}

Response example with errors:

{"gpauta_id":"73","errors":{"nombre":"ERROR_SIN_VALOR"},"status":400} 

 

Delete 

 

It allows to erase a campaign group in the system. The request must be done through POST method.

URL: /admin/jsapi/grupopauta?op=b


Mandatory parameters:

  • gpauta_id : Campaign group identifier

 

Request example:

https://admin.eu.e-planning.net/admin/jsapi/grupopauta?op=b&gpauta_id=73

Response example without errors:

{"gpauta_id":"73","status":200}

Response example with errors:

{"status":404} 
(0 votes)
This article was helpful
This article was not helpful