Class: Google::Apis::DfareportingV3_5::Campaign
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_5::Campaign
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v3_5/classes.rb,
lib/google/apis/dfareporting_v3_5/representations.rb,
lib/google/apis/dfareporting_v3_5/representations.rb
Overview
Contains properties of a Campaign Manager campaign.
Instance Attribute Summary collapse
-
#account_id ⇒ Fixnum
Account ID of this campaign.
-
#ad_blocking_configuration ⇒ Google::Apis::DfareportingV3_5::AdBlockingConfiguration
Campaign ad blocking settings.
-
#additional_creative_optimization_configurations ⇒ Array<Google::Apis::DfareportingV3_5::CreativeOptimizationConfiguration>
Additional creative optimization configurations for the campaign.
-
#advertiser_group_id ⇒ Fixnum
Advertiser group ID of the associated advertiser.
-
#advertiser_id ⇒ Fixnum
Advertiser ID of this campaign.
-
#advertiser_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
-
#archived ⇒ Boolean
(also: #archived?)
Whether this campaign has been archived.
-
#audience_segment_groups ⇒ Array<Google::Apis::DfareportingV3_5::AudienceSegmentGroup>
Audience segment groups assigned to this campaign.
-
#billing_invoice_code ⇒ String
Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign.
-
#click_through_url_suffix_properties ⇒ Google::Apis::DfareportingV3_5::ClickThroughUrlSuffixProperties
Click Through URL Suffix settings.
-
#comment ⇒ String
Arbitrary comments about this campaign.
-
#create_info ⇒ Google::Apis::DfareportingV3_5::LastModifiedInfo
Modification timestamp.
-
#creative_group_ids ⇒ Array<Fixnum>
List of creative group IDs that are assigned to the campaign.
-
#creative_optimization_configuration ⇒ Google::Apis::DfareportingV3_5::CreativeOptimizationConfiguration
Creative optimization settings.
-
#default_click_through_event_tag_properties ⇒ Google::Apis::DfareportingV3_5::DefaultClickThroughEventTagProperties
Properties of inheriting and overriding the default click-through event tag.
-
#default_landing_page_id ⇒ Fixnum
The default landing page ID for this campaign.
-
#end_date ⇒ Date
Corresponds to the JSON property
endDate. -
#event_tag_overrides ⇒ Array<Google::Apis::DfareportingV3_5::EventTagOverride>
Overrides that can be used to activate or deactivate advertiser event tags.
-
#external_id ⇒ String
External ID for this campaign.
-
#id ⇒ Fixnum
ID of this campaign.
-
#id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#last_modified_info ⇒ Google::Apis::DfareportingV3_5::LastModifiedInfo
Modification timestamp.
-
#measurement_partner_link ⇒ Google::Apis::DfareportingV3_5::MeasurementPartnerCampaignLink
Measurement partner campaign link for tag wrapping.
-
#name ⇒ String
Name of this campaign.
-
#nielsen_ocr_enabled ⇒ Boolean
(also: #nielsen_ocr_enabled?)
Whether Nielsen reports are enabled for this campaign.
-
#start_date ⇒ Date
Corresponds to the JSON property
startDate. -
#subaccount_id ⇒ Fixnum
Subaccount ID of this campaign.
-
#trafficker_emails ⇒ Array<String>
Campaign trafficker contact emails.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Campaign
constructor
A new instance of Campaign.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Campaign
Returns a new instance of Campaign.
1555 1556 1557 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1555 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
Account ID of this campaign. This is a read-only field that can be left blank.
Corresponds to the JSON property accountId
1404 1405 1406 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1404 def account_id @account_id end |
#ad_blocking_configuration ⇒ Google::Apis::DfareportingV3_5::AdBlockingConfiguration
Campaign ad blocking settings.
Corresponds to the JSON property adBlockingConfiguration
1409 1410 1411 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1409 def ad_blocking_configuration @ad_blocking_configuration end |
#additional_creative_optimization_configurations ⇒ Array<Google::Apis::DfareportingV3_5::CreativeOptimizationConfiguration>
Additional creative optimization configurations for the campaign.
Corresponds to the JSON property additionalCreativeOptimizationConfigurations
1414 1415 1416 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1414 def additional_creative_optimization_configurations @additional_creative_optimization_configurations end |
#advertiser_group_id ⇒ Fixnum
Advertiser group ID of the associated advertiser.
Corresponds to the JSON property advertiserGroupId
1419 1420 1421 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1419 def advertiser_group_id @advertiser_group_id end |
#advertiser_id ⇒ Fixnum
Advertiser ID of this campaign. This is a required field.
Corresponds to the JSON property advertiserId
1424 1425 1426 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1424 def advertiser_id @advertiser_id end |
#advertiser_id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property advertiserIdDimensionValue
1429 1430 1431 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1429 def advertiser_id_dimension_value @advertiser_id_dimension_value end |
#archived ⇒ Boolean Also known as: archived?
Whether this campaign has been archived.
Corresponds to the JSON property archived
1434 1435 1436 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1434 def archived @archived end |
#audience_segment_groups ⇒ Array<Google::Apis::DfareportingV3_5::AudienceSegmentGroup>
Audience segment groups assigned to this campaign. Cannot have more than 300
segment groups.
Corresponds to the JSON property audienceSegmentGroups
1441 1442 1443 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1441 def audience_segment_groups @audience_segment_groups end |
#billing_invoice_code ⇒ String
Billing invoice code included in the Campaign Manager client billing invoices
associated with the campaign.
Corresponds to the JSON property billingInvoiceCode
1447 1448 1449 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1447 def billing_invoice_code @billing_invoice_code end |
#click_through_url_suffix_properties ⇒ Google::Apis::DfareportingV3_5::ClickThroughUrlSuffixProperties
Click Through URL Suffix settings.
Corresponds to the JSON property clickThroughUrlSuffixProperties
1452 1453 1454 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1452 def click_through_url_suffix_properties @click_through_url_suffix_properties end |
#comment ⇒ String
Arbitrary comments about this campaign. Must be less than 256 characters long.
Corresponds to the JSON property comment
1457 1458 1459 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1457 def comment @comment end |
#create_info ⇒ Google::Apis::DfareportingV3_5::LastModifiedInfo
Modification timestamp.
Corresponds to the JSON property createInfo
1462 1463 1464 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1462 def create_info @create_info end |
#creative_group_ids ⇒ Array<Fixnum>
List of creative group IDs that are assigned to the campaign.
Corresponds to the JSON property creativeGroupIds
1467 1468 1469 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1467 def creative_group_ids @creative_group_ids end |
#creative_optimization_configuration ⇒ Google::Apis::DfareportingV3_5::CreativeOptimizationConfiguration
Creative optimization settings.
Corresponds to the JSON property creativeOptimizationConfiguration
1472 1473 1474 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1472 def creative_optimization_configuration @creative_optimization_configuration end |
#default_click_through_event_tag_properties ⇒ Google::Apis::DfareportingV3_5::DefaultClickThroughEventTagProperties
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
1479 1480 1481 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1479 def default_click_through_event_tag_properties @default_click_through_event_tag_properties end |
#default_landing_page_id ⇒ Fixnum
The default landing page ID for this campaign.
Corresponds to the JSON property defaultLandingPageId
1484 1485 1486 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1484 def default_landing_page_id @default_landing_page_id end |
#end_date ⇒ Date
Corresponds to the JSON property endDate
1489 1490 1491 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1489 def end_date @end_date end |
#event_tag_overrides ⇒ Array<Google::Apis::DfareportingV3_5::EventTagOverride>
Overrides that can be used to activate or deactivate advertiser event tags.
Corresponds to the JSON property eventTagOverrides
1494 1495 1496 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1494 def event_tag_overrides @event_tag_overrides end |
#external_id ⇒ String
External ID for this campaign.
Corresponds to the JSON property externalId
1499 1500 1501 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1499 def external_id @external_id end |
#id ⇒ Fixnum
ID of this campaign. This is a read-only auto-generated field.
Corresponds to the JSON property id
1504 1505 1506 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1504 def id @id end |
#id_dimension_value ⇒ Google::Apis::DfareportingV3_5::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property idDimensionValue
1509 1510 1511 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1509 def id_dimension_value @id_dimension_value end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#campaign".
Corresponds to the JSON property kind
1515 1516 1517 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1515 def kind @kind end |
#last_modified_info ⇒ Google::Apis::DfareportingV3_5::LastModifiedInfo
Modification timestamp.
Corresponds to the JSON property lastModifiedInfo
1520 1521 1522 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1520 def last_modified_info @last_modified_info end |
#measurement_partner_link ⇒ Google::Apis::DfareportingV3_5::MeasurementPartnerCampaignLink
Measurement partner campaign link for tag wrapping.
Corresponds to the JSON property measurementPartnerLink
1525 1526 1527 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1525 def measurement_partner_link @measurement_partner_link end |
#name ⇒ String
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
1531 1532 1533 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1531 def name @name end |
#nielsen_ocr_enabled ⇒ Boolean Also known as: nielsen_ocr_enabled?
Whether Nielsen reports are enabled for this campaign.
Corresponds to the JSON property nielsenOcrEnabled
1536 1537 1538 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1536 def nielsen_ocr_enabled @nielsen_ocr_enabled end |
#start_date ⇒ Date
Corresponds to the JSON property startDate
1542 1543 1544 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1542 def start_date @start_date end |
#subaccount_id ⇒ Fixnum
Subaccount ID of this campaign. This is a read-only field that can be left
blank.
Corresponds to the JSON property subaccountId
1548 1549 1550 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1548 def subaccount_id @subaccount_id end |
#trafficker_emails ⇒ Array<String>
Campaign trafficker contact emails.
Corresponds to the JSON property traffickerEmails
1553 1554 1555 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1553 def trafficker_emails @trafficker_emails end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 1560 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) @measurement_partner_link = args[:measurement_partner_link] if args.key?(:measurement_partner_link) @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 |