在 LinkedIn 营销 API 中获取广告的 URL

Get the URL of an ad in LinkedIn Marketing API

我正在营销链接中工作 api 以创建一个工具来报告我们的广告。我需要的一件事是 URL 广告以显示每个目的地的统计数据。

我不完全确定它与广告的哪一部分相关联,但我认为它与广告素材相关联。

文档中显示了一个示例请求

https://api.linkedin.com/v2/adCreativesV2/{ID}

它提供了带有点击 URI 的结果

{
    {
        "campaign": "urn:li:sponsoredCampaign:326050844",
        "id": 104748094,
        "review": {
            "reviewStatus": "PENDING"
        },
        "status": "ACTIVE",
        "type": "TEXT_AD",
        "variables": {
            "clickUri": "http://www.dundermifflin.com",
            "data": {
                "com.linkedin.ads.TextAdCreativeVariables": {
                    "imageId": "",
                    "text": "Out of paper. Out of stock. There's friendly faces around the block.",
                    "title": "People Person's Paper People"
                }
            }
        }
    }

但是当我提交请求时,它并没有给我这些信息。我的请求(为了客户的隐私更改了 id)

 https://api.linkedin.com/v2/adCreativesV2/12345678

returns 与

{  
   "reference":"urn:li:share:xxxxxxxxxxxxxxxxx",
   "variables":{  
      "data":{  
         "com.linkedin.ads.SponsoredUpdateCreativeVariables":{  
            "activity":"urn:li:activity:xxxxxxxxxxxxxxxxx",
            "share":"urn:li:share:xxxxxxxxxxxxxxxxx",
            "directSponsoredContent":true
         }
      }
   },
   "changeAuditStamps":{  
      "created":{  
         "time":1499978379000
      },
      "lastModified":{  
         "time":1518332188000
      }
   },
   "review":{  
      "reviewStatus":"AUTO_APPROVED"
   },
   "campaign":"urn:li:sponsoredCampaign:xxxxxxxxx",
   "servingStatuses":[  
      "RUNNABLE"
   ],
   "id":12345678,
   "type":"SPONSORED_STATUS_UPDATE",
   "version":{  
      "versionTag":"3"
   },
   "status":"ACTIVE"
}

事实证明,某些广告素材根本没有 clickURI。

其中一个例子是 LinkedIn Lead Gen Form 系统。您的广告转发到在 LinkedIn 中创建的潜在客户生成系统,而不是指定的 URL.