QR-Codes win mostly

QR-Codes win, mostly.


www.Weinwerbung.Tel
qrcode

Triest Transport

www.Triest.Tel



Friday, 18 September 2009

How to advertise within .tel

.

How To: Advertisements within .tel

.
Update:
------------------

1.) Download Telhosting_Client.php from the Telnic developer site.

2.) Use a PHP code to enter a TXT ad, according to the sample PHP code.

3.) Insert PHP code / advertisement TXT record in Telhosting_Client.php.?
Insert username and password (for your client.wsdl file), as well as your domain name,
within the adverstisement TXT record PHP code:

4.) NOTE: THIS USES A LOCAL client.wsdl FILE AS EXPLAINED IN THE
Telhosting_Client.php DOCS
$config = array();
$config['login'] = 'INSERT_USERNAME_HERE';
$config['password'] = 'INSERT_PASSWORD_HERE';
$config['wsdl'] = './client.wsdl';
$domain = 'mydomain.tel'

Follow the instructions in the Telhosting_Client.php script:
With PHP, you MUST download the client.wsdl file from your provider, modify it a little bit, and then things will go fine. This information is contained at the top o the Telhosting_Client.php script.:

* 1. Download the client WSDL from YOUR registrar, save it in the same directory as this file and name the downloaded file: client.wsdl
*
* 1.5 Don't know where your registrar put the WSDL file? Open an command-line client on UNIX and write: dig _soap._nspapi.yourdomain.tel naptr where you replace yourdomain with your actual domain. Then take either the http or https url and append to it "?wsdl" (so it will end in "...client?wsdl")
* That's the url for your registrar's WSDL file.
*
* 2. Edit client.wsdl -- find the string: "http://www.w3.org/2003/05/soap/bindings/HTTP/" and replace it by: "http://schemas.xmlsoap.org/soap/http". If you don't do that, PHP will throw a fatal error: "SOAP-ERROR: Parsing WSDL: PHP-SOAP doesn't support transport 'http://www.w3.org/2003/05/soap/bindings/HTTP/'".




Example:

Domain:

stead.tel

Ad:

Plumber
24 Hour Fast Response Plumbers
10% Book Online Discount Today!
xwww.ReactFast.co.uk/Plumbers

Preparation:

IN TXT ".tad" "1" "1" "51"
"Advert Title" "Plumber"
"label" "www.ReactFast.co.uk/Plumbers"
"uri" "http://www.reactfast.co.uk" "uri" "=243423543&z=42342343"
"desc" "24 Hour Fast Response Plumbers" "desc" "10% Book Online Discount
Today !"

".tad":
Is the suffix for the text ad, within the ad record.

'owner' => '_ad':
An advertisment is a TXT record with the '.tad' prefix, placed in the '_ad sub-domain' of the current domain, such as '_ad.mybusiness.tel'.
To store a ad record in the '_ad' folder, set its owner within the syntax of the ad record correctly to owner="_ad". This way, you don't need to create a folder separately.

Numbers:
"1" stands for 'version, currently "1" ', the other "1" stands for "displayed at top of the page", and "51" acts as the sort order for each display set.

Label:
Text string up to 255 bytes long. It is the anchor text of the below URI.

URI: Points to the product of the ad.


According to sample PHP code:

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

include('Telhosting_Client.php');
$ad = array(
'text' => array('.tad', '1',
'1', '51',
'Advert Title', 'Plumbers',
'label', 'www.ReactFast.co.uk/Plumbers',
'uri', 'http://www.reactfast.co.uk',
'uri', '=243423543&z=42342343',
'desc', "24 Hour Fast Response Plumbers\nLine 2 of",
'desc', "10% Book Online Discount
Today !"),
'profiles' => '_all_',
'owner' => '_ad'
);
// Config
// NOTE: THIS USES A LOCAL client.wsdl FILE AS EXPLAINED IN THE Telhosting_Client.php DOCS
$config = array();
$config['login'] = 'INSERT_USERNAME_HERE';
$config['password'] = 'INSERT_PASSWORD_HERE';
$config['wsdl'] = './client.wsdl';
$domain = 'stead.tel';

// Initialize our client
$client = new Telhosting_client($config);
// Insert some data
$client->store_record($domain, 'txt', $ad);
?>
----------------



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

Update:

(An advertisment is a TXT record with the '.tad' prefix, placed in the '_ad sub-domain' of the current domain, such as '_ad.mybusiness.tel'.

The syntax of the ad record, is specified by an XML schema.

To be able to advertise within your .tel, you need "internal SOAP API" from your .tel registrar / provider:
SOAP is a simple XML-based protocol that allows applications to exchange information over HTTP.
HTTP + XML = SOAP
Or more simply: SOAP is a protocol for accessing a web service.

To be able to advertise within your .tel, you need the client.wsdl file from your .tel registrar / provider:
WSDL bindings defines the message format and protocol details for a web service.

To store a ad record in the '_ad' folder, set its owner within the syntax of the ad record correctly to owner="_ad". This way, you don't need to create a folder separately:

typ:storeRecordRequest domainName="mybusiness.tel"
typ:txt profiles="_all_" owner="_ad"

But: the TelHosting control panel won't support ad management. You have to inserted your ad by using the APIs,

Telnic Ltd. provides a Java-based TelHosting Software application. This application interacts with the DNS directly, and exposes a publicly available web service, using SOAP over HTTP as its protocol. Client applications implementing this SOAP interface can work with the TelHosting Software application to perform all .tel-related operations.

In addition to the client service API, the TelHosting Software exposes an internal API for administration purposes.

To be able to advertise within your .tel, you need "internal SOAP API", as well as client.wsdl file from your .tel registrar / provider, and then modify the file a little bit:

Find the string: "http://www.w3.org/2003/05/soap/bindings/HTTP/" and replace it by: "http://schemas.xmlsoap.org/soap/http".

Edit the TelHosting class: look for: $config['wsdl'] (around line 173) and set the variable to: "./client.wsdl" instead of the full URL.

And now, you can insert your ad records by using the APIs.

And your advertisement should show up, on your TelProxy.)
.
It may be complecated, but that is how it is:
Currently, you can choose between doing it your self, or going to mytel.me. and use the tool, which is offered to use, and which is free.

The guys from Jepaa, will soon come up with a solution, which you will be able to find within TEL-MACHINE,

--------------------
Adverts on your .tel are finally here ... thank you Telnic

http://www.hotele.tel

http://www.tans.tel
http://www.condos.tel
http://www.adfly.tel
http://www.2tweet.tel
http://www.joomlacms.tel


It is about placing ads on the TelProxy.

You can choose, where you would like to put your ads: top, right, below.

Display Preference:
span style="font-weight:bold;">1 for top of the page
2 for right of the page
3 for foot of the page

You want your ad to look like this:

span style="font-weight:bold;">Plumber24 Hour Fast Response Plumbers
10% Book Online Discount Today!
www.ReactFast.co.uk/Plumbers

Again:
You have do some coding (read manual), and code your ad content in this way:

* span style="font-weight:bold;">Position, Location and Sort Sequence (IN TXT ".tad" "1" "1" "51")

* span style="font-weight:bold;">Title ("Plumber")

* span style="font-weight:bold;">Label (Is used as linktext for the linking, and will be used as last line within the add: "www.ReactFast.co.uk/Plumbers")

* span style="font-weight:bold;">Link (Link leading to the adverted product: "uri" "http://www.reactfast.co.uk" "uri" "=243423543&z=42342343")

* span style="font-weight:bold;">Text Content ("desc" "24 Hour Fast Response Plumbers" "desc" "10% Book Online Discount Today !")

And if you do it right, your ad will apear, with title, websit link, and text, at your favored position.



Display Preference:
span style="font-weight:bold;">1 for top of the page
2 for right of the page
3 for foot of the page

You want your ad to look like this:

span style="font-weight:bold;">Plumber24 Hour Fast Response Plumbers
10% Book Online Discount Today!
www.ReactFast.co.uk/Plumbers

Layout coding, for advertisment on top of the page:

IN TXT ".tad" "1" "1" "51"
"Plumber"
"www.ReactFast.co.uk/Plumbers"
"uri" "http://www.reactfast.co.uk" "uri" "=243423543&z=42342343"
"desc" "24 Hour Fast Response Plumbers" "desc" "10% Book Online Discount Today !"


You have to frst store/add the advertisment records first, before you create the ad folder.
Use owner parameter.

Advertisment TXT records are created and modified via the "storeRecords SOAP command"

Advertisment Record.

typ:storeRecordRequest domainName=" stead.tel"
typ:txt profiles="_all_" owner="_ad"
typ:text>.tadtyp:text>1typ:text>1typ:text>100typ:text>Title of the adtyp:text>lable of the adtyp:text>urityp:text>http://www.telnic.orgtyp:text>desctyp:text>sample description/typ:txt
/typ:storeRecordRequest
.

No comments:

Post a Comment