콘텐츠로 이동

광고 매출과 노출 정보 전송

광고 매출과 노출 정보 전송하기

게임에서 광고가 노출될 때 광고 플랫폼 종류, 광고 노출 위치, 노출 시점, 노출당 광고 수익 등을 측정하여 서드 파티 어트리뷰션으로 전송할 수 있습니다. 이러한 광고 매출, 노출 정보를 전송하려면 Analytics API의 sendAdRevenueEvent() 함수를 호출하세요. 다음은 광고 노출 정보를 마케팅 어트리뷰션에 전송하는 예제 코드입니다.

// Send ad sales measurement event to third-party attribution
AnalyticsAdRevenue analyticsAdRevenue = new AnalyticsAdRevenue();
analyticsAdRevenue.revenue = 3.0; // advertising revenue
analyticsAdRevenue.adPlatform = "AD Platform"; // ad network platform name
analyticsAdRevenue.adUnitId = "Test Unit Id"; // ad unit ID
analyticsAdRevenue.adType = "RewardedAD"; // Ad exposure type
analyticsAdRevenue.adPlacement = "Test Rewarded AD"; // Ad exposure location
analyticsAdRevenue.currency = "USD"; //currency code (ISO 4217 standard)

Analytics.sendAdRevenueEvent(analyticsAdRevenue);
#include "HiveAnalytics.h"

FHiveAnalyticsAdRevenue AdRevenue;
AdRevenue.Revenue = 3.0; // 광고 수익
AdRevenue.AdPlatform = TEXT("AD Platform"); // 광고 네트워크 플랫폼 이름
AdRevenue.AdUnitId = TEXT("Test Unit Id"); // 광고 유닛 아이디
AdRevenue.AdType = TEXT("RewardedAD"); // 광고 노출 타입
AdRevenue.AdPlacement = TEXT("Test Rewarded AD"); // 광고 노출 위치
AdRevenue.Currency = TEXT("USD"); // 통화 코드 (ISO 4217 표준)

FHiveAnalytics::SendAdRevenueEvent(AdRevenue);
// Send ad sales measurement event to third-party attribution
AnalyticsAdRevenue analyticsAdRevenue;
analyticsAdRevenue.revenue = 3.0; // advertising revenue
analyticsAdRevenue.adPlatform = "AD Platform"; // ad network platform name
analyticsAdRevenue.adUnitId = "Test unit id"; // ad unit ID
analyticsAdRevenue.adType = "RewardedAD"; // Ad exposure type
analyticsAdRevenue.adPlacement = "Test Rewarded AD"; // Ad exposure location
analyticsAdRevenue.currency = "USD"; //currency code (ISO 4217 standard)

Analytics::sendAdRevenueEvent(analyticsAdRevenue);
// Send ad sales measurement event to third-party attribution
AnalyticsImpl.AnalyticsAdRevenue analyticsAdRevenue = new AnalyticsImpl.AnalyticsAdRevenue();
analyticsAdRevenue.setRevenue(3.0); // advertising revenue
analyticsAdRevenue.setAdPlatform("AD Platform"); // ad network platform name
analyticsAdRevenue.setAdUnitId("Test Unit Id"); // ad unit ID
analyticsAdRevenue.setAdType("RewardedAD"); // Ad exposure type
analyticsAdRevenue.setAdPlacement("Test Rewarded AD"); // Ad exposure location
analyticsAdRevenue.setCurrency("USD"); //currency code (ISO 4217 standard)

com.hive.Analytics.INSTANCE.sendAdRevenueEvent(analyticsAdRevenue);
// Send ad sales measurement event to third-party attribution
var analyticsAdRevenue: AnalyticsImpl.AnalyticsAdRevenue = AnalyticsImpl.AnalyticsAdRevenue()
analyticsAdRevenue.revenue = 3.0 // advertising revenue
analyticsAdRevenue.adPlatform = "AD Platform" // Ad network platform name
analyticsAdRevenue.adUnitId = "Test Unit Id" // Ad unit ID
analyticsAdRevenue.adType = "RewardedAD" // Ad exposure type
analyticsAdRevenue.adPlacement = "Test Rewarded AD" // Ad exposure position
analyticsAdRevenue.currency = "USD" // Currency code (ISO 4217 standard)

Analytics.sendAdRevenueEvent(analyticsAdRevenue)
// Send ad sales measurement event to third-party attribution
HIVEAnalyticsAdRevenue* adRevenue = [[HIVEAnalyticsAdRevenue alloc] init];
adRevenue.revenue = 3.0; // advertising revenue
adRevenue.adPlatform = "AD Platform"; // ad network platform name
adRevenue.adUnitId = "Test Unit Id"; // ad unit ID
adRevenue.adType = "RewardedAD"; // Ad exposure type
adRevenue.adPlacement = "Test Rewarded AD"; // Ad exposure location
adRevenue.currency = ""; //currency code (ISO 4217 standard)

[HIVEAnalytics sendAdRevenueEvent:adRevenue];
// Send ad sales measurement event to third-party attribution
let analyticsAdRevenue = AnalyticsAdRevenue()
analyticsAdRevenue.revenue = 3.0 // advertising revenue
analyticsAdRevenue.adPlatform = "AD Platform" // Ad network platform name
analyticsAdRevenue.adUnitId = "AD Unit Id" // Ad unit ID
analyticsAdRevenue.adType = "AD Type" // Ad exposure type
analyticsAdRevenue.adPlacement = "AD Placement" // Ad placement location
analyticsAdRevenue.currency = "USD" // Currency code (ISO 4217 standard)

AnalyticsInterface.sendAdRevenueEvent(analyticsAdRevenue)

광고 노출 정보

광고 노출 정보 전송 시 서드 파티 모바일 앱 어트리뷰션에 전송하는 정보는 아래와 같습니다.

  Adjust Singular AppsFlyer Firebase Analytics
PARAMETER
  • Ad Platform
  • Ad Unit Id
  • Ad Placement
  • Revenue
  • Currency
  • Ad Platform
  • Ad Unit Id
  • Ad Placement
  • Ad Type
  • Revenue
  • Currency
  • Ad Platform
  • Ad Unit Id
  • Ad Placement
  • Ad Type
  • Revenue
  • Currency
  • Ad Platform
  • Ad Unit Id (Ad Unit Name)
  • Ad Type (Ad Format)
  • Revenue (Value)
  • Currency