get_demographics_age

Gets the ratio of viewers bucketed by age ranges for a specific tracker or publisher ID.

Explorer

Explore this method

Request URL

http://api.tubemogul.com/api/v3/

HTTP method

GET

Arguments

scope (string)
The scope of the method being called. Valid values are tracker or publisher.
id (string)
The ID corresponding to the scope of the report.
start (string)
The start date for the report. Format is YYYY-MM-DD.
end (string)
The end date for the report. Format is YYYY-MM-DD.
site_id (string) — Optional
The ID for your site. This is required for publisher-scoped queries but not for trackers. Contact us if you do not know your site_id.
interval (string) — Optional
Determines the granularity of list values in the detailed response list. Valid values include perday or none. A value of none will omit the detail list. Defaults to none.

Response Parameters

pct_under_18 (number)
The percentage of viewers who are less than 18 years of age.
pct_18_to_24 (number)
The percentage of viewers who are between 18 and 24 years of age. (inclusive)
pct_25_to_34 (number)
The percentage of viewers who are between 25 and 34 years of age. (inclusive)
pct_35_to_44 (number)
The percentage of viewers who are between 35 and 44 years of age. (inclusive)
pct_45_to_54 (number)
The percentage of viewers who are between 45 and 54 years of age. (inclusive)
pct_over_55 (number)
The percentage of viewers who are more than 55 years of age. (inclusive)
details (list)
A list of percentage buckets over time with the following parameters: date, pct_under_18, pct_18_to_24, pct_25_to_34, pct_35_to_44, pct_45_to_54, and pct_over_55. The entries are scoped based on the arguments provided in the request.

Example Response

http://api.tubemogul.com/api/v3?date=1230109922&user_id=123456
&scope=tracker&id=TD-PEX-Y83&method=get_demographics_age&interval=perday
&start=2010-11-15&end=2010-11-20&auth=aa6fb416b3cac7861be9c9db2ebeef564b70f2e4

<response name="get_demographics_age" status="ok">
	<pct_under_18>0.0</pct_under_18>
	<pct_18_to_24>2.62</pct_18_to_24>
	<pct_25_to_34>11.22</pct_25_to_34>
	<pct_35_to_44>19.49</pct_35_to_44>
	<pct_45_to_54>21.37</pct_45_to_54>
	<pct_over_55>45.3</pct_over_55>
	<details count="6" interval="perday" list_size="6" has_more_items="false">
		<entry>
			<date>2010-11-15</date>
			<pct_under_18>0.0</pct_under_18>
			<pct_18_to_24>4.66</pct_18_to_24>
			<pct_25_to_34>11.8</pct_25_to_34>
			<pct_35_to_44>20.95</pct_35_to_44>
			<pct_45_to_54>21.44</pct_45_to_54>
			<pct_over_55>41.15</pct_over_55>
		</entry>
                .
                .
                .                                          
		<entry>
			<date>2010-11-20</date>
			<pct_under_18>0.0</pct_under_18>
			<pct_18_to_24>2.2</pct_18_to_24>
			<pct_25_to_34>10.01</pct_25_to_34>
			<pct_35_to_44>18.74</pct_35_to_44>
			<pct_45_to_54>23.93</pct_45_to_54>
			<pct_over_55>45.12</pct_over_55>
		</entry>
	</details>
</response>

Error Codes

Standard error codes