在LinkedIn Marketing API中获取广告的URL

时间:2018-07-05 20:02:11

标签: linkedin linkedin-api

我正在使用Marketing 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

返回
{  
   "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"
}

1 个答案:

答案 0 :(得分:1)

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

一个例子就是LinkedIn Lead Gen Form系统。您的广告将转发到在LinkedIn中创建的销售线索生成系统,而不是指定的URL。