class Google::Apis::Adexchangebuyer2V2beta1::Client

A client resource represents a client buyer—an agency, a brand, or an advertiser customer of the sponsor buyer. Users associated with the client buyer have restricted access to the Marketplace and certain other sections of the Authorized Buyers UI based on the role granted to the client buyer. All fields are required unless otherwise specified.

Attributes

client_account_id[RW]

The globally-unique numerical ID of the client. The value of this field is ignored in create and update operations. Corresponds to the JSON property `clientAccountId` @return [Fixnum]

client_name[RW]

Name used to represent this client to publishers. You may have multiple clients that map to the same entity, but for each client the combination of ` clientName` and entity must be unique. You can specify this field as empty. Corresponds to the JSON property `clientName` @return [String]

entity_id[RW]

Numerical identifier of the client entity. The entity can be an advertiser, a brand, or an agency. This identifier is unique among all the entities with the same type. The value of this field is ignored if the entity type is not provided. A list of all known advertisers with their identifiers is available in the [advertisers.txt](storage.googleapis.com/adx-rtb-dictionaries/ advertisers.txt) file. A list of all known brands with their identifiers is available in the [brands.txt](storage.googleapis.com/adx-rtb- dictionaries/brands.txt) file. A list of all known agencies with their identifiers is available in the [agencies.txt](storage.googleapis.com/ adx-rtb-dictionaries/agencies.txt) file. Corresponds to the JSON property `entityId` @return [Fixnum]

entity_name[RW]

The name of the entity. This field is automatically fetched based on the type and ID. The value of this field is ignored in create and update operations. Corresponds to the JSON property `entityName` @return [String]

entity_type[RW]

An optional field for specifying the type of the client entity: `ADVERTISER`, ` BRAND`, or `AGENCY`. Corresponds to the JSON property `entityType` @return [String]

partner_client_id[RW]

Optional arbitrary unique identifier of this client buyer from the standpoint of its Ad Exchange sponsor buyer. This field can be used to associate a client buyer with the identifier in the namespace of its sponsor buyer, lookup client buyers by that identifier and verify whether an Ad Exchange counterpart of a given client buyer already exists. If present, must be unique among all the client buyers for its Ad Exchange sponsor buyer. Corresponds to the JSON property `partnerClientId` @return [String]

role[RW]

The role which is assigned to the client buyer. Each role implies a set of permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, ` CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. Corresponds to the JSON property `role` @return [String]

status[RW]

The status of the client buyer. Corresponds to the JSON property `status` @return [String]

visible_to_seller[RW]

Whether the client buyer will be visible to sellers. Corresponds to the JSON property `visibleToSeller` @return [Boolean]

visible_to_seller?[RW]

Whether the client buyer will be visible to sellers. Corresponds to the JSON property `visibleToSeller` @return [Boolean]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 489
def update!(**args)
  @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
  @client_name = args[:client_name] if args.key?(:client_name)
  @entity_id = args[:entity_id] if args.key?(:entity_id)
  @entity_name = args[:entity_name] if args.key?(:entity_name)
  @entity_type = args[:entity_type] if args.key?(:entity_type)
  @partner_client_id = args[:partner_client_id] if args.key?(:partner_client_id)
  @role = args[:role] if args.key?(:role)
  @status = args[:status] if args.key?(:status)
  @visible_to_seller = args[:visible_to_seller] if args.key?(:visible_to_seller)
end