public function setAdvertisingSettings($value) {
    if (is_object($value) && !$value instanceof AdvertisingSettings) {
      $this->triggerError('Object not of type AdvertisingSettings');
    }
    else {
      $this->advertisingSettings = $value;
    }
    return $this;
  }