Permissions error when trying to view reports of campaigns/ad_groups using Kakao Moment

Hi,

We’re currently getting a permission error when we try to get a list of campaigns or a list of ad groups. However, we are able to successfully able to view the report for ad accounts.

For example, when we try to make a request to the following URL:

https://apis.moment.kakao.com/openapi/v4/campaigns/report?campaignId=<<CAMPAIGN_ID>>&start=20230501&end=20230531&level=AD_GROUP

We get the following error message:

{
    "msg": "KakaoMomentException",
    "code": -813,
    "extras": {
        "message": "권한이 없습니다."
    }
}

Could this be related to the fact that we need to set consent items, as mentioned here? If so, do you know which permission I need to enable? I’d like to avoid adding to much permission if possible and I’d like the app to only have the bare minimum permissions necessary to query the report endpoint to be able to query the above-mentioned endpoint.

Or is there anything else that is causing this issue?

If we make a request to the below URL then we get data back by back

https://apis.moment.kakao.com/openapi/v4/adAccounts/report?adAccountId=<<AD_ACCOUNT_ID>>&start=20230501&end=20230531&level=CAMPAIGN

Thanks for your help!

Best regards,

Hi,

The error message you shared above often occurs when you are not a member of Ad account’s ID.
You can check whether you are a member of the Ad account or not by Ad creation: Ad account | Kakao Developers Ad creation: Ad account this API.

If you are a member or master of the adAccountId you are trying to view when getting a list of campaings/adgroups, but still get the -813 error, please let me know.

Thank you.

Hi,

Thank you for your response!

I just called the endpoint you linked to, and it looks like I’m a member of all of the Ad accounts that I use when querying the Reports endpoint.

Could the error be due to some other reason?

Best regards,

Hi,

Just checking in to see if you have any other suggestions that I could use when troubleshooting this?

Best regards,

Hi, sorry for replying late. Could you refresh the access token and try again? (You can refresh your access token via 카카오계정)

If you still get the response code -813 with the message “권한이 없습니다.”,
please send me a private message (You can send it by clicking my profile icon)
with the adAccountId, your kakao developers ID, your Kakao Business ID you used.

Best regards,