ThirdPartyAdapters/adcolony/adcolony/src/main/java/com/jirbo/adcolony/AdColonyManager.java
/**
   * Places user_id, age, location, and gender into AdColonyAppOptions.
   *
   * @param adConfiguration rewarded ad configuration received from AdMob.
   * @return a valid AppOptions object.
   */
Places user_id, age, location, and gender into AdColonyAppOptions.
@param adConfiguration rewarded ad configuration received from AdMob.
@return a valid AppOptions object.
Places user_id age location and gender into AdColonyAppOptions . @param adConfiguration rewarded ad configuration received from AdMob . @return a valid AppOptions object .
private AdColonyAppOptions buildAppOptions(MediationRewardedAdConfiguration adConfiguration) {
    AdColonyAppOptions options = AdColonyMediationAdapter.getAppOptions();
    if (adConfiguration.isTestRequest()) {
      options.setTestModeEnabled(true);
    }
    AdColonyUserMetadata userMetadata = new AdColonyUserMetadata();
    Location location = adConfiguration.getLocation();
    if (location != null) {
      userMetadata.setUserLocation(location);
    }
    options.setUserMetadata(userMetadata);
    return options;
  }
private AdColonyAppOptions buildAppOptions ( MediationRewardedAdConfiguration adConfiguration ) { AdColonyAppOptions options = AdColonyMediationAdapter . getAppOptions ( ) ; if ( adConfiguration . isTestRequest ( ) ) { options . setTestModeEnabled ( true ) ; } AdColonyUserMetadata userMetadata = new AdColonyUserMetadata ( ) ; Location location = adConfiguration . getLocation ( ) ; if ( location != null ) { userMetadata . setUserLocation ( location ) ; } options . setUserMetadata ( userMetadata ) ; return options ; }
Places user_id, age, location, and gender into AdColonyAppOptions.
Places user_id age location and gender into AdColonyAppOptions .
// Enable test ads from AdColony when a Test Ad Request was sent. // Try to update userMetaData with location (if provided).