我正在尝试为我的应用加载插页式广告。每当我尝试加载这些广告时,都会收到来自域“com.google.android.gms.ads”的“无广告配置”错误消息。
这是代码:
我的 AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ayush.torch">
<application
android:allowBackup="true"
android:icon="@drawable/ic_ico"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".main">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="i_have_put_my_app_id_here"/>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
</manifest>
Run Code Online (Sandbox Code Playgroud)
main.java 中的onCreate()
// Creating the InterstitialAd and setting the adUnitId.
interstitialAd = new InterstitialAd(this);
interstitialAd.setAdUnitId("i have also put my interstitial ad id here");
interstitialAd.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
Toast.makeText(main.this, "Ad Loaded", Toast.LENGTH_SHORT).show();
}
@Override
public void onAdFailedToLoad(LoadAdError …
Run Code Online (Sandbox Code Playgroud) 简而言之:如何在路线之间制作一个在路线更改时不刷新的通用小部件?
总而言之: 有什么方法可以创建一个 Flutter 容器,它覆盖除导航栏之外的整个网页,并根据导航栏上的按钮点击刷新容器内的小部件?
我想要什么应用程序布局:
Material App
|
--Navigation Bar
| |
| -- Button 1 (Current User Screen)
| -- Button 2
| -- Button 3
|
-- Container (Current User Screen: Associated With Button 1)
|
-- A List Of Widgets Associated with Button 1
-- A List Of Widgets Associated with Button 2
-- A List Of Widgets Associated with Button 3
Run Code Online (Sandbox Code Playgroud)
我已经尝试过的:
我尝试过的缺点:
单击导航中的另一个按钮时: …