Ad Rules

Update an ad rule

Changed on

Changes any field of a rule except its connection and ad account. Send campaignIds: null to check the whole ad account again. Changing the schedule, or enabling a disabled rule, moves the next run; re-sending enabled: true on an enabled rule does not.

patch/v1/ads/rules/{ruleId}

Request

  • Base URL
    https://zernio.com/api
  • URL
    https://zernio.com/api/v1/ads/rules/{ruleId}
  • Auth
    HTTP bearer

Request body

namestring
level'campaign' | 'adset' | 'ad'

Whether the rule checks campaigns, ad sets or single ads. Each one is evaluated on its own.

campaignIdsstring[] nullable
cooldownMinutesinteger
enabledboolean

Response

Rule updated

Changes

    • breaking

      removed the enum value clicks of the request property ///

    • breaking

      removed the enum value conversions of the request property ///

    • breaking

      removed the enum value cpa of the request property ///

    • breaking

      removed the enum value cpc of the request property ///

    • breaking

      removed the enum value cpm of the request property ///

    • breaking

      removed the enum value ctr of the request property ///

    • breaking

      removed the enum value frequency of the request property ///

    • breaking

      removed the enum value impressions of the request property ///

    • breaking

      removed the enum value reach of the request property ///

    • breaking

      removed the enum value roas of the request property ///

    • breaking

      removed the enum value spend of the request property ///

    • info

      added subschema #1 subschema #2 to the /// request property anyOf list

    • info

      added subschema #1 subschema #2 to the //// response property anyOf list for the response status

    • info

      removed the clicks enum value from the //// response property for the response status

    • info

      removed the conversions enum value from the //// response property for the response status

    • info

      removed the cpa enum value from the //// response property for the response status

    • info

      removed the cpc enum value from the //// response property for the response status

    • info

      removed the cpm enum value from the //// response property for the response status

    • info

      removed the ctr enum value from the //// response property for the response status

    • info

      removed the frequency enum value from the //// response property for the response status

    • info

      removed the impressions enum value from the //// response property for the response status

    • info

      removed the reach enum value from the //// response property for the response status

    • info

      removed the roas enum value from the //// response property for the response status

    • info

      removed the spend enum value from the //// response property for the response status

    • breaking

      removed subschema #2 subschema #3 subschema #4 from the / request property oneOf list

    • breaking

      added subschema #2 subschema #3 subschema #4 to the // response property oneOf list for the response status

    • warning

      added the new ad enum value to the / response property for the response status

    • warning

      added the new frequency enum value to the //// response property for the response status

    • warning

      added the new reach enum value to the //// response property for the response status

    • info

      added the new ad enum value to the request property

    • info

      added the new frequency enum value to the request property ///

    • info

      added the new reach enum value to the request property ///

    • info

      added subschema #2 subschema #3 subschema #4 to the / request property oneOf list

    • info

      removed subschema #2 subschema #3 subschema #4 from the // response property oneOf list for the response status