Class: Google::Apis::AdexchangebuyerV1_4::Creative
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_4::Creative
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer_v1_4/classes.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb
Overview
A creative and its classification data.
Defined Under Namespace
Classes: Correction, FilteringReasons, NativeAd, ServingRestriction
Instance Attribute Summary collapse
-
#account_id ⇒ Fixnum
Account id.
-
#ad_choices_destination_url ⇒ String
The link to the Ad Preferences page.
-
#advertiser_id ⇒ Array<String>
Detected advertiser id, if any.
-
#advertiser_name ⇒ String
The name of the company being advertised in the creative.
-
#agency_id ⇒ String
The agency id for this creative.
-
#api_upload_timestamp ⇒ DateTime
The last upload timestamp of this creative if it was uploaded via API.
-
#attribute ⇒ Array<Fixnum>
All attributes for the ads that may be shown from this snippet.
-
#buyer_creative_id ⇒ String
A buyer-specific id identifying the creative in this ad.
-
#click_through_url ⇒ Array<String>
The set of destination urls for the snippet.
-
#corrections ⇒ Array<Google::Apis::AdexchangebuyerV1_4::Creative::Correction>
Shows any corrections that were applied to this creative.
-
#deals_status ⇒ String
Top-level deals status.
-
#detected_domains ⇒ Array<String>
Detected domains for this creative.
-
#filtering_reasons ⇒ Google::Apis::AdexchangebuyerV1_4::Creative::FilteringReasons
The filtering reasons for the creative.
-
#height ⇒ Fixnum
Ad height.
-
#html_snippet ⇒ String
The HTML snippet that displays the ad when inserted in the web page.
-
#impression_tracking_url ⇒ Array<String>
The set of urls to be called to record an impression.
-
#kind ⇒ String
Resource type.
-
#languages ⇒ Array<String>
Detected languages for this creative.
-
#native_ad ⇒ Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd
If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should not be set.
-
#open_auction_status ⇒ String
Top-level open auction status.
-
#product_categories ⇒ Array<Fixnum>
Detected product categories, if any.
-
#restricted_categories ⇒ Array<Fixnum>
All restricted categories for the ads that may be shown from this snippet.
-
#sensitive_categories ⇒ Array<Fixnum>
Detected sensitive categories, if any.
-
#serving_restrictions ⇒ Array<Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction>
The granular status of this ad in specific contexts.
-
#vendor_type ⇒ Array<Fixnum>
All vendor types for the ads that may be shown from this snippet.
-
#version ⇒ Fixnum
The version for this creative.
-
#video_url ⇒ String
The URL to fetch a video ad.
-
#width ⇒ Fixnum
Ad width.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Creative
constructor
A new instance of Creative.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Creative
Returns a new instance of Creative.
633 634 635 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 633 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
Account id.
Corresponds to the JSON property accountId
478 479 480 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 478 def account_id @account_id end |
#ad_choices_destination_url ⇒ String
The link to the Ad Preferences page. This is only supported for native ads.
Corresponds to the JSON property adChoicesDestinationUrl
483 484 485 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 483 def ad_choices_destination_url @ad_choices_destination_url end |
#advertiser_id ⇒ Array<String>
Detected advertiser id, if any. Read-only. This field should not be set in
requests.
Corresponds to the JSON property advertiserId
489 490 491 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 489 def advertiser_id @advertiser_id end |
#advertiser_name ⇒ String
The name of the company being advertised in the creative.
Corresponds to the JSON property advertiserName
494 495 496 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 494 def advertiser_name @advertiser_name end |
#agency_id ⇒ String
The agency id for this creative.
Corresponds to the JSON property agencyId
499 500 501 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 499 def agency_id @agency_id end |
#api_upload_timestamp ⇒ DateTime
The last upload timestamp of this creative if it was uploaded via API. Read-
only. The value of this field is generated, and will be ignored for uploads. (
formatted RFC 3339 timestamp).
Corresponds to the JSON property apiUploadTimestamp
506 507 508 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 506 def @api_upload_timestamp end |
#attribute ⇒ Array<Fixnum>
All attributes for the ads that may be shown from this snippet.
Corresponds to the JSON property attribute
511 512 513 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 511 def attribute @attribute end |
#buyer_creative_id ⇒ String
A buyer-specific id identifying the creative in this ad.
Corresponds to the JSON property buyerCreativeId
516 517 518 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 516 def buyer_creative_id @buyer_creative_id end |
#click_through_url ⇒ Array<String>
The set of destination urls for the snippet.
Corresponds to the JSON property clickThroughUrl
521 522 523 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 521 def click_through_url @click_through_url end |
#corrections ⇒ Array<Google::Apis::AdexchangebuyerV1_4::Creative::Correction>
Shows any corrections that were applied to this creative. Read-only. This
field should not be set in requests.
Corresponds to the JSON property corrections
527 528 529 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 527 def corrections @corrections end |
#deals_status ⇒ String
Top-level deals status. Read-only. This field should not be set in requests.
If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in
servingRestrictions will also exist. Note that this may be nuanced with other
contextual restrictions, in which case it may be preferable to read from
servingRestrictions directly.
Corresponds to the JSON property dealsStatus
536 537 538 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 536 def deals_status @deals_status end |
#detected_domains ⇒ Array<String>
Detected domains for this creative. Read-only. This field should not be set in
requests.
Corresponds to the JSON property detectedDomains
542 543 544 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 542 def detected_domains @detected_domains end |
#filtering_reasons ⇒ Google::Apis::AdexchangebuyerV1_4::Creative::FilteringReasons
The filtering reasons for the creative. Read-only. This field should not be
set in requests.
Corresponds to the JSON property filteringReasons
548 549 550 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 548 def filtering_reasons @filtering_reasons end |
#height ⇒ Fixnum
Ad height.
Corresponds to the JSON property height
553 554 555 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 553 def height @height end |
#html_snippet ⇒ String
The HTML snippet that displays the ad when inserted in the web page. If set,
videoURL should not be set.
Corresponds to the JSON property HTMLSnippet
473 474 475 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 473 def html_snippet @html_snippet end |
#impression_tracking_url ⇒ Array<String>
The set of urls to be called to record an impression.
Corresponds to the JSON property impressionTrackingUrl
558 559 560 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 558 def impression_tracking_url @impression_tracking_url end |
#kind ⇒ String
Resource type.
Corresponds to the JSON property kind
563 564 565 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 563 def kind @kind end |
#languages ⇒ Array<String>
Detected languages for this creative. Read-only. This field should not be set
in requests.
Corresponds to the JSON property languages
569 570 571 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 569 def languages @languages end |
#native_ad ⇒ Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd
If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should
not be set. (The videoURL inside nativeAd can be set.)
Corresponds to the JSON property nativeAd
575 576 577 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 575 def native_ad @native_ad end |
#open_auction_status ⇒ String
Top-level open auction status. Read-only. This field should not be set in
requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in
servingRestrictions will also exist. Note that this may be nuanced with other
contextual restrictions, in which case it may be preferable to read from
ServingRestrictions directly.
Corresponds to the JSON property openAuctionStatus
584 585 586 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 584 def open_auction_status @open_auction_status end |
#product_categories ⇒ Array<Fixnum>
Detected product categories, if any. Read-only. This field should not be set
in requests.
Corresponds to the JSON property productCategories
590 591 592 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 590 def product_categories @product_categories end |
#restricted_categories ⇒ Array<Fixnum>
All restricted categories for the ads that may be shown from this snippet.
Corresponds to the JSON property restrictedCategories
595 596 597 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 595 def restricted_categories @restricted_categories end |
#sensitive_categories ⇒ Array<Fixnum>
Detected sensitive categories, if any. Read-only. This field should not be set
in requests.
Corresponds to the JSON property sensitiveCategories
601 602 603 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 601 def sensitive_categories @sensitive_categories end |
#serving_restrictions ⇒ Array<Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction>
The granular status of this ad in specific contexts. A context here relates to
where something ultimately serves (for example, a physical location, a
platform, an HTTPS vs HTTP request, or the type of auction). Read-only. This
field should not be set in requests.
Corresponds to the JSON property servingRestrictions
609 610 611 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 609 def serving_restrictions @serving_restrictions end |
#vendor_type ⇒ Array<Fixnum>
All vendor types for the ads that may be shown from this snippet.
Corresponds to the JSON property vendorType
614 615 616 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 614 def vendor_type @vendor_type end |
#version ⇒ Fixnum
The version for this creative. Read-only. This field should not be set in
requests.
Corresponds to the JSON property version
620 621 622 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 620 def version @version end |
#video_url ⇒ String
The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not
be set. Note, this is diffrent from resource.native_ad.video_url above.
Corresponds to the JSON property videoURL
626 627 628 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 626 def video_url @video_url end |
#width ⇒ Fixnum
Ad width.
Corresponds to the JSON property width
631 632 633 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 631 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 638 def update!(**args) @html_snippet = args[:html_snippet] if args.key?(:html_snippet) @account_id = args[:account_id] if args.key?(:account_id) @ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) @agency_id = args[:agency_id] if args.key?(:agency_id) @api_upload_timestamp = args[:api_upload_timestamp] if args.key?(:api_upload_timestamp) @attribute = args[:attribute] if args.key?(:attribute) @buyer_creative_id = args[:buyer_creative_id] if args.key?(:buyer_creative_id) @click_through_url = args[:click_through_url] if args.key?(:click_through_url) @corrections = args[:corrections] if args.key?(:corrections) @deals_status = args[:deals_status] if args.key?(:deals_status) @detected_domains = args[:detected_domains] if args.key?(:detected_domains) @filtering_reasons = args[:filtering_reasons] if args.key?(:filtering_reasons) @height = args[:height] if args.key?(:height) @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url) @kind = args[:kind] if args.key?(:kind) @languages = args[:languages] if args.key?(:languages) @native_ad = args[:native_ad] if args.key?(:native_ad) @open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status) @product_categories = args[:product_categories] if args.key?(:product_categories) @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories) @sensitive_categories = args[:sensitive_categories] if args.key?(:sensitive_categories) @serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions) @vendor_type = args[:vendor_type] if args.key?(:vendor_type) @version = args[:version] if args.key?(:version) @video_url = args[:video_url] if args.key?(:video_url) @width = args[:width] if args.key?(:width) end |