function MCAPI::campaignGeoOpensForCountry in Mailchimp 6.2
Retrieve the regions and number of opens tracked for a certain country. Email address are not returned.
Stats
@returnf string code An internal code for the region. When this is blank, it indicates we know the country, but not the region @returnf string name The name of the region, if we have one. For blank "code" values, this will be "Rest of Country" @returnf int opens The total number of opens that occurred in the country
Parameters
string $cid the campaign id to pull bounces for (can be gathered using campaigns()):
string $code An ISO3166 2 digit country code:
Return value
array regions an array of regions within the provided country where opens occurred.
File
- ./
MCAPI.class.php, line 719
Class
Code
function campaignGeoOpensForCountry($cid, $code) {
$params = array();
$params["cid"] = $cid;
$params["code"] = $code;
return $this
->callServer("campaignGeoOpensForCountry", $params);
}