A Rule that will be triggered based on certain criteria defined on ad objects, and perform custom actions.
欄位 | 說明 |
---|---|
id numeric string | ID of the rule |
account_id numeric string | ID of the ad account that owns the rule |
created_by | The user who created the rule |
created_time datetime | Time when the rule was created |
disable_error_code int32 | error_code explaining why this rule is disabled with issues |
name string | The friendly name of a rule, optional for inline rules |
schedule_spec | Specifies the schedule with which a rule will be evaluated |
status string | The status of a rule |
updated_time datetime | The time when the rule was last updated. |
關係連線 | 說明 |
---|---|
Edge<AdRuleHistory> | The execution history associated with this rule. Each entry represents a distinct run of the rule and provides any actions that may have been taken on any ad objects. |
錯誤 | 說明 |
---|---|
200 | Permissions error |
190 | Invalid OAuth 2.0 Access Token |
100 | Invalid parameter |
80004 | There have been too many calls to this ad-account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting#ads-management. |
adrules_library
edge from the following paths: 參數 | 說明 |
---|---|
account_id numeric string | Ad Account ID. This is inferred from the path. |
evaluation_spec Object | Defines the evaluation spec upon which a rule will be executed 必填 |
execution_spec Object | Defines the execution spec upon which a rule will be executed 必填 |
name string | The friendly name of a rule, optional for inline rules 必填 |
schedule_spec Object | Specifies the schedule with which a rule will be evaluated |
status enum {ENABLED, DISABLED, DELETED, HAS_ISSUES} | The status of a rule |
id
的節點。id
: numeric string, 錯誤 | 說明 |
---|---|
200 | Permissions error |
100 | Invalid parameter |
2703 | Rules that turn off ads can't have cost conditions. You need to change the rule's conditions or action. |
190 | Invalid OAuth 2.0 Access Token |
368 | The action attempted has been deemed abusive or is otherwise disallowed |
/{ad_rule_id}
提出發佈要求,以更新 an AdRule 。參數 | 說明 |
---|---|
evaluation_spec Object | Defines the evaluation spec upon which a rule will be executed |
execution_spec Object | Defines the execution spec upon which a rule will be executed |
name string | The friendly name of a rule, optional for inline rules |
schedule_spec Object | Specifies the schedule with which a rule will be evaluated |
status enum {ENABLED, DISABLED, DELETED, HAS_ISSUES} | The status of a rule |
success
: bool, 錯誤 | 說明 |
---|---|
200 | Permissions error |
100 | Invalid parameter |
2703 | Rules that turn off ads can't have cost conditions. You need to change the rule's conditions or action. |
368 | The action attempted has been deemed abusive or is otherwise disallowed |
190 | Invalid OAuth 2.0 Access Token |
/{ad_rule_id}
提出刪除要求,以刪除 an AdRule 。success
: bool, 錯誤 | 說明 |
---|---|
368 | The action attempted has been deemed abusive or is otherwise disallowed |
200 | Permissions error |
100 | Invalid parameter |
190 | Invalid OAuth 2.0 Access Token |