logSelectPromotion method
Future<void>
logSelectPromotion({
- String? creativeName,
- String? creativeSlot,
- List<
AnalyticsEventItem> ? items, - String? locationId,
- String? promotionId,
- String? promotionName,
- Map<
String, Object> ? parameters, - AnalyticsCallOptions? callOptions,
inherited
Logs the standard select_promotion
event.
This event signifies that a user has selected a promotion offer.
Implementation
Future<void> logSelectPromotion({
String? creativeName,
String? creativeSlot,
List<AnalyticsEventItem>? items,
String? locationId,
String? promotionId,
String? promotionName,
Map<String, Object>? parameters,
AnalyticsCallOptions? callOptions,
}) {
_assertParameterTypesAreCorrect(parameters);
_assertItemsParameterTypesAreCorrect(items);
return _delegate.logEvent(
name: 'select_promotion',
parameters: filterOutNulls(<String, Object?>{
_CREATIVE_NAME: creativeName,
_CREATIVE_SLOT: creativeSlot,
_ITEMS: _marshalItems(items),
_LOCATION_ID: locationId,
_PROMOTION_ID: promotionId,
_PROMOTION_NAME: promotionName,
if (parameters != null) ...parameters,
}),
callOptions: callOptions,
);
}