I'm trying to follow Amazon instructions for implementing the Mobile Ads API, ran into a few issues/questions. Would appreciate all pointers. Anyone here implemented Amazon? I posted this in Amazon forum as well.
4 steps according to Amazon:
1. Incorporate the API into Your Project
2. Update the Android Manifest
3. Set Your Application Key
4. Add the Amazon Ad Layout to Your App
Steps 1 and 2 are automatic as I am using the Eclipse plugin, and it seems they completed OK
So I continued with step #3, Amazon says
public void onCreate(Bundle savedInstanceState)
I got an error "R cannot resolve to a variable", how do I fix this?
I commented out line // setContentView(mGLView);
The next error is AdRegistration cannot be resolved, and my appkey was not resolve either
Did I miss a step?
Then I did the next step and added, all the lines gave errors.
// Programmatically create the AmazonAdLayout
this.adView = new AdLayout(this);
LinearLayout layout = (LinearLayout) findViewById(R.id.mainLayout);
// Set the correct width and height of the ad
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
this.adView.loadAd(new AdTargetingOptions()); // This AsyncTask retrieves an ad
Thanks in advance