Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates an AdSenseLink.
Deletes an AdSenseLink.
Looks up a single AdSenseLink.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists AdSenseLinks on a property.
Retrieves the next page of results.
close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates an AdSenseLink.
Args:
parent: string, Required. The property for which to create an AdSense Link. Format: properties/{propertyId} Example: properties/1234 (required)
body: object, The request body.
The object takes the form of:
{ # A link between a GA4 Property and an AdSense for Content ad client.
"adClientCode": "A String", # Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890"
"name": "A String", # Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A link between a GA4 Property and an AdSense for Content ad client.
"adClientCode": "A String", # Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890"
"name": "A String", # Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
}
delete(name, x__xgafv=None)
Deletes an AdSenseLink.
Args:
name: string, Required. Unique identifier for the AdSense Link to be deleted. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 (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); }
}
get(name, x__xgafv=None)
Looks up a single AdSenseLink.
Args:
name: string, Required. Unique identifier for the AdSense Link requested. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A link between a GA4 Property and an AdSense for Content ad client.
"adClientCode": "A String", # Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890"
"name": "A String", # Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists AdSenseLinks on a property.
Args:
parent: string, Required. Resource name of the parent property. Format: properties/{propertyId} Example: properties/1234 (required)
pageSize: integer, The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
pageToken: string, A page token received from a previous `ListAdSenseLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAdSenseLinks` 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 ListAdSenseLinks method.
"adsenseLinks": [ # List of AdSenseLinks.
{ # A link between a GA4 Property and an AdSense for Content ad client.
"adClientCode": "A String", # Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890"
"name": "A String", # Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
},
],
"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.