After establishing the connection via the web service you will call the following functions to get the required data.
Web Service Methods
Method | Description |
---|---|
visits_data | To get visit data for Google, Yahoo and Bing |
visit_call_detail | Get call data for visits by using keyword |
linksource_data | Link source visit data |
linksource_call_detail | Call details for link source visits |
call_summary | Summarized calls data by keyword |
call_summary_detail | Call details for summarized call data |
matched_search_calls | All matched search calls |
post_session_calls | Post session calls |
lite_campaign | LITE campaigns |
all_lite_calls | All Avid Lite calls |
lite_campaign_call_detial | Call detail for specific Lite campaigns |
show_client_summary | Agency client list |
show_group_client | Show client groups |
Parameters to pass:
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
filter | Fixed values for search engine: gppc = Google PPC gseo = Google Organic yppc = Yahoo PPC yseo = Yahoo Organic bppc = Bing PPC bseo = Bing Organic |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave the string blank in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records mentioned in perpage and page parameters. By default it is FALSE |
Field name | Detail |
---|---|
keyword | Visit keyword |
visits | Total number of visits for the keyword |
calls | Total number of calls for the keyword |
tracking_number | Tracking number / dialed number |
group | Campaign group |
campaign | Campaign |
adposition | Ad position |
match_type | Keyword type |
first_visit_datetime | First visit date and time |
last_visit_datetime | Last visit date and time |
Note:
Correct Response in XML format:
<?xml version="1.0" standalone="yes"?> <result>Error Response in Comma Delimited:
startdate,orderby,messageStart date is not a valid date time,Order by is not valid,Error
Error Response in XML format:
<?xml version="1.0" standalone="yes"?>Visit Call Detail
By using this function you will get the call details of the specific keyword listed in the result of “visit_data” method. These details can be obtained by providing the keyword and filter in the parameters.
Note: the filter should be same as that used in visit_date method to get the data.
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
filter | Fixed values for search engine: gppc = Google PPC gseo = Google Organic yppc = Yahoo PPC yseo = Yahoo Organic bppc = Bing PPC bseo = Bing Organic |
keyword | One keyword obtained using visit_data method |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records as mentioned in perpage and page parameters. By default its FALSE |
Field name | Detail |
---|---|
caller | Caller Number |
searched_keyword | The keyword searched |
support_call | |
duration | Call duration |
tracking_number | Tracking number |
adid | Ad ID if available |
visit_datetime | Matched visit date time |
call_datetime | Call date and time |
recording | URL of recording if applicable |
difference | Difference in visit time and call time (you need to enable this feature to get this data) |
unique_id | Unique ID of analytics |
caller_city | Caller city |
caller_state | Caller state |
utm_source | UTM Sorce |
utm_medium | UTM Medium |
utm_content | UTM Content |
adposition | Ad Position |
match_type | Keyword type |
Correct Response in Comma delimited format:
caller,searched_keyword,rating,support_call,duration,tracking_number,adid,visit_datetime,call_datetime,recording,difference, unique_id,caller_city,caller_state,utm_source,utm_medium,utm_content,adposition,match_type
3051234567,some searched keyword,,,8881234567,,2011-12-17 19:31:36,2011-12-17 20:31:47,0-day 01:00:11,https://api.twilio.com/2008-08-01/Accounts/ACb50a117afb6c82ee5320a0f9a55309d7/Recordings/RE126e09cecd83b386e7b2c3a720bcdec.mp3,458338,MIAMI,FL,google,ppc,res,,broad
3471234567, some searched keyword,,, 8881234567,,2011-12-18 10:32:23,2011-12-20 15:30:23,2-day 04:58:00,https://api.twilio.com/2008-08-01/Accounts/ACb50a117afb6c82ee5320a0f9a55309d7/Recordings/RE9af9123f2e23225a71814afbc70d7b5.mp3,308376,BROOKLYN,NY,google,ppc,res,,broad
Correct Response in XML format:
<?xml version="1.0" standalone="yes"?> <result>Error Response in XML format:
Link Source Data
Method name: linksource_dataParameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records mentioned in perpage and page parameters. By default it is FALSE |
Field name | Detail |
---|---|
link_source | Visit keyword |
visits | Total number of visits for the link source |
calls | Total number of calls for the link source |
domain_id | Link source ID |
first_visit | First visit date time |
last_visit | Last visit date time |
Correct Response in Comma delimited format:
link_source,visits,calls,domain_id,first_visit,last_visitCorrect Response in XML format:
Error Response in XML format:
Link Source Call Detail
By using this function you will get the call details for the specific link source listed in the results of “linksource_data” method. These details can be obtained by providing the domain Id in the parameters retrieved from the data of the “linksource_data” method.
Link Source Data
Method name: linksource_dataParameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
domain_id | Domain id get from linksource_data method |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records as mentioned in perpage and page parameters. By default its FALSE |
Field name | Detail |
---|---|
caller | Caller Number |
duration | Call duration |
tracking_number | Tracking number |
visit_datetime | Matched visit date time |
call_datetime | Call date and time |
difference | Difference in visit time and call time (you need to enable this feature to get this data) |
recording | URL of recording if applicable |
caller_city | Caller city |
caller_state | Caller state |
Start date is not a valid date time,Order by is not valid,Error
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get the specific number or records as mentioned in perpage and page parameters. By default its FALSE |
Field name | Detail |
---|---|
keyword | Caller Number |
link_source | Call duration |
calls | Tracking number |
first_call_datetime | Matched visit date time |
last_call_datetime | Call date and time |
visit_datetime | Difference in visit time and call time (you need to enable this feature to get this data) |
match_type | URL of recording if applicable |
Call Summary Detail
By using this function you will get the call details of the specific keywords listed in the results of the “call_summary” method. These details can be obtained by providing the keyword and link source in the parameters.
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
link_source | Link source contained in data set of the call_summary method |
keyword | One keyword obtained from call_summary method |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records as mentioned in perpage and page parameters. By default its FALSE |
Field name | Detail |
---|---|
caller | Caller Number |
keyword | Keyword |
searched_keyword | The keyword searched |
duration | Call duration |
tracking_number | Tracking number |
visit_datetime | Matched visit date time |
call_datetime | Call date and time |
ppc_organic | Display whether PPC or Organic call |
search_engine | Google, yahoo or bing |
recording | Recording URL |
caller_city | Caller city |
caller_state | Caller state |
utm_source | UTM Sorce |
utm_medium | UTM Medium |
utm_content | UTM Content |
adposition | Ad Position |
match_type | Keyword type |
Note:
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records as mentioned in perpage and page parameters. By default its FALSE |
Field name | Detail |
---|---|
keyword | Keyword |
searched_query | The keyword searched |
caller | Caller Number |
duration | Call duration |
tracking_number | Tracking number |
visit_datetime | Matched visit date time |
call_datetime | Call date and time |
difference | Difference between visit and time and call time |
ppc_organic | Display whether PPC or Organic call |
search_engine | Google, yahoo or bing |
recording | Recording URL |
city | Caller city |
state | Caller state |
direction | direction |
unique_id | Unique ID of analytics |
utm_source | UTM Sorce |
utm_medium | UTM Medium |
utm_content | UTM Content |
adposition | Ad Position |
match_type | Keyword type |
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records as mentioned in per page and page parameters. By default its FALSE |
Field name | Detail |
---|---|
caller | Caller number |
duration | Call duration |
tracking_number | Avid number / tracking number |
date_time | Call date and time |
recording | Recording URL if applicable |
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records as mentioned in per page and page parameters. By default its FALSE |
Field name | Detail |
---|---|
affiliate_id | ID to be used in campaign call detail |
title | Campaign Title |
tracking_number | Avid number |
forward_number | Forwarding number |
calls | Number of calls |
number_of_comments | Number of comments |
summed_duration | Total call duration |
average_call_length | Average call length |
first_customer_number | First caller number |
first_call_datetime | First call date and time |
last_customer_number | Last caller number |
last_call_datetime | Last caller date time |
status | Campaign status |
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
affiliate_id | Affiliate ID retrieved from lite_campaign method |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in the mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records as mentioned in per page and page parameters. By default its FALSE |
Field name | Detail |
---|---|
caller | Caller number |
call_date | Call date |
call_time | Call time |
call_duration | Call duration |
tracking_number | Tracking number |
caller_location | Caller location |
caller_city | Caller city |
caller_state | State |
recording | Recording URL if applicable |
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in the mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records as mentioned in per page and page parameters. By default its FALSE |
Field name | Detail |
---|---|
campaign_name | Lite campaign name |
tracking_number | Tracking number / avid number |
call_date | Call date |
call_time | Call time |
caller | Caller number |
duration | Duration |
recording | Recording URL if applicable |
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records as mentioned in perpage and page parameters. By default its FALSE |
Field name | Detail |
---|---|
client_id | Client ID |
client_user_id | Client user id |
client_email | Client email |
pro_recording | Pro recording status |
lite_recording | Lite recording status |
pro_preamble | Preamble on PRO numbers |
lite_preamble | Preamble on LITE numbers |
pro_numbers | Total PRO numbers |
lite_numbers | Total LITE numbers |
unassigned_numbers | Un-assigned numbers |
avid_numbers_status | PRO number status |
total_visits | Total visits (PRO) |
pro_calls | Total calls (PRO) |
lite_calls | Total Lite calls |
remaining_balance | Remaining balance |
pro_call_duration | Total call duration on PRO numbers |
lite_call_duration | Total call duration on LITE numbers |
date_created | Client created date |
Parameter name | Details |
---|---|
pin code | Numeric pin code provided by AvidTrak This parameter must contain valid PIN Code |
startdate | Start date in “YYYY-mm-dd hh:mm:ss” format This parameter must contain valid date in mentioned format |
enddate | End date in “YYYY-mm-dd hh:mm:ss” format |
orderby | Provide fieldname from field list below to sort data. By default it will sort by “calls” if you leave blank string in the parameter |
ordertype | “asc” for ascending and “desc” for descending By default its asc |
perpage | Numeric value to get specific number of records By default its 20 |
page | Numeric value to get records of specific page number if you use “perpage” By default its 1 |
xml | Pass TRUE to get response in xml format Pass FALSE to get response in comma delimited format By default its comma delimited |
use_paging | If you do not want use paging set this parameter to FALSE, else set it TRUE to get specific number or records as mentioned in perpage and page parameters. By default its FALSE |
Field name | Detail |
---|---|
group_title | Group Title |
client_count | Total client count in group |
rec_pro | PRO recording status |
rec_lite | LITErecording status |
preamble_pro | Preamble on PRO numbers |
preamble_lite | Preamble on LITE numbers |
pro_numbers | Total PRO numbers |
lite_numbers | Total LITE numbers |
pro_calls | Total calls on PRO numbers |
lite_calls | Total calls on LITE numbers |
pro_call_time | PRO numbers call duration |
lite_call_time | LITE numbers call duration |