// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
export class Advertisements extends APIResource {
    /**
     * Update advertisement for rule.
     */
    edit(ruleId, params, options) {
        const { account_id, body } = params;
        return this._client.patch(`/accounts/${account_id}/mnm/rules/${ruleId}/advertisement`, {
            body: body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
(function (Advertisements) {
})(Advertisements || (Advertisements = {}));
//# sourceMappingURL=advertisements.mjs.map