连接到 Linkedin adAnalytics API - 参数中存在未经许可的字段 [英] Connecting to Linkedin adAnalytics API - Unpermitted fields present in parameter

查看:32
本文介绍了连接到 Linkedin adAnalytics API - 参数中存在未经许可的字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I am having trouble connecting to the LinkedIn AdAnalytics API. While using postman to test my connection - I receive the error:

{
    "serviceErrorCode": 100,
    "message": "Unpermitted fields present in PARAMETER: Data Processing Exception
                while processing fields [/daterange]",
    "status": 403
}

I can verify I have access. I am able to generate the access token with Oath 2.0 in postman. I used https://docs.microsoft.com/en-us/linkedin/marketing/getting-started to setup Oauth 2.0 access on postman and make sure I have the right permissions on my app. I am using the following scopes for my access.

r_organization_social, w_organization_social, rw_organization_admin,
rw_ads, r_ads_reporting, r_liteprofile

Here is an example of using the V2 notation https://docs.microsoft.com/en-us/linkedin/shared/api-guide/concepts/protocol-version?context=linkedin/marketing/context:

Here is an example of using V1 notation https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting#sample-request.

Neither notation worked. I am very new to APIs so I am sure I am missing something, but I am unsure what it is.

解决方案

As you can see in the example, you can pass the dateRange values as single params in query string as follow:

CAMPAIGN&dateRange.start.day=1&dateRange.start.month=1&dateRange.start.year=2017&timeGranularity=DAILY

EDIT: Take care of use the camelCase version of the params name, in detail for dateRange: replace daterange with dateRange in all the occurrences and retry (I've replicated the error using the version in lowercase)

Hope this help

这篇关于连接到 Linkedin adAnalytics API - 参数中存在未经许可的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆