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”]}}}