我正在尝试实施此处所述的创建广告请求:https://developers.facebook.com/docs/marketing-api/reference/ad-creative
curl \
-F 'name=Sample Creative' \
-F 'title=my title' \
-F 'body=my body' \
-F 'object_url=https://www.link.com' \
-F 'link_url=https://www.link.com' \
-F 'image_hash=<IMAGE_HASH>' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v2.11/act_<AD_ACCOUNT_ID>/adcreatives
我使用字典传递POST参数
var adParameters = new Dictionary<string, string>
{
{"adset_id", $"{adSetId}"},
{"name", $"{adname}"},
{"title", $"{title}"},
{"image_hash", $"{imageHash}"},
{"object_url", $"{objectUrl}"},
{"link_url", $"{objectUrl}"},
{"creative", "{\"creative_id\":6081438180357}"},
{"status", "PAUSED"},
{"access_token", _permanentAccessToken}
};
结果我收到以下错误
{"error":{"message":"Unsupported post request.","type":"GraphMethodException","code":100,"fbtrace_id":"Cw77eeIxwb0"}}
看起来这个错误是由广告素材参数引起的,但我找不到如何正确传递此参数。