Reference documentation and code samples for the Google Analytics Admin V1alpha Client class AdSenseLink.
A link between a Google Analytics property and an AdSense for Content ad client.
Generated from protobuf message google.analytics.admin.v1alpha.AdSenseLink
Namespace
Google \ Analytics \ Admin \ V1alphaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789 |
↳ ad_client_code |
string
Immutable. The AdSense ad client code that the Google Analytics property is linked to. Example format: "ca-pub-1234567890" |
getName
Output only. The resource name for this AdSense Link resource.
Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Output only. The resource name for this AdSense Link resource.
Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAdClientCode
Immutable. The AdSense ad client code that the Google Analytics property is linked to. Example format: "ca-pub-1234567890"
| Returns | |
|---|---|
| Type | Description |
string |
|
setAdClientCode
Immutable. The AdSense ad client code that the Google Analytics property is linked to. Example format: "ca-pub-1234567890"
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|