Guida a Enhance in italiano

1

Stats

1,685 visits, 2,153 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 24 Feb, 2018. Last updated 19 Feb, 2019

CONSTRUCT 2 Enhance:

# Enhance Drag & Drop Library by Enhance, Inc.

# enhance.co

#

#

CONSTRUCT 2

Setup

-----

Install the supplied .c2addon plugin. Drag & Drop is the easiest way to do it. In case of problems, a simple and quick procedure is available:

scirra.com/manual/158/third-party-addons

Important:

You will also need to add the Enhance Cordova extension to the exported Cordova project. To achieve this, follow the instructions included in the Enhance Cordova Connector distribution package.

Interstitial ads

Interstitial ads are short static or video ads, usually displayed between levels or at the end of the game.

1) Actions

[Show interstitial ad]

Try showing an interstitial ad.

2) Conditions

[On Interstitial Ad success]

Activated when the ad is available and displayed correctly.

[On Interstitial Ad failed]

Enabled when Enhance failed to show the ad (for example, it did not receive a fill-in error from the ad network).

Note:

Interstitial ads will automatically stop the flow of your application until the user completes the interaction with the ad.

Rewarded Ads

------------

Rewarded are usually video ads that pay a high CPM for users viewing them in return for an in-game reward.

1) Actions

[Show Rewarded Ad]

Try to show an award winning announcement.

2) Conditions

[On Rewarded Ad success]

Activated when the ad is available and displayed correctly.

[On Rewarded Ad failed]

Enabled when Enhance failed to show the ad (for example, it did not receive a fill-in error from the ad network).

[On Reward granted]

Activated when the reward has been granted to the user.

[On Reward declined]

Activated when the prize has been rejected by the user.

[On Reward unavailable]

Activated when the reward is not available.

3) Expressions

[Last Reward Type]

Type of the last prize granted. You can use it after activating [On Reward granted].

Returns "item" or "coins".

[Last Reward Value]

Value of the last prize granted. You can use it after [On Reward granted] It is activated.

Returns the numeric value.

Note:

Awarded ads will automatically stop the flow of your application until the user completes the interaction with the ad.

Banner advertising

----------

Banner ads are small ads that appear at the top or bottom of the app.

1) Actions

[Show Banner Ad]

Try to show a banner ad with location.

[Hide Banner Ad]

Hide the banner ad if shown.

2) Conditions

[On Banner Ad success]

Activated when the ad is available and displayed correctly.

[On Banner Ad failed]

Enabled when Enhance failed to show the ad (for example, it did not receive a fill-in error from the ad network).

[Is Banner Ad shown]

Check to see if an ad banner is currently displayed.

Note:

You can also integrate fixed banner ads using Enhance ZeroCode without any coding.

Offer Walls

-----------

Offer Walls shows full-screen offers of the real world (eg surveys), usually with a reward offered in exchange for a completion.

1) Actions

[Show Offerwall]

Try to show an offerwall.

2) Conditions

[On Offerwall success]

Activated when offerwall is available and displayed correctly.

[On Offerwall failed]

Enabled when Enhance failed to show the offer wall (for example, it did not receive any fill failure from the ad network).

[On Currency granted]

Activated each time the user receives a reward from any offer wall.

3) Expressions

[Last Currency Amount]

Amount of the last currency granted. You can use it after activation of [On Currency granted].

Returns the numeric value.

Note:

Offer walls will automatically interrupt the application flow until the user completes the interaction with the offer wall.

Special offers

--------------

Special offers are real world offers (e.g. surveys). They are available through Enhance ZeroCode, but now you can also request them from code.

1) Actions

[Show Special Offer]

Try to show a special offer.

2) Conditions

[On Special Offer success]

Triggered when the special offer is available and successfully displayed.

[On Special Offer failed]

Triggered when Enhance failed to show the special offer (e.g. received no fill error from the ad network).

Note:

Special Offers will automatically interrupt the flow of your application until the user completes the interaction with the special offer.

Analytics

---------

Enhance can connect to various analysis networks. By default it will track sessions, users and loyalty.

1) Actions

[Simple Event Log]

Send a simple analysis event.

[Log Event]

Send an analysis event with additional parameters.

Local Notifications

-------------------

Local notifications are reminders displayed on the screen of the mobile device after the app has become inactive.

1) Actions

[Request Permission]

Request permission for local notifications.

[Enable Local Notification]

Enable a new local notification.

[Disable Local Notification]

Turn off any local notification.

2) Conditions

[On permission granted]

Activated when permission is granted to show local notifications.

[On permission rejected]

Enabled when permission to show local notifications is rejected.

[Is permission granted]

Check to see if permission has been granted to show local notifications.

#

In-app purchases #

----------------

The Enhance library offers a number of features that help you easily use different in-app purchases SDKs in your application.

1) Actions

[Check IAP Status]

Update the status of in-app purchases. [On status received].

[Attempt purchase]

Start the purchase flow for the specified product.

[Consume product]

Try to consume the product given by the user's inventory.

[Check if item is owned]

Check if the item is already owned.

[Get owned item count]

Get the product number that the user owns or 0 if none.

[Get display title]

Get the string containing the displayed title displayed.

[Get display description]

Get the string containing the localized view description.

[Get display price]

Get the string containing the localized view price.

[Manually restore purchases]

Manually restore purchases and update user inventory, if applicable.

2) Conditions

[On status received]

Activated when the IAP status is received. [IAP supported] is updated.

[Is IAP supported]

Check if the in-app purchase is currently supported.

[On purchase success]

Activated when a purchase is successfully completed.

[On purchase failed]

Activated when a purchase has failed.

[On product consumption success]

Activated when article consumption is successful.

[On product consumption failed]

Activated when article consumption has failed.

[On purchases restore success]

Activated when the restoration of purchases succeeded.

[On purchases restore failed]

Activated when the restoration of purchases failed.

[On item is owned]

Activated when the object is owned.

[On item is not owned]

Activated when the item is NOT owned.

[On owned item count received]

Activated when the property object count is received.

[On display title received]

Activated when a product display title is received.

[On display description received]

Activated when a product display description is received.

[On display price received]

Activated when a product display price is received.

3) Expressions

[Last Owned Item Count]

* Last count of the property objects received.

[Last Display Title] *

Last title displayed.

[Last Display Description]

Last display description received.

[Last Display Price]

Last displayed price received.

Demo Project

--------------

For a complete implementation example, see the demo project that can be found in the 'demo_project' directory within the distribution package.

Remember that none of these features will work properly before you improve your application on our website.

the tutorial has been translated into Italian but you can find it on the Enhance website

  • 0 Comments

Want to leave a comment? Login or Register an account!