针对LinkedInMarketingAPI创意名称和linkedincampaign这两个问题,本篇文章进行了详细的解答,同时本文还将给你拓展#linkedinlinkedinAPI无法创建广告账号
针对LinkedIn Marketing API 创意名称和linkedin campaign这两个问题,本篇文章进行了详细的解答,同时本文还将给你拓展#linkedin linkedin API 无法创建广告账号、API PUT /marketing/contacts/imports with restsharp、criteo marketing api 相关、Facebook Marketing API - 使用号召性用语从现有帖子创建广告等相关知识,希望可以帮助到你。
本文目录一览:- LinkedIn Marketing API 创意名称(linkedin campaign)
- #linkedin linkedin API 无法创建广告账号
- API PUT /marketing/contacts/imports with restsharp
- criteo marketing api 相关
- Facebook Marketing API - 使用号召性用语从现有帖子创建广告
LinkedIn Marketing API 创意名称(linkedin campaign)
如何解决LinkedIn Marketing API 创意名称
我正在尝试使用营销开发者平台 API 为我的广告系列提取报告。
我希望能够按广告系列和创意名称细分我的报告。
在 LinkedIn 文档 (https://docs.microsoft.com/en-gb/linkedin/marketing/integrations/ads-reporting/ads-reporting#statistics-finder) 中,他们给出了统计查找器的示例,并说它最多可以拉出 3 个枢轴。
这是他们给出的例子:
GET https://api.linkedin.com/v2/adAnalyticsV2?q=statistics&pivots[0]=CAMPAIGN&daterange.start.day=1&daterange.start.month=1&daterange.start.year=2017&timeGranularity=DAILY&campaigns[0]=urn:li:sponsoredCampaign:1234567
我似乎无法让它工作超过 1 个枢轴。
我面临的另一个问题是我不确定如何提取创意名称 - 我似乎只能在我的 api 调用中获取创意 ID。
我正在使用以下示例来获取广告系列名称: https://docs.microsoft.com/en-gb/linkedin/shared/references/v2/ads/adcampaigns?context=linkedin/marketing/context
查看等效的广告素材名称: https://docs.microsoft.com/en-gb/linkedin/shared/references/v2/ads/adcreatives?context=linkedin/marketing/context 我似乎在这里找不到广告素材的名称。我是不是找错地方了?
#linkedin linkedin API 无法创建广告账号
如何解决#linkedin linkedin API 无法创建广告账号
网址:https://api.linkedin.com/v2/adAccountsV2
请求: { "货币": "印度卢比","name": "公司 ABC",“notifiedOnCampaignoptimization”:真, “notifiedOnCreativeApproval”:真, “notifiedOnCreativeRejection”:真, “notifiedOnEndOfCampaign”:真, "reference": "urn:li:organization:1000",“类型”:“业务” }
回复: { “信息”: ” 您的应用程序未配置为访问相关广告客户帐户,请确保您已将帐户 ID 添加到您的帐户管理列表中。",“状态”:403, "code": "禁止" }
如何解决这个问题?
API PUT /marketing/contacts/imports with restsharp
如何解决API PUT /marketing/contacts/imports with restsharp?
由于内部原因,我需要将我的 servlet 从 Java 重新编码为 c#。 我正在尝试使用带有 restsharp 的 API PUT /marketing/contacts/imports 上传 CSV 文件。 我无法正确发送文件。
代码片段 请在我的 Java 代码段下方正常工作:
File file = new File(CSV);
byte[] data;
try {
data = Files.readAllBytes(file.toPath());
HttpResponse<String> response2 = Unirest.put(URLSengrid)
.header(processSendgridHeader(headerFromSengrid).get(0),processSendgridHeader(headerFromSengrid).get(1))
//("x-amz-server-side-encryption","aws:kms")
.body(data)
.asstring();
} catch (IOException e) {
// Todo Auto-generated catch block
e.printstacktrace();
}
这里是非工作的 c# 代码:
byte[] file = System.IO.File.ReadAllBytes(testPath);
var clientSecondCall = new RestClient(URLSendgrid);
var requestSecondCall = new RestRequest(Method.PUT);
requestSecondCall.AddHeader("content -type","application/json");
requestSecondCall.AddHeader("x-amz-server-side-encryption","aws:kms");
requestSecondCall.AddParameter("application/json","{"file_type":"csv","field_mappings":["e1_T","e2_T","_rf2_T","e4_T","e5_T","e12_T","e13_T","e14_T","e15_T","e16_T"]}",ParameterType.RequestBody);
requestSecondCall.AddFile("file",file,testPath);
我花了很长时间寻找答案,但没有成功。任何帮助将不胜感激
技术细节: sendgrid-csharp 版本:9.* csharp 版本:v4.0.303190
解决方法
我认为问题在于您在 c# 代码中发送文件的方式。
Java 代码显然使用了请求的 Body,而 c# 代码使用的是 RestSharp。
Restsharp 以多部分形式发送文件,您的服务器可能没有资格处理。
我建议使用 HttpClient 对象:
HttpClient client = new HttpClient();
HttpRequestMessage request = new HttpRequestMessage();
request.Method = HttpMethod.Put;
request.RequestUri = new Uri( "Your Url");
request.Content = new StringContent(File.ReadAllText(yourFilePath));
request.Headers.Add("your header name","your header value");
var response = client.SendAsync(request).Result;
criteo marketing api 相关
官网登陆地址:https://marketing.criteo.com/
官网api介绍:https://marketing.criteo.com/e/s/article?article=360001226005-Marketing-API-details&language=en_US
官网swagger:https://api.criteo.com/marketing/swagger/ui/index
python包github地址:https://github.com/criteo/criteo-python-marketing-sdk
Testing Criteo Marketing API:https://marketing.criteo.com/e/s/article?article=360001226125-Testing-Criteo-Marketing-API&language=en_US
currency:The currency code used must match the ISO 4217 Currency Code Standard.
Criteo Resellers Program API:https://marketing.criteo.com/e/s/article?article=360001265360-Criteo-Resellers-Program-API-Guide-V2-0&language=en_US
the Business Manager role
Time Zone
All dates in the Criteo REST API are shown in Coordinated Universal Time (UTC).
Data Freshness
Remaining budget and statistics are not real time and can have up to a few hours of delay. Hence a seller can be inactive while their remaining amount is still decreasing. The sellers’ ads are not displayed anymore, but the remaining budget is decreasing as data is catching up.
API usage recommendations
When updating large batches of budgets or bids, you should implement these changes in separated, batched API calls as opposed to many individual calls as this may lead to throttling.
One call should be marked for bids, and another call for budgets. Both calls will contain the correct bids per campaigns and budgets for the given or multiple campaigns.
EXAMPLE: You need to set bids and budgets for 10 different sellers. We recommend you send 1 API call for seller-campaign endpoint and 1 call for budgets endpoint, with both containing respective sellers desired bids and budgets.
How do I authenticate the API?
Criteo uses JWT to provide token based authentication system to our REST API. In order to issue calls to our API, you will need to pass a token on to any of these calls.
To get your token, you will need to issue a POST call to the /oauth2/token endpoint, with client_id and client_secret as parameters (see Getting Started section).
NOTE: Each token is valid for 5 minutes. Should your token expire, you will receive a 401 HTTP response status code.
认识JWT
product & campaign
Advertising objectives:
-
Web traffic: Increase visits to your website, where people can find more information about your products and services and consider buying. For example, to generate interest in a new line of products, you could reach people who have shown interest in your products in the past and bring them to your website to learn about the new line.
-
App Installs (coming soon): Drive people to download your app. This can include brand new customers, or existing customers who have purchased from you online or in your store, but who haven’t downloaded your app yet.
- The Conversion objective is used by marketers looking to drive the highest number of conversions at the lowest cost. This objective will inform the bidding strategy, placing a higher value on people who are most likely to convert. For example, a hotel website may use this objective to increase bookings from people searching for last-minute hotels. These users are more likely to convert – and therefore valued higher – than those looking for dates further out. As a result they see increased conversions from this campaign.
- The Revenueobjective will help maximize revenue at the lowest cost. For example, a furniture company may use this objective to sell higher ticket items such as bedroom sets in order to increase revenue, because people who show interest in these more expensive products will be valued higher than those looking at lower-ticket items. As a result, their campaign will deliver conversions with a higher average order value.
- The New customer objective will target people who are interested in your products or services, but who have never purchased before. For example, a bike company will value people who have never purchased from their site higher than loyal customers.
seller & budget & bid & campaign
What if one of my sellers changed the name on my platform?
As our API essentially relies on sellerName to manage bids and budgets, any change in seller name will automatically create a new entry in our system, not linked to the previous seller name.
In a nutshell, if a seller changes its name on your platform, you will need to:
- Update your product feed with the new sellerName
- Initialize your seller''s bid and budget by sending us a PUT /v2/crp/seller-campaigns & POST /v2/crp/budgets
the Criteo Reseller Program REST API which allow you to manage campaigns bids and budgets at the sellers level
Criteo REST API for Resellers
ONBOARDING A SELLER IN THE CRITEO RESELLER PROGRAM
To onboard a new seller, you will need to make sure he is properly flagged in the Product Feed catalog you''ve previously shared with Criteo.
To make sure your seller is properly flagged, you will need to set the seller name column to the seller unique identifier, which is the seller name for each of your seller’s products provided in the feed.
Tip: A seller becomes active once you send us available products through the feed & both their bid and budget.
After the steps above, you will be able to send us your sellers’ budget and bids thanks to the sellers'' endpoints described previously, especially:
- PUT /v1/sellers/bids to send us the sellers’ CPC
- POST /v1/sellers/budgets to send us the seller’s budget
Tip: You can retrieve the full list of sellers with their status (active/inactive) by issuing a GET call to the seller’s endpoint, providing your Criteo Reseller Program campaign identifier (CampaignID) as a parameter.
Tip:
A seller is:
- Active if: it has a budget and a bid and at least one product in the catalog
- Inactive if:
- in its initial status, you’ve declared the sellerName in the Product Feed and not declared yet any budget and/or bid,
- it has no active budget (see later budgetStatus).
ads page & ads Placement
After a page is registered, your Criteo Technical Solutions Engineer will setup Ad placements where the sponsored Ads will be shown on your site
tag 平台
Facebook Marketing API - 使用号召性用语从现有帖子创建广告
如何解决Facebook Marketing API - 使用号召性用语从现有帖子创建广告
我正在尝试使用现有的 Facebook 帖子来创建流量 (LINK_CLICKS) 目标广告。问题是我无法向现有帖子添加号召性用语。所有文档都指向使用 object_story_spec 这是一个未发布的新帖子或使用 object_story_id 没有号召性用语。关于如何实现这一目标的任何想法?这里发布了一个类似的错误帖子: https://developers.facebook.com/support/bugs/887658341809988/
谢谢!
关于LinkedIn Marketing API 创意名称和linkedin campaign的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于#linkedin linkedin API 无法创建广告账号、API PUT /marketing/contacts/imports with restsharp、criteo marketing api 相关、Facebook Marketing API - 使用号召性用语从现有帖子创建广告等相关知识的信息别忘了在本站进行查找喔。
本文标签: