0

最初,我在其中创建了一个广告活动和一个广告集,用于跟踪 iTunes 商店中的应用安装情况。我链接了广告集的 iTunes 商店 url 应用程序部分(选择您要推广的应用程序。)。然后它给了我以下错误。

Missing or Invalid Field in Promoted Objects: For optimization goal APP_INSTALLS, application_id needs to be valid. Please set it in the Promoted Objects. 

之后我发现这个链接application_id 需要是有效的 Facebook 广告我验证一切正常。之后,我找到了这个链接https://developers.facebook.com/docs/marketing-api/reference/ad-promoted-object/,它告诉我们在使用 cURL 创建新的广告集时如何添加提升的对象。

我使用以下 cURL 创建具有所有正确值的新广告集。

curl -X POST \
  -F 'name="Mobile App Installs Ad Set"' \
  -F 'daily_budget=1000' \
  -F 'bid_amount=2' \
  -F 'billing_event="IMPRESSIONS"' \
  -F 'optimization_goal="APP_INSTALLS"' \
  -F 'campaign_id="<AD_CAMPAIGN_ID>"' \
  -F 'promoted_object={
       "application_id": "<APP_ID>",
       "object_store_url": "<APP_STORE_URL>"
     }' \
  -F 'targeting={
       "device_platforms": [
         "mobile"
       ],
       "facebook_positions": [
         "feed"
       ],
       "geo_locations": {
         "countries": [
           "US"
         ]
       },
       "publisher_platforms": [
         "facebook",
         "audience_network"
       ],
       "user_os": [
         "IOS"
       ]
     }' \
  -F 'status="PAUSED"' \
  -F 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v12.0/act_<AD_ACCOUNT_ID>/adsets

现在我被以下错误消息困住了。

{"error":{"message":"Unsupported post request. Object with ID 'act_<AD_ACCOUNT_ID>' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https:\/\/developers.facebook.com\/docs\/graph-api","type":"GraphMethodException","code":100,"error_subcode":33}}

请帮助,在此先感谢。

4

0 回答 0