Creates a report.

Scopes

You will need authorization for the https://www.googleapis.com/auth/dfareporting scope to make a valid call.

If unset, the scope for this method defaults to https://www.googleapis.com/auth/dfareporting. You can set the scope for this method like this: dfareporting3d4 --scope <scope> reports insert ...

Required Scalar Argument

  • <profile-id> (string)
    • The Campaign Manager 360 user profile ID.

Required Request Value

The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.

For example, a structure like this:

Report:
  account-id: string
  criteria:
    activities:
      kind: string
      metric-names: [string]
    custom-rich-media-events:
      kind: string
    date-range:
      end-date: string
      kind: string
      relative-date-range: string
      start-date: string
    metric-names: [string]
  cross-dimension-reach-criteria:
    date-range:
      end-date: string
      kind: string
      relative-date-range: string
      start-date: string
    dimension: string
    metric-names: [string]
    overlap-metric-names: [string]
    pivoted: boolean
  delivery:
    email-owner: boolean
    email-owner-delivery-type: string
    message: string
  etag: string
  file-name: string
  floodlight-criteria:
    date-range:
      end-date: string
      kind: string
      relative-date-range: string
      start-date: string
    floodlight-config-id:
      dimension-name: string
      etag: string
      id: string
      kind: string
      match-type: string
      value: string
    metric-names: [string]
    report-properties:
      include-attributed-ip-conversions: boolean
      include-unattributed-cookie-conversions: boolean
      include-unattributed-ip-conversions: boolean
  format: string
  id: string
  kind: string
  last-modified-time: string
  name: string
  owner-profile-id: string
  path-attribution-criteria:
    custom-channel-grouping:
      fallback-name: string
      kind: string
      name: string
    date-range:
      end-date: string
      kind: string
      relative-date-range: string
      start-date: string
    floodlight-config-id:
      dimension-name: string
      etag: string
      id: string
      kind: string
      match-type: string
      value: string
    metric-names: [string]
  path-criteria:
    custom-channel-grouping:
      fallback-name: string
      kind: string
      name: string
    date-range:
      end-date: string
      kind: string
      relative-date-range: string
      start-date: string
    floodlight-config-id:
      dimension-name: string
      etag: string
      id: string
      kind: string
      match-type: string
      value: string
    metric-names: [string]
  path-to-conversion-criteria:
    date-range:
      end-date: string
      kind: string
      relative-date-range: string
      start-date: string
    floodlight-config-id:
      dimension-name: string
      etag: string
      id: string
      kind: string
      match-type: string
      value: string
    metric-names: [string]
    report-properties:
      clicks-lookback-window: integer
      impressions-lookback-window: integer
      include-attributed-ip-conversions: boolean
      include-unattributed-cookie-conversions: boolean
      include-unattributed-ip-conversions: boolean
      maximum-click-interactions: integer
      maximum-impression-interactions: integer
      maximum-interaction-gap: integer
      pivot-on-interaction-path: boolean
  reach-criteria:
    activities:
      kind: string
      metric-names: [string]
    custom-rich-media-events:
      kind: string
    date-range:
      end-date: string
      kind: string
      relative-date-range: string
      start-date: string
    enable-all-dimension-combinations: boolean
    metric-names: [string]
    reach-by-frequency-metric-names: [string]
  schedule:
    active: boolean
    every: integer
    expiration-date: string
    repeats: string
    repeats-on-week-days: [string]
    runs-on-day-of-month: string
    start-date: string
  sub-account-id: string
  type: string

can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.

  • -r . account-id=eos
    • The account ID to which this report belongs.
  • criteria.activities kind=sed
    • The kind of resource this is, in this case dfareporting#activities.
  • metric-names=dolor

    • List of names of floodlight activity metrics.
    • Each invocation of this argument appends the given value to the array.
  • ..custom-rich-media-events kind=labore

    • The kind of resource this is, in this case dfareporting#customRichMediaEvents.
  • ..date-range end-date=takimata

    • No description provided.
  • kind=dolores
    • The kind of resource this is, in this case dfareporting#dateRange.
  • relative-date-range=stet
    • The date range relative to the date of when the report is run.
  • start-date=aliquyam

    • No description provided.
  • .. metric-names=sea

    • The list of names of metrics the report should include.
    • Each invocation of this argument appends the given value to the array.
  • ..cross-dimension-reach-criteria.date-range end-date=no

    • No description provided.
  • kind=consetetur
    • The kind of resource this is, in this case dfareporting#dateRange.
  • relative-date-range=sit
    • The date range relative to the date of when the report is run.
  • start-date=magna

    • No description provided.
  • .. dimension=at

    • The dimension option.
  • metric-names=ut
    • The list of names of metrics the report should include.
    • Each invocation of this argument appends the given value to the array.
  • overlap-metric-names=accusam
    • The list of names of overlap metrics the report should include.
    • Each invocation of this argument appends the given value to the array.
  • pivoted=true

    • Whether the report is pivoted or not. Defaults to true.
  • ..delivery email-owner=false

    • Whether the report should be emailed to the report owner.
  • email-owner-delivery-type=amet
    • The type of delivery for the owner to receive, if enabled.
  • message=ipsum

    • The message to be sent with each email.
  • .. etag=diam

    • The eTag of this response for caching purposes.
  • file-name=magna
    • The filename used when generating report files for this report.
  • floodlight-criteria.date-range end-date=dolores
    • No description provided.
  • kind=est
    • The kind of resource this is, in this case dfareporting#dateRange.
  • relative-date-range=ut
    • The date range relative to the date of when the report is run.
  • start-date=justo

    • No description provided.
  • ..floodlight-config-id dimension-name=takimata

    • The name of the dimension.
  • etag=sanctus
    • The eTag of this response for caching purposes.
  • id=et
    • The ID associated with the value if available.
  • kind=stet
    • The kind of resource this is, in this case dfareporting#dimensionValue.
  • match-type=amet.
    • 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.
  • value=takimata

    • The value of the dimension.
  • .. metric-names=dolor

    • The list of names of metrics the report should include.
    • Each invocation of this argument appends the given value to the array.
  • report-properties include-attributed-ip-conversions=true
    • Include conversions that have no cookie, but do have an exposure path.
  • include-unattributed-cookie-conversions=true
    • Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
  • include-unattributed-ip-conversions=false

    • Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
  • ... format=sea

    • The output format of the report. If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
  • id=lorem
    • The unique ID identifying this report resource.
  • kind=sadipscing
    • The kind of resource this is, in this case dfareporting#report.
  • last-modified-time=eos
    • The timestamp (in milliseconds since epoch) of when this report was last modified.
  • name=et
    • The name of the report.
  • owner-profile-id=aliquyam
    • The user profile id of the owner of this report.
  • path-attribution-criteria.custom-channel-grouping fallback-name=dolores
    • ChannelGrouping fallback name.
  • kind=dolor
    • The kind of resource this is, in this case dfareporting#channelGrouping.
  • name=erat

    • ChannelGrouping name.
  • ..date-range end-date=sit

    • No description provided.
  • kind=clita
    • The kind of resource this is, in this case dfareporting#dateRange.
  • relative-date-range=et
    • The date range relative to the date of when the report is run.
  • start-date=no

    • No description provided.
  • ..floodlight-config-id dimension-name=aliquyam

    • The name of the dimension.
  • etag=ut
    • The eTag of this response for caching purposes.
  • id=no
    • The ID associated with the value if available.
  • kind=dolores
    • The kind of resource this is, in this case dfareporting#dimensionValue.
  • match-type=vero
    • 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.
  • value=justo

    • The value of the dimension.
  • .. metric-names=diam

    • The list of names of metrics the report should include.
    • Each invocation of this argument appends the given value to the array.
  • ..path-criteria.custom-channel-grouping fallback-name=voluptua.

    • ChannelGrouping fallback name.
  • kind=ut
    • The kind of resource this is, in this case dfareporting#channelGrouping.
  • name=ipsum

    • ChannelGrouping name.
  • ..date-range end-date=magna

    • No description provided.
  • kind=clita
    • The kind of resource this is, in this case dfareporting#dateRange.
  • relative-date-range=et
    • The date range relative to the date of when the report is run.
  • start-date=sadipscing

    • No description provided.
  • ..floodlight-config-id dimension-name=clita

    • The name of the dimension.
  • etag=est
    • The eTag of this response for caching purposes.
  • id=stet
    • The ID associated with the value if available.
  • kind=eos
    • The kind of resource this is, in this case dfareporting#dimensionValue.
  • match-type=dolore
    • 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.
  • value=dolores

    • The value of the dimension.
  • .. metric-names=sit

    • The list of names of metrics the report should include.
    • Each invocation of this argument appends the given value to the array.
  • ..path-to-conversion-criteria.date-range end-date=amet

    • No description provided.
  • kind=erat
    • The kind of resource this is, in this case dfareporting#dateRange.
  • relative-date-range=et
    • The date range relative to the date of when the report is run.
  • start-date=ipsum

    • No description provided.
  • ..floodlight-config-id dimension-name=tempor

    • The name of the dimension.
  • etag=accusam
    • The eTag of this response for caching purposes.
  • id=sadipscing
    • The ID associated with the value if available.
  • kind=lorem
    • The kind of resource this is, in this case dfareporting#dimensionValue.
  • match-type=dolores
    • 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.
  • value=magna

    • The value of the dimension.
  • .. metric-names=gubergren

    • The list of names of metrics the report should include.
    • Each invocation of this argument appends the given value to the array.
  • report-properties clicks-lookback-window=12
    • CM360 checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
  • impressions-lookback-window=0
    • CM360 checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
  • include-attributed-ip-conversions=true
    • Deprecated: has no effect.
  • include-unattributed-cookie-conversions=false
    • Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
  • include-unattributed-ip-conversions=false
    • Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
  • maximum-click-interactions=56
    • The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
  • maximum-impression-interactions=9
    • The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
  • maximum-interaction-gap=60
    • The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
  • pivot-on-interaction-path=true

    • Enable pivoting on interaction path.
  • ...reach-criteria.activities kind=clita

    • The kind of resource this is, in this case dfareporting#activities.
  • metric-names=dolor

    • List of names of floodlight activity metrics.
    • Each invocation of this argument appends the given value to the array.
  • ..custom-rich-media-events kind=est

    • The kind of resource this is, in this case dfareporting#customRichMediaEvents.
  • ..date-range end-date=sea

    • No description provided.
  • kind=diam
    • The kind of resource this is, in this case dfareporting#dateRange.
  • relative-date-range=elitr
    • The date range relative to the date of when the report is run.
  • start-date=lorem

    • No description provided.
  • .. enable-all-dimension-combinations=false

    • Whether to enable all reach dimension combinations in the report. Defaults to false. If enabled, the date range of the report should be within the last 42 days.
  • metric-names=nonumy
    • The list of names of metrics the report should include.
    • Each invocation of this argument appends the given value to the array.
  • reach-by-frequency-metric-names=labore

    • The list of names of Reach By Frequency metrics the report should include.
    • Each invocation of this argument appends the given value to the array.
  • ..schedule active=true

    • Whether the schedule is active or not. Must be set to either true or false.
  • every=53
    • Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
  • expiration-date=diam
    • No description provided.
  • repeats=sanctus
    • The interval for which the report is repeated. Note: - "DAILY" also requires field "every" to be set. - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be set. - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be set.
  • repeats-on-week-days=elitr
    • List of week days "WEEKLY" on which scheduled reports should run.
    • Each invocation of this argument appends the given value to the array.
  • runs-on-day-of-month=sit
    • Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
  • start-date=sea

    • No description provided.
  • .. sub-account-id=duo

    • The subaccount ID to which this report belongs if applicable.
  • type=et
    • The type of the report.

About Cursors

The cursor position is key to comfortably set complex nested structures. The following rules apply:

  • The cursor position is always set relative to the current one, unless the field name starts with the . character. Fields can be nested such as in -r f.s.o .
  • The cursor position is set relative to the top-level structure if it starts with ., e.g. -r .s.s
  • You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify -r struct.sub_struct=bar.
  • You can move the cursor one level up by using ... Each additional . moves it up one additional level. E.g. ... would go three levels up.

Optional Output Flags

The method's return value a JSON encoded structure, which will be written to standard output by default.

  • -o out
    • out specifies the destination to which to write the server's result to. It will be a JSON-encoded structure. The destination may be - to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.

Optional General Properties

The following properties can configure any call, and are not specific to this method.

  • -p $-xgafv=string

    • V1 error format.
  • -p access-token=string

    • OAuth access token.
  • -p alt=string

    • Data format for response.
  • -p callback=string

    • JSONP
  • -p fields=string

    • Selector specifying which fields to include in a partial response.
  • -p key=string

    • API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • -p oauth-token=string

    • OAuth 2.0 token for the current user.
  • -p pretty-print=boolean

    • Returns response with indentations and line breaks.
  • -p quota-user=string

    • Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  • -p upload-type=string

    • Legacy upload protocol for media (e.g. "media", "multipart").
  • -p upload-protocol=string

    • Upload protocol for media (e.g. "raw", "multipart").