我正在尝试使用LinkedIn营销开发者平台的Ad Analytics API,特别是Analytics Finder。
pivot
参数接受各种值。使用pivot=COMPANY
时,我可以成功使用响应修饰从带有以下查询参数的pivotValue
字段中直接提取组织:projection=(elements*(pivotValue~))
但是,即使我可以确认pivot=CAMPAIGN
字段已明确定义,使用pivot=CAMPAIGN_GROUP
或pivot=CREATIVE
或pivotValue
时,响应也始终相同:
{'pivotValue!': {'message': 'Downstream service returned an empty response for URN.', 'status': 404}, 'pivotValue': 'urn:li:sponsoredCampaign:<SOMEID>'}
我做错什么了吗?
当尝试通过投影检索广告系列名称时,我遇到了同样的问题。我尝试了许多解决方案,直到发现使用多个帐户进行过滤时才出现此问题,如下所示:
?q=analytics&pivot=CAMPAIGN&timeGranularity=DAILY
&accounts[0]=urn:li:sponsoredAccount:12345678&accounts[1]=urn:li:sponsoredAccount:01234567
&projection=(*,elements*(dateRange(*),clicks,impressions,pivot,pivotValue~(name)))
&fields=dateRange,clicks,impressions,pivot,pivotValue
&daterange_filter_logic
显然,他们的后端不支持多个帐户的修饰。只要您通过one帐户进行过滤,它就会起作用。