How do I request stats for a PROMOTED_ACCOUNT in the API v1?
The Enumerations page for v1 stats allows for the following entities:
ACCOUNT
FUNDING_INSTRUMENT
CAMPAIGN
LINE_ITEM
PROMOTED_TWEET
ORGANIC_TWEET
I tried using ACCOUNT, but that appears to be the full Ads Account, not a Promoted_Account. When I call using
"/1/stats/accounts/ads_account_id?entity=ACCOUNT&entity_ids=promoted_account_id&metric_groups=BILLING,ENGAGEMENT,LIFE_TIME_VALUE_MOBILE_CONVERSION,VIDEO,MEDIA,MOBILE_CONVERSION,WEB_CONVERSION&start_time=2016-03-22T00%3A00%3A00Z&end_time=2016-03-27T00%3A00%3A00Z&granularity=TOTAL&placement=ALL_ON_TWITTER"
the response comes back with entity_ids = nil in the response[ârequestâ][âparamsâ]
{âdata_typeâ=>âstatsâ,
âtime_series_lengthâ=>1,
âdataâ=>
[{âidâ=> ads_account_id,
âid_dataâ=>
[{âsegmentâ=>nil,
âmetricsâ=>
{âimpressionsâ=>[8028],
âfollowsâ=>[8],
âretweetsâ=>nil,
âlikesâ=>[1],
âengagementsâ=>[11],
ârepliesâ=>nil}}]}],
ârequestâ=>
{âparamsâ=>
{âstart_timeâ=>â2016-03-22T00:00:00Zâ,
âsegmentation_typeâ=>nil,
âentity_idsâ=>nil,
âend_timeâ=>â2016-03-27T00:00:00Zâ,
âcountryâ=>nil,
âplacementâ=>âALL_ON_TWITTERâ,
âgranularityâ=>âTOTALâ,
âentityâ=>âACCOUNTâ,
âplatformâ=>nil,
âmetric_groupsâ=>
[âBILLINGâ,
âENGAGEMENTâ,
âLIFE_TIME_VALUE_MOBILE_CONVERSIONâ,
âVIDEOâ,
âMEDIAâ,
âMOBILE_CONVERSIONâ,
âWEB_CONVERSIONâ]}}}