# Get google analytics traffic reports A secured route for getting google analytics traffic reports Endpoint: GET /api/v1/reports/google/analytics/traffic/accounts/{account_id}/campaigns/{campaign_id}/date_from/{date_from}/date_to/{date_to} Version: 2.0.0 Security: JWTAuth ## Path parameters: - `account_id` (integer, required) Account ID of the requested account - `campaign_id` (integer, required) Campaign ID of the requested account - `date_from` (string) date from optional parameter - `date_to` (string) date to optional parameter ## Response 200 fields (application/json): - `data` (array) Example: [{"date":"2023-11-01 00:00:00","organic":86,"non_organic":211,"total":297}] - `data.date` (string) Example: "2023-11-01 00:00:00" - `data.organic` (integer) Example: 5 - `data.non_organic` (integer) Example: 2 - `data.total` (integer) Example: 56 - `messages` (array) Example: [] - `pagination` (object) Example: {"maxRows":0,"totalPages":1,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) Example: 20 - `error` (boolean) ## Response 400 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) - `messages` (array, required) Example: ["Missing parameter"] ## Response 401 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) - `messages` (array, required) Example: ["Invalid Authorization"] ## Response 404 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) - `messages` (array, required) Example: ["Not Found"] ## Response 405 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) - `messages` (array, required) Example: ["Method Not Allowed"]