2016-04-26 11 views
0

私はAdMob、Revmob、vungleを統合しようとしていますが、私は自分のbuild.settingsに適切なコードを入れても分かりません。私は1つのページで、しかし異なるシーンでそれらをすべて使いたいとは思わない。どんな助け?ここVungleについてはCorona sdk build.settings

build.settings

settings = 
{ 

    orientation = 
    { 
    -- Supported values for orientation: 
    -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight 

    default = "portrait", 
    supported = { "portrait", } 
    }, 

    excludeFiles = 
    { 
    -- Include only the necessary icon files on each platform 
    iphone = { "Icon-*dpi.png", }, 
    android = { "Icon.png", "Icon-Small-*.png", "Icon*@2x.png", }, 
    }, 

    -- 
    -- iOS Section 
    -- 
    iphone = 
    { 
    plist = 
    { 
     UIStatusBarHidden = false, 
     UIPrerenderedIcon = true, -- set to false for "shine" overlay 
     --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend 

     CFBundleIconFiles = 
     { 
      "Icon.png", 
      "[email protected]", 
      "Icon-60.png", 
      "[email protected]", 
      "[email protected]", 
      "Icon-72.png", 
      "[email protected]", 
      "Icon-76.png", 
      "[email protected]", 
      "Icon-Small.png", 
      "[email protected]", 
      "[email protected]", 
      "Icon-Small-40.png", 
      "[email protected]", 
      "Icon-Small-50.png", 
      "[email protected]", 
     }, 

     --[[ 
     -- iOS app URL schemes: 
     CFBundleURLTypes = 
     { 
      { 
       CFBundleURLSchemes = 
       { 
        "fbXXXXXXXXX", -- replace XXXXXXXXX with your Facebook appId 
       } 
      } 
     } 
     --]] 
    } 
}, 


plugins = 
{ 
["CoronaProvider.ads.vungle"] = 
{ 
    publisherId = "com.vungle", 
}, 
["CoronaProvider.ads.revmob"] = 
{ 
    publisherId = "com.coronalabs", 
    supportedPlatforms = { android = true }, 
}, 
["CoronaProvider.ads.admob"] = 
{ 
    publisherId = "com.coronalabs", 
    supportedPlatforms = { android = true }, 
}, 
}, 
} 

答えて

0

はここDocumentation

についてはRevmobあるについてはDocumentation

であるAdMobのここDocumentation

です

Build.Settingsにそれを追加すると、このようなものです:

settings= 
{ 

    -- Your Previous code here 

    plugins = 
    { 

     --For RevMob 
     ["plugin.revmob"] = 
     { 
      publisherId = "com.coronalabs", 
      supportedPlatforms = { iphone=true, android=true } 
     }, 

     --For Vungle 
     ["CoronaProvider.ads.vungle"] = 
     { 
      publisherId = "com.vungle" 
     }, 

     --For AdMob 
     ["plugin.google.play.services"] = 
     { 
      publisherId = "com.coronalabs", 
      supportedPlatforms = { iphone=true, android=true } 
     }, 

    } 

} 

また、あなたは、iOS版を使用している場合は、あなたのandroidセクション

android = 
{ 
    usesPermissions = 
    { 
     "android.permission.INTERNET", 
    }, 
}, 

のAndroidデバイスに提供する必要がありpermissionsのノートを取りますあまりにも。別のページにそれらを使用するには、あなたの質問に関してはごBuild.Settings

iphone = 
{ 
    plist = 
    { 
     NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, 
    }, 
}, 

RevMobあなたがこれを追加する必要がありますためApp Transport Security (ATS)に注意してください、あなたは広告のそれぞれを初期化し、setCurrentProviderを使用することにより、広告プロバイダを切り替えることができますDocumentationそしてまた、複数の広告ネットワークのためのチュートリアルがあり、あなたはそれを見ることができhere

関連する問題