Adsense: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
Created page with "'''Description''' The AdSense control is used to display an advertising message from Google’s AdSense service. If the user clicks on the ad, it will leave your app and go t..."
 
Brendon (talk | contribs)
No edit summary
Line 1: Line 1:
'''Description'''
== Description ==


The AdSense control is used to display an advertising message from Google’s AdSense service. If the user clicks on the ad, it will leave your app and go to the advertiser’s page. Depending on AdSense’s inventory, you may get paid for the click.
The AdSense control is used to display an advertising message from Google’s AdSense service. If the user clicks on the ad, it will leave your app and go to the advertiser’s page. Depending on AdSense’s inventory, you may get paid for the click.
Line 7: Line 7:
Ads will only appear if you are running on a device and the app has been started from the server that is registered to your AdSense account. Be sure to read Google’s terms and conditions to use this service. To see a working NS Basic app using AdSense, go to http://www.nsbasic.com/AdSense with your device.
Ads will only appear if you are running on a device and the app has been started from the server that is registered to your AdSense account. Be sure to read Google’s terms and conditions to use this service. To see a working NS Basic app using AdSense, go to http://www.nsbasic.com/AdSense with your device.


'''Properties'''
== Properties ==


{| class="wikitable"
{| class="wikitable"
Line 20: Line 20:
|}
|}


'''Example'''
== Example ==


<pre>
<pre>
Line 26: Line 26:
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
Line 32: Line 32:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[paypal|PAYPAL]]
[[paypal|PAYPAL]]
[[Category:Language Reference]]

Revision as of 04:38, 17 August 2012

Description

The AdSense control is used to display an advertising message from Google’s AdSense service. If the user clicks on the ad, it will leave your app and go to the advertiser’s page. Depending on AdSense’s inventory, you may get paid for the click.

To use this, first sign up with AdSense.com, then fill the account details into the control's properties. Note that if the customer clicks on an ad, your program will end and the customer will be taken to the ad's website. Make sure you keep your current state saved so you can restart.

Ads will only appear if you are running on a device and the app has been started from the server that is registered to your AdSense account. Be sure to read Google’s terms and conditions to use this service. To see a working NS Basic app using AdSense, go to http://www.nsbasic.com/AdSense with your device.

Properties

Client Supplied by AdSense. Fill your client number in here.
format The format of the ad. This is supplied to you by AdSense.
height This is defined by the format of the ad.
slotname Supplied by AdSense. Fill the slotname in here.

Example

(no code needed)

Output

(ad appears)

Related Items

PAYPAL