class Google::Apis::DfareportingV3_3::AccountUserProfile

AccountUserProfiles contains properties of a Campaign Manager user profile. This resource is specifically for managing user profiles, whereas UserProfiles is for accessing the API.

Attributes

account_id[RW]

Account ID of the user profile. This is a read-only field that can be left blank. Corresponds to the JSON property `accountId` @return [Fixnum]

active[RW]

Whether this user profile is active. This defaults to false, and must be set true on insert for the user profile to be usable. Corresponds to the JSON property `active` @return [Boolean]

active?[RW]

Whether this user profile is active. This defaults to false, and must be set true on insert for the user profile to be usable. Corresponds to the JSON property `active` @return [Boolean]

advertiser_filter[RW]

Object Filter. Corresponds to the JSON property `advertiserFilter` @return [Google::Apis::DfareportingV3_3::ObjectFilter]

campaign_filter[RW]

Object Filter. Corresponds to the JSON property `campaignFilter` @return [Google::Apis::DfareportingV3_3::ObjectFilter]

comments[RW]

Comments for this user profile. Corresponds to the JSON property `comments` @return [String]

email[RW]

Email of the user profile. The email addresss must be linked to a Google Account. This field is required on insertion and is read-only after insertion. Corresponds to the JSON property `email` @return [String]

id[RW]

ID of the user profile. This is a read-only, auto-generated field. Corresponds to the JSON property `id` @return [Fixnum]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#accountUserProfile”. Corresponds to the JSON property `kind` @return [String]

locale[RW]

Locale of the user profile. This is a required field. Acceptable values are: - “cs” (Czech) - “de” (German) - “en” (English) - “en-GB” (English United Kingdom) - “es” (Spanish) - “fr” (French) - “it” (Italian) - “ja” (Japanese) - “ko” (Korean) - “pl” (Polish) - “pt-BR” (Portuguese Brazil) - “ru” (Russian) - “sv” (Swedish) - “tr” (Turkish) - “zh-CN” (Chinese Simplified) - “zh-TW” ( Chinese Traditional) Corresponds to the JSON property `locale` @return [String]

name[RW]

Name of the user profile. This is a required field. Must be less than 64 characters long, must be globally unique, and cannot contain whitespace or any of the following characters: “&;<>”#%,“. Corresponds to the JSON property `name` @return [String]

site_filter[RW]

Object Filter. Corresponds to the JSON property `siteFilter` @return [Google::Apis::DfareportingV3_3::ObjectFilter]

subaccount_id[RW]

Subaccount ID of the user profile. This is a read-only field that can be left blank. Corresponds to the JSON property `subaccountId` @return [Fixnum]

trafficker_type[RW]

Trafficker type of this user profile. This is a read-only field. Corresponds to the JSON property `traffickerType` @return [String]

user_access_type[RW]

User type of the user profile. This is a read-only field that can be left blank. Corresponds to the JSON property `userAccessType` @return [String]

user_role_filter[RW]

Object Filter. Corresponds to the JSON property `userRoleFilter` @return [Google::Apis::DfareportingV3_3::ObjectFilter]

user_role_id[RW]

User role ID of the user profile. This is a required field. Corresponds to the JSON property `userRoleId` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_3/classes.rb, line 458
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_3/classes.rb, line 463
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @active = args[:active] if args.key?(:active)
  @advertiser_filter = args[:advertiser_filter] if args.key?(:advertiser_filter)
  @campaign_filter = args[:campaign_filter] if args.key?(:campaign_filter)
  @comments = args[:comments] if args.key?(:comments)
  @email = args[:email] if args.key?(:email)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @locale = args[:locale] if args.key?(:locale)
  @name = args[:name] if args.key?(:name)
  @site_filter = args[:site_filter] if args.key?(:site_filter)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @trafficker_type = args[:trafficker_type] if args.key?(:trafficker_type)
  @user_access_type = args[:user_access_type] if args.key?(:user_access_type)
  @user_role_filter = args[:user_role_filter] if args.key?(:user_role_filter)
  @user_role_id = args[:user_role_id] if args.key?(:user_role_id)
end