@maxim_mazurok/gapi.client.dfareporting-v4 0.0.20240821 → 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 +139 -4
  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: 20240821
12
+ // Revision: 20240926
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -573,7 +573,7 @@ declare namespace gapi.client {
573
573
  merchantFeedLabel?: string;
574
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
575
  merchantFeedLanguage?: string;
576
- /** The Merchant Center ID where the items are uploaded. */
576
+ /** The Merchant Center ID where the items are uploaded. This is a required field. */
577
577
  merchantId?: string;
578
578
  }
579
579
  interface CartDataItem {
@@ -690,6 +690,8 @@ declare namespace gapi.client {
690
690
  interface CompatibleFields {
691
691
  /** Contains items that are compatible to be selected for a report of type "CROSS_DIMENSION_REACH". */
692
692
  crossDimensionReachReportCompatibleFields?: CrossDimensionReachReportCompatibleFields;
693
+ /** Contains items that are compatible to be selected for a report of type "CROSS_MEDIA_REACH". */
694
+ crossMediaReachReportCompatibleFields?: CrossMediaReachReportCompatibleFields;
693
695
  /** Contains items that are compatible to be selected for a report of type "FLOODLIGHT". */
694
696
  floodlightReportCompatibleFields?: FloodlightReportCompatibleFields;
695
697
  /** The kind of resource this is, in this case dfareporting#compatibleFields. */
@@ -740,7 +742,7 @@ declare namespace gapi.client {
740
742
  cartData?: CartData;
741
743
  /** Whether this particular request may come from a user under the age of 13, under COPPA compliance. */
742
744
  childDirectedTreatment?: boolean;
743
- /** Custom floodlight variables. This field may only be used when calling batchinsert; it is not supported by batchupdate. */
745
+ /** Custom floodlight variables. */
744
746
  customVariables?: CustomFloodlightVariable[];
745
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. */
746
748
  dclid?: string;
@@ -1289,10 +1291,20 @@ declare namespace gapi.client {
1289
1291
  /** Metrics which are compatible to be selected in the "overlapMetricNames" section of the report. */
1290
1292
  overlapMetrics?: Metric[];
1291
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
+ }
1292
1304
  interface CustomFloodlightVariable {
1293
1305
  /** Identifies what kind of resource this is. Value: the fixed string "dfareporting#customFloodlightVariable". */
1294
1306
  kind?: string;
1295
- /** 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. */
1296
1308
  type?: string;
1297
1309
  /** The value of the custom floodlight variable. The length of string must not exceed 100 characters. */
1298
1310
  value?: string;
@@ -2714,6 +2726,17 @@ declare namespace gapi.client {
2714
2726
  /** Whether the report is pivoted or not. Defaults to true. */
2715
2727
  pivoted?: boolean;
2716
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
+ };
2717
2740
  /** The report's email delivery settings. */
2718
2741
  delivery?: {
2719
2742
  /** Whether the report should be emailed to the report owner. */
@@ -3198,6 +3221,48 @@ declare namespace gapi.client {
3198
3221
  /** Identifies what kind of resource this is. Value: the fixed string "dfareporting#transcodeSetting". */
3199
3222
  kind?: string;
3200
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
+ }
3201
3266
  interface UniversalAdId {
3202
3267
  /** Registry used for the Ad ID value. */
3203
3268
  registry?: string;
@@ -12270,6 +12335,72 @@ declare namespace gapi.client {
12270
12335
  body: TargetingTemplate
12271
12336
  ): Request<TargetingTemplate>;
12272
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
+ }
12273
12404
  interface UserProfilesResource {
12274
12405
  /** Gets one user profile by ID. */
12275
12406
  get(request?: {
@@ -12898,6 +13029,10 @@ declare namespace gapi.client {
12898
13029
 
12899
13030
  const targetingTemplates: TargetingTemplatesResource;
12900
13031
 
13032
+ const tvCampaignDetails: TvCampaignDetailsResource;
13033
+
13034
+ const tvCampaignSummaries: TvCampaignSummariesResource;
13035
+
12901
13036
  const userProfiles: UserProfilesResource;
12902
13037
 
12903
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.20240821",
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
  */