Ads API v1 (metrics from v0)


#1

I have ads api v0 that is returning metrics like promoted_tweet_timeline_engagement_rate. Once I swap to v1, I cant get this metric again, how do I go about to get this value?

	{
	  "start_time": "2016-01-21T16:00:00Z",
	  "promoted_tweet_timeline_card_engagements": [
		0
	  ],
	  "promoted_account_follow_rate": [
		0.0
	  ],
	  "promoted_tweet_search_url_clicks": [
		0
	  ],
	  "promoted_tweet_search_clicks": [
		0
	  ],
	  "promoted_tweet_search_engagement_rate": [
		0.0
	  ],
	  "promoted_tweet_search_favorites": [
		0
	  ],
	  "billed_charge_local_micro": [
		2620000
	  ],
	  "promoted_tweet_search_retweets": [
		0
	  ],
	  "promoted_tweet_timeline_favorites": [
		1
	  ],
	  "promoted_tweet_app_open_attempts": [
		0
	  ],
	  "promoted_tweet_search_card_engagements": [
		0
	  ],
	  "promoted_account_impressions": [
		0
	  ],
	  "end_time": "2016-04-21T09:27:42Z",
	  "promoted_tweet_search_replies": [
		0
	  ],
	  "promoted_tweet_search_follows": [
		0
	  ],
	  "promoted_account_profile_visits": [
		0
	  ],
	  "promoted_tweet_timeline_clicks": [
		4
	  ],
	  "id": "432ts",
	  "promoted_tweet_timeline_impressions": [
		497
	  ],
	  "promoted_account_follows": [
		0
	  ],
	  "promoted_tweet_timeline_url_clicks": [
		0
	  ],
	  "promoted_tweet_timeline_engagement_rate": [
		0.0080482897384305842
	  ],
	  "billed_follows": [
		0
	  ],
	  "granularity": "TOTAL",
	  "promoted_tweet_timeline_retweets": [
		0
	  ],
	  "promoted_tweet_timeline_replies": [
		0
	  ],
	  "promoted_tweet_app_install_attempts": [
		0
	  ],
	  "billed_engagements": [
		4
	  ],
	  "promoted_tweet_timeline_follows": [
		0
	  ],
	  "promoted_tweet_search_engagements": [
		0
	  ],
	  "promoted_tweet_timeline_engagements": [
		4
	  ],
	  "promoted_tweet_search_impressions": [
		0
	  ]
	}

//v1

	{
	  "id": "432ts",
	  "id_data": [
		{
		  "segment": null,
		  "metrics": {
			"video_views_50": null,
			"impressions": [
			  497
			],
			"mobile_conversion_spent_credits": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_installs": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_content_views": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_lifetime_value_tutorials_completed": {
			  "metric": null,
			  "order_quantity": null,
			  "sale_amount": null
			},
			"mobile_conversion_add_to_wishlists": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_lifetime_value_checkouts_initiated": {
			  "order_quantity": null,
			  "sale_amount": null,
			  "metric": null
			},
			"mobile_conversion_lifetime_value_add_to_wishlists": {
			  "metric": null,
			  "order_quantity": null,
			  "sale_amount": null
			},
			"mobile_conversion_lifetime_value_logins": {
			  "metric": null,
			  "sale_amount": null,
			  "order_quantity": null
			},
			"mobile_conversion_checkouts_initiated": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"conversion_purchases": {
			  "sale_amount": null,
			  "metric": null,
			  "order_quantity": null
			},
			"mobile_conversion_reservations": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_tutorials_completed": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"billed_charge_local_micro": [
			  2620000
			],
			"qualified_impressions": null,
			"video_views_75": null,
			"conversion_sign_ups": {
			  "sale_amount": null,
			  "order_quantity": null,
			  "metric": null
			},
			"follows": null,
			"mobile_conversion_achievements_unlocked": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_lifetime_value_add_to_carts": {
			  "metric": null,
			  "order_quantity": null,
			  "sale_amount": null
			},
			"app_clicks": null,
			"mobile_conversion_lifetime_value_sign_ups": {
			  "sale_amount": null,
			  "order_quantity": null,
			  "metric": null
			},
			"mobile_conversion_searches": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_lifetime_value_spent_credits": {
			  "metric": null,
			  "sale_amount": null,
			  "order_quantity": null
			},
			"retweets": null,
			"mobile_conversion_key_page_views": {
			  "post_engagement": null,
			  "post_view": null
			},
			"video_cta_clicks": null,
			"mobile_conversion_lifetime_value_achievements_unlocked": {
			  "order_quantity": null,
			  "metric": null,
			  "sale_amount": null
			},
			"likes": [
			  1
			],
			"mobile_conversion_add_to_carts": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_payment_info_additions": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_re_engages": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"video_content_starts": null,
			"mobile_conversion_lifetime_value_updates": {
			  "metric": null,
			  "sale_amount": null,
			  "order_quantity": null
			},
			"video_views_25": null,
			"mobile_conversion_shares": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"conversion_site_visits": {
			  "order_quantity": null,
			  "sale_amount": null,
			  "metric": null
			},
			"mobile_conversion_lifetime_value_content_views": {
			  "order_quantity": null,
			  "metric": null,
			  "sale_amount": null
			},
			"mobile_conversion_lifetime_value_invites": {
			  "sale_amount": null,
			  "order_quantity": null,
			  "metric": null
			},
			"engagements": [
			  4
			],
			"mobile_conversion_lifetime_value_shares": {
			  "sale_amount": null,
			  "order_quantity": null,
			  "metric": null
			},
			"conversion_custom": {
			  "order_quantity": null,
			  "sale_amount": null,
			  "metric": null
			},
			"video_views_100": null,
			"mobile_conversion_lifetime_value_searches": {
			  "sale_amount": null,
			  "metric": null,
			  "order_quantity": null
			},
			"mobile_conversion_lifetime_value_purchases": {
			  "metric": null,
			  "order_quantity": null,
			  "sale_amount": null
			},
			"clicks": [
			  4
			],
			"media_views": null,
			"card_engagements": null,
			"mobile_conversion_lifetime_value_reservations": {
			  "sale_amount": null,
			  "metric": null,
			  "order_quantity": null
			},
			"mobile_conversion_lifetime_value_rates": {
			  "order_quantity": null,
			  "metric": null,
			  "sale_amount": null
			},
			"replies": null,
			"mobile_conversion_lifetime_value_levels_achieved": {
			  "sale_amount": null,
			  "order_quantity": null,
			  "metric": null
			},
			"url_clicks": null,
			"video_mrc_views": null,
			"mobile_conversion_rates": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_logins": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"billed_engagements": [
			  4
			],
			"mobile_conversion_updates": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"mobile_conversion_lifetime_value_payment_info_additions": {
			  "sale_amount": null,
			  "metric": null,
			  "order_quantity": null
			},
			"conversion_downloads": {
			  "sale_amount": null,
			  "order_quantity": null,
			  "metric": null
			},
			"mobile_conversion_levels_achieved": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"video_total_views": null,
			"mobile_conversion_invites": {
			  "post_view": null,
			  "order_quantity": null,
			  "assisted": null,
			  "post_engagement": null,
			  "sale_amount": null
			},
			"carousel_swipes": null
		  }
		}
	  ]
	}

//v0

stats/accounts/18ce53ymmtp/campaigns?campaign_ids=432ts&start_time=2016-01-21T16%3A00%3A00Z&granularity=TOTAL&include_entities=1&include_rts=1

//v1

stats/accounts/18ce53ymmtp?entity=CAMPAIGN&entity_ids=432ts&start_time=2016-01-21T16%3A00%3A00Z&end_time=2016-01-28T16%3A00%3A00Z&granularity=TOTAL&metric_groups=ENGAGEMENT%2CWEB_CONVERSION%2CMOBILE_CONVERSION%2CMEDIA%2CVIDEO%2CLIFE_TIME_VALUE_MOBILE_CONVERSION%2CBILLING&placement=ALL_ON_TWITTER&include_entities=1&include_rts=1


#2

Hi @aminmonster703! In v1 the values are aggregated across all placements, so you can’t get them split by placement anymore, if this is what you’re asking. Now, you can get the total engagements (engagements or card_engagements) and total impressions and then make the ratio engagements / impressions, which is the ratio.