Not Able to get "marketing_name" from Demo account

Questions about the WURFL Cloud service.
kaileshsanghani
Posts: 1
Joined: Mon Feb 10, 2014 5:41 am

Not Able to get "marketing_name" from Demo account

Postby kaileshsanghani » Mon Feb 10, 2014 5:42 am

Hi

I have try with demo account but I am not able to get "marketing_name" in demo account please help me to resolve this

Elliotfehr

Re: Not Able to get "marketing_name" from Demo account

Postby Elliotfehr » Mon Feb 10, 2014 10:22 am

Are you able to post how you are using the capability so that I can check to see if there are any errors in your code? Also, can you show me the User-Agent that is not returning a marketing name? Keep in mind that not all devices will return a marketing name.

Thank you,

Elliot

Stephan
Posts: 8
Joined: Wed Jun 17, 2015 4:54 am

Re: Not Able to get "marketing_name" from Demo account

Postby Stephan » Wed Jun 17, 2015 4:58 am

I am experiencing the same problem.

This is a free account for now, I want to test before signing up.

See code below:

var wrapper = new HttpContextWrapper(HttpContext.Current);

var config = new DefaultCloudClientConfig
{
ApiKey = "xxxxxxxx"
};

var ua = "Mozilla/5.0 (Linux; Android 4.4.4; SM-N910H Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.78 Mobile Safari/537.36";
var manager = new CloudClientManager(config);
var wurflRequest = new ScientiaMobile.WurflCloud.Request.WurflCloudRequest(wrapper) { UserAgent = ua };
var info = manager.GetDeviceInfo(wrapper);
Response.Write("Marketing Name: " + info.Get("marketing_name") + "</br>");
Response.Write("Errors: " + info.Errors.Count + "</br>");


When testing this user agent on the OnSite package of yours I receive Samsung Galaxy Note 4.

Please get back to me asap.

Elliotfehr

Re: Not Able to get "marketing_name" from Demo account

Postby Elliotfehr » Wed Jun 17, 2015 9:16 am

Stephan,

I do not see that your account is subscribed to the marketing name capability. You will need to add the capability to your account from your customer vault in order to make it available from the cloud service. I have tested this User Agent and am receiving Galaxy Note 4 as the marketing name of the device.

Thank you,

Elliot

Stephan
Posts: 8
Joined: Wed Jun 17, 2015 4:54 am

Re: Not Able to get "marketing_name" from Demo account

Postby Stephan » Wed Jun 17, 2015 10:14 am

Apologies, I was running further tests since I posted this.

I have now reverted to the marketing_name capability and still nothing is coming through.

Here is the json that is being stored in the WurflCloud_Client cookie.

"Capabilities":{"marketing_name":"","is_smartphone":"True"
,"is_tablet":"False","ux_full_desktop":"False"}

To simplify things I am using the standard code

var config = new DefaultCloudClientConfig
{
ApiKey = "xxxxx"
};

var manager = new CloudClientManager(config);
var info = manager.GetDeviceInfo(wrapper);

Is this a free account issue perhaps?

Elliotfehr

Re: Not Able to get "marketing_name" from Demo account

Postby Elliotfehr » Wed Jun 17, 2015 10:23 am

Stephan,

From what I can tell, the cookie has stored a cached response from before the marketing_name capability was added to your account. If you delete the cookie and make another request to the WURFL cloud, it should include the marketing_name capaibility (assuming it is added to your acocunt now).

Elliot

Stephan
Posts: 8
Joined: Wed Jun 17, 2015 4:54 am

Re: Not Able to get "marketing_name" from Demo account

Postby Stephan » Wed Jun 17, 2015 10:27 am

Yes, I clear my cookies on every test.. I even restart my website and app pool.

And I can confirm the marketing_name is definitely there, you can confirm by looking at my account.

I really need to this to work.

Stephan
Posts: 8
Joined: Wed Jun 17, 2015 4:54 am

Re: Not Able to get "marketing_name" from Demo account

Postby Stephan » Wed Jun 17, 2015 10:33 am

I've uploaded a very simple page in my file manager. Do you mind taking a look?

Perhaps I am doing something wrong.

Elliotfehr

Re: Not Able to get "marketing_name" from Demo account

Postby Elliotfehr » Wed Jun 17, 2015 1:25 pm

Stephan,

It appears that it is serving a cached response. It is also important to keep in mind that it may take several minutes for a selected capability to propagate. I have tested your API key and I do see the marketing name in the JSON response. You can also test with curl:

Code: Select all

curl -u xxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -A "Mozilla/5.0 (Linux; Android 4.4.4; SM-N910H Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.78 Mobile Safari/537.36" http://api.wurflcloud.com/v1/json/
Thank you,

Elliot

Stephan
Posts: 8
Joined: Wed Jun 17, 2015 4:54 am

Re: Not Able to get "marketing_name" from Demo account

Postby Stephan » Wed Jun 17, 2015 1:41 pm

Thanks for helping me Elliot.

I do see the marketing_name too after running the curl command, however it returns a blank marketing name. I thought it may be a cached response so I tried my PC at home and it also returns an empty marketing_name.

This user agent should be returning Galaxy Note 4 for the marketing_name (I tested it on the OnPremise solution of yours)

Any other ideas?

Elliotfehr

Re: Not Able to get "marketing_name" from Demo account

Postby Elliotfehr » Wed Jun 17, 2015 1:48 pm

Stephan,

Here is the exact response I received from the WURFL cloud:

Code: Select all

{
    "apiVersion": "WurflCloud 1.5.0.2",
    "capabilities": {
        "is_smartphone": true,
        "is_tablet": false,
        "marketing_name": "Galaxy Note 4",
        "ux_full_desktop": false
    },
    "errors": {},
    "id": "samsung_sm_n910a_ver1_subuah",
    "mtime": 1432824504
}
Are you able to post the JSON response you received as well?

Thank you,

Elliot

Stephan
Posts: 8
Joined: Wed Jun 17, 2015 4:54 am

Re: Not Able to get "marketing_name" from Demo account

Postby Stephan » Wed Jun 17, 2015 1:56 pm

Sure this is what I received:

Code: Select all

{
	"apiVersion":"WurflCloud 1.5.0.2",
	"mtime":1405953419,
	"id":"generic_android_ver4_4",
	"capabilities":{
		"marketing_name":"",
		"is_smartphone":true,
		"is_tablet":false,
		"ux_full_desktop":false
	},
	"errors":{}
}

Elliotfehr

Re: Not Able to get "marketing_name" from Demo account

Postby Elliotfehr » Wed Jun 17, 2015 3:31 pm

Stephan,

Are you able to try sending a new curl request to let me know if you continue to receive a blank `marketing_name`. You may have been receiving a cached response from one of our servers in your region. We have corrected this issue and you should be seeing the correct response.

Thank you,

Elliot

Stephan
Posts: 8
Joined: Wed Jun 17, 2015 4:54 am

Re: Not Able to get "marketing_name" from Demo account

Postby Stephan » Thu Jun 18, 2015 2:28 am

Seems to be working now, thanks so much for helping me sort this out.

Just curious, why would it have cached a result on your end? Even if it was cached, why was it wrong in the first place?

Does this happen often? Can I use this Cloud service confidently knowing that detentions will be correct?

Thx again.

Elliotfehr

Re: Not Able to get "marketing_name" from Demo account

Postby Elliotfehr » Thu Jun 18, 2015 9:43 am

Stephan,

This was not an issue with the entire WURFL cloud service and only occurred with one of the instances in your region. I have not seen this occur before and can ensure you that it will not happen again.

Thank you,

Elliot

Stephan
Posts: 8
Joined: Wed Jun 17, 2015 4:54 am

Re: Not Able to get "marketing_name" from Demo account

Postby Stephan » Thu Jun 18, 2015 10:13 am

Great, thanks Elliot.


Who is online

Users browsing this forum: No registered users and 1 guest