AI-generated Key Takeaways
-
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
- AdUrl
- AdUrlType
- 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 ( |
| Fields | |
|---|---|
name |
The resource name of the ad. |
advertiserId |
The unique ID of the advertiser the ad belongs to. |
adGroupAdId |
The unique ID of the ad. Assigned by the system. |
adGroupId |
The unique ID of the ad group that the ad belongs to. |
displayName |
The display name of the ad. Must be UTF-8 encoded with a maximum size of 255 bytes. |
adPolicy |
The policy approval status of the ad. |
entityStatus |
The entity status of the ad. |
adUrls[] |
List of URLs used by the ad. |
Union field |
|
displayVideoSourceAd |
Details of an ad sourced from a Display & Video 360 creative. |
mastheadAd |
Details of an ad served on the YouTube Home feed. |
inStreamAd |
Details of an in-stream ad skippable after 5 seconds, used for brand awareness or reach marketing objectives. |
nonSkippableAd |
Details of a non-skippable short in-stream video ad, between 6 and 15 seconds, used for reach marketing objectives. |
bumperAd |
Details of a non-skippable short video ad, equal to or less than 6 seconds, used for reach. |
audioAd |
Details of an audio ad used for reach marketing objectives. |
videoDiscoverAd |
Details of an ad promoting a video that shows in places of discovery. |
videoPerformanceAd |
Details of an ad used in a video action campaign to drive actions to the business, service or product. |
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 |
| Fields | |
|---|---|
Union field value. The evidence for the policy decision. value can be only one of the following: |
|
textList |
List of evidence found in the text of the ad. |
websiteList |
List of websites linked with the ad. |
httpCode |
HTTP code returned when the final URL was crawled. |
languageCode |
The language the ad was detected to be written in. This field uses IETF language tags, such as "en-US". |
destinationTextList |
The text in the destination of the ad that is causing a policy violation. |
destinationMismatch |
A mismatch between the ad destination URLs. |
destinationNotWorking |
Information on HTTP or DNS errors related to the ad destination. |
trademark |
Trademark terms that caused a policy violation. |
legalRemoval |
Legal related regulation enforcement that caused a policy violation. |
counterfeit |
Counterfeit enforcement that caused a policy violation. |
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 ( |
| Fields | |
|---|---|
expandedUri |
The full URL that didn't work. |
device |
The device where visiting the URL resulted in the error. |
lastCheckedTime |
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: |
Union field reason. The HTTP or DNS error. reason can be only one of the following: |
|
dnsErrorType |
The type of DNS error. |
httpErrorCode |
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 ( |
| Fields | |
|---|---|
complaintType |
The type of complaint causing the legal removal. |
countryRestrictions[] |
The countries restricted due to the legal removal. |
restrictedUris[] |
The urls restricted due to the legal removal. |
Union field type. Details on the type of legal removal. type can be only one of the following: |
|
dmca |
Details on the DMCA regulation legal removal. |
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 |
| Fields | |
|---|---|
requestCertificateFormLink |
Link to the form to request a certificate for the constraint. |
Union field constraint. The serving constraint. constraint can be only one of the following: |
|
countryConstraint |
Countries where the ad cannot serve. |
resellerConstraint |
Reseller constraint. |
certificateMissingCountryList |
Countries where a certificate is required for serving. |
certificateDomainMismatchCountryList |
Countries where the resource's domain is not covered by the certificates associated with it. |
globalCertificateMissing |
Certificate is required to serve in any country. |
globalCertificateDomainMismatch |
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 |
The YouTube video ID which can be searched on YouTube webpage. |
unavailableReason |
The reason why the video data is not available. |
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 to pass custom values to tracking URL template. 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 |
MIME type of the image asset. |
fullSize |
Metadata for this image at its original size. |
fileSize |
File size of the image asset in bytes. |
NonSkippableAd
Details for a non-skippable ad.
| JSON representation |
|---|
{
"commonInStreamAttribute": {
object ( |
| Fields | |
|---|---|
commonInStreamAttribute |
Common ad attributes. |
customParameters |
The custom parameters to pass custom values to tracking URL template. 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 lone 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 to pass custom values to tracking URL template. An object containing a list of |
companionBanners[] |
The list of companion banners 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. |
Methods |
|
|---|---|
|
Gets an ad group ad. |
|
Lists ad group ads. |