MACT Overview
X mobile app promotion measurement allows advertisers to track the success of advertising campaigns on X that are designed to drive installs or other in-app conversions. A X mobile measurement partner provides the ability for an advertiser to manage what conversions they want to track from the apps they are promoting on X. Once the advertiser has set up the type and time windows of the events they want to track the mobile measurement partner will send all of those events to X and immediately receive attribution data indicating the campaign and creative that the user engaged with to drive the conversion.Conversion Events
In order to report a conversion event to X and get attribution data the partner must send the mobile app ID, type and timestamp of the conversion, as well as a hashed value of the advertising/device ID. Providing this data will record the conversion event on X’s platform as well as return the attribution where appropriate. In addition, the advertiser may elect to provide extra metadata about the conversion event such as value of a purchase, the ID of a product, or a registration method.API reference
Conversion Event
POST conversion_event
Record a mobile measurement conversion event. The response will indicate X or X Audience Platform (TAP) attribution. This relates to the GET conversion_attribution endpoint. Either X, TAP or no attribution will be claimed in the response. Thetwitter_attribution node will always be present and have a value of null when there is no X attribution (see the example response below). If TAP attribution is claimed a tpn_attribution node will be present and populated accordingly. Please refer to the TAP overview for more information.
There are several optional parameters available to set metadata associated with each conversion event. This metadata has no effect on attribution calculations.
Resource URL
https://ads-api.x.com/12/conversion_event
Parameters
Example Request
https://ads-api.x.com/12/conversion_event?app_id=333903271&os_type=IOS&hashed_device_id=ABCD1234XYZ&conversion_type=INSTALL&conversion_time=2013-04-16T07:00:00.123Z&click_window=14&view_through_window=1
Example Response
App Event Tags
GET accounts/:account_id/app_event_tags
Retrieve details for some or all app event tags associated with the current account. These are what define the conversion windows set up per each conversion type for Mobile App Conversion Tracking.Resource URL
https://ads-api.x.com/12/accounts/:account_id/app_event_tags
Parameters
Example Request
GET https://ads-api.x.com/12/accounts/18ce54d4x5t/app_event_tags?app_event_tag_ids=jhp
Example Response
GET accounts/:account_id/app_event_tags/:app_event_tag_id
Retrieve a specific app event tag associated with the current account. These are what define the conversion windows set up per each conversion type for Mobile App Conversion Tracking.Resource URL
https://ads-api.x.com/12/accounts/:account_id/app_event_tags/:app_event_tag_id
Parameters
Example Request
GET https://ads-api.x.com/12/accounts/18ce54d4x5t/app_event_tags/jhp
Example Response
POST accounts/:account_id/app_event_tags
Create a new app event tag associated with the current account.Resource URL
https://ads-api.x.com/12/accounts/:account_id/app_event_tags
Parameters
Example Request
POST https://ads-api.x.com/12/accounts/18ce54d4x5t/app_event_tags?app_store_identifier=com.twitter.android&os_type=ANDROID&conversion_type=PURCHASE&provider_app_event_id=abc123&provider_app_event_name=test-tag
Example Response
DELETE accounts/:account_id/app_event_tags/:id
Delete the specified app event tag belonging to the current account.Resource URL
https://ads-api.x.com/12/accounts/:account_id/app_event_tags/:id
Parameters
Example Request
DELETE https://ads-api.x.com/12/accounts/18ce54d4x5t/app_event_tags/jhp
Example Response
App Lists
GET accounts/:account_id/app_lists
Retrieve details for some or all app lists associated with the current account.Resource URL
https://ads-api.x.com/12/accounts/:account_id/app_lists
Parameters
Example Request
GET https://ads-api.x.com/12/accounts/18ce54d4x5t/app_lists?app_list_ids=wm7x
Example Response
GET accounts/:account_id/app_lists/:app_list_id
Retrieve a specific app list associated with the current account.Resource URL
https://ads-api.x.com/12/accounts/:account_id/app_lists/:app_list_id
Parameters
Example Request
GET https://ads-api.x.com/12/accounts/18ce54d4x5t/app_lists/28ukf
Example Response
POST accounts/:account_id/app_lists
Create anapp_list associated with the current account.
Currently there is a limit of 100 app_list objects per account_id and 500 apps per app_list.
Resource URL
https://ads-api.x.com/12/accounts/:account_id/app_lists
Parameters
Example Request
POST https://ads-api.x.com/12/accounts/18ce54d4x5t/app_lists?name=app list&app_store_identifiers=com.twitter.android
Example Response
DELETE accounts/:account_id/app_lists/:app_list_id
Delete the specified app list associated with the current account.Resource URL
https://ads-api.x.com/12/accounts/:account_id/app_lists/:app_list_id
Parameters
Example Request
DELETE https://ads-api.x.com/12/accounts/18ce54d4x5t/app_lists/28ukf
Example Response
App Event Provider Configurations
❯GET accounts/:account_id/app_event_provider_configurations¶
Retrieve details for some or all app event provider configurations (core configuration for Mobile Application Conversion Tracking) associated with the current account.Resource URL
https://ads-api.x.com/11/accounts/:account_id/app_event_provider_configurations
Parameters
Example Request
GET https://ads-api.x.com/11/accounts/18ce54d4x5t/app_event_provider_configurations?ids=25n
Example Response
GET accounts/:account_id/app_event_provider_configurations/:id
Retrieve a specific ID for event provider configurations (core configuration for Mobile Application Conversion Tracking) associated with the current account.Resource URL
https://ads-api.x.com/11/accounts/:account_id/app_event_provider_configurations/:id
Parameters
Example Request
GET https://ads-api.x.com/11/accounts/18ce54d4x5t/app_event_provider_configurations/25n
Example Response
POST accounts/:account_id/app_event_provider_configurations
Create a new app event provider configuration associated with the current account. Only one MACT provider can be associated with a particular ads account.Resource URL
https://ads-api.x.com/11/accounts/:account_id/app_event_provider_configurations
Parameters
Example Request
POST https://ads-api.x.com/11/accounts/18ce54d4x5t/app_event_provider_configurations?provider_advertiser_id=client1
Example Response
DELETE accounts/:account_id/app_event_provider_configurations/:id[¶]
Delete the specified app event provider configuration belonging to the current account.Resource URL
https://ads-api.x.com/11/accounts/:account_id/app_event_provider_configurations/:id
Parameters
Example Request
DELETE https://ads-api.x.com/11/accounts/18ce54d4x5t/app_event_provider_configurations/e5g
Example Response
Conversion Attribution
GET conversion_attribution
Query X to check on conversion attribution without writing a conversion event. Response will indicate X attribution. This relates to the POST conversion_event endpoint. Either X, TAP, or no attribution will be claimed in the response. Thetwitter_attribution node will always be present and have a value of null when there is no X attribution and be populated as seen in the example response below. If TAP attribution is claimed a tpn_attribution node will be present and populated accordingly. Please refer to the TAP overview for more information.
Resource URL
https://ads-api.x.com/12/conversion_attribution
Parameters
Example Request
GET https://ads-api.x.com/12/conversion_attribution?app_id=333903271&os_type=IOS&hashed_device_id=ABCD1234XYZ&conversion_type=INSTALL&conversion_time=2013-04-16T07:00:00.123Z&click_window=14&view_through_window=0