will you please check weather my App ID have an Ads API access?
APP ID : 13664538
-
When i am try to get response of
https://ads-api.twitter.com/1/stats/accounts/18ce546yxqa/campaigns
{“errors”:[{“code”:“UNAUTHORIZED_CLIENT_APPLICATION”,“message”:“The client application making this request does not have access to this API”}],“request”:{“params”:{}}}
Can you also verify the Account, time zone ?
Below is my App call
media_campaign.request <- GET(sprintf(“https://ads-api.twitter.com/1/stats/accounts/%s/”,credentials$ACCOUNT_ID),
query = list(
entity = “CAMPAIGN”,
entity_ids = paste(ids, collapse = “,”),
start_time = “2017-04-18T00:00:00-08:00Z”,
end_time = “2017-04-19T00:00:00-08:00Z”,
granularity = “DAY”,
metric_groups = “MEDIA”,
placement = “ALL_ON_TWITTER”),
accept_json(),
config(token = twitter_token))