Given an advertiser email address and date range, this retrieves campaign metrics for all active campaigns. Data returned is in XML and includes the following:
Please note that totals for the columns are not provided.
To retrieve the campaign overview report, make a request to the following URL: http:///jivox/serverAPIs/externalReporting/campaignOverviewReport.php
The request URL supports the following parameters:
| Parameter | Description |
|---|---|
| apiId | (Required) ID of the API. |
| apiKey | (Required) Authentication key. |
| apiVersion | (Required) Version number of the API for which authentication key is generated. |
| publisherId | (Required) ID of the publisher or agency for which authentication key is generated. |
| emailAddress | Email address of the advertiser. |
| startDate | Start of date range for which the report is required. |
| endDate | End of date range for which the report is required. |
| externalId | External identifier for a campaign (entered when the tag is generated for a campaign). If this is provided then emailAddress is ignored and only the campaign (or campaigns) with the matching external identifier are included in the result. |
| campaignType | (Optional) Filter campaigns by campaign type. Valid values include web, directory. |
Using cURL (this command includes hard returns for readability):
xxxxxxxxxxcurl -d 'apiId=jivox.externalReporting&apiKey=MyAPIKey&apiVersion=2.0& publisherId=939&emailAddress=advertiser@example.com& startDate=2011-01-01&endDate=2011-06-30' http:__testserver.jivox.com_jivox_serverAPIs_externalReporting_campaignOverviewReport.phpIn case of success, the server returns the following response:
xxxxxxxxxx<jivoxServerResponse><result>SUCCESS<_result><campaigns><campaign ><id> campaign_id <_id><name> campaign_name <_name><type>campaign_type<_type><status>campaign_status<_status><thumbnail>thumbnail_url<_thumbnail><advertiserName>advertiser_name<_advertiserName><startDate> start_date <_startDate><endDate> end_date <_endDate> <records><record><date> date <_date> <impressions>number_of_impressions <impressions> <adStart>number_of_ad_starts <_adStart> <numClickthrus>total_number_of_clickthrus<_numClickthrus><numInteractions>number_of_interactions<_numInteractions><interactions><interaction><name> interaction1_name <_name><count> interaction1_count <_count><_interaction><interaction><name> interactionN_name <_name><count> interactionN_count <_count><_interaction><_interactions><universalInteractionRate>iab_universal_interaction_rate<_universalInteractionRate><averageDwellTime>average_dwell_time<_averageDwellTime> <completionRate>ad_completion_rate<_completionRate> <clickThroughRate>click_thru_rate<_clickThroughRate> <interactionRate>interaction_rate<_interactionRate><_record><record><_record><_records><_campaign><campaign><_campaign><_campaigns><_jivoxServerResponse>Fields in the server response XML are as follows:
campaign_type: Filter campaigns by campaign type, from the following:
xxxxxxxxxx'Web Campaign'Legacy campaigns may show the following deprecated types:
xxxxxxxxxx'Viral Campaign', 'Directory Listing Campaign', 'Website Campaign', 'Email Campaign', 'External Campaign', 'Social Media Campaign'campaign_status: The current state of the campaign, from the following:
xxxxxxxxxx'Running', 'Approved'Legacy campaigns may show the following deprecated states:
xxxxxxxxxx'Completed', 'Canceled', 'Paused', 'Created', 'Activated', 'Rejected'In most cases campaigns will be in the "Running" state.