我正在尝试更新广告系列的广告组出价。
发送此数据:
{"id": 12345, "campaignId": 6789, "name": "campaign", "defaultCPCBid":
{"amount": "0.58", "currency": "USD"}}
得到这个回应:
{"data":null,"pagination":null,"error":{"errors":
[{"messageCode":"INVALID_ATTRIBUTE_TYPE","message":"Invalid
field","field":"id"},
{"messageCode":"INVALID_ATTRIBUTE_TYPE","message":"Invalid
field","field":"campaignId"},
{"messageCode":"INVALID_ATTRIBUTE_TYPE","message":"Invalid
field","field":"defaultCPCBid"}]}}
你知道是什么问题吗?
请注意,出于保密原因,路径和 ID 已更改。
下面是所有内容:
正在发送的数据:
{"id": 12345, "campaignId": 6789, "name": "campaign", "defaultCPCBid":
{"amount": "0.58", "currency": "USD"}}
CURL Command being sent to apple:
curl --verbose \
-X PUT \
-d @put.json \
-H "Authorization: orgId=123456" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--cert '/home/field1/field2/Certificates/name.pem' \
--key '/home/path1/path2/Certificates/name.key' \
--pass deletedText \
'https://api.searchads.apple.com/api/v1/campaigns/123456/adgroups/789