카카오모먼트 api 광고그룹 최대 입찰금액 수정 관련 문의

아래 내용을 기재하신 후 문의를 남겨주시길 바랍니다. .
호출 시 발생한 오류의 경우 호출 /응답 내용을 상세히 남겨주시는 것이 확인 및 답변에 도움이 됩니다.

  • 사업자명: 매드업
  • APP 이름(ID): ab38e1eeb67d90022840f658e2185831
  • 문의 내용:아래와 같이 요청했으나

curl -X PUT -v ‘http://kapi.kakao.com/v2/moment/adGroups/update’ \

-H 'Authorization: Bearer ' \

-H "Content-Type: application/json" \

-d "{

    "id": 777572

    "campaign": {

            "id": 324298

    },

    "placements": ["KAKAO_TALK"],

    "allAvailableDeviceType": false,

    "allAvailablePlacement": false,

    "deviceTypes": ["IOS", "ANDROID"],

    "targeting": {

        "ageType": "NOT_ALL",

        "ages": ["15", "20", "26", "31", "41", "51"],

        "genderType": "NOT_ALL",

        "genders": ["M", "F"],

        "cohortTargetings": [

            {"cohortId": 1, "inclusionType": "EXCLUDE"}

        ],

        "customerFileTargetings": [

            {"customerFileId": 1, "inclusionType": "INCLUDE"}

        ],

        "lookalikeTargetings": [

            {"lookalikeId": 1, "inclusionType":"INCLUDE"}

        ],

        "talkChannelTargetings": [

            {"profileId":1, "inclusionType":"EXCLUDE"}

        ],

        "syncAppTargetings": [

            {"profileId":1, "inclusionType":"INCLUDE"}

        ],

        "trackerTargetings": [

            {

            "id": 1,

            "trackId":"123456789",

            "inclusionType":"INCLUDE",

            "trackerTargetingTerms": ["ONE_MONTH"],

            "eventCode": "PageView",

            "trackRuleId": "*",

            "trackRuleName": "방문"

            }

        ],

        "locationType": "AREA",

        "locations": [

            {

                "value": "A",

                "description": "강원도",

                "depth1Name": "강원도"

            },

            {

                "value": "B",

                "description": "경기도",

                "depth1Name": "경기도"

            },

            {

                "value": "C",

                "description": "경상남도",

                "depth1Name": "경상남도"

            },

            {

                "value": "D",

                "description": "경상북도",

                "depth1Name": "경상북도"

            },

            {

                "value": "E",

                "description": "광주광역시",

                "depth1Name": "광주광역시"

            },

            {

                "value": "F",

                "description": "대구광역시",

                "depth1Name": "대구광역시"

            },

            {

                "value": "G",

                "description": "대전광역시",

                "depth1Name": "대전광역시"

            },

            {

                "value": "H",

                "description": "부산광역시",

                "depth1Name": "부산광역시"

            },

            {

                "value": "I",

                "description": "서울특별시",

                "depth1Name": "서울특별시"

            },

            {

                "value": "J",

                "description": "울산광역시",

                "depth1Name": "울산광역시"

            },

            {

                "value": "K",

                "description": "인천광역시",

                "depth1Name": "인천광역시"

            },

            {

                "value": "L",

                "description": "전라남도",

                "depth1Name": "전라남도"

            },

            {

                "value": "M",

                "description": "전라북도",

                "depth1Name": "전라북도"

            },

            {

                "value": "N",

                "description": "제주특별자치도",

                "depth1Name": "제주특별자치도"

            },

            {

                "value": "O",

                "description": "충청남도",

                "depth1Name": "충청남도"

            },

            {

                "value": "P",

                "description": "충청북도",

                "depth1Name": "충청북도"

            },

            {

                "value": "Q",

                "description": "세종특별자치시",

                "depth1Name": "세종특별자치시"

            }

        ]

    },

    "adult": false,

    "dailyBudgetAmount": 100000,

    "bidStrategy": "AUTOBID",

    "useAutoMaxBidAmount": true,

    "autoMaxBidAmount": 110,

    "bidAmount": 0,

    "pricingType": "CPC",

    "pacing": "NONE",

    "creativeOptimization": true,

    "name": "카카오톡_비즈보드_수정",

    "schedule": {

        "beginDate": "2020-01-01",

        "endDate": "2020-01-31",

        "lateNight": true,

        "detailTime": false,

        "mondayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "tuesdayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "wednesdayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "thursdayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "fridayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "saturdayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "sundayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","0"]

    },

    "type": "DISPLAY"

}

"

PUT /v2/moment/adGroups/update HTTP/1.1

Host: kapi.kakao.com
User-Agent: curl/7.54.0
Accept: /
Authorization: Bearer
Content-Type: application/json
Content-Length: 5130
Expect: 100-continue

< HTTP/1.1 100 Continue

  • We are completely uploaded and fine
    < HTTP/1.1 405 Method Not Allowed
    < Date: Thu, 22 Oct 2020 04:57:44 GMT
    < Server: Apache
    < Allow: GET,POST,OPTIONS,HEAD
    < Content-Length: 246
    < Content-Type: text/html; charset=iso-8859-1
    <
405 Method Not Allowed

Method Not Allowed

The requested method PUT is not allowed for the URL /v2/moment/adGroups/update.

* Connection #0 to host kapi.kakao.com left intact

위와 같은 응답을 받았습니다. 그래서 POST로 바꾸어

curl -v ‘http://kapi.kakao.com/v2/moment/adGroups/update’ \

-H 'Authorization: Bearer'\

-H "Content-Type: application/json" \

-d "{

    "id": 777572

    "campaign": {

            "id": 324298

    },

    "placements": ["KAKAO_TALK"],

    "allAvailableDeviceType": false,

    "allAvailablePlacement": false,

    "deviceTypes": ["IOS", "ANDROID"],

    "targeting": {

        "ageType": "NOT_ALL",

        "ages": ["15", "20", "26", "31", "41", "51"],

        "genderType": "NOT_ALL",

        "genders": ["M", "F"],

        "cohortTargetings": [

            {"cohortId": 1, "inclusionType": "EXCLUDE"}

        ],

        "customerFileTargetings": [

            {"customerFileId": 1, "inclusionType": "INCLUDE"}

        ],

        "lookalikeTargetings": [

            {"lookalikeId": 1, "inclusionType":"INCLUDE"}

        ],

        "talkChannelTargetings": [

            {"profileId":1, "inclusionType":"EXCLUDE"}

        ],

        "syncAppTargetings": [

            {"profileId":1, "inclusionType":"INCLUDE"}

        ],

        "trackerTargetings": [

            {

            "id": 1,

            "trackId":"123456789",

            "inclusionType":"INCLUDE",

            "trackerTargetingTerms": ["ONE_MONTH"],

            "eventCode": "PageView",

            "trackRuleId": "*",

            "trackRuleName": "방문"

            }

        ],

        "locationType": "AREA",

        "locations": [

            {

                "value": "A",

                "description": "강원도",

                "depth1Name": "강원도"

            },

            {

                "value": "B",

                "description": "경기도",

                "depth1Name": "경기도"

            },

            {

                "value": "C",

                "description": "경상남도",

                "depth1Name": "경상남도"

            },

            {

                "value": "D",

                "description": "경상북도",

                "depth1Name": "경상북도"

            },

            {

                "value": "E",

                "description": "광주광역시",

                "depth1Name": "광주광역시"

            },

            {

                "value": "F",

                "description": "대구광역시",

                "depth1Name": "대구광역시"

            },

            {

                "value": "G",

                "description": "대전광역시",

                "depth1Name": "대전광역시"

            },

            {

                "value": "H",

                "description": "부산광역시",

                "depth1Name": "부산광역시"

            },

            {

                "value": "I",

                "description": "서울특별시",

                "depth1Name": "서울특별시"

            },

            {

                "value": "J",

                "description": "울산광역시",

                "depth1Name": "울산광역시"

            },

            {

                "value": "K",

                "description": "인천광역시",

                "depth1Name": "인천광역시"

            },

            {

                "value": "L",

                "description": "전라남도",

                "depth1Name": "전라남도"

            },

            {

                "value": "M",

                "description": "전라북도",

                "depth1Name": "전라북도"

            },

            {

                "value": "N",

                "description": "제주특별자치도",

                "depth1Name": "제주특별자치도"

            },

            {

                "value": "O",

                "description": "충청남도",

                "depth1Name": "충청남도"

            },

            {

                "value": "P",

                "description": "충청북도",

                "depth1Name": "충청북도"

            },

            {

                "value": "Q",

                "description": "세종특별자치시",

                "depth1Name": "세종특별자치시"

            }

        ]

    },

    "adult": false,

    "dailyBudgetAmount": 100000,

    "bidStrategy": "AUTOBID",

    "useAutoMaxBidAmount": true,

    "autoMaxBidAmount": 110,

    "bidAmount": 0,

    "pricingType": "CPC",

    "pacing": "NONE",

    "creativeOptimization": true,

    "name": "카카오톡_비즈보드_수정",

    "schedule": {

        "beginDate": "2020-01-01",

        "endDate": "2020-01-31",

        "lateNight": true,

        "detailTime": false,

        "mondayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "tuesdayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "wednesdayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "thursdayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "fridayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "saturdayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"],

        "sundayTime": ["1","1","1","0","0","1","0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","0"]

    },

    "type": "DISPLAY"

}

"

위와같이 요청한 결과

POST /v2/moment/adGroups/update HTTP/1.1
Host: kapi.kakao.com
User-Agent: curl/7.54.0
Accept: /
Authorization: Bearer
Content-Type: application/json
Content-Length: 5130
Expect: 100-continue

< HTTP/1.1 100 Continue

  • We are completely uploaded and fine
    < HTTP/1.1 404 Not Found
    < Date: Thu, 22 Oct 2020 05:05:47 GMT
    < Server: Apache
    < Content-Length: 3
    < Content-Type: text/html; charset=iso-8859-1
    <
  • Connection #0 to host kapi.kakao.com left intact
    404

와 같은 응답을 받았습니다. 요청은 문서에 있는 예시의 id와 campaign id만 변경했습니다. 무엇이 문제일까요?

안녕하세요!
혹시 카카오모먼트의 access_token 은 어디에서 발급받으셨는지 알수있을까요?
다른 서비스완느 다르게 모먼트의 access token은 발급받는 방법이다른것같아서요.

안녕하세요. 카카오모먼트 API 담당자입니다.
요청주신 api 의 method 는 PUT 이 맞으며 api 주소의 프로토콜을 http가 아닌 https 로 호출 부탁드리겠습니다.
문서에 http로 잘못표기된 부분은 빠른 시일내에 수정반영하도록 하겠습니다.

감사합니다.