简体   繁体   English

查询AdSupplyForecast时在Linkedin API V2中获取403禁止

[英]Getting 403 Forbidden in Linkedin API V2 while querying for AdSupplyForecast

I am using the LinkedIn API V2 and I am trying to query the AdSupplyForecast endpoint from my company profile. 我正在使用LinkedIn API V2,并且试图从我的公司资料中查询AdSupplyForecast端点。 I am using the following tutorial to build the request using Targeting Criteria V2: 我正在使用以下教程使用Targeting Criteria V2构建请求:

https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/advertising-targeting/ad-supply-forecasts https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/advertising-targeting/ad-supply-forecasts

This is the request information: 这是请求信息:

GET https://api.linkedin.com/v2/adSupplyForecasts?q=criteriaV2&campaignType=TEXT_AD&account=urn%3Ali%3AsponsoredAccount%3A2560807&timeRange=(start:1541691210720,end:1544283210720)&targetingCriteria=(include:(and:List((or:(urn%3Ali%3AadTargetingFacet%3Agenders:List(urn%3Ali%3Agender%3AMALE,urn%3Ali%3Agender%3AFEMALE)))))) HTTP/1.1
Host: api.linkedin.com
Authorization: Bearer xxxxxxx
X-Restli-Protocol-Version: 2.0.0

This is the response information: 这是响应信息:

HTTP/1.1 403 Forbidden
X-Restli-Gateway-Error: true
Content-Type: application/json
Date: Thu, 08 Nov 2018 16:33:31 GMT
X-Li-Fabric: prod-lor1
Connection: keep-alive
X-Li-Pop: prod-efr5
X-LI-Proto: http/1.1
Set-Cookie: lidc="b=OB68:g=1068:u=602:i=1541694811:t=1541781211:s=AQGBKJna3VcsX87YCodNIDqiNNTr_AKi"
X-LI-Route-Key: "b=OB68:g=1068:u=602:i=1541694811:t=1541781211:s=AQGBKJna3VcsX87YCodNIDqiNNTr_AKi"
X-LI-UUID: FGtPJ0MzZRXgVVzfeCsAAA==
message:"Unpermitted fields present in PARAMETER: Data Processing Exception while processing fields [/account]"

When I am trying to query the AdBudgetPricing endpoint with the same account everything is working as expected. 当我尝试使用相同的帐户查询AdBudgetPricing端点时,一切都按预期方式工作。

seems like this request refuses to accept the account parameter in the url, could you remove this one ? 似乎此请求拒绝接受url中的account参数,您可以删除此请求吗?

Edit: 编辑:
examples for the targeting criteria containing an include and an exclude in all examples. 定位条件的所有示例在所有示例中都包含一个包含和一个排除。
https://developer.linkedin.com/docs/ref/v2/ads/targeting-criteria-examples https://developer.linkedin.com/docs/ref/v2/ads/targeting-criteria-examples

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM