Campaign Manager 360 API . campaigns

Instance Methods

close()

Close httplib2 connections.

get(profileId, id, x__xgafv=None)

Gets one campaign by ID.

insert(profileId, body=None, x__xgafv=None)

Inserts a new campaign.

list(profileId, sortField=None, advertiserIds=None, atLeastOneOptimizationActivity=None, ids=None, excludedIds=None, sortOrder=None, pageToken=None, overriddenEventTagId=None, maxResults=None, subaccountId=None, searchString=None, archived=None, advertiserGroupIds=None, x__xgafv=None)

Retrieves a list of campaigns, possibly filtered. This method supports paging.

list_next(previous_request, previous_response)

Retrieves the next page of results.

patch(profileId, id, body=None, x__xgafv=None)

Updates an existing campaign. This method supports patch semantics.

update(profileId, body=None, x__xgafv=None)

Updates an existing campaign.

Method Details

close()
Close httplib2 connections.
get(profileId, id, x__xgafv=None)
Gets one campaign by ID.

Args:
  profileId: string, User profile ID associated with this request. (required)
  id: string, Campaign ID. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Contains properties of a Campaign Manager campaign.
      "externalId": "A String", # External ID for this campaign.
      "traffickerEmails": [ # Campaign trafficker contact emails.
        "A String",
      ],
      "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
        { # Event tag override information.
          "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
          "enabled": True or False, # Whether this override is enabled.
        },
      ],
      "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
      "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
      "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
      },
      "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
      "endDate": "A String",
      "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. # Click-through event tag ID override properties for this campaign.
        "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
        "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
      },
      "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign.
        "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings.
        "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used.
        "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured.
        "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true.
      },
      "billingInvoiceCode": "A String", # Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign.
      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
        "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
        "value": "A String", # The value of the dimension.
        "etag": "A String", # The eTag of this response for caching purposes.
        "dimensionName": "A String", # The name of the dimension.
        "id": "A String", # The ID associated with the value if available.
        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
      },
      "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
      },
      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
        "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
        "value": "A String", # The value of the dimension.
        "etag": "A String", # The eTag of this response for caching purposes.
        "dimensionName": "A String", # The name of the dimension.
        "id": "A String", # The ID associated with the value if available.
        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
      },
      "startDate": "A String",
      "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
      "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
      "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
      "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
        "A String",
      ],
      "archived": True or False, # Whether this campaign has been archived.
      "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
        "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
        "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
      },
      "defaultLandingPageId": "A String", # The default landing page ID for this campaign.
      "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
      "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
        "optimizationModel": "A String", # Optimization model for this configuration.
        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
          { # Creative optimization activity.
            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
              "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
              "value": "A String", # The value of the dimension.
              "etag": "A String", # The eTag of this response for caching purposes.
              "dimensionName": "A String", # The name of the dimension.
              "id": "A String", # The ID associated with the value if available.
              "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
            },
            "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
          },
        ],
        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
        "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
      },
      "name": "A 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.
      "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
        { # Audience Segment Group.
          "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
          "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
          "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
            { # Audience Segment.
              "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
              "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive.
              "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
            },
          ],
        },
      ],
      "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
        { # Creative optimization settings.
          "optimizationModel": "A String", # Optimization model for this configuration.
          "optimizationActivitys": [ # List of optimization activities associated with this configuration.
            { # Creative optimization activity.
              "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
                "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
                "value": "A String", # The value of the dimension.
                "etag": "A String", # The eTag of this response for caching purposes.
                "dimensionName": "A String", # The name of the dimension.
                "id": "A String", # The ID associated with the value if available.
                "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
              },
              "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
              "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
            },
          ],
          "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
          "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
        },
      ],
    }
insert(profileId, body=None, x__xgafv=None)
Inserts a new campaign.

Args:
  profileId: string, User profile ID associated with this request. (required)
  body: object, The request body.
    The object takes the form of:

{ # Contains properties of a Campaign Manager campaign.
    "externalId": "A String", # External ID for this campaign.
    "traffickerEmails": [ # Campaign trafficker contact emails.
      "A String",
    ],
    "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
      { # Event tag override information.
        "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
        "enabled": True or False, # Whether this override is enabled.
      },
    ],
    "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
    "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
    "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
    "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
    },
    "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
    "endDate": "A String",
    "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. # Click-through event tag ID override properties for this campaign.
      "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
      "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
    },
    "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign.
      "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings.
      "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used.
      "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured.
      "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true.
    },
    "billingInvoiceCode": "A String", # Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign.
    "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
      "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
      "value": "A String", # The value of the dimension.
      "etag": "A String", # The eTag of this response for caching purposes.
      "dimensionName": "A String", # The name of the dimension.
      "id": "A String", # The ID associated with the value if available.
      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
    },
    "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
    },
    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
      "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
      "value": "A String", # The value of the dimension.
      "etag": "A String", # The eTag of this response for caching purposes.
      "dimensionName": "A String", # The name of the dimension.
      "id": "A String", # The ID associated with the value if available.
      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
    },
    "startDate": "A String",
    "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
    "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
    "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
    "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
      "A String",
    ],
    "archived": True or False, # Whether this campaign has been archived.
    "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
      "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
      "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
    },
    "defaultLandingPageId": "A String", # The default landing page ID for this campaign.
    "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
    "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
      "optimizationModel": "A String", # Optimization model for this configuration.
      "optimizationActivitys": [ # List of optimization activities associated with this configuration.
        { # Creative optimization activity.
          "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
            "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
            "value": "A String", # The value of the dimension.
            "etag": "A String", # The eTag of this response for caching purposes.
            "dimensionName": "A String", # The name of the dimension.
            "id": "A String", # The ID associated with the value if available.
            "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
          },
          "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
          "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
        },
      ],
      "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
      "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
    },
    "name": "A 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.
    "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
      { # Audience Segment Group.
        "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
        "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
        "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
          { # Audience Segment.
            "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
            "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive.
            "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
          },
        ],
      },
    ],
    "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
      { # Creative optimization settings.
        "optimizationModel": "A String", # Optimization model for this configuration.
        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
          { # Creative optimization activity.
            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
              "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
              "value": "A String", # The value of the dimension.
              "etag": "A String", # The eTag of this response for caching purposes.
              "dimensionName": "A String", # The name of the dimension.
              "id": "A String", # The ID associated with the value if available.
              "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
            },
            "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
          },
        ],
        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
        "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
      },
    ],
  }

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Contains properties of a Campaign Manager campaign.
      "externalId": "A String", # External ID for this campaign.
      "traffickerEmails": [ # Campaign trafficker contact emails.
        "A String",
      ],
      "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
        { # Event tag override information.
          "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
          "enabled": True or False, # Whether this override is enabled.
        },
      ],
      "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
      "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
      "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
      },
      "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
      "endDate": "A String",
      "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. # Click-through event tag ID override properties for this campaign.
        "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
        "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
      },
      "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign.
        "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings.
        "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used.
        "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured.
        "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true.
      },
      "billingInvoiceCode": "A String", # Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign.
      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
        "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
        "value": "A String", # The value of the dimension.
        "etag": "A String", # The eTag of this response for caching purposes.
        "dimensionName": "A String", # The name of the dimension.
        "id": "A String", # The ID associated with the value if available.
        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
      },
      "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
      },
      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
        "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
        "value": "A String", # The value of the dimension.
        "etag": "A String", # The eTag of this response for caching purposes.
        "dimensionName": "A String", # The name of the dimension.
        "id": "A String", # The ID associated with the value if available.
        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
      },
      "startDate": "A String",
      "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
      "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
      "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
      "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
        "A String",
      ],
      "archived": True or False, # Whether this campaign has been archived.
      "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
        "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
        "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
      },
      "defaultLandingPageId": "A String", # The default landing page ID for this campaign.
      "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
      "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
        "optimizationModel": "A String", # Optimization model for this configuration.
        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
          { # Creative optimization activity.
            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
              "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
              "value": "A String", # The value of the dimension.
              "etag": "A String", # The eTag of this response for caching purposes.
              "dimensionName": "A String", # The name of the dimension.
              "id": "A String", # The ID associated with the value if available.
              "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
            },
            "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
          },
        ],
        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
        "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
      },
      "name": "A 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.
      "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
        { # Audience Segment Group.
          "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
          "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
          "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
            { # Audience Segment.
              "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
              "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive.
              "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
            },
          ],
        },
      ],
      "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
        { # Creative optimization settings.
          "optimizationModel": "A String", # Optimization model for this configuration.
          "optimizationActivitys": [ # List of optimization activities associated with this configuration.
            { # Creative optimization activity.
              "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
                "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
                "value": "A String", # The value of the dimension.
                "etag": "A String", # The eTag of this response for caching purposes.
                "dimensionName": "A String", # The name of the dimension.
                "id": "A String", # The ID associated with the value if available.
                "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
              },
              "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
              "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
            },
          ],
          "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
          "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
        },
      ],
    }
list(profileId, sortField=None, advertiserIds=None, atLeastOneOptimizationActivity=None, ids=None, excludedIds=None, sortOrder=None, pageToken=None, overriddenEventTagId=None, maxResults=None, subaccountId=None, searchString=None, archived=None, advertiserGroupIds=None, x__xgafv=None)
Retrieves a list of campaigns, possibly filtered. This method supports paging.

Args:
  profileId: string, User profile ID associated with this request. (required)
  sortField: string, Field by which to sort the list.
    Allowed values
      ID - 
      NAME - 
  advertiserIds: string, Select only campaigns that belong to these advertisers. (repeated)
  atLeastOneOptimizationActivity: boolean, Select only campaigns that have at least one optimization activity.
  ids: string, Select only campaigns with these IDs. (repeated)
  excludedIds: string, Exclude campaigns with these IDs. (repeated)
  sortOrder: string, Order of sorted results.
    Allowed values
      ASCENDING - 
      DESCENDING - 
  pageToken: string, Value of the nextPageToken from the previous result page.
  overriddenEventTagId: string, Select only campaigns that have overridden this event tag ID.
  maxResults: integer, Maximum number of results to return.
  subaccountId: string, Select only campaigns that belong to this subaccount.
  searchString: string, Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns with names like "campaign June 2015", "campaign April 2015", or simply "campaign 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "campaign" will match campaigns with name "my campaign", "campaign 2015", or simply "campaign".
  archived: boolean, Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.
  advertiserGroupIds: string, Select only campaigns whose advertisers belong to these advertiser groups. (repeated)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Campaign List Response
    "nextPageToken": "A String", # Pagination token to be used for the next list operation.
    "campaigns": [ # Campaign collection.
      { # Contains properties of a Campaign Manager campaign.
          "externalId": "A String", # External ID for this campaign.
          "traffickerEmails": [ # Campaign trafficker contact emails.
            "A String",
          ],
          "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
            { # Event tag override information.
              "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
              "enabled": True or False, # Whether this override is enabled.
            },
          ],
          "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
          "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
          "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
          "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
            "time": "A String", # Timestamp of the last change in milliseconds since epoch.
          },
          "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
          "endDate": "A String",
          "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. # Click-through event tag ID override properties for this campaign.
            "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
            "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
          },
          "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign.
            "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings.
            "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used.
            "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured.
            "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true.
          },
          "billingInvoiceCode": "A String", # Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign.
          "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
            "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
            "value": "A String", # The value of the dimension.
            "etag": "A String", # The eTag of this response for caching purposes.
            "dimensionName": "A String", # The name of the dimension.
            "id": "A String", # The ID associated with the value if available.
            "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
          },
          "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
            "time": "A String", # Timestamp of the last change in milliseconds since epoch.
          },
          "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
            "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
            "value": "A String", # The value of the dimension.
            "etag": "A String", # The eTag of this response for caching purposes.
            "dimensionName": "A String", # The name of the dimension.
            "id": "A String", # The ID associated with the value if available.
            "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
          },
          "startDate": "A String",
          "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
          "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
          "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
          "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
            "A String",
          ],
          "archived": True or False, # Whether this campaign has been archived.
          "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
            "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
            "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
          },
          "defaultLandingPageId": "A String", # The default landing page ID for this campaign.
          "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
          "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
            "optimizationModel": "A String", # Optimization model for this configuration.
            "optimizationActivitys": [ # List of optimization activities associated with this configuration.
              { # Creative optimization activity.
                "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
                  "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
                  "value": "A String", # The value of the dimension.
                  "etag": "A String", # The eTag of this response for caching purposes.
                  "dimensionName": "A String", # The name of the dimension.
                  "id": "A String", # The ID associated with the value if available.
                  "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
                },
                "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
                "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
              },
            ],
            "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
            "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
          },
          "name": "A 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.
          "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
            { # Audience Segment Group.
              "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
              "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
              "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
                { # Audience Segment.
                  "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
                  "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive.
                  "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
                },
              ],
            },
          ],
          "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
            { # Creative optimization settings.
              "optimizationModel": "A String", # Optimization model for this configuration.
              "optimizationActivitys": [ # List of optimization activities associated with this configuration.
                { # Creative optimization activity.
                  "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
                    "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
                    "value": "A String", # The value of the dimension.
                    "etag": "A String", # The eTag of this response for caching purposes.
                    "dimensionName": "A String", # The name of the dimension.
                    "id": "A String", # The ID associated with the value if available.
                    "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
                  },
                  "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
                  "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
                },
              ],
              "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
              "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
            },
          ],
        },
    ],
    "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaignsListResponse".
  }
list_next(previous_request, previous_response)
Retrieves the next page of results.

Args:
  previous_request: The request for the previous page. (required)
  previous_response: The response from the request for the previous page. (required)

Returns:
  A request object that you can call 'execute()' on to request the next
  page. Returns None if there are no more items in the collection.
    
patch(profileId, id, body=None, x__xgafv=None)
Updates an existing campaign. This method supports patch semantics.

Args:
  profileId: string, User profile ID associated with this request. (required)
  id: string, Campaign ID. (required)
  body: object, The request body.
    The object takes the form of:

{ # Contains properties of a Campaign Manager campaign.
    "externalId": "A String", # External ID for this campaign.
    "traffickerEmails": [ # Campaign trafficker contact emails.
      "A String",
    ],
    "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
      { # Event tag override information.
        "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
        "enabled": True or False, # Whether this override is enabled.
      },
    ],
    "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
    "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
    "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
    "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
    },
    "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
    "endDate": "A String",
    "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. # Click-through event tag ID override properties for this campaign.
      "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
      "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
    },
    "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign.
      "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings.
      "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used.
      "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured.
      "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true.
    },
    "billingInvoiceCode": "A String", # Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign.
    "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
      "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
      "value": "A String", # The value of the dimension.
      "etag": "A String", # The eTag of this response for caching purposes.
      "dimensionName": "A String", # The name of the dimension.
      "id": "A String", # The ID associated with the value if available.
      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
    },
    "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
    },
    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
      "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
      "value": "A String", # The value of the dimension.
      "etag": "A String", # The eTag of this response for caching purposes.
      "dimensionName": "A String", # The name of the dimension.
      "id": "A String", # The ID associated with the value if available.
      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
    },
    "startDate": "A String",
    "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
    "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
    "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
    "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
      "A String",
    ],
    "archived": True or False, # Whether this campaign has been archived.
    "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
      "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
      "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
    },
    "defaultLandingPageId": "A String", # The default landing page ID for this campaign.
    "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
    "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
      "optimizationModel": "A String", # Optimization model for this configuration.
      "optimizationActivitys": [ # List of optimization activities associated with this configuration.
        { # Creative optimization activity.
          "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
            "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
            "value": "A String", # The value of the dimension.
            "etag": "A String", # The eTag of this response for caching purposes.
            "dimensionName": "A String", # The name of the dimension.
            "id": "A String", # The ID associated with the value if available.
            "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
          },
          "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
          "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
        },
      ],
      "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
      "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
    },
    "name": "A 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.
    "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
      { # Audience Segment Group.
        "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
        "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
        "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
          { # Audience Segment.
            "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
            "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive.
            "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
          },
        ],
      },
    ],
    "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
      { # Creative optimization settings.
        "optimizationModel": "A String", # Optimization model for this configuration.
        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
          { # Creative optimization activity.
            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
              "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
              "value": "A String", # The value of the dimension.
              "etag": "A String", # The eTag of this response for caching purposes.
              "dimensionName": "A String", # The name of the dimension.
              "id": "A String", # The ID associated with the value if available.
              "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
            },
            "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
          },
        ],
        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
        "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
      },
    ],
  }

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Contains properties of a Campaign Manager campaign.
      "externalId": "A String", # External ID for this campaign.
      "traffickerEmails": [ # Campaign trafficker contact emails.
        "A String",
      ],
      "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
        { # Event tag override information.
          "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
          "enabled": True or False, # Whether this override is enabled.
        },
      ],
      "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
      "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
      "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
      },
      "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
      "endDate": "A String",
      "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. # Click-through event tag ID override properties for this campaign.
        "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
        "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
      },
      "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign.
        "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings.
        "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used.
        "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured.
        "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true.
      },
      "billingInvoiceCode": "A String", # Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign.
      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
        "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
        "value": "A String", # The value of the dimension.
        "etag": "A String", # The eTag of this response for caching purposes.
        "dimensionName": "A String", # The name of the dimension.
        "id": "A String", # The ID associated with the value if available.
        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
      },
      "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
      },
      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
        "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
        "value": "A String", # The value of the dimension.
        "etag": "A String", # The eTag of this response for caching purposes.
        "dimensionName": "A String", # The name of the dimension.
        "id": "A String", # The ID associated with the value if available.
        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
      },
      "startDate": "A String",
      "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
      "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
      "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
      "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
        "A String",
      ],
      "archived": True or False, # Whether this campaign has been archived.
      "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
        "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
        "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
      },
      "defaultLandingPageId": "A String", # The default landing page ID for this campaign.
      "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
      "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
        "optimizationModel": "A String", # Optimization model for this configuration.
        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
          { # Creative optimization activity.
            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
              "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
              "value": "A String", # The value of the dimension.
              "etag": "A String", # The eTag of this response for caching purposes.
              "dimensionName": "A String", # The name of the dimension.
              "id": "A String", # The ID associated with the value if available.
              "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
            },
            "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
          },
        ],
        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
        "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
      },
      "name": "A 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.
      "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
        { # Audience Segment Group.
          "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
          "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
          "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
            { # Audience Segment.
              "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
              "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive.
              "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
            },
          ],
        },
      ],
      "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
        { # Creative optimization settings.
          "optimizationModel": "A String", # Optimization model for this configuration.
          "optimizationActivitys": [ # List of optimization activities associated with this configuration.
            { # Creative optimization activity.
              "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
                "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
                "value": "A String", # The value of the dimension.
                "etag": "A String", # The eTag of this response for caching purposes.
                "dimensionName": "A String", # The name of the dimension.
                "id": "A String", # The ID associated with the value if available.
                "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
              },
              "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
              "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
            },
          ],
          "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
          "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
        },
      ],
    }
update(profileId, body=None, x__xgafv=None)
Updates an existing campaign.

Args:
  profileId: string, User profile ID associated with this request. (required)
  body: object, The request body.
    The object takes the form of:

{ # Contains properties of a Campaign Manager campaign.
    "externalId": "A String", # External ID for this campaign.
    "traffickerEmails": [ # Campaign trafficker contact emails.
      "A String",
    ],
    "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
      { # Event tag override information.
        "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
        "enabled": True or False, # Whether this override is enabled.
      },
    ],
    "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
    "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
    "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
    "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
    },
    "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
    "endDate": "A String",
    "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. # Click-through event tag ID override properties for this campaign.
      "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
      "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
    },
    "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign.
      "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings.
      "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used.
      "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured.
      "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true.
    },
    "billingInvoiceCode": "A String", # Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign.
    "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
      "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
      "value": "A String", # The value of the dimension.
      "etag": "A String", # The eTag of this response for caching purposes.
      "dimensionName": "A String", # The name of the dimension.
      "id": "A String", # The ID associated with the value if available.
      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
    },
    "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
    },
    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
      "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
      "value": "A String", # The value of the dimension.
      "etag": "A String", # The eTag of this response for caching purposes.
      "dimensionName": "A String", # The name of the dimension.
      "id": "A String", # The ID associated with the value if available.
      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
    },
    "startDate": "A String",
    "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
    "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
    "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
    "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
      "A String",
    ],
    "archived": True or False, # Whether this campaign has been archived.
    "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
      "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
      "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
    },
    "defaultLandingPageId": "A String", # The default landing page ID for this campaign.
    "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
    "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
      "optimizationModel": "A String", # Optimization model for this configuration.
      "optimizationActivitys": [ # List of optimization activities associated with this configuration.
        { # Creative optimization activity.
          "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
            "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
            "value": "A String", # The value of the dimension.
            "etag": "A String", # The eTag of this response for caching purposes.
            "dimensionName": "A String", # The name of the dimension.
            "id": "A String", # The ID associated with the value if available.
            "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
          },
          "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
          "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
        },
      ],
      "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
      "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
    },
    "name": "A 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.
    "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
      { # Audience Segment Group.
        "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
        "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
        "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
          { # Audience Segment.
            "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
            "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive.
            "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
          },
        ],
      },
    ],
    "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
      { # Creative optimization settings.
        "optimizationModel": "A String", # Optimization model for this configuration.
        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
          { # Creative optimization activity.
            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
              "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
              "value": "A String", # The value of the dimension.
              "etag": "A String", # The eTag of this response for caching purposes.
              "dimensionName": "A String", # The name of the dimension.
              "id": "A String", # The ID associated with the value if available.
              "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
            },
            "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
          },
        ],
        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
        "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
      },
    ],
  }

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Contains properties of a Campaign Manager campaign.
      "externalId": "A String", # External ID for this campaign.
      "traffickerEmails": [ # Campaign trafficker contact emails.
        "A String",
      ],
      "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
        { # Event tag override information.
          "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
          "enabled": True or False, # Whether this override is enabled.
        },
      ],
      "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
      "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
      "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
      },
      "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
      "endDate": "A String",
      "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. # Click-through event tag ID override properties for this campaign.
        "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
        "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
      },
      "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign.
        "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings.
        "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used.
        "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured.
        "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true.
      },
      "billingInvoiceCode": "A String", # Billing invoice code included in the Campaign Manager client billing invoices associated with the campaign.
      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
        "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
        "value": "A String", # The value of the dimension.
        "etag": "A String", # The eTag of this response for caching purposes.
        "dimensionName": "A String", # The name of the dimension.
        "id": "A String", # The ID associated with the value if available.
        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
      },
      "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
      },
      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
        "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
        "value": "A String", # The value of the dimension.
        "etag": "A String", # The eTag of this response for caching purposes.
        "dimensionName": "A String", # The name of the dimension.
        "id": "A String", # The ID associated with the value if available.
        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
      },
      "startDate": "A String",
      "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
      "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
      "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
      "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
        "A String",
      ],
      "archived": True or False, # Whether this campaign has been archived.
      "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
        "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
        "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
      },
      "defaultLandingPageId": "A String", # The default landing page ID for this campaign.
      "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
      "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
        "optimizationModel": "A String", # Optimization model for this configuration.
        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
          { # Creative optimization activity.
            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
              "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
              "value": "A String", # The value of the dimension.
              "etag": "A String", # The eTag of this response for caching purposes.
              "dimensionName": "A String", # The name of the dimension.
              "id": "A String", # The ID associated with the value if available.
              "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
            },
            "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
          },
        ],
        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
        "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
      },
      "name": "A 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.
      "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
        { # Audience Segment Group.
          "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
          "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
          "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
            { # Audience Segment.
              "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
              "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive.
              "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
            },
          ],
        },
      ],
      "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
        { # Creative optimization settings.
          "optimizationModel": "A String", # Optimization model for this configuration.
          "optimizationActivitys": [ # List of optimization activities associated with this configuration.
            { # Creative optimization activity.
              "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
                "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue.
                "value": "A String", # The value of the dimension.
                "etag": "A String", # The eTag of this response for caching purposes.
                "dimensionName": "A String", # The name of the dimension.
                "id": "A String", # The ID associated with the value if available.
                "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
              },
              "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1.
              "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
            },
          ],
          "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
          "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns.
        },
      ],
    }