@maxim_mazurok/gapi.client.displayvideo-v4 0.2.20251006 → 0.2.20251027

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +806 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://displayvideo.googleapis.com/$discovery/rest?version=v4
12
- // Revision: 20251006
12
+ // Revision: 20251027
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -36,6 +36,18 @@ declare namespace gapi.client {
36
36
  /** Required. The minimum percentage of the video ad's volume required in order for an impression to be recorded. */
37
37
  minimumVolume?: string;
38
38
  }
39
+ interface AdAsset {
40
+ /** Output only. The ID of the ad asset. Referred to as the asset ID when assigned to an ad. */
41
+ adAssetId?: string;
42
+ /** Required. The type of the ad asset. */
43
+ adAssetType?: string;
44
+ /** Output only. The entity status of the ad asset. */
45
+ entityStatus?: string;
46
+ /** Identifier. The resource name of the ad asset. */
47
+ name?: string;
48
+ /** Youtube video asset data. */
49
+ youtubeVideoAsset?: YoutubeVideoAsset;
50
+ }
39
51
  interface AdGroup {
40
52
  /** The format of the ads in the ad group. */
41
53
  adGroupFormat?: string;
@@ -61,8 +73,10 @@ declare namespace gapi.client {
61
73
  interface AdGroupAd {
62
74
  /** The unique ID of the ad. Assigned by the system. */
63
75
  adGroupAdId?: string;
64
- /** The unique ID of the ad group that the ad belongs to. */
76
+ /** The unique ID of the ad group that the ad belongs to. *Caution*: Parent ad groups for Demand Gen ads are not currently retrieveable using `advertisers.adGroups.list` or `advertisers.adGroups.get`. Demand Gen ads can be identified by the absence of the `ad_details` union field. */
65
77
  adGroupId?: string;
78
+ /** The policy approval status of the ad. */
79
+ adPolicy?: AdPolicy;
66
80
  /** List of URLs used by the ad. */
67
81
  adUrls?: AdUrl[];
68
82
  /** The unique ID of the advertiser the ad belongs to. */
@@ -130,6 +144,165 @@ declare namespace gapi.client {
130
144
  /** Optional. IAB viewability threshold for video ads. */
131
145
  videoIabViewability?: string;
132
146
  }
147
+ interface AdPolicy {
148
+ /** The policy approval status of an ad, indicating the approval decision. */
149
+ adPolicyApprovalStatus?: string;
150
+ /** The policy review status of an ad, indicating where in the review process the ad is currently. */
151
+ adPolicyReviewStatus?: string;
152
+ /** 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. */
153
+ adPolicyTopicEntry?: AdPolicyTopicEntry[];
154
+ }
155
+ interface AdPolicyCriterionRestriction {
156
+ /** The country criterion id. */
157
+ countryCriterionId?: string;
158
+ /** Localized name for the country. May be empty. */
159
+ countryLabel?: string;
160
+ }
161
+ interface AdPolicyTopicAppealInfo {
162
+ /** Only available when appeal_type is `APPEAL_FORM`. */
163
+ appealFormLink?: string;
164
+ /** Whether the decision can be appealed through a self-service appeal or an appeal form. */
165
+ appealType?: string;
166
+ }
167
+ interface AdPolicyTopicConstraint {
168
+ /** Countries where the resource's domain is not covered by the certificates associated with it. */
169
+ certificateDomainMismatchCountryList?: AdPolicyTopicConstraintAdPolicyCountryConstraintList;
170
+ /** Countries where a certificate is required for serving. */
171
+ certificateMissingCountryList?: AdPolicyTopicConstraintAdPolicyCountryConstraintList;
172
+ /** Countries where the ad cannot serve. */
173
+ countryConstraint?: AdPolicyTopicConstraintAdPolicyCountryConstraintList;
174
+ /** Certificate is required to serve in any country and the existing certificate does not cover the ad's domain. */
175
+ globalCertificateDomainMismatch?: any;
176
+ /** Certificate is required to serve in any country. */
177
+ globalCertificateMissing?: any;
178
+ /** Link to the form to request a certificate for the constraint. */
179
+ requestCertificateFormLink?: string;
180
+ /** Reseller constraint. */
181
+ resellerConstraint?: any;
182
+ }
183
+ interface AdPolicyTopicConstraintAdPolicyCountryConstraintList {
184
+ /** Countries where the ad cannot serve. */
185
+ countries?: AdPolicyCriterionRestriction[];
186
+ }
187
+ interface AdPolicyTopicConstraintAdPolicyGlobalCertificateDomainMismatchConstraint {}
188
+ interface AdPolicyTopicConstraintAdPolicyGlobalCertificateMissingConstraint {}
189
+ interface AdPolicyTopicConstraintAdPolicyResellerConstraint {}
190
+ interface AdPolicyTopicEntry {
191
+ /** Information on how to appeal the policy decision. */
192
+ appealInfo?: AdPolicyTopicAppealInfo;
193
+ /** Ad policy help center link for the policy topic. */
194
+ helpCenterLink?: string;
195
+ /** The source of the policy decision. */
196
+ policyDecisionType?: string;
197
+ /** The policy enforcement means used in the policy review. */
198
+ policyEnforcementMeans?: string;
199
+ /** Localized label text for policy. Examples include "Trademarks in text", "Contains Alcohol", etc. */
200
+ policyLabel?: string;
201
+ /** The policy topic. Examples include "TRADEMARKS", "ALCOHOL", etc. */
202
+ policyTopic?: string;
203
+ /** The serving constraints relevant to the policy decision. */
204
+ policyTopicConstraints?: AdPolicyTopicConstraint[];
205
+ /** A short summary description of the policy topic. */
206
+ policyTopicDescription?: string;
207
+ /** The evidence used in the policy decision. */
208
+ policyTopicEvidences?: AdPolicyTopicEvidence[];
209
+ /** How ad serving will be affected due to the relation to the ad policy topic. */
210
+ policyTopicType?: string;
211
+ }
212
+ interface AdPolicyTopicEvidence {
213
+ /** Counterfeit enforcement that caused a policy violation. */
214
+ counterfeit?: AdPolicyTopicEvidenceCounterfeit;
215
+ /** A mismatch between the ad destination URLs. */
216
+ destinationMismatch?: AdPolicyTopicEvidenceDestinationMismatch;
217
+ /** Information on HTTP or DNS errors related to the ad destination. */
218
+ destinationNotWorking?: AdPolicyTopicEvidenceDestinationNotWorking;
219
+ /** The text in the destination of the ad that is causing a policy violation. */
220
+ destinationTextList?: AdPolicyTopicEvidenceDestinationTextList;
221
+ /** HTTP code returned when the final URL was crawled. */
222
+ httpCode?: number;
223
+ /** The language the ad was detected to be written in. This field uses IETF language tags, such as "en-US". */
224
+ languageCode?: string;
225
+ /** Legal related regulation enforcement that caused a policy violation. */
226
+ legalRemoval?: AdPolicyTopicEvidenceLegalRemoval;
227
+ /** T&S proactive enforcement that caused a policy violation. */
228
+ regionalRequirements?: AdPolicyTopicEvidenceRegionalRequirements;
229
+ /** List of evidence found in the text of the ad. */
230
+ textList?: AdPolicyTopicEvidenceTextList;
231
+ /** Trademark terms that caused a policy violation. */
232
+ trademark?: AdPolicyTopicEvidenceTrademark;
233
+ /** List of websites linked with the ad. */
234
+ websiteList?: AdPolicyTopicEvidenceWebsiteList;
235
+ }
236
+ interface AdPolicyTopicEvidenceCounterfeit {
237
+ /** The content or product owners that made a complaint. */
238
+ owners?: string[];
239
+ }
240
+ interface AdPolicyTopicEvidenceDestinationMismatch {
241
+ /** The set of URLs that do not match. The list can include single or multiple uri types. Example 1: [`DISPLAY_URL`, `FINAL_URL`] means ad display URL does not match with the ad final URL. Example 2: [`FINAL_URL`] means ad final URL did not match the crawled url, which is also considered as destination mismatch. */
242
+ uriTypes?: string[];
243
+ }
244
+ interface AdPolicyTopicEvidenceDestinationNotWorking {
245
+ /** The device where visiting the URL resulted in the error. */
246
+ device?: string;
247
+ /** The type of DNS error. */
248
+ dnsErrorType?: string;
249
+ /** The full URL that didn't work. */
250
+ expandedUri?: string;
251
+ /** The HTTP error code. */
252
+ httpErrorCode?: string;
253
+ /** The last time the error was seen when navigating to URL. */
254
+ lastCheckedTime?: string;
255
+ }
256
+ interface AdPolicyTopicEvidenceDestinationTextList {
257
+ /** Destination text that caused the policy finding. */
258
+ destinationTexts?: string[];
259
+ }
260
+ interface AdPolicyTopicEvidenceLegalRemoval {
261
+ /** The type of complaint causing the legal removal. */
262
+ complaintType?: string;
263
+ /** The countries restricted due to the legal removal. */
264
+ countryRestrictions?: AdPolicyCriterionRestriction[];
265
+ /** Details on the DMCA regulation legal removal. */
266
+ dmca?: AdPolicyTopicEvidenceLegalRemovalDmca;
267
+ /** Details on the local legal regulation legal removal. */
268
+ localLegal?: AdPolicyTopicEvidenceLegalRemovalLocalLegal;
269
+ /** The urls restricted due to the legal removal. */
270
+ restrictedUris?: string[];
271
+ }
272
+ interface AdPolicyTopicEvidenceLegalRemovalDmca {
273
+ /** The entity who made the legal complaint. */
274
+ complainant?: string;
275
+ }
276
+ interface AdPolicyTopicEvidenceLegalRemovalLocalLegal {
277
+ /** Type of law for the legal notice. */
278
+ lawType?: string;
279
+ }
280
+ interface AdPolicyTopicEvidenceRegionalRequirements {
281
+ /** List of regional requirements. */
282
+ regionalRequirementsEntries?: AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry[];
283
+ }
284
+ interface AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry {
285
+ /** The countries restricted due to the legal policy. */
286
+ countryRestrictions?: AdPolicyCriterionRestriction[];
287
+ /** The legal policy that is being violated. */
288
+ legalPolicy?: string;
289
+ }
290
+ interface AdPolicyTopicEvidenceTextList {
291
+ /** The fragments of text from the resource that caused the policy finding. */
292
+ texts?: string[];
293
+ }
294
+ interface AdPolicyTopicEvidenceTrademark {
295
+ /** Countries where the policy violation is relevant. */
296
+ countryRestrictions?: AdPolicyCriterionRestriction[];
297
+ /** The trademark content owner. */
298
+ owner?: string;
299
+ /** The trademark term. */
300
+ term?: string;
301
+ }
302
+ interface AdPolicyTopicEvidenceWebsiteList {
303
+ /** Websites that caused the policy finding. */
304
+ websites?: string[];
305
+ }
133
306
  interface AdUrl {
134
307
  /** The type of the Ad URL. */
135
308
  type?: string;
@@ -578,6 +751,14 @@ declare namespace gapi.client {
578
751
  /** The total sum of charges made under this budget, including tax, in micros of the invoice's currency. For example, if currency_code is `USD`, then 1000000 represents one US dollar. */
579
752
  totalAmountMicros?: string;
580
753
  }
754
+ interface BulkCreateAdAssetsRequest {
755
+ /** Required. Ad assets to create. Only supports assets of AdAssetType `AD_ASSET_TYPE_YOUTUBE_VIDEO`. */
756
+ adAssets?: AdAsset[];
757
+ }
758
+ interface BulkCreateAdAssetsResponse {
759
+ /** The created ad assets. */
760
+ adAssets?: AdAsset[];
761
+ }
581
762
  interface BulkEditAdvertiserAssignedTargetingOptionsRequest {
582
763
  /** The assigned targeting options to create in batch, specified as a list of `CreateAssignedTargetingOptionsRequest`. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_INVENTORY_MODE` */
583
764
  createRequests?: CreateAssignedTargetingOptionsRequest[];
@@ -1008,6 +1189,10 @@ declare namespace gapi.client {
1008
1189
  /** Required. The name used to identify this counter event in reports. */
1009
1190
  reportingName?: string;
1010
1191
  }
1192
+ interface CreateAdAssetRequest {
1193
+ /** Required. The ad asset to create. Only supports assets of AdAssetType `AD_ASSET_TYPE_YOUTUBE_VIDEO`. */
1194
+ adAsset?: AdAsset;
1195
+ }
1011
1196
  interface CreateAssetRequest {
1012
1197
  /** Required. The filename of the asset, including the file extension. The filename must be UTF-8 encoded with a maximum size of 240 bytes. */
1013
1198
  filename?: string;
@@ -2041,6 +2226,12 @@ declare namespace gapi.client {
2041
2226
  /** Required. The type of the line item's flight dates. */
2042
2227
  flightDateType?: string;
2043
2228
  }
2229
+ interface ListAdAssetsResponse {
2230
+ /** The list of ad assets. The list will only contain assets of AdAssetType `AD_ASSET_TYPE_YOUTUBE_VIDEO`. This list will be absent if empty. */
2231
+ adAssets?: AdAsset[];
2232
+ /** A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `ListAdAssets` method to retrieve the next page of results. */
2233
+ nextPageToken?: string;
2234
+ }
2044
2235
  interface ListAdGroupAdsResponse {
2045
2236
  /** The list of ad group ads. This list will be absent if empty. */
2046
2237
  adGroupAds?: AdGroupAd[];
@@ -2251,6 +2442,12 @@ declare namespace gapi.client {
2251
2442
  /** The list of users. This list will be absent if empty. */
2252
2443
  users?: User[];
2253
2444
  }
2445
+ interface ListYoutubeAssetAssociationsResponse {
2446
+ /** A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `ListYoutubeAssetAssociations` method to retrieve the next page of results. */
2447
+ nextPageToken?: string;
2448
+ /** The list of asset associations. This list will be absent if empty. */
2449
+ youtubeAssetAssociations?: YoutubeAssetAssociation[];
2450
+ }
2254
2451
  interface LocationList {
2255
2452
  /** Required. Immutable. The unique ID of the advertiser the location list belongs to. */
2256
2453
  advertiserId?: string;
@@ -2909,6 +3106,16 @@ declare namespace gapi.client {
2909
3106
  /** Optional. The registry provides unique creative identifiers. */
2910
3107
  registry?: string;
2911
3108
  }
3109
+ interface UploadAdAssetRequest {
3110
+ /** Required. The type of the ad asset. Only `AD_ASSET_TYPE_IMAGE` is supported. */
3111
+ adAssetType?: string;
3112
+ /** Required. The filename of the ad asset, including the file extension. The filename must be UTF-8 encoded with a maximum size of 240 bytes. */
3113
+ filename?: string;
3114
+ }
3115
+ interface UploadAdAssetResponse {
3116
+ /** The created ad asset. */
3117
+ adAsset?: AdAsset;
3118
+ }
2912
3119
  interface UrlAssignedTargetingOptionDetails {
2913
3120
  /** Indicates if this option is being negatively targeted. */
2914
3121
  negative?: boolean;
@@ -3059,12 +3266,68 @@ declare namespace gapi.client {
3059
3266
  /** The view frequency cap settings of the line item. The max_views field in this settings object must be used if assigning a limited cap. */
3060
3267
  viewFrequencyCap?: FrequencyCap;
3061
3268
  }
3269
+ interface YoutubeAssetAssociation {
3270
+ /** Required. The YouTube asset associated with the resource. */
3271
+ linkedYoutubeAsset?: YoutubeAssetAssociationLinkedYouTubeAsset;
3272
+ /** Identifier. The resource name of the association. For line item-level associations: The name pattern is `advertisers/{advertiser_id}/lineItems/{line_item_id}/youtubeAssetTypes/{youtube_asset_type}/youtubeAssetAssociations/{youtube_asset_association_id}`. For ad group-level associations: The name pattern is `advertisers/{advertiser_id}/adGroups/{ad_group_id}/youtubeAssetTypes/{youtube_asset_type}/youtubeAssetAssociations/{youtube_asset_association_id}`. For `YOUTUBE_ASSET_TYPE_LOCATION` and `YOUTUBE_ASSET_TYPE_AFFILIATE_LOCATION` associations: `youtube_asset_association_id` is the ID of the asset set linked, or 0 if the location_matching_type or affiliate_location_matching_type is `DISABLED`. For `YOUTUBE_ASSET_TYPE_SITELINK` associations: `youtube_asset_association_id` is be the ID of the sitelink asset linked. */
3273
+ name?: string;
3274
+ /** Required. The type of YouTube asset associated with the resource. */
3275
+ youtubeAssetType?: string;
3276
+ }
3277
+ interface YoutubeAssetAssociationAffiliateLocationAssetFilter {
3278
+ /** Optional. The matching function that determines how the affiliate location asset filter matches affiliate location assets. This field is required and can only be set for if affiliate_location_matching_type is `SELECTED_CHAINS`. */
3279
+ affiliateLocationMatchingFunction?: YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction;
3280
+ /** Required. The matching type of this affiliate location asset filter. */
3281
+ affiliateLocationMatchingType?: string;
3282
+ /** Output only. The ID of the asset set that matches the affiliate location assets eligible for serving. */
3283
+ assetSetId?: string;
3284
+ }
3285
+ interface YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationChain {
3286
+ /** Required. ID of the affiliate location chain. */
3287
+ chainId?: string;
3288
+ }
3289
+ interface YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction {
3290
+ /** Optional. The selected affiliate location chain IDs. This field is required if affiliate_location_matching_type is `SELECTED_CHAINS`. */
3291
+ chains?: YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationChain[];
3292
+ }
3293
+ interface YoutubeAssetAssociationLinkedYouTubeAsset {
3294
+ /** An affiliate location asset filter. This can be set only when youtube_asset_type is `YOUTUBE_ASSET_TYPE_AFFILIATE_LOCATION`. */
3295
+ affiliateLocationAssetFilter?: YoutubeAssetAssociationAffiliateLocationAssetFilter;
3296
+ /** A location asset filter. This can be set only when youtube_asset_type is `YOUTUBE_ASSET_TYPE_LOCATION`. */
3297
+ locationAssetFilter?: YoutubeAssetAssociationLocationAssetFilter;
3298
+ /** A sitelink asset. This can be set only when youtube_asset_type is `YOUTUBE_ASSET_TYPE_SITELINK`. */
3299
+ sitelinkAsset?: YoutubeAssetAssociationSitelinkAsset;
3300
+ }
3301
+ interface YoutubeAssetAssociationLocationAssetFilter {
3302
+ /** Output only. The ID of the asset set that matches the location assets eligible for serving. */
3303
+ assetSetId?: string;
3304
+ /** Optional. The matching function that determines how the location asset filter matches location assets. This field is required and can only be set for if location_matching_type is `FILTER` or `SELECTED_ASSETS`. */
3305
+ locationMatchingFunction?: YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction;
3306
+ /** Required. The matching type of this location asset filter. */
3307
+ locationMatchingType?: string;
3308
+ }
3309
+ interface YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction {
3310
+ /** Optional. The business name to match with. This field is optional and can only be set if location_matching_type is `FILTER`. */
3311
+ business?: string;
3312
+ /** Optional. The labels to match with. Labels are logically OR'ed together. This field is optional and can only be set if location_matching_type is `FILTER`. */
3313
+ labels?: string[];
3314
+ /** Optional. The selected location asset IDs. This field is required if location_matching_type is `SELECTED_ASSETS`. */
3315
+ locationAssetIds?: string[];
3316
+ }
3317
+ interface YoutubeAssetAssociationSitelinkAsset {
3318
+ /** Required. ID of the sitelink asset. */
3319
+ assetId?: string;
3320
+ }
3062
3321
  interface YoutubeChannelAssignedTargetingOptionDetails {
3063
3322
  /** The YouTube uploader channel id or the channel code of a YouTube channel. */
3064
3323
  channelId?: string;
3065
3324
  /** Indicates if this option is being negatively targeted. */
3066
3325
  negative?: boolean;
3067
3326
  }
3327
+ interface YoutubeVideoAsset {
3328
+ /** Required. The YouTube video id of the asset. This is the 11 char string value used in the YouTube video URL. */
3329
+ youtubeVideoId?: string;
3330
+ }
3068
3331
  interface YoutubeVideoAssignedTargetingOptionDetails {
3069
3332
  /** Indicates if this option is being negatively targeted. */
3070
3333
  negative?: boolean;
@@ -3077,6 +3340,246 @@ declare namespace gapi.client {
3077
3340
  /** The reason why the video data is not available. */
3078
3341
  unavailableReason?: string;
3079
3342
  }
3343
+ interface AdAssetsResource {
3344
+ /** Creates multiple ad assets in a single request. Returns the newly-created ad assets if successful. Only supports the creation of assets of AdAssetType `AD_ASSET_TYPE_YOUTUBE_VIDEO`. */
3345
+ bulkCreate(request: {
3346
+ /** V1 error format. */
3347
+ '$.xgafv'?: string;
3348
+ /** OAuth access token. */
3349
+ access_token?: string;
3350
+ /** Required. The ID of the advertiser these ad assets belong to. */
3351
+ advertiserId: string;
3352
+ /** Data format for response. */
3353
+ alt?: string;
3354
+ /** JSONP */
3355
+ callback?: string;
3356
+ /** Selector specifying which fields to include in a partial response. */
3357
+ fields?: string;
3358
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3359
+ key?: string;
3360
+ /** OAuth 2.0 token for the current user. */
3361
+ oauth_token?: string;
3362
+ /** Returns response with indentations and line breaks. */
3363
+ prettyPrint?: boolean;
3364
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3365
+ quotaUser?: string;
3366
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3367
+ upload_protocol?: string;
3368
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3369
+ uploadType?: string;
3370
+ /** Request body */
3371
+ resource: BulkCreateAdAssetsRequest;
3372
+ }): Request<BulkCreateAdAssetsResponse>;
3373
+ bulkCreate(
3374
+ request: {
3375
+ /** V1 error format. */
3376
+ '$.xgafv'?: string;
3377
+ /** OAuth access token. */
3378
+ access_token?: string;
3379
+ /** Required. The ID of the advertiser these ad assets belong to. */
3380
+ advertiserId: string;
3381
+ /** Data format for response. */
3382
+ alt?: string;
3383
+ /** JSONP */
3384
+ callback?: string;
3385
+ /** Selector specifying which fields to include in a partial response. */
3386
+ fields?: string;
3387
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3388
+ key?: string;
3389
+ /** OAuth 2.0 token for the current user. */
3390
+ oauth_token?: string;
3391
+ /** Returns response with indentations and line breaks. */
3392
+ prettyPrint?: boolean;
3393
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3394
+ quotaUser?: string;
3395
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3396
+ upload_protocol?: string;
3397
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3398
+ uploadType?: string;
3399
+ },
3400
+ body: BulkCreateAdAssetsRequest,
3401
+ ): Request<BulkCreateAdAssetsResponse>;
3402
+ /** Creates an ad asset. Returns the newly-created ad asset if successful. Only supports the creation of assets of AdAssetType `AD_ASSET_TYPE_YOUTUBE_VIDEO`. */
3403
+ create(request: {
3404
+ /** V1 error format. */
3405
+ '$.xgafv'?: string;
3406
+ /** OAuth access token. */
3407
+ access_token?: string;
3408
+ /** Required. The ID of the advertiser this ad asset belongs to. */
3409
+ advertiserId: string;
3410
+ /** Data format for response. */
3411
+ alt?: string;
3412
+ /** JSONP */
3413
+ callback?: string;
3414
+ /** Selector specifying which fields to include in a partial response. */
3415
+ fields?: string;
3416
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3417
+ key?: string;
3418
+ /** OAuth 2.0 token for the current user. */
3419
+ oauth_token?: string;
3420
+ /** Returns response with indentations and line breaks. */
3421
+ prettyPrint?: boolean;
3422
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3423
+ quotaUser?: string;
3424
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3425
+ upload_protocol?: string;
3426
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3427
+ uploadType?: string;
3428
+ /** Request body */
3429
+ resource: CreateAdAssetRequest;
3430
+ }): Request<AdAsset>;
3431
+ create(
3432
+ request: {
3433
+ /** V1 error format. */
3434
+ '$.xgafv'?: string;
3435
+ /** OAuth access token. */
3436
+ access_token?: string;
3437
+ /** Required. The ID of the advertiser this ad asset belongs to. */
3438
+ advertiserId: string;
3439
+ /** Data format for response. */
3440
+ alt?: string;
3441
+ /** JSONP */
3442
+ callback?: string;
3443
+ /** Selector specifying which fields to include in a partial response. */
3444
+ fields?: string;
3445
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3446
+ key?: string;
3447
+ /** OAuth 2.0 token for the current user. */
3448
+ oauth_token?: string;
3449
+ /** Returns response with indentations and line breaks. */
3450
+ prettyPrint?: boolean;
3451
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3452
+ quotaUser?: string;
3453
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3454
+ upload_protocol?: string;
3455
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3456
+ uploadType?: string;
3457
+ },
3458
+ body: CreateAdAssetRequest,
3459
+ ): Request<AdAsset>;
3460
+ /** Gets an ad asset. Only supports the retrieval of assets of AdAssetType `AD_ASSET_TYPE_YOUTUBE_VIDEO`. */
3461
+ get(request?: {
3462
+ /** V1 error format. */
3463
+ '$.xgafv'?: string;
3464
+ /** OAuth access token. */
3465
+ access_token?: string;
3466
+ /** Required. The ID of the ad asset to fetch. Only supports assets of AdAssetType `AD_ASSET_TYPE_YOUTUBE_VIDEO` */
3467
+ adAssetId: string;
3468
+ /** Required. The ID of the advertiser this ad asset belongs to. */
3469
+ advertiserId: string;
3470
+ /** Data format for response. */
3471
+ alt?: string;
3472
+ /** JSONP */
3473
+ callback?: string;
3474
+ /** Selector specifying which fields to include in a partial response. */
3475
+ fields?: string;
3476
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3477
+ key?: string;
3478
+ /** OAuth 2.0 token for the current user. */
3479
+ oauth_token?: string;
3480
+ /** Returns response with indentations and line breaks. */
3481
+ prettyPrint?: boolean;
3482
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3483
+ quotaUser?: string;
3484
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3485
+ upload_protocol?: string;
3486
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3487
+ uploadType?: string;
3488
+ }): Request<AdAsset>;
3489
+ /** Lists ad assets under an advertiser ID. Only supports the retrieval of assets of AdAssetType `AD_ASSET_TYPE_YOUTUBE_VIDEO`. */
3490
+ list(request?: {
3491
+ /** V1 error format. */
3492
+ '$.xgafv'?: string;
3493
+ /** OAuth access token. */
3494
+ access_token?: string;
3495
+ /** Required. The ID of the advertiser the ad assets belong to. */
3496
+ advertiserId: string;
3497
+ /** Data format for response. */
3498
+ alt?: string;
3499
+ /** JSONP */
3500
+ callback?: string;
3501
+ /** Selector specifying which fields to include in a partial response. */
3502
+ fields?: string;
3503
+ /** Optional. Allows filtering of the results by ad asset fields. Supported syntax: * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `youtubeVideoAsset.youtubeVideoId` * `entityStatus` Examples: * All active YouTube video ad assets under an advertiser: `entityStatus=ENTITY_STATUS_ACTIVE` */
3504
+ filter?: string;
3505
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3506
+ key?: string;
3507
+ /** OAuth 2.0 token for the current user. */
3508
+ oauth_token?: string;
3509
+ /** Optional. Field by which to sort the list. Acceptable values are: * `entityStatus` * `youtubeVideoAsset.youtubeVideoId` * `adAssetId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix "desc" should be added to the field name. Example: `adAssetId desc`. */
3510
+ orderBy?: string;
3511
+ /** Optional. Requested page size. Must be between `1` and `5000`. If unspecified will default to `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified. */
3512
+ pageSize?: number;
3513
+ /** Optional. A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListAdAssets` method. If not specified, the first page of results will be returned. */
3514
+ pageToken?: string;
3515
+ /** Returns response with indentations and line breaks. */
3516
+ prettyPrint?: boolean;
3517
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3518
+ quotaUser?: string;
3519
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3520
+ upload_protocol?: string;
3521
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3522
+ uploadType?: string;
3523
+ }): Request<ListAdAssetsResponse>;
3524
+ /** Uploads and creates an ad asset. Returns the ID of the newly-created ad asset if successful. Only supports the uploading of assets with the AdAssetType `AD_ASSET_TYPE_IMAGE`. */
3525
+ upload(request: {
3526
+ /** V1 error format. */
3527
+ '$.xgafv'?: string;
3528
+ /** OAuth access token. */
3529
+ access_token?: string;
3530
+ /** Required. The ID of the advertiser this ad asset belongs to. */
3531
+ advertiserId: string;
3532
+ /** Data format for response. */
3533
+ alt?: string;
3534
+ /** JSONP */
3535
+ callback?: string;
3536
+ /** Selector specifying which fields to include in a partial response. */
3537
+ fields?: string;
3538
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3539
+ key?: string;
3540
+ /** OAuth 2.0 token for the current user. */
3541
+ oauth_token?: string;
3542
+ /** Returns response with indentations and line breaks. */
3543
+ prettyPrint?: boolean;
3544
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3545
+ quotaUser?: string;
3546
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3547
+ upload_protocol?: string;
3548
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3549
+ uploadType?: string;
3550
+ /** Request body */
3551
+ resource: UploadAdAssetRequest;
3552
+ }): Request<UploadAdAssetResponse>;
3553
+ upload(
3554
+ request: {
3555
+ /** V1 error format. */
3556
+ '$.xgafv'?: string;
3557
+ /** OAuth access token. */
3558
+ access_token?: string;
3559
+ /** Required. The ID of the advertiser this ad asset belongs to. */
3560
+ advertiserId: string;
3561
+ /** Data format for response. */
3562
+ alt?: string;
3563
+ /** JSONP */
3564
+ callback?: string;
3565
+ /** Selector specifying which fields to include in a partial response. */
3566
+ fields?: string;
3567
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3568
+ key?: string;
3569
+ /** OAuth 2.0 token for the current user. */
3570
+ oauth_token?: string;
3571
+ /** Returns response with indentations and line breaks. */
3572
+ prettyPrint?: boolean;
3573
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3574
+ quotaUser?: string;
3575
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3576
+ upload_protocol?: string;
3577
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3578
+ uploadType?: string;
3579
+ },
3580
+ body: UploadAdAssetRequest,
3581
+ ): Request<UploadAdAssetResponse>;
3582
+ }
3080
3583
  interface AdGroupAdsResource {
3081
3584
  /** Gets an ad group ad. */
3082
3585
  get(request?: {
@@ -3220,6 +3723,155 @@ declare namespace gapi.client {
3220
3723
  interface TargetingTypesResource {
3221
3724
  assignedTargetingOptions: AssignedTargetingOptionsResource;
3222
3725
  }
3726
+ interface YoutubeAssetAssociationsResource {
3727
+ /** Creates a new association between the identified resource and a YouTube asset. Returns the newly-created association. *Warning:* This method is only available to an informed subset of users. */
3728
+ create(request: {
3729
+ /** V1 error format. */
3730
+ '$.xgafv'?: string;
3731
+ /** OAuth access token. */
3732
+ access_token?: string;
3733
+ /** The ID of an ad group. */
3734
+ adGroupId: string;
3735
+ /** Required. The ID of the advertiser that the linked entity belongs to. */
3736
+ advertiserId: string;
3737
+ /** Data format for response. */
3738
+ alt?: string;
3739
+ /** JSONP */
3740
+ callback?: string;
3741
+ /** Selector specifying which fields to include in a partial response. */
3742
+ fields?: string;
3743
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3744
+ key?: string;
3745
+ /** The ID of a line item. */
3746
+ 'linkedEntity.lineItemId'?: string;
3747
+ /** OAuth 2.0 token for the current user. */
3748
+ oauth_token?: string;
3749
+ /** Returns response with indentations and line breaks. */
3750
+ prettyPrint?: boolean;
3751
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3752
+ quotaUser?: string;
3753
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3754
+ upload_protocol?: string;
3755
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3756
+ uploadType?: string;
3757
+ /** Required. The type of YouTube asset associated with the resource. */
3758
+ youtubeAssetType: string;
3759
+ /** Request body */
3760
+ resource: YoutubeAssetAssociation;
3761
+ }): Request<YoutubeAssetAssociation>;
3762
+ create(
3763
+ request: {
3764
+ /** V1 error format. */
3765
+ '$.xgafv'?: string;
3766
+ /** OAuth access token. */
3767
+ access_token?: string;
3768
+ /** The ID of an ad group. */
3769
+ adGroupId: string;
3770
+ /** Required. The ID of the advertiser that the linked entity belongs to. */
3771
+ advertiserId: string;
3772
+ /** Data format for response. */
3773
+ alt?: string;
3774
+ /** JSONP */
3775
+ callback?: string;
3776
+ /** Selector specifying which fields to include in a partial response. */
3777
+ fields?: string;
3778
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3779
+ key?: string;
3780
+ /** The ID of a line item. */
3781
+ 'linkedEntity.lineItemId'?: string;
3782
+ /** OAuth 2.0 token for the current user. */
3783
+ oauth_token?: string;
3784
+ /** Returns response with indentations and line breaks. */
3785
+ prettyPrint?: boolean;
3786
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3787
+ quotaUser?: string;
3788
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3789
+ upload_protocol?: string;
3790
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3791
+ uploadType?: string;
3792
+ /** Required. The type of YouTube asset associated with the resource. */
3793
+ youtubeAssetType: string;
3794
+ },
3795
+ body: YoutubeAssetAssociation,
3796
+ ): Request<YoutubeAssetAssociation>;
3797
+ /** Deletes an existing association between the identified resource and a YouTube asset. *Warning:* This method is only available to an informed subset of users. */
3798
+ delete(request?: {
3799
+ /** V1 error format. */
3800
+ '$.xgafv'?: string;
3801
+ /** OAuth access token. */
3802
+ access_token?: string;
3803
+ /** The ID of an ad group. */
3804
+ adGroupId: string;
3805
+ /** Required. The ID of the advertiser that the linked entity belongs to. */
3806
+ advertiserId: string;
3807
+ /** Data format for response. */
3808
+ alt?: string;
3809
+ /** JSONP */
3810
+ callback?: string;
3811
+ /** Selector specifying which fields to include in a partial response. */
3812
+ fields?: string;
3813
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3814
+ key?: string;
3815
+ /** The ID of a line item. */
3816
+ 'linkedEntity.lineItemId'?: string;
3817
+ /** OAuth 2.0 token for the current user. */
3818
+ oauth_token?: string;
3819
+ /** Returns response with indentations and line breaks. */
3820
+ prettyPrint?: boolean;
3821
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3822
+ quotaUser?: string;
3823
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3824
+ upload_protocol?: string;
3825
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3826
+ uploadType?: string;
3827
+ /** Required. The ID of the YouTube asset in the association. For `YOUTUBE_ASSET_TYPE_LOCATION` and `YOUTUBE_ASSET_TYPE_AFFILIATE_LOCATION` associations: This should be the ID of the asset set linked, or 0 if the location_asset_filter or affiliate_location_asset_filter is `DISABLED`. For `YOUTUBE_ASSET_TYPE_SITELINK` associations: This should be the ID of the sitelink asset linked. */
3828
+ youtubeAssetAssociationId: string;
3829
+ /** Required. The type of YouTube asset associated with the resource. */
3830
+ youtubeAssetType: string;
3831
+ }): Request<{}>;
3832
+ /** Lists the YouTube asset associations linked to the given resource. */
3833
+ list(request?: {
3834
+ /** V1 error format. */
3835
+ '$.xgafv'?: string;
3836
+ /** OAuth access token. */
3837
+ access_token?: string;
3838
+ /** The ID of an ad group. */
3839
+ adGroupId: string;
3840
+ /** Required. The ID of the advertiser that the linked entity belongs to. */
3841
+ advertiserId: string;
3842
+ /** Data format for response. */
3843
+ alt?: string;
3844
+ /** JSONP */
3845
+ callback?: string;
3846
+ /** Selector specifying which fields to include in a partial response. */
3847
+ fields?: string;
3848
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3849
+ key?: string;
3850
+ /** The ID of a line item. */
3851
+ 'linkedEntity.lineItemId'?: string;
3852
+ /** OAuth 2.0 token for the current user. */
3853
+ oauth_token?: string;
3854
+ /** Optional. Field by which to sort the list. The only acceptable values are: * `linkedYoutubeAsset.locationAssetFilter.assetSetId`, * `linkedYoutubeAsset.affiliateLocationAssetFilter.assetSetId`, * `linkedYoutubeAsset.sitelinkAsset.assetId` The default sorting order is ascending. To specify descending order for a field, a suffix " desc" should be added to the field name. Example: `linkedYoutubeAsset.sitelinkAsset.assetId desc`. */
3855
+ orderBy?: string;
3856
+ /** Optional. Requested page size. Must be between `1` and `10000`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified. */
3857
+ pageSize?: number;
3858
+ /** Optional. A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListYoutubeAssetAssociations` method. If not specified, the first page of results will be returned. */
3859
+ pageToken?: string;
3860
+ /** Returns response with indentations and line breaks. */
3861
+ prettyPrint?: boolean;
3862
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3863
+ quotaUser?: string;
3864
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3865
+ upload_protocol?: string;
3866
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3867
+ uploadType?: string;
3868
+ /** Required. The type of YouTube asset being associated with the resource. */
3869
+ youtubeAssetType: string;
3870
+ }): Request<ListYoutubeAssetAssociationsResponse>;
3871
+ }
3872
+ interface YoutubeAssetTypesResource {
3873
+ youtubeAssetAssociations: YoutubeAssetAssociationsResource;
3874
+ }
3223
3875
  interface AdGroupsResource {
3224
3876
  /** Lists assigned targeting options for multiple ad groups across targeting types. Inherited assigned targeting options are not included. */
3225
3877
  bulkListAssignedTargetingOptions(request?: {
@@ -3323,6 +3975,7 @@ declare namespace gapi.client {
3323
3975
  uploadType?: string;
3324
3976
  }): Request<ListAdGroupsResponse>;
3325
3977
  targetingTypes: TargetingTypesResource;
3978
+ youtubeAssetTypes: YoutubeAssetTypesResource;
3326
3979
  }
3327
3980
  interface AssetsResource {
3328
3981
  /** Uploads an asset. Returns the ID of the newly uploaded asset if successful. The asset file size should be no more than 10 MB for images, 200 MB for ZIP files, and 1 GB for videos. Must be used within the [multipart media upload process](/display-video/api/guides/how-tos/upload#multipart). Examples using provided client libraries can be found in our [Creating Creatives guide](/display-video/api/guides/creating-creatives/overview#upload_an_asset). */
@@ -5079,6 +5732,155 @@ declare namespace gapi.client {
5079
5732
  interface TargetingTypesResource {
5080
5733
  assignedTargetingOptions: AssignedTargetingOptionsResource;
5081
5734
  }
5735
+ interface YoutubeAssetAssociationsResource {
5736
+ /** Creates a new association between the identified resource and a YouTube asset. Returns the newly-created association. *Warning:* This method is only available to an informed subset of users. */
5737
+ create(request: {
5738
+ /** V1 error format. */
5739
+ '$.xgafv'?: string;
5740
+ /** OAuth access token. */
5741
+ access_token?: string;
5742
+ /** Required. The ID of the advertiser that the linked entity belongs to. */
5743
+ advertiserId: string;
5744
+ /** Data format for response. */
5745
+ alt?: string;
5746
+ /** JSONP */
5747
+ callback?: string;
5748
+ /** Selector specifying which fields to include in a partial response. */
5749
+ fields?: string;
5750
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5751
+ key?: string;
5752
+ /** The ID of a line item. */
5753
+ lineItemId: string;
5754
+ /** The ID of an ad group. */
5755
+ 'linkedEntity.adGroupId'?: string;
5756
+ /** OAuth 2.0 token for the current user. */
5757
+ oauth_token?: string;
5758
+ /** Returns response with indentations and line breaks. */
5759
+ prettyPrint?: boolean;
5760
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5761
+ quotaUser?: string;
5762
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5763
+ upload_protocol?: string;
5764
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5765
+ uploadType?: string;
5766
+ /** Required. The type of YouTube asset associated with the resource. */
5767
+ youtubeAssetType: string;
5768
+ /** Request body */
5769
+ resource: YoutubeAssetAssociation;
5770
+ }): Request<YoutubeAssetAssociation>;
5771
+ create(
5772
+ request: {
5773
+ /** V1 error format. */
5774
+ '$.xgafv'?: string;
5775
+ /** OAuth access token. */
5776
+ access_token?: string;
5777
+ /** Required. The ID of the advertiser that the linked entity belongs to. */
5778
+ advertiserId: string;
5779
+ /** Data format for response. */
5780
+ alt?: string;
5781
+ /** JSONP */
5782
+ callback?: string;
5783
+ /** Selector specifying which fields to include in a partial response. */
5784
+ fields?: string;
5785
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5786
+ key?: string;
5787
+ /** The ID of a line item. */
5788
+ lineItemId: string;
5789
+ /** The ID of an ad group. */
5790
+ 'linkedEntity.adGroupId'?: string;
5791
+ /** OAuth 2.0 token for the current user. */
5792
+ oauth_token?: string;
5793
+ /** Returns response with indentations and line breaks. */
5794
+ prettyPrint?: boolean;
5795
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5796
+ quotaUser?: string;
5797
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5798
+ upload_protocol?: string;
5799
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5800
+ uploadType?: string;
5801
+ /** Required. The type of YouTube asset associated with the resource. */
5802
+ youtubeAssetType: string;
5803
+ },
5804
+ body: YoutubeAssetAssociation,
5805
+ ): Request<YoutubeAssetAssociation>;
5806
+ /** Deletes an existing association between the identified resource and a YouTube asset. *Warning:* This method is only available to an informed subset of users. */
5807
+ delete(request?: {
5808
+ /** V1 error format. */
5809
+ '$.xgafv'?: string;
5810
+ /** OAuth access token. */
5811
+ access_token?: string;
5812
+ /** Required. The ID of the advertiser that the linked entity belongs to. */
5813
+ advertiserId: string;
5814
+ /** Data format for response. */
5815
+ alt?: string;
5816
+ /** JSONP */
5817
+ callback?: string;
5818
+ /** Selector specifying which fields to include in a partial response. */
5819
+ fields?: string;
5820
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5821
+ key?: string;
5822
+ /** The ID of a line item. */
5823
+ lineItemId: string;
5824
+ /** The ID of an ad group. */
5825
+ 'linkedEntity.adGroupId'?: string;
5826
+ /** OAuth 2.0 token for the current user. */
5827
+ oauth_token?: string;
5828
+ /** Returns response with indentations and line breaks. */
5829
+ prettyPrint?: boolean;
5830
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5831
+ quotaUser?: string;
5832
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5833
+ upload_protocol?: string;
5834
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5835
+ uploadType?: string;
5836
+ /** Required. The ID of the YouTube asset in the association. For `YOUTUBE_ASSET_TYPE_LOCATION` and `YOUTUBE_ASSET_TYPE_AFFILIATE_LOCATION` associations: This should be the ID of the asset set linked, or 0 if the location_asset_filter or affiliate_location_asset_filter is `DISABLED`. For `YOUTUBE_ASSET_TYPE_SITELINK` associations: This should be the ID of the sitelink asset linked. */
5837
+ youtubeAssetAssociationId: string;
5838
+ /** Required. The type of YouTube asset associated with the resource. */
5839
+ youtubeAssetType: string;
5840
+ }): Request<{}>;
5841
+ /** Lists the YouTube asset associations linked to the given resource. */
5842
+ list(request?: {
5843
+ /** V1 error format. */
5844
+ '$.xgafv'?: string;
5845
+ /** OAuth access token. */
5846
+ access_token?: string;
5847
+ /** Required. The ID of the advertiser that the linked entity belongs to. */
5848
+ advertiserId: string;
5849
+ /** Data format for response. */
5850
+ alt?: string;
5851
+ /** JSONP */
5852
+ callback?: string;
5853
+ /** Selector specifying which fields to include in a partial response. */
5854
+ fields?: string;
5855
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5856
+ key?: string;
5857
+ /** The ID of a line item. */
5858
+ lineItemId: string;
5859
+ /** The ID of an ad group. */
5860
+ 'linkedEntity.adGroupId'?: string;
5861
+ /** OAuth 2.0 token for the current user. */
5862
+ oauth_token?: string;
5863
+ /** Optional. Field by which to sort the list. The only acceptable values are: * `linkedYoutubeAsset.locationAssetFilter.assetSetId`, * `linkedYoutubeAsset.affiliateLocationAssetFilter.assetSetId`, * `linkedYoutubeAsset.sitelinkAsset.assetId` The default sorting order is ascending. To specify descending order for a field, a suffix " desc" should be added to the field name. Example: `linkedYoutubeAsset.sitelinkAsset.assetId desc`. */
5864
+ orderBy?: string;
5865
+ /** Optional. Requested page size. Must be between `1` and `10000`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified. */
5866
+ pageSize?: number;
5867
+ /** Optional. A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListYoutubeAssetAssociations` method. If not specified, the first page of results will be returned. */
5868
+ pageToken?: string;
5869
+ /** Returns response with indentations and line breaks. */
5870
+ prettyPrint?: boolean;
5871
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5872
+ quotaUser?: string;
5873
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5874
+ upload_protocol?: string;
5875
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5876
+ uploadType?: string;
5877
+ /** Required. The type of YouTube asset being associated with the resource. */
5878
+ youtubeAssetType: string;
5879
+ }): Request<ListYoutubeAssetAssociationsResponse>;
5880
+ }
5881
+ interface YoutubeAssetTypesResource {
5882
+ youtubeAssetAssociations: YoutubeAssetAssociationsResource;
5883
+ }
5082
5884
  interface LineItemsResource {
5083
5885
  /** Bulk edits targeting options under multiple line items. The operation will delete the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.delete_requests and then create the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.create_requests. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * lineItems.bulkUpdate * lineItems.patch * assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube & Partners line items cannot be created or updated using the API. */
5084
5886
  bulkEditAssignedTargetingOptions(request: {
@@ -5571,6 +6373,7 @@ declare namespace gapi.client {
5571
6373
  body: LineItem,
5572
6374
  ): Request<LineItem>;
5573
6375
  targetingTypes: TargetingTypesResource;
6376
+ youtubeAssetTypes: YoutubeAssetTypesResource;
5574
6377
  }
5575
6378
  interface AssignedLocationsResource {
5576
6379
  /** Bulk edits multiple assignments between locations and a single location list. The operation will delete the assigned locations provided in deletedAssignedLocations and then create the assigned locations provided in createdAssignedLocations. */
@@ -6923,6 +7726,7 @@ declare namespace gapi.client {
6923
7726
  },
6924
7727
  body: Advertiser,
6925
7728
  ): Request<Advertiser>;
7729
+ adAssets: AdAssetsResource;
6926
7730
  adGroupAds: AdGroupAdsResource;
6927
7731
  adGroups: AdGroupsResource;
6928
7732
  assets: AssetsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.displayvideo-v4",
3
- "version": "0.2.20251006",
3
+ "version": "0.2.20251027",
4
4
  "description": "TypeScript typings for Display & Video 360 API v4",
5
5
  "repository": {
6
6
  "type": "git",