listAdConfigurations method
Gets summary information about all ad configurations in your account, in the AWS region where the API request is processed.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ValidationException.
Parameter maxResults :
Maximum number of ad configurations to return. Default: your service quota
or 100, whichever is smaller.
Parameter nextToken :
The first ad configuration to retrieve. This is used for pagination; see
the nextToken response field.
Implementation
Future<ListAdConfigurationsResponse> listAdConfigurations({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $payload = <String, dynamic>{
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/ListAdConfigurations',
exceptionFnMap: _exceptionFns,
);
return ListAdConfigurationsResponse.fromJson(response);
}