Skip to content

Commit dbb56b1

Browse files
committed
Regenerate v19 and v20
Change-Id: Id1cc6c1e82d3d986c9d1ba421901c44c1738a1f6
1 parent 5fd46f9 commit dbb56b1

File tree

340 files changed

+1425
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

340 files changed

+1425
-49
lines changed

google/ads/googleads/v19/enums/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@
230230
from .types.display_ad_format_setting import DisplayAdFormatSettingEnum
231231
from .types.display_upload_product_type import DisplayUploadProductTypeEnum
232232
from .types.distance_bucket import DistanceBucketEnum
233+
from .types.eu_political_advertising_status import (
234+
EuPoliticalAdvertisingStatusEnum,
235+
)
233236
from .types.experiment_metric import ExperimentMetricEnum
234237
from .types.experiment_metric_direction import ExperimentMetricDirectionEnum
235238
from .types.experiment_status import ExperimentStatusEnum
@@ -686,6 +689,7 @@
686689
"DisplayAdFormatSettingEnum",
687690
"DisplayUploadProductTypeEnum",
688691
"DistanceBucketEnum",
692+
"EuPoliticalAdvertisingStatusEnum",
689693
"ExperimentMetricDirectionEnum",
690694
"ExperimentMetricEnum",
691695
"ExperimentStatusEnum",

google/ads/googleads/v19/enums/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@
451451
from .distance_bucket import (
452452
DistanceBucketEnum,
453453
)
454+
from .eu_political_advertising_status import (
455+
EuPoliticalAdvertisingStatusEnum,
456+
)
454457
from .experiment_metric import (
455458
ExperimentMetricEnum,
456459
)
@@ -1157,6 +1160,7 @@
11571160
"DisplayAdFormatSettingEnum",
11581161
"DisplayUploadProductTypeEnum",
11591162
"DistanceBucketEnum",
1163+
"EuPoliticalAdvertisingStatusEnum",
11601164
"ExperimentMetricEnum",
11611165
"ExperimentMetricDirectionEnum",
11621166
"ExperimentStatusEnum",

google/ads/googleads/v19/enums/types/ad_format_type.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class AdFormatType(proto.Enum):
3535
r"""Enumerates Google Ads format types.
3636
3737
Note that this segmentation is available only for Video and
38-
Discovery campaigns. For assets, only video assets are
38+
Demand Gen campaigns. For assets, only video assets are
3939
supported.
4040
4141
Values:
@@ -47,7 +47,7 @@ class AdFormatType(proto.Enum):
4747
OTHER (2):
4848
Value assigned to formats (such as
4949
experimental formats) which don't support format
50-
segmentation in Video and Discovery campaigns.
50+
segmentation in Video and Demand Gen campaigns.
5151
5252
Note that these formats may change categories in
5353
the future, for example if an experimental
@@ -67,9 +67,9 @@ class AdFormatType(proto.Enum):
6767
INSTREAM_NON_SKIPPABLE (5):
6868
Non-skippable in-stream ads.
6969
INFEED (6):
70-
In-feed YouTube or discovery image ads served
71-
on feed surfaces (e.g. Discover Feed, YouTube
72-
Home, etc.).
70+
In-feed YouTube or image ads served on feed
71+
surfaces (e.g. Discover Feed, YouTube Home,
72+
etc.).
7373
BUMPER (7):
7474
Short (<7 secs) in-stream non-skippable
7575
YouTube ads.
@@ -80,8 +80,8 @@ class AdFormatType(proto.Enum):
8080
AUDIO (10):
8181
Audio ads.
8282
SHORTS (11):
83-
Vertical full-screen video or discovery image
84-
ad served on YouTube Shorts or BrandConnect ads
83+
Vertical full-screen video or image ads
84+
served on YouTube Shorts or BrandConnect ads
8585
served as organic YouTube Shorts.
8686
"""
8787

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from __future__ import annotations
17+
18+
19+
import proto # type: ignore
20+
21+
22+
__protobuf__ = proto.module(
23+
package="google.ads.googleads.v19.enums",
24+
marshal="google.ads.googleads.v19",
25+
manifest={
26+
"EuPoliticalAdvertisingStatusEnum",
27+
},
28+
)
29+
30+
31+
class EuPoliticalAdvertisingStatusEnum(proto.Message):
32+
r"""Container for enum describing whether or not the campaign
33+
contains political advertising targeted towards the European
34+
Union.
35+
36+
"""
37+
38+
class EuPoliticalAdvertisingStatus(proto.Enum):
39+
r"""Possible values describing whether or not the campaign
40+
contains political advertising targeted towards the European
41+
Union.
42+
43+
Values:
44+
UNSPECIFIED (0):
45+
Not specified.
46+
UNKNOWN (1):
47+
Used for return value only. Represents value
48+
unknown in this version.
49+
CONTAINS_EU_POLITICAL_ADVERTISING (2):
50+
The campaign contains political advertising
51+
targeted towards the EU. The campaign will be
52+
restricted from serving ads in the EU.
53+
DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING (3):
54+
The campaign does not contain political
55+
advertising targeted towards the EU. No
56+
additional serving restrictions will apply.
57+
"""
58+
59+
UNSPECIFIED = 0
60+
UNKNOWN = 1
61+
CONTAINS_EU_POLITICAL_ADVERTISING = 2
62+
DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING = 3
63+
64+
65+
__all__ = tuple(sorted(__protobuf__.manifest))

google/ads/googleads/v19/errors/types/conversion_upload_error.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ class ConversionUploadError(proto.Enum):
4747
Upload fewer than 2001 events in a single
4848
request.
4949
UNPARSEABLE_GCLID (3):
50-
The imported gclid could not be decoded. Make
51-
sure you have not modified the click IDs.
50+
The imported gclid could not be decoded.
5251
CONVERSION_PRECEDES_EVENT (42):
5352
The imported event has a ``conversion_date_time`` that
5453
precedes the click. Make sure your ``conversion_date_time``

google/ads/googleads/v19/errors/types/criterion_error.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ class CriterionError(proto.Enum):
467467
LOCATION_TARGETING_NOT_ELIGIBLE_FOR_RESTRICTED_CAMPAIGN (166):
468468
Cannot positively target locations outside of
469469
restricted area for campaign.
470+
MISSING_EU_POLITICAL_ADVERTISING_SELF_DECLARATION (176):
471+
The operation failed because the campaign is
472+
missing the self-declaration on political
473+
advertising status in the EU.
470474
"""
471475

472476
UNSPECIFIED = 0
@@ -620,6 +624,7 @@ class CriterionError(proto.Enum):
620624
CANNOT_ADD_REMOVED_BRAND_SHARED_SET = 157
621625
ONLY_EXCLUSION_BRAND_LIST_ALLOWED_FOR_CAMPAIGN_TYPE = 158
622626
LOCATION_TARGETING_NOT_ELIGIBLE_FOR_RESTRICTED_CAMPAIGN = 166
627+
MISSING_EU_POLITICAL_ADVERTISING_SELF_DECLARATION = 176
623628

624629

625630
__all__ = tuple(sorted(__protobuf__.manifest))

google/ads/googleads/v19/errors/types/experiment_error.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ class ExperimentError(proto.Enum):
129129
INVALID_DURATION_FOR_AN_EXPERIMENT (30):
130130
Experiment length cannot be longer than max
131131
length.
132+
MISSING_EU_POLITICAL_ADVERTISING_SELF_DECLARATION (31):
133+
The experiment's campaigns must self-declare
134+
whether they contain political advertising that
135+
targets the European Union.
132136
"""
133137

134138
UNSPECIFIED = 0
@@ -162,6 +166,7 @@ class ExperimentError(proto.Enum):
162166
CANNOT_ADD_CAMPAIGN_WITH_DEPRECATED_AD_TYPES = 28
163167
CANNOT_ENABLE_SYNC_FOR_UNSUPPORTED_EXPERIMENT_TYPE = 29
164168
INVALID_DURATION_FOR_AN_EXPERIMENT = 30
169+
MISSING_EU_POLITICAL_ADVERTISING_SELF_DECLARATION = 31
165170

166171

167172
__all__ = tuple(sorted(__protobuf__.manifest))

google/ads/googleads/v19/resources/types/ad.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ class Ad(proto.Message):
118118
need to be unique and does not affect the served
119119
ad. The name field is currently only supported
120120
for DisplayUploadAd, ImageAd,
121-
ShoppingComparisonListingAd and VideoAd.
121+
LegacyAppInstallAd, ShoppingComparisonListingAd,
122+
VideoAd, VideoResponsiveAd and DemandGen ads.
122123
123124
This field is a member of `oneof`_ ``_name``.
124125
system_managed_resource_source (google.ads.googleads.v19.enums.types.SystemManagedResourceSourceEnum.SystemManagedResourceSource):

google/ads/googleads/v19/resources/types/ad_group_ad_asset_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
class AdGroupAdAssetView(proto.Message):
4242
r"""A link between an AdGroupAd and an Asset. AdGroupAdAssetView
43-
supports AppAds, Demand Gen camapaigns, and Responsive Search
43+
supports AppAds, Demand Gen campaigns, and Responsive Search
4444
Ads.
4545
4646

google/ads/googleads/v19/resources/types/campaign.py

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
from google.ads.googleads.v19.enums.types import campaign_primary_status_reason
6363
from google.ads.googleads.v19.enums.types import campaign_serving_status
6464
from google.ads.googleads.v19.enums.types import campaign_status
65+
from google.ads.googleads.v19.enums.types import eu_political_advertising_status
6566
from google.ads.googleads.v19.enums.types import (
6667
listing_type as gage_listing_type,
6768
)
@@ -415,6 +416,10 @@ class Campaign(proto.Message):
415416
within this campaign. Note: These settings can
416417
only be used for Performance Max campaigns that
417418
have Brand Guidelines enabled.
419+
contains_eu_political_advertising (google.ads.googleads.v19.enums.types.EuPoliticalAdvertisingStatusEnum.EuPoliticalAdvertisingStatus):
420+
The advertiser should self-declare whether
421+
this campaign contains political advertising
422+
content targeted towards the European Union.
418423
bidding_strategy (str):
419424
The resource name of the portfolio bidding
420425
strategy used by the campaign.
@@ -708,8 +713,13 @@ class ShoppingSetting(proto.Message):
708713
setting Vehicle Listing inventory in Performance Max
709714
campaigns, use ``listing_type`` instead.
710715
advertising_partner_ids (MutableSequence[int]):
711-
Immutable. The ads account IDs of advertising
712-
partners cooperating within the campaign.
716+
Immutable. The list of Google Ads accounts
717+
IDs of advertising partners cooperating within
718+
the campaign. This feature is currently
719+
available only for accounts having an
720+
advertising partner link. This feature is
721+
currently supported only for Performance Max,
722+
Shopping, Search and Demand Gen campaign types.
713723
disable_product_feed (bool):
714724
Disable the optional product feed. This field
715725
is currently supported only for Demand Gen
@@ -1046,12 +1056,12 @@ class VideoCampaignSettings(proto.Message):
10461056
10471057
Attributes:
10481058
video_ad_inventory_control (google.ads.googleads.v19.resources.types.Campaign.VideoCampaignSettings.VideoAdInventoryControl):
1049-
Inventory control for responsive ad
1050-
containers in reach campaigns.
1059+
Inventory control for video responsive ads in
1060+
reach campaigns.
10511061
"""
10521062

10531063
class VideoAdInventoryControl(proto.Message):
1054-
r"""For campaigns using responsive ad containers inventory controls
1064+
r"""For campaigns using video responsive ads inventory controls
10551065
determine on which inventories the ads can be shown. This only
10561066
applies for campaigns with the bidding strategies TARGET_CPM and
10571067
FIXED_CPM.
@@ -1061,17 +1071,17 @@ class VideoAdInventoryControl(proto.Message):
10611071
10621072
Attributes:
10631073
allow_in_stream (bool):
1064-
Determine if VideoResponsiveAds can be used
1074+
Determine if video responsive ads can be used
10651075
for in-stream video ads.
10661076
10671077
This field is a member of `oneof`_ ``_allow_in_stream``.
10681078
allow_in_feed (bool):
1069-
Determine if VideoResponsiveAds can be used
1079+
Determine if video responsive ads can be used
10701080
for in-feed video ads.
10711081
10721082
This field is a member of `oneof`_ ``_allow_in_feed``.
10731083
allow_shorts (bool):
1074-
Determine if VideoResponsiveAds can be used
1084+
Determine if video responsive ads can be used
10751085
as shorts format.
10761086
10771087
This field is a member of `oneof`_ ``_allow_shorts``.
@@ -1523,6 +1533,13 @@ class BrandGuidelines(proto.Message):
15231533
number=98,
15241534
message=BrandGuidelines,
15251535
)
1536+
contains_eu_political_advertising: (
1537+
eu_political_advertising_status.EuPoliticalAdvertisingStatusEnum.EuPoliticalAdvertisingStatus
1538+
) = proto.Field(
1539+
proto.ENUM,
1540+
number=102,
1541+
enum=eu_political_advertising_status.EuPoliticalAdvertisingStatusEnum.EuPoliticalAdvertisingStatus,
1542+
)
15261543
bidding_strategy: str = proto.Field(
15271544
proto.STRING,
15281545
number=67,

0 commit comments

Comments
 (0)