User Profiles
How to Create User Profiles
Creating User Profiles on iOS ios_user_profiles
You can create rich profiles by sending the user fields as shown below.
MarketoLead *profile = [[MarketoLead alloc] init];
// Get user profile from network and populate
[profile setEmail:@"jd@makesomething.com"];
[profile setFirstName:@"John"];
[profile setLastName:@"Doe"];
[profile setAddress:@"1234KingFishSt"];
[profile setCity:@"SouthPadreIsland"];
[profile setState:@"CA"];
[profile setPostalCode:@"78596"];
[profile setCountry:@"USA"];
[profile setGender:@"male"];
[profile setLeadSource:@"_facebook_ads"];
[profile setBirthDay:@"01/01/1985"];
[profile setFacebookId:@"facebookid"];
[profile setFacebookProfileURL:@"facebook.com/profile"];
[profile setFacebookProfilePicURL:@"faceboook.com/profile/pic"];
[profile setLinkedInId:@"linkedinid"];
[profile setTwitterId:@"twitterid"];
let profile = MarketoLead()
// Get user profile from network and populate
profile.setEmail("jd@makesomething.com")
profile.setFirstName("John")
profile.setLastName("Doe")
profile.setAddress("1234KingFishSt")
profile.setCity("SouthPadreIsland")
profile.setState("CA")
profile.setPostalCode("78596")
profile.setCountry("USA")
profile.setGender("male")
profile.setLeadSource("_facebook_ads")
profile.setBirthDay("01/01/1985")
profile.setFacebookId("facebookid")
profile.setFacebookProfileURL("facebook.com/profile")
profile.setFacebookProfilePicURL("faceboook.com/profile/pic")
profile.setLinkedInId("linkedinid")
profile.setTwitterId("twitterid")
Add more standard fields.
Objective C
code language-none |
---|
|
Swift
code language-none |
---|
|
Report User Profile.
Objective C
code language-none |
---|
|
Swift
code language-none |
---|
|
Creating User Profiles on Android android_user_profiles
-
Create User Profile.
You can create rich profiles by sending user fields as shown below.
code language-java MarketoLead profile = new MarketoLead(); // Get user profile from network and populate try { profile.setEmail("htcone3@gmail.com"); profile.setFirstName("Mike"); profile.setLastName("Gray"); profile.setFacebookId("facebookid"); profile.setAddress("1234 King Fish Blvd"); } catch (MktoException e) { e.printStackTrace(); }
-
Add more standard fields.
code language-java // Add other custom fields profile.setCustomField("mobilePhone", "123.456.7890"); profile.setCustomField("numberOfEmployees", "10"); profile.setCustomField("phone", "123.456.7890"); profile.setCustomField("rating", "R"); profile.setCustomField("facebookDisplayName", "mini"); profile.setCustomField("facebookReach", "10"); profile.setCustomField("facebookReferredEnrollments", "100"); profile.setCustomField("facebookReferredVisits", "9998"); profile.setCustomField("lastReferredEnrollment", "03/01/2015"); profile.setCustomField("lastReferredVisit", "03/01/2015"); profile.setCustomField("linkedInDisplayName", "Android");
-
Report User Profile.
code language-java MarketoLead profile = new MarketoLead(); // This method will update user profile marketoSdk.associateLead(profile);
recommendation-more-help
bb269a6d-047a-4bf7-9acd-23ad9a63dc59