Class POBUserInfo

  • All Implemented Interfaces:

    
    public class POBUserInfo
    
                        

    Provides setters to pass user information

    • Constructor Detail

      • POBUserInfo

        POBUserInfo()
    • Method Detail

      • getBirthYear

         int getBirthYear()

        (Internal for OpenWrap SDK)

        Returns:

        Birth Year

      • setBirthYear

         void setBirthYear(int birthYear)

        The year of birth in YYYY format. Example : setBirthYear(1988);

        Parameters:
        birthYear - birth year of user
      • setCity

         void setCity(@NonNull() String city)

        Sets city of user For example: setCity("London");

        Parameters:
        city - City of user
      • setMetro

         void setMetro(@NonNull() String metro)

        Sets metro / DMA. For example, New York, NY is also known as 501. Los Angeles, CA, on the other hand has been assigned the number 803.

        Parameters:
        metro - Metro / DMA code of the user.
      • setZip

         void setZip(@NonNull() String zip)

        Sets the user's zip or postal code. This may be useful in delivering geographically relevant ads For example: for Redwood city, CA use setZip("94063");

        Parameters:
        zip - user's zip code
      • setRegion

         void setRegion(@NonNull() String region)

        Sets the user's region. Region code using ISO-3166-2; 2-letter state code if USA. For example: for France you can use "FR"

        Parameters:
        region - user's region.
      • getKeywords

        @Nullable() String getKeywords()

        (Internal for OpenWrap SDK) Returns the comma separated list of keywords, interests, or intent, set by the application developer.

        Returns:

        Comma separated list of keywords, interests, or intent.

      • setKeywords

         void setKeywords(String keywords)

        Sets the comma separated list of keywords, interests, or intent.

        Parameters:
        keywords - Comma separated list of keywords, interests, or intent.
      • addDataProvider

         void addDataProvider(@NonNull() POBDataProvider dataProvider)

        Method to add segment data of a data provider to OW SDK

        Parameters:
        dataProvider - instance of data provider class
      • getDataProvider

        @Nullable() POBDataProvider getDataProvider(@NonNull() String name)

        Method to get segment data set at OW SDK for a data provider with given name

        Parameters:
        name - name of the data provider
        Returns:

        returns instance of data provider with name or null if not available