Reference documentation and code samples for the Google Ads Ad Manager V1 Client class Site.
A Site represents a domain owned or represented by a network. For a parent network managing other networks as part of Multiple Customer Management "Manage Inventory" model, it could be the child's domain.
Generated from protobuf message google.ads.admanager.v1.Site
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. The resource name of the |
↳ url |
string
Required. The URL of the Site. |
↳ child_network_code |
string
Optional. The network code of the child if the Site is being managed for an MCM child network, or null if owned by this network. |
↳ approval_status |
int
Output only. Status of the review performed on the Site by Google. |
↳ approval_status_update_time |
Google\Protobuf\Timestamp
Output only. The latest Site approval status change time. |
↳ disapproval_reasons |
array<DisapprovalReason>
Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved. |
getName
Identifier. The resource name of the Site.
Format: networks/{network_code}/sites/{site_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Identifier. The resource name of the Site.
Format: networks/{network_code}/sites/{site_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUrl
Required. The URL of the Site.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasUrl
clearUrl
setUrl
Required. The URL of the Site.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getChildNetworkCode
Optional. The network code of the child if the Site is being managed for an MCM child network, or null if owned by this network.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasChildNetworkCode
clearChildNetworkCode
setChildNetworkCode
Optional. The network code of the child if the Site is being managed for an MCM child network, or null if owned by this network.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getApprovalStatus
Output only. Status of the review performed on the Site by Google.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasApprovalStatus
clearApprovalStatus
setApprovalStatus
Output only. Status of the review performed on the Site by Google.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getApprovalStatusUpdateTime
Output only. The latest Site approval status change time.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasApprovalStatusUpdateTime
clearApprovalStatusUpdateTime
setApprovalStatusUpdateTime
Output only. The latest Site approval status change time.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisapprovalReasons
Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setDisapprovalReasons
Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.
| Parameter | |
|---|---|
| Name | Description |
var |
array<DisapprovalReason>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|