AdsConfig class
Configuração central de anúncios. clientId é o ca-pub-... do Google
AdSense. Defina uma vez e passe ao FlenxApp.run(ads: ...) — o loader vai no
<head>. Onde mostrar é controlado pelas placements (por página/categoria).
Constructors
-
AdsConfig({required String clientId, List<
AdPlacement> placements = const [], bool enabled = true}) -
const
Properties
- clientId → String
-
final
- enabled → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- loaderUrl → String
-
URL do script de carregamento do AdSense (vai no
<head>).no setter -
placements
→ List<
AdPlacement> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
placementsFor(
{String? path, String? category, AdPosition? position}) → List< AdPlacement> - Placements que se aplicam ao contexto dado (página/categoria/posição).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited