Skip to main content

Moloco Log API

Last updated 10/03/2026
tip

Note that data generated by third-party data integration counts toward the cluster's data consumption

warning

Moloco Log API is deprecated and is shown as Log API (Deprecated) in the AE backend. We recommend using Moloco Report API instead.

Summary​

Interface overview​

InterfaceTypeGranularityAttributionCostRevenueImpressionsClicksConversions
Log APIAPIUser data✅✅✅✅✅✅

Log API provides user-level raw data with very rich user information.

Integration process​

  1. Log in to your Moloco account and get the Workplace ID
  2. Log in to the AE backend, go to the Third-party Integration module, add a Moloco Log API plan, and complete the related configuration
  3. Check whether the AE system receives the data successfully, and build reports

1. Get the authorization information​

1.1 Get the Workplace ID​

Before calling the API, you need to get the Workplace ID. Log in to your Moloco account and click the Settings button in the left sidebar to open the settings page. On the settings page, you can get the Workplace ID on the Information tab, as shown in the image below.

1.2 Provide the Moloco account and password​

Calling the Moloco API requires a Token, and generating the Token requires your Moloco account and password. If you don't want to use your everyday account directly, you can also create a new Moloco account dedicated to API calls. See the image below for how to create a new account

1.3 Get the ad account ID​

Finally, get the IDs of all the ad accounts you want to pull data from. You can get the ad account ID as shown in the image below. Because you can configure multiple ad accounts, we recommend getting the IDs of all the ad accounts you want to pull data from

1.4 Summary​

You need to get the following information from the Moloco backend:

  • Workplace ID
  • The Moloco account name, that is, the Email
  • The Moloco account password
  • The IDs of all the ad accounts you want to pull data from

2. Plan configuration​

After you get the Moloco authorization information, you can log in to the AE system backend and configure Moloco Log API in the Third-party Integration module. The image below shows the Moloco configuration page:

2.1 Authorization information configuration​

Click the Configure authorization information button under Authorization Information, and enter the information you obtained during authorization in the pop-up

Enter the following in order:

  • Workplace ID: the Workplace ID you got earlier
  • Email: the Moloco account name
  • Password: the password of the Moloco account
  • Ad Account ID: the IDs of the ad accounts you want to pull data from. Separate multiple IDs with ","

2.2 Event Data Configuration​

After you turn on the Event Data Configuration switch, all data sent back is written to the event table. We recommend that you enable event data ingestion.

2.3 Configuration​

In the Configuration module, you can control the details of data pulling, such as the event name after ingestion and the dimensions of the pulled data.

The content of the configuration is a JSON, which you can customize as follows:

ModuleNameDescription
sink_eventevent_mappingEvent name after ingestion. Customizable; different reports can have different names. The Key corresponds to source.report_types
sourcereport_typesReport types to pull
transferdouble_columnsIngested metric fields. Do not modify

Log API provides three types of detailed data:

  • IMP: impression data, which includes impressions and impression cost
  • CLICK: click data, which includes clicks as well as the user's earlier impressions and impression cost
  • CONVERSION: conversion data, which includes conversion, attribution, cost, and revenue data obtained from the MMP, as well as the user's earlier impressions and clicks
  • For the specific fields returned for the three types of detailed data and their meanings, see the Moloco official documentation
warning

The detailed data of Log API identifies users by ADID (that is, GAID) and IDFA, and custom user identification fields can't be set. Therefore, the AE system doesn't currently support user identification fields or the ingestion of user properties. Log API data is written only to the event table, and the data belongs to one virtual user.

By default, we connect all three types of data. To make changes, enter the names of the reports you need in source.report_types

2.3.1 Common fields​

  • The following fields are common to all three types of detailed data:
Ingested field nameDescription
req_exchangeAd exchange of the bid
req_timestampBid request time
req_app_bundleBundle name
req_app_publisher_idPublisher ID
req_device_ifaDevice ID, such as ADID or IDFA
req_device_osDevice platform, such as ios or android
req_device_osvDevice platform version
req_device_carrierDevice carrier
req_device_connectiontypeDevice network status
req_device_hwvDevice hardware version
req_device_makeDevice manufacturer
req_device_modelDevice model
req_device_devicetypeDevice Type
req_device_languageDevice language
req_device_ipDevice IP address
req_device_lmtWhether LAT is enabled
req_device_geo_countryCountry or region code
req_device_geo_utcoffsetTime zone offset in minutes
req_device_geo_regionUS region code
req_device_geo_metroGoogle metro code
req_device_geo_cityCity
req_device_geo_zipZIP code
req_imp_bidfloorBid floor price
req_imp_tagidAd placement or tag ID
req_imp_banner_wBanner width
req_imp_banner_hBanner height
req_imp_video_maxdurationMaximum video duration
req_imp_video_mindurationMinimum video duration
req_imp_video_wVideo width
req_imp_video_hVideo height
req_imp_video_skipWhether the video can be skipped
req_imp_video_ext_is_rewardedWhether it is a rewarded video
req_imp_native_ext_has_imageWhether banner ads are allowed
req_imp_native_ext_has_videoWhether video ads are allowed
req_imp_instlWhether interstitial ads are allowed
bid_mtidUnique Moloco bid ID
bid_advertiser_idAdvertiser ID
bid_advertiser_titleAdvertiser name
bid_campaign_idCampaign ID
bid_campaign_titleCampaign name
bid_adgroup_idAd group ID
bid_adgroup_titleAd group name
bid_creativegroup_idCreative group ID
bid_creativegroup_titleCreative group name
bid_creative_idAsset ID
bid_creative_titleCreative name
bid_creative_typeCreative type
bid_creative_wCreative width
bid_creative_hCreative height
bid_creative_size_in_bytesCreative size
bid_creative_video_durationVideo duration, or 0 if it isn't a video
bid_user_bucketUser traffic bucket
bid_adslot_typeAd slot type
bid_adslot_wAd slot width
bid_adslot_hAd slot height

2.3.2 IMP data (Impression)​

The following fields are specific to IMP data:

Ingested field nameDescription
imp_timestampImpression time
imp_cost_moloco_microOriginal impression cost, in USD, multiplied by 1,000,000
imp_cost_currencyImpression currency
imp_cost_fee_percentImpression service fee, in USD, multiplied by 1,000,000
imp_cost_total_microTotal impression cost, in USD, multiplied by 1,000,000
imp_ipIP address
  • imp_timestamp, that is, the time when the impression occurred, is set as the #event_time of the record
  • The default event name for IMP data is: moloco_log_imp

2.3.3 CLICK data​

The following fields are specific to CLICK data:

Ingested field nameDescription
click_timestampClick time
click_typeClick type
click_ipIP address
  • click_timestamp, that is, the time when the click occurred, is set as the #event_time of the record
  • The event name for CLICK data is: moloco_log_click

2.3.4 CONVERSION data​

The following fields are specific to CONVERSION data:

Ingested field nameDescription
conversion_mmpPartner
conversion_eventEvent callback name received from the partner
conversion_timestampTime when the data was received from the partner
conversion_attribution_timestampConversion data time
conversion_attribution_is_view_throughWhether it is a view-through conversion
conversion_attribution_is_engaged_view_throughWhether it is an engaged view-through conversion
conversion_revenue_amountRevenue sent back
conversion_revenue_currencyCurrency of the revenue sent back
conversion_revenue_amount_usdRevenue sent back in USD
conversion_postbackRaw callback data
  • conversion_attribution_timestamp, that is, the time when attribution occurred, is set as the #event_time of the record
  • The event name for CONVERSION data is: moloco_log_conversion

2.4 Standardized fields​

The following event properties are standardized:

Original fieldStandardized fieldDescription
bid_advertiser_idte_ads_object.ad_account_idAd account ID
bid_campaign_titlete_ads_object.campaign_nameCampaign name
bid_campaign_idte_ads_object.campaign_idCampaign ID
bid_adgroup_titlete_ads_object.ad_group_nameAd group name, or the Unit name for monetization ads
bid_adgroup_idte_ads_object.ad_group_idAd group ID, or the Unit ID for monetization ads
bid_creativegroup_titlete_ads_object.ad_nameAd name
bid_creativegroup_idte_ads_object.ad_idAd ID
req_device_oste_ads_object.platformPlatform, such as Android or iOS
req_device_geo_countryte_ads_object.countryCountry or region code
USD (fixed value)te_ads_object.currencyCurrency of the cost or revenue
imp_cost_total_microte_ads_object.costUser acquisition cost
conversion_revenue_amount_usdte_ads_object.revenueMonetization revenue
Was this page helpful?