본문 바로가기메인 메뉴 바로가기사이드 메뉴 바로가기

kakao developers

Related sites
  • Docs
  • Kakao Moment
  • Ad creation: Ad account

사이드 메뉴

Kakao Map

Search

Kakao Moment

Ad creation: Ad account

This document describes how to use the Ad account APIs.

There are two types of ad account — Business ad account and Personal ad account. An advertiser or an agency running ads for the advertiser can create a Business ad account.

View list of ad accounts

Basic information
MethodURLAuthorization
GEThttps://apis.moment.kakao.com/openapi/v4/adAccounts/pagesBusiness token

Retrieves a list of ad accounts.

Send a GET request with the issued business token in the request header. If the request is successful, the response includes a page of ad account information list in the body. To request the next page, increase the value of page. If failed, refer to Error code to figure out its failure cause.

Request

Header
NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
Query parameter
NameTypeDescriptionRequired
configArrayPass the values of ON, OFF, andDEL in a comma-separate string.
(Default: ON, OFF)
X
pageIntegerPage number(Default: 0)X
sizeIntegerNumber of ad accounts in a page(Default: 10)X

Response

Body
NameTypeDescription
contentAdAccount[]List of ad account information.
numberIntegerPage number, same as page
sizeIntegerNumber of ad accounts in a page
totalElementsIntegerTotal count
totalPagesIntegerNumber of the pages
pageIntegerPage number
AdAccount
NameTypeDescription
idLongAd account's ID.
nameStringAd account's name.
memberTypeMemberTypeMember type.
Either MASTER (Master role) or MEMBER(Member role).
configConfigAd account's status.

Sample

Request
curl -v -G GET "https://apis.moment.kakao.com/openapi/v4/adAccounts/pages" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-d "config=ON,OFF" \
-d "page=0" \
-d "size=2"
Response
{
"content": [
{
"id": 111,
"name": "TestAccount1",
"memberType": "MASTER",
"config": "ON"
},
{
"id": 222,
"name": "TestAccount2",
"memberType": "MASTER",
"config": "ON"
}
],
"number": 0,
"size": 2,
"totalElements": 92,
"totalPages": 46,
"page": 0
}

View ad account

Basic information
MethodURLAuthorization
GEThttps://apis.moment.kakao.com/openapi/v4/adAccounts/${AD_ACCOUNT_ID}Business token

Retrieves detailed information of a specific ad account.

Send a GET request with the issued business token and an ad account ID (adAccountId) in the request header. If the request is successful, this API returns the detailed information of the ad account in JSON format. If failed, refer to Error code to figure out its failure cause.

This API limits the number of calls you can make to every second per user account per app ID.

Request

Header
NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O
Path variable
NameTypeDescriptionRequired
AD_ACCOUNT_IDLongAd account's ID.O

Response

Body
NameTypeDescription
idLongAd account's ID.
nameStringAd account's name.
advertiserCompanyAdvertiser's business information.
typeStringAd account's type.
BUSINESS (Business ad account).
configStringAd account's status.
One of ON, OFF, or DEL (Deleted).
isAdminStopBooleanWhether or not the ad account's administrator is suspended.
isOutOfBalanceBooleanWhether or not the account's balance is insufficient.
statusDescriptionStringStatus of the ad account.
bizWalletIdLongBusiness wallet ID linked to the ad account.

Sample

Request
curl -X GET "https://apis.moment.kakao.com/openapi/v4/adAccounts/${AD_ACCOUNT_ID}" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "adAccountId: ${AD_ACCOUNT_ID}"
Response
{
"id": 1111,
"name": "kakao_moment_ad_account",
"advertiser": {
"businessRegistrationNumber": "120-81-47521",
"name": "kakao_corporation"
},
"type": "BUSINESS",
"config": "ON",
"isAdminStop": false,
"isOutOfBalance": false,
"statusDescription": "운영중",
"bizWalletId": 1111
}
Response: Fail
{
"code": -813,
"msg": "KakaoMomentException",
"extras": {
"detailCode": 21006,
"detailMsg": "존재하지 않는 광고계정입니다."
}
}

View real-time balance

Basic information
MethodURLAuthorization
GEThttps://apis.moment.kakao.com/openapi/v4/adAccounts/balanceBusiness token

Retrieves the real-time balance of an ad account.

Send a GET request with the issued business token and an ad account ID (adAccountId) in the request header. If the request is successful, this API returns the balance information of the ad account in JSON format. If failed, refer to Error code to figure out its failure cause.

Request

Header
NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O

Response

Body
NameTypeDescription
idLongAd account's ID.
bizWalletIdLongBusiness wallet ID linked to the ad account.
cashLongCash.
freeCashLongFree cash.

Sample

Request
curl -X GET "https://apis.moment.kakao.com/openapi/v4/adAccounts/balance" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "adAccountId: ${AD_ACCOUNT_ID}"
Response
{
"id": 1111,
"bizWalletId": 1111,
"cash": 5000000,
"freeCash": 100000
}
Response: Fail
{
"code": -813,
"msg": "KakaoMomentException",
"extras": {
"detailCode": 21006,
"detailMsg": "존재하지 않는 광고계정입니다."
}
}

View business right

Basic information
MethodURLAuthorization
GEThttps://apis.moment.kakao.com/openapi/v4/adAccounts/bizRightBusiness token

Retrieves an ad account's business right.

Send a GET request with the issued business token and an ad account ID (adAccountId) in the request header. If the request is successful, this API returns the name of the company that has a business right in JSON format. If failed, refer to Error code to figure out its failure cause.

Request

Header
NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O

Response

Body
NameTypeDescription
idLongAd account's ID.
bizRightCompanyNameStringName of the company that has a business right.

Sample

Request
curl -X GET "https://apis.moment.kakao.com/openapi/v4/adAccounts/bizRight" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "AdAccountId: ${AD_ACCOUNT_ID}"
Response
{
"id": 1111,
"bizRightCompanyName": "kakao_corporation"
}
Response: Fail
{
"code": -813,
"msg": "KakaoMomentException",
"extras": {
"detailCode": 21006,
"detailMsg": "존재하지 않는 광고계정입니다."
}
}

Auto-approve business rights

Basic information
MethodURLAuthentication
POSThttps://apis.moment.kakao.com/openapi/v4/adAccounts/${AD_ACCOUNT_ID}/bizRightBusiness token

Approves business rights for an ad account.

Send a POST request with the business token and ad account ID (adAccountId) of the approval target. Upon success, the response body returns a JSON object containing business right information. On failure, check the cause in Error codes.

Request

Header
NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Authentication method using Business token
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account ID
O
Path variable
NameTypeDescriptionRequired
AD_ACCOUNT_IDLongAd account IDO

Response

Body
NameTypeDescription
idLongAd account number
bizRightCompanyNameStringCompany name holding the business rights

Example

Request
curl -X POST "https://apis.moment.kakao.com/openapi/v4/adAccounts/${AD_ACCOUNT_ID}/bizRight" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "AdAccountId: ${AD_ACCOUNT_ID}"
Response
{
"id": 1111,
"bizRightCompanyName": "Kakao Corp."
}

View list of Kakao Talk Channel profiles

Basic information
MethodURLAuthorization
GEThttps://apis.moment.kakao.com/openapi/v4/adAccounts/channel/profilesBusiness token

Retrieves a list of the profiles of Kakao Talk Channels.

You can use the value of id passed in the response when you create a campaign as:

  • The object of the campaign with the Conversion goal
  • The object of the campaign with Kakao Talk Channel type

Send a GET request with the issued business token and an ad account ID (adAccountId) in the request header. If the request is successful, this API returns a list of respective Kakao Talk Channels' profile information in JSON format. If failed, refer to Error code to figure out its failure cause.

Request

Header
NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O

Response

Body
NameTypeDescription
-ChannelProfile[]List of Kakao Talk Channel profile information.
ChannelProfile
NameTypeDescription
idStringKakao Talk Channel's profile ID.
nameStringKakao Talk Channel's name.
searchIdStringID (UUID) used for search on Kakao Talk.

Sample

Request
curl -X GET "https://apis.moment.kakao.com/openapi/v4/adAccounts/channel/profiles" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "adAccountId: ${AD_ACCOUNT_ID}"
Response
[
{
"id": "_ZQxd",
"name": "kakao_channel",
"searchId": "kakao_channel"
},
{
"id": "_Xxju",
"name": "kakao_channel2",
"searchId": "kakao_channel2"
}
]

View Pixel & SDK

Basic information
MethodURLAuthorization
GEThttps://apis.moment.kakao.com/openapi/v4/adAccounts/trackersBusiness token

Retrieves a list of Pixel & SDKs linked to your ad account.

You can use the value of id passed in the response when you create a campaign with 'Display X Conversion' or 'Kakao Bizboard X Conversion. If the campaign is 'Display X Visit' or 'Kakao Bizboard X Visit', the id is used for conversion tracking.

Send a GET request with the issued business token and an ad account ID (adAccountId) in the request header. If the request is successful, this API returns the tracker information in JSON format. If failed, refer to Error code to figure out its failure cause.

What is Pixel & SDK?

When you install a Pixel & SDK on your website or app, Pixel & SDK collects event logs as you define. Collecting event logs is regardless of the inflows through ad click.

You can use the log data for the following purposes:

  • Used for a report by separating the inflow through ad clicks.
  • Used for re-targeting per event.
  • Used as data to help increase advertising efficiency. (Example: ctr, cvr)

Request

Header
NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O
Query parameter
NameTypeDescriptionRequired
campaignTypeStringValue used to set a campaign type.
Use one of CampaignType.
X
goalStringValue used to set a goal.
Use one of Goal.
X

Response

Body
NameTypeDescription
idStringPixel & SDK's ID.
nameStringPixel & SDK's name.

Sample

Request
curl -X GET "https://apis.moment.kakao.com/openapi/v4/adAccounts/trackers?campaignType=TALK_BIZ_BOARD&goal=VISITING" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "adAccountId: ${AD_ACCOUNT_ID}"
Response
[
{
"id": "1",
"name": "tracker1"
},
{
"id": "2",
"name": "tracker2"
}
]

Create ad account

Basic information
MethodURLAuthorization
POSThttps://apis.moment.kakao.com/openapi/v4/adAccountsBusiness token

Creates a new ad account of an advertiser or agency.

Only a business account can use this API.

Send a POST request with the issued business token in the request header. If the request is successful, this API returns the created ad account information. If failed, refer to Error code to figure out its failure cause.

This API limits the number of calls you can make to every second per user account.

Request

Header
NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
Body
NameTypeDescriptionRequired
nameStringName of the ad account to be created.O
advertiserCompanyIdLongAdvertiser's business registration number.
ID retrieved through the Viewing business information API.
O*
* In the case of an advertiser, advertiserCompanyId is not required.

Response

Body
NameTypeDescription
idLongAd account's ID.
nameStringAd account's name.
advertiserCompanyAdvertiser's business information.
typeStringAd account's type.
Either BUSINESS (Business ad account) or INDIVIDUAL (Personal ad account).
configStringAd account's status.
One of ON, OFF, or DEL (Deleted).
isAdminStopBooleanWhether or not the account's administrator is suspended.
isOutOfBalanceBooleanWhether or not the account's balance is insufficient.
statusDescriptionStringStatus of the ad account.

Sample

Request
curl -X POST "https://apis.moment.kakao.com/openapi/v4/adAccounts" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"name":"test_ad_account",
"advertiserCompanyId": 34
}'
Response
{
"id": 123,
"name": "test_ad_account",
"advertiser": {
"businessRegistrationNumber": "678-67-67890",
"name": "business_of_advertiser"
},
"type": "BUSINESS",
"config": "ON",
"isAdminStop": false,
"isOutOfBalance": true,
"statusDescription": "잔액부족"
}
Response: Fail
{
"code": -813,
"msg": "KakaoMomentException",
"extras": {
"detailCode": 75105,
"detailMsg": "ownerCompanyId 정보를 전달하지 않아야 합니다."
}
}

Change ad account status

Basic information
MethodURLAuthorization
PUThttps://apis.moment.kakao.com/openapi/v4/adAccounts/onOffBusiness token

Enables you to change the status of an ad account to ON or OFF.

You can only change its status if the ad account's status is ON or OFF. If the requested ad account is in the process of being deleted, you cannot change its status.

If you change the ad account's status to OFF, the delivery status of messages under a Message creative changes as follows:

  • If messages are ready to be sent, the status is changed to 'Sent'.
  • If messages are being sent, the status is changed to 'Paused'.

Send a PUT request with the issued business token and an ad account ID (adAccountId) in the request header. If the request is successful, this API returns the HTTP status code 200 without the response body. If failed, refer to Error code to figure out its failure cause.

This API limits the number of calls you can make to every second per user account.

Request

Header
NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O
Body
NameTypeDescriptionRequired
configStringAd account's status.
Either ON or OFF.
O

Sample

Request
curl -X PUT "https://apis.moment.kakao.com/openapi/v4/adAccounts/onOff" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "AdAccountId: ${AD_ACCOUNT_ID}" \
-H "Content-Type: application/json" \
-d '{
"config":"ON"
}'
Response
HTTP/1.1 200 OK
Content-Length: 0
Content-Type: application/json;charset=UTF-8
Response: Fail
{
"code": -813,
"msg": "KakaoMomentException",
"extras": {
"detailCode": 21400,
"detailMsg": "광고계정이 삭제처리중입니다."
}
}

See more

Was this helpful?