我正在尝试使用“投放请求”节点更新KNIME中的Adwords受众。
这是我正在执行的请求(显然带有我的参数):
PUT https://www.googleapis.com/analytics/v3/management/accounts/accountId/webproperties/webPropertyId/remarketingAudiences/remarketingAudienceId
我将以下内容作为标题传递:
Authorization = [My Bearer Token]
Content-Type = application/json
这是我的身体:
{
"accountId": "accountId",
"webPropertyId": "webPropertyId",
"remarketingAudienceId": "remarketingAudienceId",
"resource": {
"name": "Update Simple Audience",
"linkedViews": ["linkedViews"],
"linkedAdAccounts": [{
"type": "MCC_LINKS",
"linkedAccountId": "linkedAccountId"
}],
"audienceType": "SIMPLE",
"audienceDefinition": {
"includeConditions": {
"isSmartList": "False",
"daysToLookBack": 7,
"membershipDurationDays": 30,
"segment": "users::condition::ga:browser==Chrome"
}
}
}}
这是有效的JSON,但我仍然收到400代码作为响应。
这实际上是来自以下示例: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/remarketingAudience/update
这不是KNIME可行的吗?我不能以这种方式传递JSON吗?
谢谢!