deckameron / Ti.Android.Admob

Appcelerator Android module wrapping Admob functionalities
17 stars 7 forks source link

Google Play services resources were not found. #1

Closed nuno closed 7 years ago

nuno commented 7 years ago

Hello, im try test you module but got this message. [ERROR] GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

deckameron commented 7 years ago

Hello Nuno,

Please add this line to your tag.

<meta-data android:name="com.google.android.gms.version" android:value="9683000"/>

Please tell me if it worked for you. :-)

nuno commented 7 years ago

Hey deckameron, sorry what tag? on tiapp.xml?

I have some questions: :)

1) this module works ok with sdk 5.5.1.GA? 2) the admob configuration on the google admin site, there is anything especial to take care? :) 3) the smartBanner works good?

I ask this because I need my ads with 300x280 but all I get is regular banners. As a side note on ios i get all work as expected with ti.admob module. Thanks a lot! @deckameron 👍

deckameron commented 7 years ago

I am so sorry Nuno! I wrote it fast and "skipped" the tag, it is "application". Just like this:

<android xmlns:android="http://schemas.android.com/apk/res/android">
    <application>
        <meta-data android:name="com.google.android.gms.version" android:value="9683000"/>
    </application>
</android>

1) this module works ok with sdk 5.5.1.GA? Yes it does! :-) 2) the admob configuration on the google admin site, there is anything especial to take care? :) Only to use the Native Ads. You would need to create a position and format the CSS on the Google Admod dashboard. 3) The smartBanner works good? Yes, it does!

I really think this module will help you a lot. I will make the code available as soon as possible. (I am still learning how to use GitHub)

nuno commented 7 years ago

Thank you so much @deckameron, let me know if you need any help commit and push the code to github!

deckameron commented 7 years ago

Thank you @nuno! I just made it. :-)

I have just tested the SmartBanner but it is not working properly. :( Apparently it only showing 320x50 ads. I will have to investigate it.

nuno commented 7 years ago

Do you know what this is? http://sharebucketapp.com/ZWNlNzJmNDI4ZTEzYTA0

var nativeAd = Admob.createView({
    adSizeType: 'NATIVE',
    height : 250,
    width : 300,
    publisherId: 'ca-app-pub-6899365325952326/7757552092', //USE YOUR PUBLISHER ID HERE
    testing: true
}); 
deckameron commented 7 years ago

I guess I know! Edit you tiapp.xml and use this inside your "Application" tag again.

<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:name="com.google.android.gms.ads.AdActivity"/>
deckameron commented 7 years ago

Hi @nuno , Did it work?

rcampbell75 commented 7 years ago

Just wanted to say Thank you to deckameron for the module, it works perfectly with SDK 5.5.1GA!

If you would like some help in writing up documentation or anything for it, let me know.

nuno commented 7 years ago

@deckameron sorry for my delay, yes it worked but all must be inside of tags.

<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
            <application>
              <meta-data android:name="com.google.android.gms.version" android:value="9683000"/>
          </application>
          <activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:name="com.google.android.gms.ads.AdActivity"/>
</manifest>
</android>

Thanks.

deckameron commented 7 years ago

Happy to know it worked, @nuno! Thank you!