*/ protected function input_properties(): array { return array( 'status' => array( 'type' => 'boolean', 'description' => __( 'Whether Google Consent Mode is active.', 'acrossai-abilities-manager' ) ), 'wait_for_update' => array( 'type' => 'integer', 'description' => __( 'Milliseconds Google tags wait for a consent update before acting on the defaults.', 'acrossai-abilities-manager' ) ), 'url_passthrough' => array( 'type' => 'boolean', 'description' => __( 'Whether to pass ad click information through URLs when consent is denied.', 'acrossai-abilities-manager' ) ), 'ads_data_redaction' => array( 'type' => 'boolean', 'description' => __( 'Whether to redact ads data when advertising consent is denied.', 'acrossai-abilities-manager' ) ), ); } /** * @since 0.0.34 * @return array */ protected function required_input(): array { return array(); } /** * @since 0.0.34 * @return array */ protected function output_properties(): array { return array( 'google_consent_mode' => array( 'type' => 'object', 'additionalProperties' => true ), ); } /** * @since 0.0.34 * @return array */ protected function annotations(): array { return array( 'readonly' => false, 'destructive' => false, 'idempotent' => true, ); } /** * @since 0.0.34 * @param array $input Input. * @return array|WP_Error */ protected function run( array $input ) { return Consent_Repository::update_gcm( $input ); } }