Page Summary
-
The
AdGroupAdresource represents a single ad within an ad group and includes details such as name, advertiser ID, ad group ID, display name, entity status, and a list of URLs. -
The content describes various ad types including DisplayVideoSourceAd, MastheadAd, InStreamAd, NonSkippableAd, BumperAd, AudioAd, VideoDiscoveryAd, and VideoPerformanceAd, each with specific details and JSON representations.
-
Common attributes for some in-stream ad types are shared through the
CommonInStreamAttributeobject, including display URL, final URL, tracking URL, action button label, action headline, and video details. -
The
YoutubeVideoDetailsresource provides information about a YouTube video used in an ad, including its ID and reason for unavailability. -
The document also defines enums for
VideoUnavailableReason,VideoAspectRatio,Thumbnail, andAdUrlTypeto categorize specific aspects of video and ad URLs.
- Resource: AdGroupAd
- AdPolicy
- AdPolicyApprovalStatus
- AdPolicyReviewStatus
- AdPolicyTopicEntry
- AdPolicyTopicEntryType
- AdPolicyDecisionType
- AdPolicyEnforcementMeans
- AdPolicyTopicEvidence
- TextList
- WebsiteList
- DestinationTextList
- DestinationMismatch
- AdPolicyTopicEvidenceDestinationMismatchUrlType
- DestinationNotWorking
- AdPolicyTopicEvidenceDestinationNotWorkingDnsErrorType
- AdPolicyTopicEvidenceDestinationNotWorkingDeviceType
- Trademark
- AdPolicyCriterionRestriction
- LegalRemoval
- Dmca
- LocalLegal
- AdPolicyTopicEvidenceLegalRemovalComplaintType
- Counterfeit
- RegionalRequirements
- RegionalRequirementsEntry
- AdPolicyTopicConstraint
- AdPolicyCountryConstraintList
- AdPolicyResellerConstraint
- AdPolicyGlobalCertificateMissingConstraint
- AdPolicyGlobalCertificateDomainMismatchConstraint
- AdPolicyTopicAppealInfo
- AdPolicyAppealType
- DisplayVideoSourceAd
- MastheadAd
- YoutubeVideoDetails
- VideoUnavailableReason
- VideoAspectRatio
- InStreamAd
- CommonInStreamAttribute
- ImageAsset
- NonSkippableAd
- BumperAd
- AudioAd
- VideoDiscoveryAd
- Thumbnail
- VideoPerformanceAd
- DemandGenVideoAd
- CallToAction
- DemandGenImageAd
- DemandGenCarouselAd
- CarouselCard
- DemandGenProductAd
- AdUrl
- AdUrlType
- DcmTrackingInfo
- Methods
Resource: AdGroupAd
A single ad associated with an ad group.
| JSON representation |
|---|
{ "name" : string , "advertiserId" : string , "adGroupAdId" : string , "adGroupId" : string , "displayName" : string , "adPolicy" : { object ( |
name
string
Output only. The resource name of the ad.
advertiserId
string ( int64
format)
Output only. The unique ID of the advertiser the ad belongs to.
adGroupAdId
string ( int64
format)
Output only. The unique ID of the ad. Assigned by the system.
adGroupId
string ( int64
format)
Required. Immutable. The unique ID of the ad group that the ad belongs to.
displayName
string
Required. The display name of the ad.
Must be UTF-8 encoded with a maximum size of 255 bytes.
adPolicy
object (
AdPolicy
)
Output only. The policy approval status of the ad.
entityStatus
enum (
EntityStatus
)
Required. The entity status of the ad.
adUrls[]
object (
AdUrl
)
Output only. List of URLs used by the ad.
dcmTrackingInfo
object (
DcmTrackingInfo
)
Optional. The DCM tracking ad info. Only valid for Demand Gen ads.
To remove the DCM tracking ad info, please leave this field empty.
ad_details
. The details of the ad. ad_details
can be only one of the following:displayVideoSourceAd
object (
DisplayVideoSourceAd
)
Output only. Details of an ad sourced from a Display & Video 360 creative.
mastheadAd
object (
MastheadAd
)
Output only. Details of an ad served on the YouTube Home feed .
inStreamAd
object (
InStreamAd
)
Output only. Details of an in-stream ad skippable after 5 seconds , used for brand awareness or reach marketing objectives.
nonSkippableAd
object (
NonSkippableAd
)
Output only. Details of a non-skippable short in-stream video ad , between 6 and 15 seconds, used for reach marketing objectives.
bumperAd
object (
BumperAd
)
Output only. Details of a non-skippable short video ad , equal to or less than 6 seconds, used for reach.
videoDiscoverAd
object (
VideoDiscoveryAd
)
Output only. Details of an ad promoting a video that shows in places of discovery.
videoPerformanceAd
object (
VideoPerformanceAd
)
Output only. Details of an ad used in a video action campaign to drive actions to the business, service or product.
demandGenVideoAd
demandGenImageAd
demandGenCarouselAd
demandGenProductAd
AdPolicy
A single ad policy associated with an ad group ad.
| JSON representation |
|---|
{ "adPolicyApprovalStatus" : enum ( |
| Fields | |
|---|---|
adPolicyApprovalStatus
|
The policy approval status of an ad, indicating the approval decision. |
adPolicyReviewStatus
|
The policy review status of an ad, indicating where in the review process the ad is currently. |
adPolicyTopicEntry[]
|
The entries for each policy topic identified as relating to the ad. Each entry includes the topic, restriction level, and guidance on how to fix policy issues. |
AdPolicyApprovalStatus
Possible statuses of an ad policy approval.
| Enums | |
|---|---|
AD_POLICY_APPROVAL_STATUS_UNKNOWN
|
Unknown or not specified. |
DISAPPROVED
|
Will not serve. |
APPROVED_LIMITED
|
Will serve with restrictions. |
APPROVED
|
Will serve without restrictions. |
AREA_OF_INTEREST_ONLY
|
Will not serve in targeted countries, but may serve for users who are searching for information about the targeted countries. |
AdPolicyReviewStatus
Possible statuses of an ad policy review.
| Enums | |
|---|---|
AD_POLICY_REVIEW_STATUS_UNKNOWN
|
Unknown or not specified. |
REVIEW_IN_PROGRESS
|
Currently under review. |
REVIEWED
|
Primary review complete. Other reviews may still be in progress. |
UNDER_APPEAL
|
Resubmitted for approval or a policy decision has been appealed. |
ELIGIBLE_MAY_SERVE
|
Deemed eligible and may be serving. Further review could still follow. |
AdPolicyTopicEntry
An entry describing how an ad has been identified as relating to an ad policy.
| JSON representation |
|---|
{ "policyTopic" : string , "policyLabel" : string , "policyTopicDescription" : string , "policyTopicType" : enum ( |
| Fields | |
|---|---|
policyTopic
|
The policy topic. Examples include "TRADEMARKS", "ALCOHOL", etc. |
policyLabel
|
Localized label text for policy. Examples include "Trademarks in text", "Contains Alcohol", etc. |
policyTopicDescription
|
A short summary description of the policy topic. |
policyTopicType
|
How ad serving will be affected due to the relation to the ad policy topic. |
policyDecisionType
|
The source of the policy decision. |
policyEnforcementMeans
|
The policy enforcement means used in the policy review. |
policyTopicEvidences[]
|
The evidence used in the policy decision. |
policyTopicConstraints[]
|
The serving constraints relevant to the policy decision. |
helpCenterLink
|
Ad policy help center link for the policy topic. |
appealInfo
|
Information on how to appeal the policy decision. |
AdPolicyTopicEntryType
Possible serving impacts of an ad policy topic.
| Enums | |
|---|---|
AD_POLICY_TOPIC_ENTRY_TYPE_UNKNOWN
|
Unknown or not specified. |
PROHIBITED
|
The resource will not serve. |
FULLY_LIMITED
|
The resource will not serve in all targeted countries. |
LIMITED
|
The resource cannot serve in some countries. |
DESCRIPTIVE
|
The resource can serve. |
BROADENING
|
The resource can serve, and may serve beyond normal coverage. |
AREA_OF_INTEREST_ONLY
|
The resource is constrained for all targeted countries, but may serve for users who are searching for information about the targeted countries. |
AdPolicyDecisionType
Possible sources of a policy decision.
| Enums | |
|---|---|
AD_POLICY_DECISION_TYPE_UNKNOWN
|
Unknown or not specified. |
PURSUANT_TO_NOTICE
|
The decision is from a legal notice, court order, or trademark content owner complaint, etc. |
GOOGLE_INVESTIGATION
|
The decision is from a Google-owned investigation. |
AdPolicyEnforcementMeans
Possible policy enforcement means used in the policy review.
| Enums | |
|---|---|
AD_POLICY_ENFORCEMENT_MEANS_UNKNOWN
|
Unknown or not specified. |
AUTOMATED
|
The enforcement process was fully automated. |
HUMAN_REVIEW
|
A human was partially or fully involved in the decision enforcement process. |
AdPolicyTopicEvidence
Evidence information used in the policy decision.
| JSON representation |
|---|
{ // Union field |
value
. The evidence for the policy decision. value
can be only one of the following:textList
object (
TextList
)
List of evidence found in the text of the ad.
websiteList
object (
WebsiteList
)
List of websites linked with the ad.
httpCode
integer
HTTP code returned when the final URL was crawled.
languageCode
string
The language the ad was detected to be written in.
This field uses IETF language tags, such as "en-US".
destinationTextList
object (
DestinationTextList
)
The text in the destination of the ad that is causing a policy violation.
destinationMismatch
object (
DestinationMismatch
)
A mismatch between the ad destination URLs.
destinationNotWorking
object (
DestinationNotWorking
)
Information on HTTP or DNS errors related to the ad destination.
trademark
object (
Trademark
)
Trademark terms that caused a policy violation.
legalRemoval
object (
LegalRemoval
)
Legal related regulation enforcement that caused a policy violation.
counterfeit
object (
Counterfeit
)
Counterfeit enforcement that caused a policy violation.
regionalRequirements
object (
RegionalRequirements
)
T&S proactive enforcement that caused a policy violation.
TextList
A list of fragments of text that violated the policy.
| JSON representation |
|---|
{ "texts" : [ string ] } |
| Fields | |
|---|---|
texts[]
|
The fragments of text from the resource that caused the policy finding. |
WebsiteList
A list of websites that violated the policy.
| JSON representation |
|---|
{ "websites" : [ string ] } |
| Fields | |
|---|---|
websites[]
|
Websites that caused the policy finding. |
DestinationTextList
A list of destination text that violated the policy.
| JSON representation |
|---|
{ "destinationTexts" : [ string ] } |
| Fields | |
|---|---|
destinationTexts[]
|
Destination text that caused the policy finding. |
DestinationMismatch
Details on a mismatch between destination URL types.
| JSON representation |
|---|
{
"uriTypes"
:
[
enum (
|
| Fields | |
|---|---|
uriTypes[]
|
The set of URLs that do not match. The list can include single or multiple uri types. Example 1: [ Example 2: [ |
AdPolicyTopicEvidenceDestinationMismatchUrlType
Possible URL types.
| Enums | |
|---|---|
AD_POLICY_TOPIC_EVIDENCE_DESTINATION_MISMATCH_URL_TYPE_UNKNOWN
|
Not specified or unknown. |
DISPLAY_URL
|
The display URL. |
FINAL_URL
|
The final URL. |
FINAL_MOBILE_URL
|
The final mobile URL. |
TRACKING_URL
|
The tracking URL. |
MOBILE_TRACKING_URL
|
The mobile tracking URL. |
DestinationNotWorking
Details for on HTTP or DNS errors related to the ad destination.
| JSON representation |
|---|
{ "expandedUri" : string , "device" : enum ( |
device
enum (
AdPolicyTopicEvidenceDestinationNotWorkingDeviceType
)
The device where visiting the URL resulted in the error.
lastCheckedTime
string (
Timestamp
format)
The last time the error was seen when navigating to URL.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
reason
. The HTTP or DNS error. reason
can be only one of the following:dnsErrorType
enum (
AdPolicyTopicEvidenceDestinationNotWorkingDnsErrorType
)
The type of DNS error.
httpErrorCode
string ( int64
format)
The HTTP error code.
AdPolicyTopicEvidenceDestinationNotWorkingDnsErrorType
Possible DNS error types.
| Enums | |
|---|---|
AD_POLICY_TOPIC_EVIDENCE_DESTINATION_NOT_WORKING_DNS_ERROR_TYPE_UNKNOWN
|
Not specified or unknown. |
HOSTNAME_NOT_FOUND
|
Host name not found in DNS when fetching landing page. |
GOOGLE_CRAWLER_DNS_ISSUE
|
Google could not crawl the landing page when communicating with DNS. |
AdPolicyTopicEvidenceDestinationNotWorkingDeviceType
Possible devices that that saw an error when visiting the URL.
| Enums | |
|---|---|
AD_POLICY_TOPIC_EVIDENCE_DESTINATION_NOT_WORKING_DEVICE_TYPE_UNKNOWN
|
Not specified or unknown. |
DESKTOP
|
Desktop device. |
ANDROID
|
Android device. |
IOS
|
iOS device. |
Trademark
Trademark terms that caused a policy violation.
| JSON representation |
|---|
{
"owner"
:
string
,
"term"
:
string
,
"countryRestrictions"
:
[
{
object (
|
| Fields | |
|---|---|
owner
|
The trademark content owner. |
term
|
The trademark term. |
countryRestrictions[]
|
Countries where the policy violation is relevant. |
AdPolicyCriterionRestriction
Represents a country restriction.
| JSON representation |
|---|
{ "countryCriterionId" : string , "countryLabel" : string } |
| Fields | |
|---|---|
countryCriterionId
|
The country criterion id. |
countryLabel
|
Localized name for the country. May be empty. |
LegalRemoval
Legal related regulation enforcement, either from DMCA or local legal regulation.
| JSON representation |
|---|
{ "complaintType" : enum ( |
complaintType
enum (
AdPolicyTopicEvidenceLegalRemovalComplaintType
)
The type of complaint causing the legal removal.
countryRestrictions[]
object (
AdPolicyCriterionRestriction
)
The countries restricted due to the legal removal.
restrictedUris[]
string
The urls restricted due to the legal removal.
type
. Details on the type of legal removal. type
can be only one of the following:dmca
object (
Dmca
)
Details on the DMCA regulation legal removal.
localLegal
object (
LocalLegal
)
Details on the local legal regulation legal removal.
Dmca
DMCA complaint details.
| JSON representation |
|---|
{ "complainant" : string } |
| Fields | |
|---|---|
complainant
|
The entity who made the legal complaint. |
LocalLegal
Local legal regulation details.
| JSON representation |
|---|
{ "lawType" : string } |
| Fields | |
|---|---|
lawType
|
Type of law for the legal notice. |
AdPolicyTopicEvidenceLegalRemovalComplaintType
Possible complaint types for legal removal.
| Enums | |
|---|---|
AD_POLICY_TOPIC_EVIDENCE_LEGAL_REMOVAL_COMPLAINT_TYPE_UNKNOWN
|
Not specified or unknown. |
COPYRIGHT
|
Copyright. Only applies to DMCA. |
COURT_ORDER
|
Court order. Only applies to local legal. |
LOCAL_LEGAL
|
Local legal regulation. Only applies to local legal. |
Counterfeit
Details on the counterfeit enforcement that caused a policy violation.
| JSON representation |
|---|
{ "owners" : [ string ] } |
| Fields | |
|---|---|
owners[]
|
The content or product owners that made a complaint. |
RegionalRequirements
Trust & Safety (T&S) proactive enforcement for policies meant to address regional requirements. This is considered a Google-owned investigation instead of a regulation notice since it's proactive T&S enforcement.
| JSON representation |
|---|
{
"regionalRequirementsEntries"
:
[
{
object (
|
| Fields | |
|---|---|
regionalRequirementsEntries[]
|
List of regional requirements. |
RegionalRequirementsEntry
Policy level regional legal violation details.
| JSON representation |
|---|
{
"legalPolicy"
:
string
,
"countryRestrictions"
:
[
{
object (
|
| Fields | |
|---|---|
legalPolicy
|
The legal policy that is being violated. |
countryRestrictions[]
|
The countries restricted due to the legal policy. |
AdPolicyTopicConstraint
Details on ad serving constraints.
| JSON representation |
|---|
{ "requestCertificateFormLink" : string , // Union field |
requestCertificateFormLink
string
Link to the form to request a certificate for the constraint.
constraint
. The serving constraint. constraint
can be only one of the following:countryConstraint
object (
AdPolicyCountryConstraintList
)
Countries where the ad cannot serve.
resellerConstraint
object (
AdPolicyResellerConstraint
)
Reseller constraint.
certificateMissingCountryList
object (
AdPolicyCountryConstraintList
)
Countries where a certificate is required for serving.
certificateDomainMismatchCountryList
object (
AdPolicyCountryConstraintList
)
Countries where the resource's domain is not covered by the certificates associated with it.
globalCertificateMissing
object (
AdPolicyGlobalCertificateMissingConstraint
)
Certificate is required to serve in any country.
globalCertificateDomainMismatch
object (
AdPolicyGlobalCertificateDomainMismatchConstraint
)
Certificate is required to serve in any country and the existing certificate does not cover the ad's domain.
AdPolicyCountryConstraintList
A list of countries where the ad cannot serve due to policy constraints.
| JSON representation |
|---|
{
"countries"
:
[
{
object (
|
| Fields | |
|---|---|
countries[]
|
Countries where the ad cannot serve. |
AdPolicyResellerConstraint
This type has no fields.
Policy topic was constrained due to disapproval of the website for reseller purposes.
AdPolicyGlobalCertificateMissingConstraint
This type has no fields.
Certificate is required to serve in any country.
AdPolicyGlobalCertificateDomainMismatchConstraint
This type has no fields.
Certificate is required to serve in any country and the existing certificate does not cover the ad's domain.
AdPolicyTopicAppealInfo
Information on how to appeal a policy decision.
| JSON representation |
|---|
{
"appealType"
:
enum (
|
| Fields | |
|---|---|
appealType
|
Whether the decision can be appealed through a self-service appeal or an appeal form. |
appealFormLink
|
Only available when |
AdPolicyAppealType
Possible types of appeal.
| Enums | |
|---|---|
AD_POLICY_APPEAL_TYPE_UNKNOWN
|
Unknown or not specified. |
SELF_SERVICE_APPEAL
|
The decision can be appealed through a self-service appeal. |
APPEAL_FORM
|
The decision can be appealed using an appeal form. |
DisplayVideoSourceAd
The ad sourced from a DV360 creative.
| JSON representation |
|---|
{ "creativeId" : string } |
| Fields | |
|---|---|
creativeId
|
The ID of the source creative. |
MastheadAd
Details for a Masthead Ad.
| JSON representation |
|---|
{ "video" : { object ( |
| Fields | |
|---|---|
video
|
The YouTube video used by the ad. |
headline
|
The headline of the ad. |
description
|
The description of the ad. |
videoAspectRatio
|
The aspect ratio of the autoplaying YouTube video on the Masthead. |
autoplayVideoStartMillisecond
|
The amount of time in milliseconds after which the video will start to play. |
autoplayVideoDuration
|
The duration of time the video will autoplay. A duration in seconds with up to nine fractional digits, ending with ' |
callToActionButtonLabel
|
The text on the call-to-action button. |
callToActionFinalUrl
|
The destination URL for the call-to-action button. |
callToActionTrackingUrl
|
The tracking URL for the call-to-action button. |
showChannelArt
|
Whether to show a background or banner that appears at the top of a YouTube page. |
companionYoutubeVideos[]
|
The videos that appear next to the Masthead Ad on desktop. Can be no more than two. |
YoutubeVideoDetails
Details of a YouTube video.
| JSON representation |
|---|
{
"id"
:
string
,
"unavailableReason"
:
enum (
|
| Fields | |
|---|---|
id
|
Output only. The YouTube video ID which can be searched on YouTube webpage. |
unavailableReason
|
The reason why the video data is not available. |
videoAssetId
|
Required. The YouTube video asset id. This is the |
VideoAspectRatio
Possible aspect ratios for a YouTube video.
| Enums | |
|---|---|
VIDEO_ASPECT_RATIO_UNSPECIFIED
|
Not specified or unknown. |
VIDEO_ASPECT_RATIO_WIDESCREEN
|
The video is stretched and the top and bottom are cropped. |
VIDEO_ASPECT_RATIO_FIXED_16_9
|
The video uses a fixed 16:9 aspect ratio. |
InStreamAd
Details for an in-stream ad.
| JSON representation |
|---|
{
"commonInStreamAttribute"
:
{
object (
|
| Fields | |
|---|---|
commonInStreamAttribute
|
Common ad attributes. |
customParameters
|
The custom parameters and accompanying values to add to the tracking URL. An object containing a list of |
CommonInStreamAttribute
Common attributes for in-stream, non-skippable and bumper ads.
| JSON representation |
|---|
{ "displayUrl" : string , "finalUrl" : string , "trackingUrl" : string , "actionButtonLabel" : string , "actionHeadline" : string , "video" : { object ( |
| Fields | |
|---|---|
displayUrl
|
The webpage address that appears with the ad. |
finalUrl
|
The URL address of the webpage that people reach after they click the ad. |
trackingUrl
|
The URL address loaded in the background for tracking purposes. |
actionButtonLabel
|
The text on the call-to-action button. |
actionHeadline
|
The headline of the call-to-action banner. |
video
|
The YouTube video of the ad. |
companionBanner
|
The image which shows next to the video ad. |
ImageAsset
Meta data of an image asset.
| JSON representation |
|---|
{
"mimeType"
:
string
,
"fullSize"
:
{
object (
|
| Fields | |
|---|---|
mimeType
|
Output only. MIME type of the image asset. |
fullSize
|
Output only. Metadata for this image at its original size. |
fileSize
|
Output only. File size of the image asset in bytes. |
assetId
|
Required. The unique ID of the asset. |
NonSkippableAd
Details for a non-skippable ad.
| JSON representation |
|---|
{
"commonInStreamAttribute"
:
{
object (
|
| Fields | |
|---|---|
commonInStreamAttribute
|
Common ad attributes. |
customParameters
|
The custom parameters and accompanying values to add to the tracking URL. An object containing a list of |
BumperAd
Details for a bumper ad.
| JSON representation |
|---|
{
"commonInStreamAttribute"
:
{
object (
|
| Fields | |
|---|---|
commonInStreamAttribute
|
Common ad attributes. |
AudioAd
Details for an audio ad.
| JSON representation |
|---|
{
"displayUrl"
:
string
,
"finalUrl"
:
string
,
"trackingUrl"
:
string
,
"video"
:
{
object (
|
| Fields | |
|---|---|
displayUrl
|
The webpage address that appears with the ad. |
finalUrl
|
The URL address of the webpage that people reach after they click the ad. |
trackingUrl
|
The URL address loaded in the background for tracking purposes. |
video
|
The YouTube video of the ad. |
VideoDiscoveryAd
Details for a video discovery ad.
| JSON representation |
|---|
{ "headline" : string , "description1" : string , "description2" : string , "video" : { object ( |
| Fields | |
|---|---|
headline
|
The headline of ad. |
description1
|
First text line for the ad. |
description2
|
Second text line for the ad. |
video
|
The YouTube video the ad promotes. |
thumbnail
|
Thumbnail image used in the ad. |
Thumbnail
Possible thumbnail options in Video Discovery Ads.
| Enums | |
|---|---|
THUMBNAIL_UNSPECIFIED
|
Unknown or unspecified. |
THUMBNAIL_DEFAULT
|
The default thumbnail, can be auto-generated or user-uploaded. |
THUMBNAIL_1
|
Thumbnail 1, generated from the video. |
THUMBNAIL_2
|
Thumbnail 2, generated from the video. |
THUMBNAIL_3
|
Thumbnail 3, generated from the video. |
VideoPerformanceAd
Details for a video performance ad.
| JSON representation |
|---|
{ "finalUrl" : string , "trackingUrl" : string , "actionButtonLabels" : [ string ] , "headlines" : [ string ] , "longHeadlines" : [ string ] , "descriptions" : [ string ] , "displayUrlBreadcrumb1" : string , "displayUrlBreadcrumb2" : string , "domain" : string , "videos" : [ { object ( |
| Fields | |
|---|---|
finalUrl
|
The URL address of the webpage that people reach after they click the ad. |
trackingUrl
|
The URL address loaded in the background for tracking purposes. |
actionButtonLabels[]
|
The list of text assets shown on the call-to-action button. |
headlines[]
|
The list of headlines shown on the call-to-action banner. |
longHeadlines[]
|
The list of long headlines shown on the call-to-action banner. |
descriptions[]
|
The list of descriptions shown on the call-to-action banner. |
displayUrlBreadcrumb1
|
The first piece after the domain in the display URL. |
displayUrlBreadcrumb2
|
The second piece after the domain in the display URL. |
domain
|
The domain of the display URL. |
videos[]
|
The list of YouTube video assets used by this ad. |
customParameters
|
The custom parameters and accompanying values to add to the tracking URL. An object containing a list of |
companionBanners[]
|
The list of companion banners used by this ad. |
DemandGenVideoAd
Details for a Demand Gen video ad.
| JSON representation |
|---|
{ "finalUrl" : string , "trackingUrl" : string , "userSpecifiedTrackingUrl" : string , "callToAction" : enum ( |
finalUrl
string
Required. The URL address of the webpage that people reach after they click the ad.
trackingUrl
string
Output only. The URL address loaded in the background for tracking purposes.
userSpecifiedTrackingUrl
string
Optional. The tracking URL specified by the user manually.
callToAction
enum (
CallToAction
)
Required. The call-to-action button shown on the ad.
The supported values are:
-
AUTOMATED -
LEARN_MORE -
GET_QUOTE -
APPLY_NOW -
SIGN_UP -
CONTACT_US -
SUBSCRIBE -
DOWNLOAD -
BOOK_NOW -
SHOP_NOW -
BUY_NOW -
DONATE_NOW -
ORDER_NOW -
PLAY_NOW -
SEE_MORE -
START_NOW -
VISIT_SITE -
WATCH_NOW
headlines[]
string
Required. The list of headlines shown on the ad.
longHeadlines[]
string
Required. The list of long headlines shown on the ad.
descriptions[]
string
Required. The list of descriptions shown on the ad.
videos[]
object (
YoutubeVideoDetails
)
Required. The list of YouTube video assets used by this ad.
customParameters
map (key: string, value: string)
Optional. The custom parameters and accompanying values to add to the tracking URL.
An object containing a list of "key": value
pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
logo
object (
ImageAsset
)
Required. The logo image used by this ad.
finalMobileUrl
string
Optional. The URL address of the webpage that people reach after they click the ad on a mobile device.
finalUrlSuffix
string
Optional. The suffix to append to landing page URLs.
businessName
string
Required. The business name shown on the ad.
CallToAction
Possible call-to-action values for Demand Gen Product/Video ads.
| Enums | |
|---|---|
CALL_TO_ACTION_UNSPECIFIED
|
Not specified or unknown. |
AUTOMATED
|
Automated. |
LEARN_MORE
|
Learn more. |
GET_QUOTE
|
Get quote. |
APPLY_NOW
|
Apply now. |
SIGN_UP
|
Sign up. |
CONTACT_US
|
Contact us. |
SUBSCRIBE
|
Subscribe. |
DOWNLOAD
|
Download. |
BOOK_NOW
|
Book now. |
SHOP_NOW
|
Shop now. |
BUY_NOW
|
Buy now. |
DONATE_NOW
|
Donate now. |
ORDER_NOW
|
Order now. |
PLAY_NOW
|
Play now. |
SEE_MORE
|
See more. |
START_NOW
|
Start now. |
VISIT_SITE
|
Visit site. |
WATCH_NOW
|
Watch now. |
DemandGenImageAd
Details for a Demand Gen image ad.
| JSON representation |
|---|
{ "finalUrl" : string , "trackingUrl" : string , "userSpecifiedTrackingUrl" : string , "callToAction" : string , "headlines" : [ string ] , "descriptions" : [ string ] , "customParameters" : { string : string , ... } , "finalMobileUrl" : string , "finalUrlSuffix" : string , "businessName" : string , "marketingImages" : [ { object ( |
| Fields | |
|---|---|
finalUrl
|
Required. The URL address of the webpage that people reach after they click the ad. |
trackingUrl
|
Output only. The URL address loaded in the background for tracking purposes. |
userSpecifiedTrackingUrl
|
Optional. The tracking URL specified by the user manually. |
callToAction
|
Required. The call-to-action button shown on the ad. |
headlines[]
|
Required. The list of headlines shown on the ad. |
descriptions[]
|
Required. The list of descriptions shown on the ad. |
customParameters
|
Optional. The custom parameters and accompanying values to add to the tracking URL. An object containing a list of |
finalMobileUrl
|
Optional. The URL address of the webpage that people reach after they click the ad on a mobile device. |
finalUrlSuffix
|
Optional. The suffix to append to landing page URLs. |
businessName
|
Required. The business name shown on the ad. |
marketingImages[]
|
The list of marketing images shown on the ad. |
squareMarketingImages[]
|
The list of square marketing images shown on the ad. |
portraitMarketingImages[]
|
The list of portrait marketing images shown on the ad. |
logoImages[]
|
The list of logo images shown on the ad. |
DemandGenCarouselAd
Details for a Demand Gen carousel ad.
| JSON representation |
|---|
{ "finalUrl" : string , "headline" : string , "description" : string , "cards" : [ { object ( |
| Fields | |
|---|---|
finalUrl
|
Required. The URL address of the webpage that people reach after they click the ad. |
headline
|
Required. The headline of the ad. |
description
|
Required. The description of the ad. |
cards[]
|
Required. The list of cards shown on the ad. |
finalUrlSuffix
|
Optional. The suffix to append to landing page URLs. |
trackingUrl
|
Output only. The URL address loaded in the background for tracking purposes. |
userSpecifiedTrackingUrl
|
Optional. The tracking URL specified by the user manually. |
businessName
|
Required. The business name shown on the ad. |
customParameters
|
Optional. The custom parameters and accompanying values to add to the tracking URL. An object containing a list of |
logo
|
Required. The logo image used by this ad. |
CarouselCard
Details for a Demand Gen carousel card.
| JSON representation |
|---|
{ "finalUrl" : string , "finalMobileUrl" : string , "headline" : string , "callToAction" : string , "marketingImage" : { object ( |
| Fields | |
|---|---|
finalUrl
|
Required. The URL address of the webpage that people reach after they click the card. |
finalMobileUrl
|
Optional. The URL address of the webpage that people reach after they click the card on a mobile device. |
headline
|
Required. The headline of the card. |
callToAction
|
Required. The text on the call-to-action button shown on the card. Must use 10 characters or less. |
marketingImage
|
Optional. The marketing image shown on the card. |
squareMarketingImage
|
Optional. The square marketing image shown on the card. |
portraitMarketingImage
|
Optional. The portrait marketing image shown on the card. |
DemandGenProductAd
Details for a Demand Gen product ad.
| JSON representation |
|---|
{ "finalUrl" : string , "headline" : string , "description" : string , "finalUrlSuffix" : string , "callToAction" : enum ( |
finalUrl
string
Required. The URL address of the webpage that people reach after they click the ad.
headline
string
Required. The headline of the ad.
description
string
Required. The description of the ad.
finalUrlSuffix
string
Optional. The suffix to append to landing page URLs.
callToAction
enum (
CallToAction
)
Required. The call-to-action button shown on the ad.
The supported values are:
-
AUTOMATED -
APPLY_NOW -
BOOK_NOW -
CONTACT_US -
DOWNLOAD -
GET_QUOTE -
LEARN_MORE -
SHOP_NOW -
SIGN_UP -
SUBSCRIBE
trackingUrl
string
Output only. The URL address loaded in the background for tracking purposes.
userSpecifiedTrackingUrl
string
Optional. The tracking URL specified by the user manually.
businessName
string
Required. The business name shown on the ad.
customParameters
map (key: string, value: string)
Optional. The custom parameters and accompanying values to add to the tracking URL.
An object containing a list of "key": value
pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
logo
object (
ImageAsset
)
Required. The logo image used by this ad.
AdUrl
Additional URLs related to the ad, including beacons.
| JSON representation |
|---|
{
"type"
:
enum (
|
| Fields | |
|---|---|
type
|
The type of the Ad URL. |
url
|
The URL string value. |
AdUrlType
Possible ad URL types.
| Enums | |
|---|---|
AD_URL_TYPE_UNSPECIFIED
|
Unknown or unspecified. |
AD_URL_TYPE_BEACON_IMPRESSION
|
A 1x1 tracking pixel to ping when an impression of a creative is delivered. |
AD_URL_TYPE_BEACON_EXPANDABLE_DCM_IMPRESSION
|
Expandable DCM impression beacon. At serving time, it is expanded to several beacons. |
AD_URL_TYPE_BEACON_CLICK
|
Tracking URL to ping when the click event is triggered. |
AD_URL_TYPE_BEACON_SKIP
|
Tracking URL to ping when the skip event is triggered. |
DcmTrackingInfo
Details on the DCM tracking.
| JSON representation |
|---|
{ "placementId" : string , "trackingAdId" : string , "creativeId" : string } |
| Fields | |
|---|---|
placementId
|
Required. The DCM placement id. |
trackingAdId
|
Required. The DCM tracking ad id. |
creativeId
|
Required. The DCM creative id. |
Methods |
|
|---|---|
|
Creates an ad group ad. |
|
Deletes an ad group ad. |
|
Gets an ad group ad. |
|
Lists ad group ads. |
|
Updates an ad group ad. |

