Search Ads 360 Reporting API . audienceInsights

Instance Methods

close()

Close httplib2 connections.

listInsightsEligibleDates(body=None, x__xgafv=None)

Lists date ranges for which audience insights data can be requested. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [FieldError]() [HeaderError]() [InternalError]() [QuotaError]() [RangeError]() [RequestError]()

Method Details

close()
Close httplib2 connections.
listInsightsEligibleDates(body=None, x__xgafv=None)
Lists date ranges for which audience insights data can be requested. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [FieldError]() [HeaderError]() [InternalError]() [QuotaError]() [RangeError]() [RequestError]()

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for AudienceInsightsService.ListInsightsEligibleDates.
  "insightsApplicationInfo": { # Additional information about the application/tool issuing the request. This field is only used by ContentCreatorInsightsService, AudienceInsightsService, and ReachPlanService APIs. # Optional. Additional information on the application issuing the request.
    "applicationId": "A String", # The unique identifier of the agency proprietary application. This identifier is generated by Google. Reach out to your Google representative to request an application_id for each new application being integrated.
    "applicationInstance": "A String", # The instance type of the application sending the request.
  },
}

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

Returns:
  An object of the form:

    { # Response message for AudienceInsightsService.ListInsightsEligibleDates.
  "dataMonths": [ # The months for which AudienceInsights data is currently available, each represented as a string in the form "YYYY-MM".
    "A String",
  ],
  "lastThirtyDays": { # A date range. # The actual dates covered by the "last 30 days" date range that will be used implicitly for AudienceInsightsService.GenerateAudienceCompositionInsights requests that have no data_month set.
    "endDate": "A String", # The end date, in yyyy-mm-dd format. This date is inclusive.
    "startDate": "A String", # The start date, in yyyy-mm-dd format. This date is inclusive.
  },
}