Connecting to Linkedin adAnalytics API - Unpermitted fields present in parameter

拥有回忆 提交于 2021-01-27 13:03:29

问题


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:

enter image description here

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.


回答1:


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



来源:https://stackoverflow.com/questions/57957853/connecting-to-linkedin-adanalytics-api-unpermitted-fields-present-in-parameter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!