Posts tagged with ads
Is there a clicktrackUrl parameter in AFS(Google Adsense For Search ) that can be used?
I have use to AFS based on the documentation, and I have also reference many other websites. I have found that the clicktrackUrl parameter is used in their code, which can trigger click tracking when clicking on an advertisement. However, I did not see this field in the documentation. The reference documentation is as follows:
https://support.google.com/adsense/answer/9055049
Does this field exist? I added this parameter, but it doesn't work on my website. How can I make this parameter work?
Reference website, website url: https://www.jnee.uk/us/strategize-g-suite-project-management-system-work enter image description here
I want use clicktrackUrl parameter to fixed my tracking problom,thank you
My AdMob ad is not showing for more than three days
react-native google mobile ads
I have implemented react-native-google-mobile-ads.. all. thing are. working fine but i want but there is some issue.
- When ever a system dialogue is open. like
Alert.alert()
then an app open ads is appeared. - The Second issue is that app open ads appears after the interstitial ad is closed.
- App Open ads are appears when ever a permission dialogue is opened.
- I want to hide screen content behind the app open ads.
Unable to open any reward Ads in Flutter google_mobile_ads
I have implemented a simple game for which I have added banner, interstitial and reward ads.
The banner and interstitial ads work perfectly both on test and my own google adMob adIds. However only the reward ads do not work. Even the test reward ad gives an error 3.
The code is as follows
Future<void> _loadRewardedAd() async { if (this.mounted) { setState(() { loading = true; }); } await RewardedAd.load( adUnitId: TestAdHelper.rewardedAdUnitId, request: const AdRequest(), rewardedAdLoadCallback: RewardedAdLoadCallback(onAdLoaded: (ad) { ad.fullScreenContentCallback = FullScreenContentCallback(onAdDismissedFullScreenContent: (ad) { ad.dispose(); _rewardedAd = null; widget.close(domain.Dialog.awardAd, show: false); }); _rewardedAd = ad; }, onAdFailedToLoad: (error) { _rewardedAd?.dispose(); failedAttempts++; log("failed to load reward ad $error"); failedAttempts <= 3 ? 2.seconds.delay().then((value) => _loadRewardedAd()) : null; setState(() { loading = false; didntLoad = true; }); })); }
and
ElevatedButton( style: ElevatedButton.styleFrom( minimumSize: Size(90, 60), backgroundColor: Colors.greenAccent.shade700), onPressed: () async { await _loadRewardedAd().then((value) async { await _rewardedAd?.show( onUserEarnedReward: (_, reward) { widget.incrementCoins(); widget.close(domain.Dialog.awardAd, show: false); }); }); }, child: loading ? CircularProgressIndicator( color: Colors.white, backgroundColor: Colors.white38, ) : Icon( Icons.ondemand_video_rounded, size: 40, ))
The test ID helper class uses the following IDs
static String get rewardedAdUnitId { if (Platform.isAndroid) { return "ca-app-pub-3940256099942544/5224354917"; } else if (Platform.isIOS) { return "ca-app-pub-3940256099942544/1712485313"; } else { throw UnsupportedError("Unsupported platform"); } }
I have tried looking up this issue but to no avail, only people agreeing that they have the same issue in threads that go as far as 2021.
I also get this error in the debug console, the number varies although 3 is the most common
I/flutter (10788): Ad with id
1
is not available for onAdFailedToLoad. I/flutter (10788): Ad with id2
is not available for onAdFailedToLoad. I/flutter (10788): Ad with id3
is not available for onAdFailedToLoad.