<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic While we cannot provide in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Intel-Xdk-Phaser-Amazon-ads/m-p/1100302#M68378</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;While we cannot provide support on how to use third party plugins, the following links show the api and samples you can use:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://developer.amazon.com/public/apis/earn/mobile-ads/cordova/mobile-ads-plugin-methods-and-events-for-cordova" target="_blank"&gt;https://developer.amazon.com/public/apis/earn/mobile-ads/cordova/mobile-ads-plugin-methods-and-events-for-cordova&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://developer.amazon.com/public/apis/earn/mobile-ads/docs/sample-apps" target="_blank"&gt;https://developer.amazon.com/public/apis/earn/mobile-ads/docs/sample-apps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2016 00:09:46 GMT</pubDate>
    <dc:creator>Shahab_L_Intel</dc:creator>
    <dc:date>2016-11-30T00:09:46Z</dc:date>
    <item>
      <title>Intel Xdk Phaser Amazon ads</title>
      <link>https://community.intel.com/t5/Software-Archive/Intel-Xdk-Phaser-Amazon-ads/m-p/1100301#M68377</link>
      <description>&lt;P&gt;I'm just about to finish my very first game but I'm having issues adding Amazon ads on it. I'm working on the game using Intel Xdk and Phaser of course, I find phaser to be very superior and a good engine, now everything I think is clean and work smoothly so far. I have completed 80% of my game, the problem I'm having is, I would like to ad Amazon ads into my game. Why Amazon and not google you may ask, well I got banned from google apparently cause of invalid traffic or something like that, funny thing I live in Cayman Islands and I'm unable to display the ads here, so I was sending to friends to test, maybe they messed up for me who knows.&lt;/P&gt;

&lt;P&gt;I downloaded the Amazon Mobile ads for Cordova and successfully added the ads plug in into my project, in there there inside the www folder I find AmazonMobileAds this is its content:&lt;/P&gt;

&lt;PRE class="brush:java;"&gt;/* 
* Copyright 2014 Amazon.com,
* Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the
* "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* &lt;A href="http://aws.amazon.com/apache2.0/" target="_blank"&gt;http://aws.amazon.com/apache2.0/&lt;/A&gt;
*
* or in the "license" file accompanying this file. This file is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and
* limitations under the License.
*/

var cordova = require('cordova');
var exec = require('cordova/exec');

var AmazonMobileAds = function() {
}
var serviceName = 'AmazonMobileAdsPlugin';
AmazonMobileAds.prototype = {
    listeners : [],
    addListener: function(eventId, listener){
               if (typeof this.listeners[eventId] == "undefined") {
                    this.listeners[eventId] = [];
               }

               this.listeners[eventId].push(listener);
               console.log('Listener was added for an event');
    },

    removeListener: function(eventId, listener) {
               if (typeof this.listeners[eventId] != "undefined") {
                    for (var i = this.listeners[eventId].length; i--; ) {
                        if (this.listeners[eventId]&lt;I&gt; == listener) {
                            this.listeners[eventId].splice(i, 1);
                        }
                    }
               }
    },

    fire: function(event) {   
               if (typeof event == "string") {
                   event = JSON.parse(event
                           .replace(/\n/g, "\\n")
                           .replace(/\r/g, "\\r")
                           .replace(/\t/g, "\\t")
                           .replace(/\f/g, "\\f"));
                }

                if (!event.eventId) {
                    throw new Error("Event object missing 'eventId' property.");
                }
                console.log('Event received');
                if (this.listeners[event.eventId] instanceof Array) {
                    var listeners = this.listeners[event.eventId];
                    for (var i = 0, len = listeners.length; i &amp;lt; len; i++) {
                        listeners&lt;I&gt;.call(this, event);
                    }
                }
    }
};

AmazonMobileAds.prototype.setApplicationKey = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'setApplicationKey', options)
};

AmazonMobileAds.prototype.registerApplication = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'registerApplication', options)
};

AmazonMobileAds.prototype.enableLogging = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'enableLogging', options)
};

AmazonMobileAds.prototype.enableTesting = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'enableTesting', options)
};

AmazonMobileAds.prototype.enableGeoLocation = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'enableGeoLocation', options)
};

AmazonMobileAds.prototype.createFloatingBannerAd = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'createFloatingBannerAd', options)
};

AmazonMobileAds.prototype.createInterstitialAd = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'createInterstitialAd', options)
};

AmazonMobileAds.prototype.loadAndShowFloatingBannerAd = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'loadAndShowFloatingBannerAd', options)
};

AmazonMobileAds.prototype.loadInterstitialAd = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'loadInterstitialAd', options)
};

AmazonMobileAds.prototype.showInterstitialAd = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'showInterstitialAd', options)
};

AmazonMobileAds.prototype.closeFloatingBannerAd = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'closeFloatingBannerAd', options)
};

AmazonMobileAds.prototype.isInterstitialAdReady = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'isInterstitialAdReady', options)
};

AmazonMobileAds.prototype.areAdsEqual = function(successCallback, errorCallback, options) {
    exec(successCallback, errorCallback, serviceName, 'areAdsEqual', options)
};

AmazonMobileAds.prototype.AdType = {
FLOATING:'FLOATING',
INTERSTITIAL:'INTERSTITIAL'
}

AmazonMobileAds.prototype.Dock = {
TOP:'TOP',
BOTTOM:'BOTTOM'
}

AmazonMobileAds.prototype.HorizontalAlign = {
LEFT:'LEFT',
CENTER:'CENTER',
RIGHT:'RIGHT'
}

AmazonMobileAds.prototype.AdFit = {
FIT_SCREEN_WIDTH:'FIT_SCREEN_WIDTH',
FIT_AD_SIZE:'FIT_AD_SIZE'
}

module.exports = new AmazonMobileAds();&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So then I have no idea how to call my ad in my code. All I want to do is maybe display a Floating ad when the player dies, this is all HTML5 and I cannot find a single example out there. I been trying different things using the reference on the results of this &lt;A href="https://www.google.com/search?q=amazon%20ads%20cordova&amp;amp;ie=utf-8&amp;amp;oe=utf-8&amp;amp;client=firefox-b-ab" rel="nofollow noreferrer"&gt;google search&lt;/A&gt; but I still find my self unable to add the ad, my base template that I use to make my game is found here: &lt;A href="https://github.com/gomobile/template-phaser-landscape" rel="nofollow noreferrer"&gt;Intel XDK Template I used&lt;/A&gt;, I would really appreciate any help or suggestion or a single tip to guide me to add this into my project.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 21:06:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Intel-Xdk-Phaser-Amazon-ads/m-p/1100301#M68377</guid>
      <dc:creator>Rafael_H_</dc:creator>
      <dc:date>2016-11-29T21:06:02Z</dc:date>
    </item>
    <item>
      <title>While we cannot provide</title>
      <link>https://community.intel.com/t5/Software-Archive/Intel-Xdk-Phaser-Amazon-ads/m-p/1100302#M68378</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;While we cannot provide support on how to use third party plugins, the following links show the api and samples you can use:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://developer.amazon.com/public/apis/earn/mobile-ads/cordova/mobile-ads-plugin-methods-and-events-for-cordova" target="_blank"&gt;https://developer.amazon.com/public/apis/earn/mobile-ads/cordova/mobile-ads-plugin-methods-and-events-for-cordova&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://developer.amazon.com/public/apis/earn/mobile-ads/docs/sample-apps" target="_blank"&gt;https://developer.amazon.com/public/apis/earn/mobile-ads/docs/sample-apps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 00:09:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Intel-Xdk-Phaser-Amazon-ads/m-p/1100302#M68378</guid>
      <dc:creator>Shahab_L_Intel</dc:creator>
      <dc:date>2016-11-30T00:09:46Z</dc:date>
    </item>
  </channel>
</rss>

