LinkedIn Campagin API 链接未插入

问题描述 投票:0回答:1

我正在使用营销 API 通过 PHP 中的curl 创建广告。 以这种方式创建营销活动组和营销活动效果非常好。创意和广告的基本创作也正在发挥作用。唯一的问题是我无法添加目标 URL 和其他一些信息,例如描述和号召性用语。但目标 URL 或内容登陆页面(如文档中所称)确实是基础。

这是我的创意数据代码:

$data = [
    "creative" => [
        "inlineContent" => [
            "post" => [
                "adContext" => [
                    "dscAdAccount" => "urn:li:sponsoredAccount:".$this->params->get('app.linkedin_my_acc_id'),
                    "dscStatus" => "ACTIVE"
                ],
                "author" => "urn:li:organization:".$this->params->get('app.linkedin_my_org_id'),
                "commentary" => $job->getCommentary(),
                "visibility" => "PUBLIC",
                "lifecycleState" => "PUBLISHED",
                "isReshareDisabledByAuthor" => false,
                "contentCallToActionLabel" => "DOWNLOAD",
                "contentLandingPage" => "https://google.com",
                "content" => [
                    "media" => [
                        "title" => "This is a test!",
                        "id" => $image
                    ]
                ]
            ]
        ],
        "campaign" => "urn:li:sponsoredCampaign:".$myCampaignId,
        "intendedStatus" => "ACTIVE"
    ]
];

结构与文档中的相同(https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads/account-struct/create-and-manage-creatives-new?view= li-lms-2023-01&tabs=http#creatives-inline-schema)。 那么我做错了什么?为什么 LinkedIn 忽略我的 contentLandingPage 和 contentCallToActionLabel 值?该请求正在运行,并且我没有收到未经允许的字段错误,因此它似乎是正确的...... 有人可以帮忙吗?如果需要的话,我还可以提供活动组和活动的代码。

不确定这是否重要,但我的活动的目标类型是“WEBSITE_VISIT”,类型是“SPONSORED_UPDATES”。

api linkedin-api
1个回答
0
投票

我在同类活动中遇到了同样的问题。你有遇到任何解决方案吗?

谢谢

© www.soinside.com 2019 - 2024. All rights reserved.