Class: Google::Apis::Adexchangebuyer2V2beta1::Creative

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

Overview

A creative and its classification data. Next ID: 38

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Creative

Returns a new instance of Creative



656
657
658
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 656

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

Instance Attribute Details

#account_idString

The account that this creative belongs to. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property accountId

Returns:

  • (String)


494
495
496
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 494

def 
  @account_id
end

#ad_choices_destination_urlString

The link to AdChoices destination page. Corresponds to the JSON property adChoicesDestinationUrl

Returns:

  • (String)


499
500
501
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 499

def ad_choices_destination_url
  @ad_choices_destination_url
end

#advertiser_nameString

The name of the company being advertised in the creative. Corresponds to the JSON property advertiserName

Returns:

  • (String)


504
505
506
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 504

def advertiser_name
  @advertiser_name
end

#agency_idFixnum

The agency ID for this creative. Corresponds to the JSON property agencyId

Returns:

  • (Fixnum)


509
510
511
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 509

def agency_id
  @agency_id
end

#api_update_timeString

Corresponds to the JSON property apiUpdateTime

Returns:

  • (String)


514
515
516
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 514

def api_update_time
  @api_update_time
end

#attributesArray<String>

All attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property attributes

Returns:

  • (Array<String>)


522
523
524
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 522

def attributes
  @attributes
end

#click_through_urlsArray<String>

The set of destination URLs for the creative. Corresponds to the JSON property clickThroughUrls

Returns:

  • (Array<String>)


527
528
529
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 527

def click_through_urls
  @click_through_urls
end

#correctionsArray<Google::Apis::Adexchangebuyer2V2beta1::Correction>

Corresponds to the JSON property corrections



532
533
534
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 532

def corrections
  @corrections
end

#creative_idString

The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property creativeId

Returns:

  • (String)


540
541
542
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 540

def creative_id
  @creative_id
end

#deals_statusString

If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property dealsStatus

Returns:

  • (String)


552
553
554
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 552

def deals_status
  @deals_status
end

#declared_click_through_urlsArray<String>

The set of declared destination URLs for the creative. Corresponds to the JSON property declaredClickThroughUrls

Returns:

  • (Array<String>)


557
558
559
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 557

def declared_click_through_urls
  @declared_click_through_urls
end

#detected_advertiser_idsArray<Fixnum>

Corresponds to the JSON property detectedAdvertiserIds

Returns:

  • (Array<Fixnum>)


562
563
564
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 562

def detected_advertiser_ids
  @detected_advertiser_ids
end

#detected_domainsArray<String>

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

Returns:

  • (Array<String>)


568
569
570
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 568

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. Corresponds to the JSON property detectedLanguages

Returns:

  • (Array<String>)


576
577
578
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 576

def detected_languages
  @detected_languages
end

#detected_product_categoriesArray<Fixnum>

See the ad-product-categories.txt file in the technical documentation for a list of IDs. Corresponds to the JSON property detectedProductCategories

Returns:

  • (Array<Fixnum>)


583
584
585
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 583

def detected_product_categories
  @detected_product_categories
end

#detected_sensitive_categoriesArray<Fixnum>

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>)


591
592
593
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 591

def detected_sensitive_categories
  @detected_sensitive_categories
end

#filtering_statsGoogle::Apis::Adexchangebuyer2V2beta1::FilteringStats

day (from midnight to midnight Pacific). Corresponds to the JSON property filteringStats



597
598
599
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 597

def filtering_stats
  @filtering_stats
end

#htmlGoogle::Apis::Adexchangebuyer2V2beta1::HtmlContent

HTML content for a creative. Corresponds to the JSON property html



602
603
604
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 602

def html
  @html
end

#impression_tracking_urlsArray<String>

The set of URLs to be called to record an impression. Corresponds to the JSON property impressionTrackingUrls

Returns:

  • (Array<String>)


607
608
609
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 607

def impression_tracking_urls
  @impression_tracking_urls
end

#nativeGoogle::Apis::Adexchangebuyer2V2beta1::NativeContent

Native content for a creative. Corresponds to the JSON property native



612
613
614
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 612

def native
  @native
end

#open_auction_statusString

If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property openAuctionStatus

Returns:

  • (String)


624
625
626
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 624

def open_auction_status
  @open_auction_status
end

#restricted_categoriesArray<String>

All restricted categories for the ads that may be shown from this creative. Corresponds to the JSON property restrictedCategories

Returns:

  • (Array<String>)


629
630
631
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 629

def restricted_categories
  @restricted_categories
end

#serving_restrictionsArray<Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction>

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). Corresponds to the JSON property servingRestrictions



637
638
639
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 637

def serving_restrictions
  @serving_restrictions
end

#vendor_idsArray<Fixnum>

All vendor IDs for the ads that may be shown from this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values. Corresponds to the JSON property vendorIds

Returns:

  • (Array<Fixnum>)


644
645
646
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 644

def vendor_ids
  @vendor_ids
end

#versionFixnum

Corresponds to the JSON property version

Returns:

  • (Fixnum)


649
650
651
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 649

def version
  @version
end

#videoGoogle::Apis::Adexchangebuyer2V2beta1::VideoContent

Video content for a creative. Corresponds to the JSON property video



654
655
656
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 654

def video
  @video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 661

def update!(**args)
  @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_name = args[:advertiser_name] if args.key?(:advertiser_name)
  @agency_id = args[:agency_id] if args.key?(:agency_id)
  @api_update_time = args[:api_update_time] if args.key?(:api_update_time)
  @attributes = args[:attributes] if args.key?(:attributes)
  @click_through_urls = args[:click_through_urls] if args.key?(:click_through_urls)
  @corrections = args[:corrections] if args.key?(:corrections)
  @creative_id = args[:creative_id] if args.key?(:creative_id)
  @deals_status = args[:deals_status] if args.key?(:deals_status)
  @declared_click_through_urls = args[:declared_click_through_urls] if args.key?(:declared_click_through_urls)
  @detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids)
  @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)
  @filtering_stats = args[:filtering_stats] if args.key?(:filtering_stats)
  @html = args[:html] if args.key?(:html)
  @impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls)
  @native = args[:native] if args.key?(:native)
  @open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
  @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
  @serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions)
  @vendor_ids = args[:vendor_ids] if args.key?(:vendor_ids)
  @version = args[:version] if args.key?(:version)
  @video = args[:video] if args.key?(:video)
end