Request & response below.
When I switch “KEYWORDS” for “GENDER”, it works.
Also works when I request campaign-level metrics.
twurl -H ads-api.twitter.com “/0/stats/accounts/9joj52?start_time=2014-11-21T08:00:00Z&end_time=2014-11-26T08:00:00Z&granularity=TOTAL&segmentation_type=KEYWORDS”
{“errors”:[{“code”:“INVALID_PARAMETER”,“message”:“Expected valid segmentation type GENDER, TAILORED_AUDIENCES, CONVERSION_TAGS, LOCATIONS, INTERESTS, REGIONS, PLATFORMS, PLATFORM_VERSIONS, POSTAL_CODES, DEVICES, CITIES, got “KEYWORDS” for segmentation_type”,“parameter”:“segmentation_type”}],“request”:{“params”:{“granularity”:“TOTAL”,“start_time”:“2014-11-21T08:00:00Z”,“end_time”:“2014-11-26T08:00:00Z”,“account_id”:“9joj52”}}}