Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates the link between the Analytics account and the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account to create the link. If the account is already linked to an organization, user needs to unlink the account from the current organization, then try link again.
Deletes the AnalyticsAccountLink, which detaches the Analytics account from the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account in order to delete the link.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists the Google Analytics accounts link to the specified Google Marketing Platform organization.
Retrieves the next page of results.
setPropertyServiceLevel(analyticsAccountLink, body=None, x__xgafv=None)
Updates the service level for an Analytics property.
close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates the link between the Analytics account and the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account to create the link. If the account is already linked to an organization, user needs to unlink the account from the current organization, then try link again. Args: parent: string, Required. The parent resource where this Analytics account link will be created. Format: organizations/{org_id} (required) body: object, The request body. The object takes the form of: { # A resource message representing the link between a Google Analytics account and a Google Marketing Platform organization. "analyticsAccount": "A String", # Required. Immutable. The resource name of the AnalyticsAdmin API account. The account ID will be used as the ID of this AnalyticsAccountLink resource, which will become the final component of the resource name. Format: analyticsadmin.googleapis.com/accounts/{account_id} "displayName": "A String", # Output only. The human-readable name for the Analytics account. "linkVerificationState": "A String", # Output only. The verification state of the link between the Analytics account and the parent organization. "name": "A String", # Identifier. Resource name of this AnalyticsAccountLink. Note the resource ID is the same as the ID of the Analtyics account. Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} Example: "organizations/xyz/analyticsAccountLinks/1234" } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A resource message representing the link between a Google Analytics account and a Google Marketing Platform organization. "analyticsAccount": "A String", # Required. Immutable. The resource name of the AnalyticsAdmin API account. The account ID will be used as the ID of this AnalyticsAccountLink resource, which will become the final component of the resource name. Format: analyticsadmin.googleapis.com/accounts/{account_id} "displayName": "A String", # Output only. The human-readable name for the Analytics account. "linkVerificationState": "A String", # Output only. The verification state of the link between the Analytics account and the parent organization. "name": "A String", # Identifier. Resource name of this AnalyticsAccountLink. Note the resource ID is the same as the ID of the Analtyics account. Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} Example: "organizations/xyz/analyticsAccountLinks/1234" }
delete(name, x__xgafv=None)
Deletes the AnalyticsAccountLink, which detaches the Analytics account from the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account in order to delete the link. Args: name: string, Required. The name of the Analytics account link to delete. Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } }
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists the Google Analytics accounts link to the specified Google Marketing Platform organization. Args: parent: string, Required. The parent organization, which owns this collection of Analytics account links. Format: organizations/{org_id} (required) pageSize: integer, Optional. The maximum number of Analytics account links to return in one call. The service may return fewer than this value. If unspecified, at most 50 Analytics account links will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. pageToken: string, Optional. A page token, received from a previous ListAnalyticsAccountLinks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAnalyticsAccountLinks` must match the call that provided the page token. 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 ListAnalyticsAccountLinks RPC. "analyticsAccountLinks": [ # Analytics account links in this organization. { # A resource message representing the link between a Google Analytics account and a Google Marketing Platform organization. "analyticsAccount": "A String", # Required. Immutable. The resource name of the AnalyticsAdmin API account. The account ID will be used as the ID of this AnalyticsAccountLink resource, which will become the final component of the resource name. Format: analyticsadmin.googleapis.com/accounts/{account_id} "displayName": "A String", # Output only. The human-readable name for the Analytics account. "linkVerificationState": "A String", # Output only. The verification state of the link between the Analytics account and the parent organization. "name": "A String", # Identifier. Resource name of this AnalyticsAccountLink. Note the resource ID is the same as the ID of the Analtyics account. Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} Example: "organizations/xyz/analyticsAccountLinks/1234" }, ], "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. }
list_next()
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.
setPropertyServiceLevel(analyticsAccountLink, body=None, x__xgafv=None)
Updates the service level for an Analytics property. Args: analyticsAccountLink: string, Required. The parent AnalyticsAccountLink scope where this property is in. Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} (required) body: object, The request body. The object takes the form of: { # Request message for SetPropertyServiceLevel RPC. "analyticsProperty": "A String", # Required. The Analytics property to change the ServiceLevel setting. This field is the name of the Google Analytics Admin API property resource. Format: analyticsadmin.googleapis.com/properties/{property_id} "serviceLevel": "A String", # Required. The service level to set for this property. } 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 SetPropertyServiceLevel RPC. }