Class: Google::Apis::RealtimebiddingV1::CreativeServingDecision

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

Overview

Top level status and detected attributes of a creative.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreativeServingDecision

Returns a new instance of CreativeServingDecision.



497
498
499
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 497

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

Instance Attribute Details

#china_policy_complianceGoogle::Apis::RealtimebiddingV1::PolicyCompliance

Policy compliance of the creative for a transaction type or a region. Corresponds to the JSON property chinaPolicyCompliance



408
409
410
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 408

def china_policy_compliance
  @china_policy_compliance
end

#deals_policy_complianceGoogle::Apis::RealtimebiddingV1::PolicyCompliance

Policy compliance of the creative for a transaction type or a region. Corresponds to the JSON property dealsPolicyCompliance



413
414
415
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 413

def deals_policy_compliance
  @deals_policy_compliance
end

#detected_advertisersArray<Google::Apis::RealtimebiddingV1::AdvertiserAndBrand>

Detected advertisers and brands. Corresponds to the JSON property detectedAdvertisers



418
419
420
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 418

def detected_advertisers
  @detected_advertisers
end

#detected_attributesArray<String>

Publisher-excludable attributes that were detected for this creative. Can be used to filter the response of the creatives.list method. If the excluded_attribute field of a bid request contains one of the attributes that were declared or detected for a given creative, and a bid is submitted with that creative, the bid will be filtered before the auction. Corresponds to the JSON property detectedAttributes

Returns:

  • (Array<String>)


428
429
430
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 428

def detected_attributes
  @detected_attributes
end

#detected_click_through_urlsArray<String>

The set of detected destination URLs for the creative. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property detectedClickThroughUrls

Returns:

  • (Array<String>)


434
435
436
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 434

def detected_click_through_urls
  @detected_click_through_urls
end

#detected_domainsArray<String>

The detected domains for this creative. Corresponds to the JSON property detectedDomains

Returns:

  • (Array<String>)


439
440
441
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 439

def detected_domains
  @detected_domains
end

#detected_languagesArray<String>

The detected languages for this creative. The order is arbitrary. The codes are 2 or 5 characters and are documented at https://developers.google.com/ adwords/api/docs/appendix/languagecodes. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property detectedLanguages

Returns:

  • (Array<String>)


447
448
449
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 447

def detected_languages
  @detected_languages
end

#detected_product_categoriesArray<Fixnum>

Detected product categories, if any. See the ad-product-categories.txt file in the technical documentation for a list of IDs. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property detectedProductCategories

Returns:

  • (Array<Fixnum>)


454
455
456
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 454

def detected_product_categories
  @detected_product_categories
end

#detected_sensitive_categoriesArray<Fixnum>

Detected sensitive categories, if any. Can be used to filter the response of the creatives.list method. See the ad-sensitive-categories.txt file in the technical documentation for a list of IDs. You should use these IDs along with the excluded-sensitive-category field in the bid request to filter your bids. Corresponds to the JSON property detectedSensitiveCategories

Returns:

  • (Array<Fixnum>)


462
463
464
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 462

def detected_sensitive_categories
  @detected_sensitive_categories
end

#detected_vendor_idsArray<Fixnum>

IDs of the ad technology vendors that were detected to be used by this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values. Can be used to filter the response of the creatives.list method. If the allowed_vendor_type field of a bid request does not contain one of the vendor type IDs that were declared or detected for a given creative, and a bid is submitted with that creative, the bid will be filtered before the auction. Corresponds to the JSON property detectedVendorIds

Returns:

  • (Array<Fixnum>)


474
475
476
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 474

def detected_vendor_ids
  @detected_vendor_ids
end

#last_status_updateString

The last time the creative status was updated. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property lastStatusUpdate

Returns:

  • (String)


480
481
482
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 480

def last_status_update
  @last_status_update
end

#network_policy_complianceGoogle::Apis::RealtimebiddingV1::PolicyCompliance

Policy compliance of the creative for a transaction type or a region. Corresponds to the JSON property networkPolicyCompliance



485
486
487
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 485

def network_policy_compliance
  @network_policy_compliance
end

#platform_policy_complianceGoogle::Apis::RealtimebiddingV1::PolicyCompliance

Policy compliance of the creative for a transaction type or a region. Corresponds to the JSON property platformPolicyCompliance



490
491
492
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 490

def platform_policy_compliance
  @platform_policy_compliance
end

#russia_policy_complianceGoogle::Apis::RealtimebiddingV1::PolicyCompliance

Policy compliance of the creative for a transaction type or a region. Corresponds to the JSON property russiaPolicyCompliance



495
496
497
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 495

def russia_policy_compliance
  @russia_policy_compliance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 502

def update!(**args)
  @china_policy_compliance = args[:china_policy_compliance] if args.key?(:china_policy_compliance)
  @deals_policy_compliance = args[:deals_policy_compliance] if args.key?(:deals_policy_compliance)
  @detected_advertisers = args[:detected_advertisers] if args.key?(:detected_advertisers)
  @detected_attributes = args[:detected_attributes] if args.key?(:detected_attributes)
  @detected_click_through_urls = args[:detected_click_through_urls] if args.key?(:detected_click_through_urls)
  @detected_domains = args[:detected_domains] if args.key?(:detected_domains)
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
  @detected_product_categories = args[:detected_product_categories] if args.key?(:detected_product_categories)
  @detected_sensitive_categories = args[:detected_sensitive_categories] if args.key?(:detected_sensitive_categories)
  @detected_vendor_ids = args[:detected_vendor_ids] if args.key?(:detected_vendor_ids)
  @last_status_update = args[:last_status_update] if args.key?(:last_status_update)
  @network_policy_compliance = args[:network_policy_compliance] if args.key?(:network_policy_compliance)
  @platform_policy_compliance = args[:platform_policy_compliance] if args.key?(:platform_policy_compliance)
  @russia_policy_compliance = args[:russia_policy_compliance] if args.key?(:russia_policy_compliance)
end