Class: Google::Apis::DfareportingV4::DfpSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb

Overview

Google Ad Manager Settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DfpSettings

Returns a new instance of DfpSettings.



5420
5421
5422
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5420

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dfp_network_codeString

Ad Manager network code for this directory site. Corresponds to the JSON property dfpNetworkCode

Returns:

  • (String)


5395
5396
5397
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5395

def dfp_network_code
  @dfp_network_code
end

#dfp_network_nameString

Ad Manager network name for this directory site. Corresponds to the JSON property dfpNetworkName

Returns:

  • (String)


5400
5401
5402
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5400

def dfp_network_name
  @dfp_network_name
end

#programmatic_placement_acceptedBoolean Also known as: programmatic_placement_accepted?

Whether this directory site accepts programmatic placements. Corresponds to the JSON property programmaticPlacementAccepted

Returns:

  • (Boolean)


5405
5406
5407
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5405

def programmatic_placement_accepted
  @programmatic_placement_accepted
end

#pub_paid_placement_acceptedBoolean Also known as: pub_paid_placement_accepted?

Whether this directory site accepts publisher-paid tags. Corresponds to the JSON property pubPaidPlacementAccepted

Returns:

  • (Boolean)


5411
5412
5413
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5411

def pub_paid_placement_accepted
  @pub_paid_placement_accepted
end

#publisher_portal_onlyBoolean Also known as: publisher_portal_only?

Whether this directory site is available only via Publisher Portal. Corresponds to the JSON property publisherPortalOnly

Returns:

  • (Boolean)


5417
5418
5419
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5417

def publisher_portal_only
  @publisher_portal_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5425
5426
5427
5428
5429
5430
5431
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5425

def update!(**args)
  @dfp_network_code = args[:dfp_network_code] if args.key?(:dfp_network_code)
  @dfp_network_name = args[:dfp_network_name] if args.key?(:dfp_network_name)
  @programmatic_placement_accepted = args[:programmatic_placement_accepted] if args.key?(:programmatic_placement_accepted)
  @pub_paid_placement_accepted = args[:pub_paid_placement_accepted] if args.key?(:pub_paid_placement_accepted)
  @publisher_portal_only = args[:publisher_portal_only] if args.key?(:publisher_portal_only)
end