GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Create an instance of this class to set additional parameters for each custom event object. The
additional parameters for a custom event are keyed by the custom event label. These extras are
passed to your implementation of GADCustomEventBanner or GADCustomEventInterstitial.
-
Set additional parameters for the custom event with label |label|. To remove additional
parameters associated with |label|, pass in nil for |extras|.
Declaration
Swift
func setExtras(_ extras: [AnyHashable : Any]?, forLabel label: String)
-
Retrieve the extras for |label|.
Declaration
Swift
func extras(forLabel label: String) -> [AnyHashable : Any]?
-
Removes all the extras set on this instance.
Declaration
Swift
func removeAllExtras()
-
Returns all the extras set on this instance.
Declaration
Swift
func allExtras() -> [AnyHashable : Any]
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-03-03 UTC.
[null,null,["Last updated 2021-03-03 UTC."],[],[],null,["GADCustomEventExtras \n\n class GADCustomEventExtras : NSObject, ../Protocols.html#/c:objc(pl)GADAdNetworkExtras\n\nCreate an instance of this class to set additional parameters for each custom event object. The\nadditional parameters for a custom event are keyed by the custom event label. These extras are\npassed to your implementation of GADCustomEventBanner or GADCustomEventInterstitial.\n- `\n ``\n ``\n `\n\n [setExtras(_:forLabel:)](#/c:objc(cs)GADCustomEventExtras(im)setExtras:forLabel:)`\n ` \n Set additional parameters for the custom event with label \\|label\\|. To remove additional\n parameters associated with \\|label\\|, pass in nil for \\|extras\\|. \n\n Declaration \n Swift \n\n func setExtras(_ extras: [AnyHashable : Any]?, forLabel label: String)\n\n- `\n ``\n ``\n `\n\n [extras(forLabel:)](#/c:objc(cs)GADCustomEventExtras(im)extrasForLabel:)`\n ` \n Retrieve the extras for \\|label\\|. \n\n Declaration \n Swift \n\n func extras(forLabel label: String) -\u003e [AnyHashable : Any]?\n\n- `\n ``\n ``\n `\n\n [removeAllExtras()](#/c:objc(cs)GADCustomEventExtras(im)removeAllExtras)`\n ` \n Removes all the extras set on this instance. \n\n Declaration \n Swift \n\n func removeAllExtras()\n\n- `\n ``\n ``\n `\n\n [allExtras()](#/c:objc(cs)GADCustomEventExtras(im)allExtras)`\n ` \n Returns all the extras set on this instance. \n\n Declaration \n Swift \n\n func allExtras() -\u003e [AnyHashable : Any]"]]