@maxim_mazurok/gapi.client.dfareporting-v4 0.0.20240625 → 0.0.20240926

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 (3) hide show
  1. package/index.d.ts +168 -5
  2. package/package.json +1 -1
  3. package/readme.md +15 -0
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://dfareporting.googleapis.com/$discovery/rest?version=v4
12
- // Revision: 20240625
12
+ // Revision: 20240926
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -566,6 +566,24 @@ declare namespace gapi.client {
566
566
  /** The total amount of charges for this campaign, in micros of the invoice's currency. */
567
567
  totalAmountMicros?: string;
568
568
  }
569
+ interface CartData {
570
+ /** Data of the items purchased. */
571
+ items?: CartDataItem[];
572
+ /** The feed labels associated with the feed where your items are uploaded. For more information, please refer to https://support.google.com/merchants/answer/12453549. This is a required field. */
573
+ merchantFeedLabel?: string;
574
+ /** The language associated with the feed where your items are uploaded. Use ISO 639-1 language codes. This field is needed only when item IDs are not unique across multiple Merchant Center feeds. */
575
+ merchantFeedLanguage?: string;
576
+ /** The Merchant Center ID where the items are uploaded. This is a required field. */
577
+ merchantId?: string;
578
+ }
579
+ interface CartDataItem {
580
+ /** The shopping id of the item. Must be equal to the Merchant Center product identifier. This is a required field. */
581
+ itemId?: string;
582
+ /** Number of items sold. This is a required field. */
583
+ quantity?: number;
584
+ /** Unit price excluding tax, shipping, and any transaction level discounts. Interpreted in CM360 Floodlight config parent advertiser's currency code. This is a required field. */
585
+ unitPrice?: number;
586
+ }
569
587
  interface ChangeLog {
570
588
  /** Account ID of the modified object. */
571
589
  accountId?: string;
@@ -672,6 +690,8 @@ declare namespace gapi.client {
672
690
  interface CompatibleFields {
673
691
  /** Contains items that are compatible to be selected for a report of type "CROSS_DIMENSION_REACH". */
674
692
  crossDimensionReachReportCompatibleFields?: CrossDimensionReachReportCompatibleFields;
693
+ /** Contains items that are compatible to be selected for a report of type "CROSS_MEDIA_REACH". */
694
+ crossMediaReachReportCompatibleFields?: CrossMediaReachReportCompatibleFields;
675
695
  /** Contains items that are compatible to be selected for a report of type "FLOODLIGHT". */
676
696
  floodlightReportCompatibleFields?: FloodlightReportCompatibleFields;
677
697
  /** The kind of resource this is, in this case dfareporting#compatibleFields. */
@@ -718,9 +738,11 @@ declare namespace gapi.client {
718
738
  interface Conversion {
719
739
  /** This represents consent for ad user data. */
720
740
  adUserDataConsent?: string;
741
+ /** The cart data associated with this conversion. */
742
+ cartData?: CartData;
721
743
  /** Whether this particular request may come from a user under the age of 13, under COPPA compliance. */
722
744
  childDirectedTreatment?: boolean;
723
- /** Custom floodlight variables. This field may only be used when calling batchinsert; it is not supported by batchupdate. */
745
+ /** Custom floodlight variables. */
724
746
  customVariables?: CustomFloodlightVariable[];
725
747
  /** The display click ID. This field is mutually exclusive with encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId, gclid, and impressionId. This or encryptedUserId or encryptedUserIdCandidates[] or matchId or mobileDeviceId or gclid or impressionId is a required field. */
726
748
  dclid?: string;
@@ -1269,10 +1291,20 @@ declare namespace gapi.client {
1269
1291
  /** Metrics which are compatible to be selected in the "overlapMetricNames" section of the report. */
1270
1292
  overlapMetrics?: Metric[];
1271
1293
  }
1294
+ interface CrossMediaReachReportCompatibleFields {
1295
+ /** Dimensions which are compatible to be selected in the "dimensionFilters" section of the report. */
1296
+ dimensionFilters?: Dimension[];
1297
+ /** Dimensions which are compatible to be selected in the "dimensions" section of the report. */
1298
+ dimensions?: Dimension[];
1299
+ /** The kind of resource this is, in this case dfareporting#crossMediaReachReportCompatibleFields. */
1300
+ kind?: string;
1301
+ /** Metrics which are compatible to be selected in the "metricNames" section of the report. */
1302
+ metrics?: Metric[];
1303
+ }
1272
1304
  interface CustomFloodlightVariable {
1273
1305
  /** Identifies what kind of resource this is. Value: the fixed string "dfareporting#customFloodlightVariable". */
1274
1306
  kind?: string;
1275
- /** The type of custom floodlight variable to supply a value for. These map to the "u[1-20]=" in the tags. */
1307
+ /** The type of custom floodlight variable to supply a value for. These map to the "u[1-100]=" in the tags. */
1276
1308
  type?: string;
1277
1309
  /** The value of the custom floodlight variable. The length of string must not exceed 100 characters. */
1278
1310
  value?: string;
@@ -1418,6 +1450,8 @@ declare namespace gapi.client {
1418
1450
  kind?: string;
1419
1451
  /** Name of this directory site. */
1420
1452
  name?: string;
1453
+ /** Output only. Default publisher specification ID of video placements under this directory site. Possible values are: * `1`, Hulu * `2`, NBC * `3`, CBS * `4`, CBS Desktop * `5`, Discovery * `6`, VEVO HD * `7`, VEVO Vertical * `8`, Fox * `9`, CW Network * `10`, Disney * `11`, IGN * `12`, NFL.com * `13`, Turner Broadcasting * `14`, Tubi on Fox * `15`, Hearst Corporation * `16`, Twitch Desktop * `17`, ABC * `18`, Univision * `19`, MLB.com * `20`, MLB.com Mobile * `21`, MLB.com OTT * `22`, Polsat * `23`, TVN * `24`, Mediaset * `25`, Antena 3 * `26`, Mediamond * `27`, Sky Italia * `28`, Tubi on CBS * `29`, Spotify * `30`, Paramount * `31`, Max */
1454
+ publisherSpecificationId?: string;
1421
1455
  /** Directory site settings. */
1422
1456
  settings?: DirectorySiteSettings;
1423
1457
  /** URL of this directory site. */
@@ -2226,6 +2260,8 @@ declare namespace gapi.client {
2226
2260
  adBlockingOptOut?: boolean;
2227
2261
  /** Additional sizes associated with this placement. When inserting or updating a placement, only the size ID field is used. */
2228
2262
  additionalSizes?: Size[];
2263
+ /** Optional. Ad serving platform ID to identify the ad serving platform used by the placement. Measurement partners can use this field to add ad-server specific macros. Possible values are: * `1`, Adelphic * `2`, Adform * `3`, Adobe * `4`, Amobee * `5`, Basis (Centro) * `6`, Beeswax * `7`, Amazon * `8`, DV360 (DBM) * `9`, Innovid * `10`, MediaMath * `11`, Roku OneView DSP * `12`, TabMo Hawk * `13`, The Trade Desk * `14`, Xandr Invest DSP * `15`, Yahoo DSP * `16`, Zeta Global * `17`, Scaleout * `18`, Bidtellect * `19`, Unicorn * `20`, Teads * `21`, Quantcast * `22`, Cognitiv */
2264
+ adServingPlatformId?: string;
2229
2265
  /** Advertiser ID of this placement. This field can be left blank. */
2230
2266
  advertiserId?: string;
2231
2267
  /** Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. */
@@ -2286,6 +2322,8 @@ declare namespace gapi.client {
2286
2322
  siteId?: string;
2287
2323
  /** Dimension value for the ID of the site. This is a read-only, auto-generated field. */
2288
2324
  siteIdDimensionValue?: DimensionValue;
2325
+ /** Optional. Whether the ads in the placement are served by another platform and CM is only used for tracking or they are served by CM. A false value indicates the ad is served by CM. */
2326
+ siteServed?: boolean;
2289
2327
  /** Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion. */
2290
2328
  size?: Size;
2291
2329
  /** Whether creatives assigned to this placement must be SSL-compliant. */
@@ -2688,6 +2726,17 @@ declare namespace gapi.client {
2688
2726
  /** Whether the report is pivoted or not. Defaults to true. */
2689
2727
  pivoted?: boolean;
2690
2728
  };
2729
+ /** Optional. The report criteria for a report of type "CROSS_MEDIA_REACH". */
2730
+ crossMediaReachCriteria?: {
2731
+ /** Required. The date range this report should be run for. */
2732
+ dateRange?: DateRange;
2733
+ /** Required. The list of filters on which dimensions are filtered. Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed. */
2734
+ dimensionFilters?: DimensionValue[];
2735
+ /** Required. The list of dimensions the report should include. */
2736
+ dimensions?: SortedDimension[];
2737
+ /** Required. The list of names of metrics the report should include. */
2738
+ metricNames?: string[];
2739
+ };
2691
2740
  /** The report's email delivery settings. */
2692
2741
  delivery?: {
2693
2742
  /** Whether the report should be emailed to the report owner. */
@@ -2869,6 +2918,8 @@ declare namespace gapi.client {
2869
2918
  interface Site {
2870
2919
  /** Account ID of this site. This is a read-only field that can be left blank. */
2871
2920
  accountId?: string;
2921
+ /** Optional. Ad serving platform ID to identify the ad serving platform used by the site. Measurement partners can use this field to add ad-server specific macros. If set, this value acts as the default during placement creation. Possible values are: * `1`, Adelphic * `2`, Adform * `3`, Adobe * `4`, Amobee * `5`, Basis (Centro) * `6`, Beeswax * `7`, Amazon * `8`, DV360 (DBM) * `9`, Innovid * `10`, MediaMath * `11`, Roku OneView DSP * `12`, TabMo Hawk * `13`, The Trade Desk * `14`, Xandr Invest DSP * `15`, Yahoo DSP * `16`, Zeta Global * `17`, Scaleout * `18`, Bidtellect * `19`, Unicorn * `20`, Teads * `21`, Quantcast * `22`, Cognitiv */
2922
+ adServingPlatformId?: string;
2872
2923
  /** Whether this site is approved. */
2873
2924
  approved?: boolean;
2874
2925
  /** Directory site associated with this site. This is a required field that is read-only after insertion. */
@@ -2971,7 +3022,7 @@ declare namespace gapi.client {
2971
3022
  obaSettings?: ObaIcon;
2972
3023
  /** Orientation of a site template used for video. This will act as default for new placements created under this site. */
2973
3024
  orientation?: string;
2974
- /** Publisher specification ID used to identify site-associated publisher requirements and automatically populate transcode settings. If publisher specification ID is specified, it will take precedence over transcode settings. */
3025
+ /** Publisher specification ID used to identify site-associated publisher requirements and automatically populate transcode settings. If publisher specification ID is specified, it will take precedence over transcode settings. Possible values are: * `1`, Hulu * `2`, NBC * `3`, CBS * `4`, CBS Desktop * `5`, Discovery * `6`, VEVO HD * `7`, VEVO Vertical * `8`, Fox * `9`, CW Network * `10`, Disney * `11`, IGN * `12`, NFL.com * `13`, Turner Broadcasting * `14`, Tubi on Fox * `15`, Hearst Corporation * `16`, Twitch Desktop * `17`, ABC * `18`, Univision * `19`, MLB.com * `20`, MLB.com Mobile * `21`, MLB.com OTT * `22`, Polsat * `23`, TVN * `24`, Mediaset * `25`, Antena 3 * `26`, Mediamond * `27`, Sky Italia * `28`, Tubi on CBS * `29`, Spotify * `30`, Paramount * `31`, Max */
2975
3026
  publisherSpecificationId?: string;
2976
3027
  /** Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site. */
2977
3028
  skippableSettings?: SiteSkippableSetting;
@@ -3170,6 +3221,48 @@ declare namespace gapi.client {
3170
3221
  /** Identifies what kind of resource this is. Value: the fixed string "dfareporting#transcodeSetting". */
3171
3222
  kind?: string;
3172
3223
  }
3224
+ interface TvCampaignDetail {
3225
+ /** ID of this TV campaign. */
3226
+ id?: string;
3227
+ /** Identifies what kind of resource this is. Value: the fixed string "dfareporting#tvCampaignSummary". */
3228
+ kind?: string;
3229
+ /** The timepoints of the TV campaign. */
3230
+ timepoints?: TvCampaignTimepoint[];
3231
+ }
3232
+ interface TvCampaignSummariesListResponse {
3233
+ /** Identifies what kind of resource this is. Value: the fixed string "dfareporting#tvCampaignSummariesListResponse". */
3234
+ kind?: string;
3235
+ /** List of TV campaign summaries. */
3236
+ tvCampaignSummaries?: TvCampaignSummary[];
3237
+ }
3238
+ interface TvCampaignSummary {
3239
+ /** The end date of the TV campaign, inclusive. A string of the format: "yyyy-MM-dd". */
3240
+ endDate?: string;
3241
+ /** GRP of this TV campaign. */
3242
+ grp?: string;
3243
+ /** ID of this TV campaign. */
3244
+ id?: string;
3245
+ /** Impressions across the entire TV campaign. */
3246
+ impressions?: string;
3247
+ /** Identifies what kind of resource this is. Value: the fixed string "dfareporting#tvCampaignSummary". */
3248
+ kind?: string;
3249
+ /** Identifier. Name of this TV campaign. */
3250
+ name?: string;
3251
+ /** Spend across the entire TV campaign. */
3252
+ spend?: number;
3253
+ /** The start date of the TV campaign, inclusive. A string of the format: "yyyy-MM-dd". */
3254
+ startDate?: string;
3255
+ /** "CampaignComponentType" of this TV campaign. */
3256
+ type?: string;
3257
+ }
3258
+ interface TvCampaignTimepoint {
3259
+ /** The date window of the timepoint. */
3260
+ dateWindow?: string;
3261
+ /** The spend within the time range of the timepoint. */
3262
+ spend?: number;
3263
+ /** The start date of the timepoint. A string in the format of "yyyy-MM-dd". */
3264
+ startDate?: string;
3265
+ }
3173
3266
  interface UniversalAdId {
3174
3267
  /** Registry used for the Ad ID value. */
3175
3268
  registry?: string;
@@ -3313,7 +3406,7 @@ declare namespace gapi.client {
3313
3406
  obaSettings?: ObaIcon;
3314
3407
  /** Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation. */
3315
3408
  orientation?: string;
3316
- /** Publisher specification ID of a video placement. */
3409
+ /** Publisher specification ID of a video placement. Possible values are: * `1`, Hulu * `2`, NBC * `3`, CBS * `4`, CBS Desktop * `5`, Discovery * `6`, VEVO HD * `7`, VEVO Vertical * `8`, Fox * `9`, CW Network * `10`, Disney * `11`, IGN * `12`, NFL.com * `13`, Turner Broadcasting * `14`, Tubi on Fox * `15`, Hearst Corporation * `16`, Twitch Desktop * `17`, ABC * `18`, Univision * `19`, MLB.com * `20`, MLB.com Mobile * `21`, MLB.com OTT * `22`, Polsat * `23`, TVN * `24`, Mediaset * `25`, Antena 3 * `26`, Mediamond * `27`, Sky Italia * `28`, Tubi on CBS * `29`, Spotify * `30`, Paramount * `31`, Max */
3317
3410
  publisherSpecificationId?: string;
3318
3411
  /** Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden. */
3319
3412
  skippableSettings?: SkippableSetting;
@@ -12242,6 +12335,72 @@ declare namespace gapi.client {
12242
12335
  body: TargetingTemplate
12243
12336
  ): Request<TargetingTemplate>;
12244
12337
  }
12338
+ interface TvCampaignDetailsResource {
12339
+ /** Gets one TvCampaignDetail by ID. */
12340
+ get(request?: {
12341
+ /** V1 error format. */
12342
+ '$.xgafv'?: string;
12343
+ /** OAuth access token. */
12344
+ access_token?: string;
12345
+ /** Required. Account ID associated with this request. */
12346
+ accountId?: string;
12347
+ /** Data format for response. */
12348
+ alt?: string;
12349
+ /** JSONP */
12350
+ callback?: string;
12351
+ /** Selector specifying which fields to include in a partial response. */
12352
+ fields?: string;
12353
+ /** Required. TV Campaign ID. */
12354
+ id: string;
12355
+ /** 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. */
12356
+ key?: string;
12357
+ /** OAuth 2.0 token for the current user. */
12358
+ oauth_token?: string;
12359
+ /** Returns response with indentations and line breaks. */
12360
+ prettyPrint?: boolean;
12361
+ /** Required. User profile ID associated with this request. */
12362
+ profileId: string;
12363
+ /** 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. */
12364
+ quotaUser?: string;
12365
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12366
+ upload_protocol?: string;
12367
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12368
+ uploadType?: string;
12369
+ }): Request<TvCampaignDetail>;
12370
+ }
12371
+ interface TvCampaignSummariesResource {
12372
+ /** Retrieves a list of TV campaign summaries. */
12373
+ list(request?: {
12374
+ /** V1 error format. */
12375
+ '$.xgafv'?: string;
12376
+ /** OAuth access token. */
12377
+ access_token?: string;
12378
+ /** Required. Account ID associated with this request. */
12379
+ accountId?: string;
12380
+ /** Data format for response. */
12381
+ alt?: string;
12382
+ /** JSONP */
12383
+ callback?: string;
12384
+ /** Selector specifying which fields to include in a partial response. */
12385
+ fields?: string;
12386
+ /** 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. */
12387
+ key?: string;
12388
+ /** Required. Search string to filter the list of TV campaign summaries. Matches any substring. Required field. */
12389
+ name?: string;
12390
+ /** OAuth 2.0 token for the current user. */
12391
+ oauth_token?: string;
12392
+ /** Returns response with indentations and line breaks. */
12393
+ prettyPrint?: boolean;
12394
+ /** Required. User profile ID associated with this request. */
12395
+ profileId: string;
12396
+ /** 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. */
12397
+ quotaUser?: string;
12398
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
12399
+ upload_protocol?: string;
12400
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
12401
+ uploadType?: string;
12402
+ }): Request<TvCampaignSummariesListResponse>;
12403
+ }
12245
12404
  interface UserProfilesResource {
12246
12405
  /** Gets one user profile by ID. */
12247
12406
  get(request?: {
@@ -12870,6 +13029,10 @@ declare namespace gapi.client {
12870
13029
 
12871
13030
  const targetingTemplates: TargetingTemplatesResource;
12872
13031
 
13032
+ const tvCampaignDetails: TvCampaignDetailsResource;
13033
+
13034
+ const tvCampaignSummaries: TvCampaignSummariesResource;
13035
+
12873
13036
  const userProfiles: UserProfilesResource;
12874
13037
 
12875
13038
  const userRolePermissionGroups: UserRolePermissionGroupsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dfareporting-v4",
3
- "version": "0.0.20240625",
3
+ "version": "0.0.20240926",
4
4
  "description": "TypeScript typings for Campaign Manager 360 API v4",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -1378,6 +1378,21 @@ await gapi.client.dfareporting.targetingTemplates.update({
1378
1378
  profileId: 'profileId',
1379
1379
  });
1380
1380
 
1381
+ /*
1382
+ Gets one TvCampaignDetail by ID.
1383
+ */
1384
+ await gapi.client.dfareporting.tvCampaignDetails.get({
1385
+ id: 'id',
1386
+ profileId: 'profileId',
1387
+ });
1388
+
1389
+ /*
1390
+ Retrieves a list of TV campaign summaries.
1391
+ */
1392
+ await gapi.client.dfareporting.tvCampaignSummaries.list({
1393
+ profileId: 'profileId',
1394
+ });
1395
+
1381
1396
  /*
1382
1397
  Gets one user profile by ID.
1383
1398
  */