Hi,
I am trying to get data for a Followers campaign but the data returned by the AdsAPI doesn’t correspond to the data displayed in the Twitter Ads UI.
GET https://ads-api.twitter.com/0/stats/accounts/18ce53z82f8/promoted_tweets
with the following parameters:
array (
'promoted_tweet_ids' => 'cn1iw',
'granularity' => 'DAY',
'segmentation_type' => 'LOCATIONS',
'start_time' => '2015-10-21T06:00:00+00:00',
'end_time' => '2015-11-06T07:00:00+00:00',
'metrics' => 'promoted_tweet_profile_impressions,promoted_tweet_search_impressions,promoted_tweet_timeline_impressions,promoted_tweet_profile_follows,promoted_tweet_search_follows,promoted_tweet_timeline_follows,promoted_tweet_search_engagements,promoted_tweet_timeline_engagements,promoted_tweet_profile_engagements,promoted_tweet_profile_clicks,promoted_tweet_search_clicks,promoted_tweet_timeline_clicks,promoted_tweet_profile_url_clicks,promoted_tweet_search_url_clicks,promoted_tweet_timeline_url_clicks,promoted_tweet_profile_retweets,promoted_tweet_search_retweets,promoted_tweet_timeline_retweets,promoted_tweet_profile_favorites,promoted_tweet_search_favorites,promoted_tweet_timeline_favorites,promoted_tweet_profile_replies,promoted_tweet_search_replies,promoted_tweet_timeline_replies,promoted_tweet_profile_engagements,promoted_tweet_search_engagements,promoted_tweet_timeline_engagements,conversion_custom,conversion_downloads,conversion_purchases,conversion_sign_ups,conversion_site_visits,billed_charge_local_micro',
)
the response:
stdClass::__set_state(array(
'data_type' => 'stats',
'data' =>
array (
0 =>
stdClass::__set_state(array(
'promoted_tweet_profile_retweets' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'start_time' => '2015-10-21T06:00:00Z',
'promoted_tweet_search_url_clicks' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_clicks' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_favorites' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'billed_charge_local_micro' =>
array (
0 => 0,
1 => 0,
2 => 17390000,
3 => 16210000,
4 => 2950000,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_retweets' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_follows' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_timeline_favorites' =>
array (
0 => 0,
1 => 0,
2 => 1,
3 => 5,
4 => 2,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_impressions' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_favorites' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'end_time' => '2015-11-06T07:00:00Z',
'promoted_tweet_search_replies' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_follows' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'segment' =>
stdClass::__set_state(array(
'segmentation_type' => 'LOCATIONS',
'name' => 'Philippines',
'segmentation_value' => 'fb151ef38fa2ac0d',
)),
'promoted_tweet_timeline_clicks' =>
array (
0 => 0,
1 => 0,
2 => 98,
3 => 97,
4 => 23,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'id' => 'cn1iw',
'promoted_tweet_timeline_impressions' =>
array (
0 => 0,
1 => 0,
2 => 12362,
3 => 19518,
4 => 4457,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_timeline_url_clicks' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'granularity' => 'DAY',
'promoted_tweet_timeline_retweets' =>
array (
0 => 0,
1 => 0,
2 => 8,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_url_clicks' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_timeline_replies' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 1,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_replies' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_timeline_follows' =>
array (
0 => 0,
1 => 0,
2 => 19,
3 => 55,
4 => 12,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_clicks' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_engagements' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_timeline_engagements' =>
array (
0 => 0,
1 => 0,
2 => 125,
3 => 153,
4 => 35,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_impressions' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_engagements' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
)),
1 =>
stdClass::__set_state(array(
'promoted_tweet_profile_retweets' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'start_time' => '2015-10-21T06:00:00Z',
'promoted_tweet_search_url_clicks' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_clicks' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_favorites' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'billed_charge_local_micro' =>
array (
0 => 0,
1 => 0,
2 => 10560000,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_retweets' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_follows' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_timeline_favorites' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_impressions' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_favorites' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'end_time' => '2015-11-06T07:00:00Z',
'promoted_tweet_search_replies' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_follows' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'segment' =>
stdClass::__set_state(array(
'segmentation_type' => 'LOCATIONS',
'name' => 'United States',
'segmentation_value' => '96683cc9126741d1',
)),
'promoted_tweet_timeline_clicks' =>
array (
0 => 0,
1 => 0,
2 => 9,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'id' => 'cn1iw',
'promoted_tweet_timeline_impressions' =>
array (
0 => 0,
1 => 0,
2 => 3881,
3 => 16,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_timeline_url_clicks' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'granularity' => 'DAY',
'promoted_tweet_timeline_retweets' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_url_clicks' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_timeline_replies' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_replies' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_timeline_follows' =>
array (
0 => 0,
1 => 0,
2 => 3,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_clicks' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_engagements' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_timeline_engagements' =>
array (
0 => 0,
1 => 0,
2 => 12,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_search_impressions' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
'promoted_tweet_profile_engagements' =>
array (
0 => 0,
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
12 => 0,
13 => 0,
14 => 0,
15 => 0,
16 => 0,
),
)),
),
'request' =>
stdClass::__set_state(array(
'params' =>
stdClass::__set_state(array(
'start_time' => '2015-10-21T06:00:00Z',
'segmentation_type' => 'LOCATIONS',
'end_time' => '2015-11-06T07:00:00Z',
'account_id' => '18ce53z82f8',
'granularity' => 'DAY',
'metrics' =>
array (
0 => 'promoted_tweet_profile_impressions',
1 => 'promoted_tweet_search_impressions',
2 => 'promoted_tweet_timeline_impressions',
3 => 'promoted_tweet_profile_follows',
4 => 'promoted_tweet_search_follows',
5 => 'promoted_tweet_timeline_follows',
6 => 'promoted_tweet_search_engagements',
7 => 'promoted_tweet_timeline_engagements',
8 => 'promoted_tweet_profile_engagements',
9 => 'promoted_tweet_profile_clicks',
10 => 'promoted_tweet_search_clicks',
11 => 'promoted_tweet_timeline_clicks',
12 => 'promoted_tweet_profile_url_clicks',
13 => 'promoted_tweet_search_url_clicks',
14 => 'promoted_tweet_timeline_url_clicks',
15 => 'promoted_tweet_profile_retweets',
16 => 'promoted_tweet_search_retweets',
17 => 'promoted_tweet_timeline_retweets',
18 => 'promoted_tweet_profile_favorites',
19 => 'promoted_tweet_search_favorites',
20 => 'promoted_tweet_timeline_favorites',
21 => 'promoted_tweet_profile_replies',
22 => 'promoted_tweet_search_replies',
23 => 'promoted_tweet_timeline_replies',
30 => 'conversion_custom',
31 => 'conversion_downloads',
32 => 'conversion_purchases',
33 => 'conversion_sign_ups',
34 => 'conversion_site_visits',
42 => 'billed_charge_local_micro',
),
'promoted_tweet_ids' =>
array (
0 => 'cn1iw',
),
)),
)),
))
For example, the total number of impressions on the 25th of October, 2015 is reported as being 4,457, but in the Twitter Ads UI this number is 6,997. There are differences for other metrics as well, for example the number of follows received (12 in the API and 60 in the UI, on the 25th of October).
There are big differences so this looks like a bug.
Thank you.