publish method
Publish for a studio creative.
Request parameters:
studioCreativeId - Required. Studio creative ID.
Value must have pattern ^\[^/\]+$.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<void> publish(
core.String studioCreativeId, {
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'fields': ?$fields == null ? null : [$fields],
};
final url_ =
'studio/creatives/' +
core.Uri.encodeFull('$studioCreativeId') +
'/publish';
await _requester.request(
url_,
'POST',
queryParams: queryParams_,
downloadOptions: null,
);
}