class Google::Apis::DfareportingV3_4::Campaign

Contains properties of a Campaign Manager campaign.

Attributes

account_id[RW]

Account ID of this campaign. This is a read-only field that can be left blank. Corresponds to the JSON property `accountId` @return [Fixnum]

ad_blocking_configuration[RW]

Campaign ad blocking settings. Corresponds to the JSON property `adBlockingConfiguration` @return [Google::Apis::DfareportingV3_4::AdBlockingConfiguration]

additional_creative_optimization_configurations[RW]

Additional creative optimization configurations for the campaign. Corresponds to the JSON property `additionalCreativeOptimizationConfigurations` @return [Array<Google::Apis::DfareportingV3_4::CreativeOptimizationConfiguration>]

advertiser_group_id[RW]

Advertiser group ID of the associated advertiser. Corresponds to the JSON property `advertiserGroupId` @return [Fixnum]

advertiser_id[RW]

Advertiser ID of this campaign. This is a required field. Corresponds to the JSON property `advertiserId` @return [Fixnum]

advertiser_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `advertiserIdDimensionValue` @return [Google::Apis::DfareportingV3_4::DimensionValue]

archived[RW]

Whether this campaign has been archived. Corresponds to the JSON property `archived` @return [Boolean]

archived?[RW]

Whether this campaign has been archived. Corresponds to the JSON property `archived` @return [Boolean]

audience_segment_groups[RW]

Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. Corresponds to the JSON property `audienceSegmentGroups` @return [Array<Google::Apis::DfareportingV3_4::AudienceSegmentGroup>]

billing_invoice_code[RW]

Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign. Corresponds to the JSON property `billingInvoiceCode` @return [String]

click_through_url_suffix_properties[RW]

Click Through URL Suffix settings. Corresponds to the JSON property `clickThroughUrlSuffixProperties` @return [Google::Apis::DfareportingV3_4::ClickThroughUrlSuffixProperties]

comment[RW]

Arbitrary comments about this campaign. Must be less than 256 characters long. Corresponds to the JSON property `comment` @return [String]

create_info[RW]

Modification timestamp. Corresponds to the JSON property `createInfo` @return [Google::Apis::DfareportingV3_4::LastModifiedInfo]

creative_group_ids[RW]

List of creative group IDs that are assigned to the campaign. Corresponds to the JSON property `creativeGroupIds` @return [Array<Fixnum>]

creative_optimization_configuration[RW]

Creative optimization settings. Corresponds to the JSON property `creativeOptimizationConfiguration` @return [Google::Apis::DfareportingV3_4::CreativeOptimizationConfiguration]

default_click_through_event_tag_properties[RW]

Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further. Corresponds to the JSON property `defaultClickThroughEventTagProperties` @return [Google::Apis::DfareportingV3_4::DefaultClickThroughEventTagProperties]

default_landing_page_id[RW]

The default landing page ID for this campaign. Corresponds to the JSON property `defaultLandingPageId` @return [Fixnum]

end_date[RW]

Corresponds to the JSON property `endDate` @return [Date]

event_tag_overrides[RW]

Overrides that can be used to activate or deactivate advertiser event tags. Corresponds to the JSON property `eventTagOverrides` @return [Array<Google::Apis::DfareportingV3_4::EventTagOverride>]

external_id[RW]

External ID for this campaign. Corresponds to the JSON property `externalId` @return [String]

id[RW]

ID of this campaign. This is a read-only auto-generated field. Corresponds to the JSON property `id` @return [Fixnum]

id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `idDimensionValue` @return [Google::Apis::DfareportingV3_4::DimensionValue]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#campaign”. Corresponds to the JSON property `kind` @return [String]

last_modified_info[RW]

Modification timestamp. Corresponds to the JSON property `lastModifiedInfo` @return [Google::Apis::DfareportingV3_4::LastModifiedInfo]

name[RW]

Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser. Corresponds to the JSON property `name` @return [String]

nielsen_ocr_enabled[RW]

Whether Nielsen reports are enabled for this campaign. Corresponds to the JSON property `nielsenOcrEnabled` @return [Boolean]

nielsen_ocr_enabled?[RW]

Whether Nielsen reports are enabled for this campaign. Corresponds to the JSON property `nielsenOcrEnabled` @return [Boolean]

start_date[RW]

Corresponds to the JSON property `startDate` @return [Date]

subaccount_id[RW]

Subaccount ID of this campaign. This is a read-only field that can be left blank. Corresponds to the JSON property `subaccountId` @return [Fixnum]

trafficker_emails[RW]

Campaign trafficker contact emails. Corresponds to the JSON property `traffickerEmails` @return [Array<String>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_4/classes.rb, line 1573
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @ad_blocking_configuration = args[:ad_blocking_configuration] if args.key?(:ad_blocking_configuration)
  @additional_creative_optimization_configurations = args[:additional_creative_optimization_configurations] if args.key?(:additional_creative_optimization_configurations)
  @advertiser_group_id = args[:advertiser_group_id] if args.key?(:advertiser_group_id)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value)
  @archived = args[:archived] if args.key?(:archived)
  @audience_segment_groups = args[:audience_segment_groups] if args.key?(:audience_segment_groups)
  @billing_invoice_code = args[:billing_invoice_code] if args.key?(:billing_invoice_code)
  @click_through_url_suffix_properties = args[:click_through_url_suffix_properties] if args.key?(:click_through_url_suffix_properties)
  @comment = args[:comment] if args.key?(:comment)
  @create_info = args[:create_info] if args.key?(:create_info)
  @creative_group_ids = args[:creative_group_ids] if args.key?(:creative_group_ids)
  @creative_optimization_configuration = args[:creative_optimization_configuration] if args.key?(:creative_optimization_configuration)
  @default_click_through_event_tag_properties = args[:default_click_through_event_tag_properties] if args.key?(:default_click_through_event_tag_properties)
  @default_landing_page_id = args[:default_landing_page_id] if args.key?(:default_landing_page_id)
  @end_date = args[:end_date] if args.key?(:end_date)
  @event_tag_overrides = args[:event_tag_overrides] if args.key?(:event_tag_overrides)
  @external_id = args[:external_id] if args.key?(:external_id)
  @id = args[:id] if args.key?(:id)
  @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value)
  @kind = args[:kind] if args.key?(:kind)
  @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info)
  @name = args[:name] if args.key?(:name)
  @nielsen_ocr_enabled = args[:nielsen_ocr_enabled] if args.key?(:nielsen_ocr_enabled)
  @start_date = args[:start_date] if args.key?(:start_date)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @trafficker_emails = args[:trafficker_emails] if args.key?(:trafficker_emails)
end