Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert testing changes to example app.
  • Loading branch information
ditman committed Dec 5, 2024
commit bc162a7547ed42425f5f4b29ad1aefe8154eb9aa
8 changes: 4 additions & 4 deletions packages/google_adsense/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import 'package:google_adsense/google_adsense.dart';
void main() {
// Call `initialize` with your Publisher ID (pub-0123456789012345)
// (See: https://support.google.com/adsense/answer/105516)
adSense.initialize('0556581589806023');
adSense.initialize('0123456789012345');

runApp(const MyApp());
}
Expand Down Expand Up @@ -73,7 +73,7 @@ translates into:
```dart
// Call `initialize` with your Publisher ID (pub-0123456789012345)
// (See: https://support.google.com/adsense/answer/105516)
adSense.initialize('0556581589806023');
adSense.initialize('0123456789012345');

```

Expand All @@ -82,7 +82,7 @@ and:
<?code-excerpt "example/lib/main.dart (adUnit)"?>
```dart
adSense.adUnit(AdUnitConfiguration.displayAdUnit(
adSlot: '4773943862', // TODO: Replace with your Ad Unit ID
adSlot: '1234567890', // TODO: Replace with your Ad Unit ID
adFormat: AdFormat
.AUTO, // Remove AdFormat to make ads limited by height
))
Expand All @@ -103,7 +103,7 @@ Container(
const BoxConstraints(maxHeight: 100, maxWidth: 1200),
padding: const EdgeInsets.only(bottom: 10),
child: adSense.adUnit(AdUnitConfiguration.displayAdUnit(
adSlot: '4773943862', // TODO: Replace with your Ad Unit ID
adSlot: '1234567890', // TODO: Replace with your Ad Unit ID
// adFormat: AdFormat.AUTO, // Not using AdFormat to make ad unit respect height constraint
)),
),
Expand Down
8 changes: 4 additions & 4 deletions packages/google_adsense/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void main() {
// #docregion init-min
// Call `initialize` with your Publisher ID (pub-0123456789012345)
// (See: https://support.google.com/adsense/answer/105516)
adSense.initialize('0556581589806023');
adSense.initialize('0123456789012345');

// #enddocregion init-min
runApp(const MyApp());
Expand Down Expand Up @@ -70,7 +70,7 @@ class _MyHomePageState extends State<MyHomePage> {
child:
// #docregion adUnit
adSense.adUnit(AdUnitConfiguration.displayAdUnit(
adSlot: '4773943862', // TODO: Replace with your Ad Unit ID
adSlot: '1234567890', // TODO: Replace with your Ad Unit ID
adFormat: AdFormat
.AUTO, // Remove AdFormat to make ads limited by height
))
Expand All @@ -86,7 +86,7 @@ class _MyHomePageState extends State<MyHomePage> {
const BoxConstraints(maxHeight: 100, maxWidth: 1200),
padding: const EdgeInsets.only(bottom: 10),
child: adSense.adUnit(AdUnitConfiguration.displayAdUnit(
adSlot: '4773943862', // TODO: Replace with your Ad Unit ID
adSlot: '1234567890', // TODO: Replace with your Ad Unit ID
// adFormat: AdFormat.AUTO, // Not using AdFormat to make ad unit respect height constraint
)),
),
Expand All @@ -99,7 +99,7 @@ class _MyHomePageState extends State<MyHomePage> {
width: 125,
padding: const EdgeInsets.only(bottom: 10),
child: adSense.adUnit(AdUnitConfiguration.displayAdUnit(
adSlot: '8937810400', // TODO: Replace with your Ad Unit ID
adSlot: '1234567890', // TODO: Replace with your Ad Unit ID
// adFormat: AdFormat.AUTO, // Not using AdFormat to make ad unit respect height constraint
isFullWidthResponsive: false)),
),
Expand Down
Loading