@maxim_mazurok/gapi.client.dfareporting-v5 0.1.20260605 → 0.2.20260713
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.
- package/index.d.ts +117 -46
- package/package.json +1 -1
- package/readme.md +5 -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=v5
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260713
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -568,8 +568,7 @@ declare namespace gapi.client {
|
|
|
568
568
|
endDate?: string;
|
|
569
569
|
/** Optional. Whether the campaign has EU political ads. Campaign Manager 360 doesn't allow campaigns with EU political ads to serve in the EU. They can still serve in other regions. */
|
|
570
570
|
euPoliticalAdsDeclaration?:
|
|
571
|
-
| '
|
|
572
|
-
| 'DOES_NOT_CONTAIN_EU_POLITICAL_ADS';
|
|
571
|
+
'CONTAINS_EU_POLITICAL_ADS' | 'DOES_NOT_CONTAIN_EU_POLITICAL_ADS';
|
|
573
572
|
/** Overrides that can be used to activate or deactivate advertiser event tags. */
|
|
574
573
|
eventTagOverrides?: EventTagOverride[];
|
|
575
574
|
/** External ID for this campaign. */
|
|
@@ -729,6 +728,12 @@ declare namespace gapi.client {
|
|
|
729
728
|
/** Whether this entity should override the inherited click-through URL suffix with its own defined value. */
|
|
730
729
|
overrideInheritedSuffix?: boolean;
|
|
731
730
|
}
|
|
731
|
+
interface ColumnHeader {
|
|
732
|
+
/** Output only. The column name. */
|
|
733
|
+
name?: string;
|
|
734
|
+
/** Output only. The column type. */
|
|
735
|
+
type?: 'COLUMN_TYPE_UNSPECIFIED' | 'DIMENSION' | 'METRIC';
|
|
736
|
+
}
|
|
732
737
|
interface CompanionClickThroughOverride {
|
|
733
738
|
/** Click-through URL of this companion click-through override. */
|
|
734
739
|
clickThroughUrl?: ClickThroughUrl;
|
|
@@ -879,10 +884,7 @@ declare namespace gapi.client {
|
|
|
879
884
|
interface ConversionError {
|
|
880
885
|
/** The error code. */
|
|
881
886
|
code?:
|
|
882
|
-
| '
|
|
883
|
-
| 'INTERNAL'
|
|
884
|
-
| 'PERMISSION_DENIED'
|
|
885
|
-
| 'NOT_FOUND';
|
|
887
|
+
'INVALID_ARGUMENT' | 'INTERNAL' | 'PERMISSION_DENIED' | 'NOT_FOUND';
|
|
886
888
|
/** Identifies what kind of resource this is. Value: the fixed string "dfareporting#conversionError". */
|
|
887
889
|
kind?: string;
|
|
888
890
|
/** A description of the error. */
|
|
@@ -1392,8 +1394,7 @@ declare namespace gapi.client {
|
|
|
1392
1394
|
sslCompliant?: boolean;
|
|
1393
1395
|
/** Initial wait time type before making the asset visible. Applicable to the following creative types: all RICH_MEDIA. */
|
|
1394
1396
|
startTimeType?:
|
|
1395
|
-
| '
|
|
1396
|
-
| 'ASSET_START_TIME_TYPE_CUSTOM';
|
|
1397
|
+
'ASSET_START_TIME_TYPE_NONE' | 'ASSET_START_TIME_TYPE_CUSTOM';
|
|
1397
1398
|
/** Streaming URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. */
|
|
1398
1399
|
streamingServingUrl?: string;
|
|
1399
1400
|
/** Whether the asset is transparent. Applicable to the following creative types: all RICH_MEDIA. Additionally, only applicable to HTML5 assets. */
|
|
@@ -1699,8 +1700,7 @@ declare namespace gapi.client {
|
|
|
1699
1700
|
creativeOptimizationConfigurationId?: string;
|
|
1700
1701
|
/** Type of creative rotation. Can be used to specify whether to use sequential or random rotation. */
|
|
1701
1702
|
type?:
|
|
1702
|
-
| '
|
|
1703
|
-
| 'CREATIVE_ROTATION_TYPE_RANDOM';
|
|
1703
|
+
'CREATIVE_ROTATION_TYPE_SEQUENTIAL' | 'CREATIVE_ROTATION_TYPE_RANDOM';
|
|
1704
1704
|
/** Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. */
|
|
1705
1705
|
weightCalculationStrategy?:
|
|
1706
1706
|
| 'WEIGHT_STRATEGY_EQUAL'
|
|
@@ -2174,10 +2174,7 @@ declare namespace gapi.client {
|
|
|
2174
2174
|
remarketingValueAttributes?: RemarketingValueAttribute[];
|
|
2175
2175
|
/** Optional. The rotation type to select from eligible rows. Rotation type only apply when the filtering rule results in more than one eligible rows. */
|
|
2176
2176
|
rotationType?:
|
|
2177
|
-
| '
|
|
2178
|
-
| 'RANDOM'
|
|
2179
|
-
| 'OPTIMIZED'
|
|
2180
|
-
| 'WEIGHTED';
|
|
2177
|
+
'ROTATION_TYPE_UNKNOWN' | 'RANDOM' | 'OPTIMIZED' | 'WEIGHTED';
|
|
2181
2178
|
/** Optional. The type of the rule, the default value is OPEN. */
|
|
2182
2179
|
ruleType?:
|
|
2183
2180
|
| 'RULE_SET_TYPE_UNKNOWN'
|
|
@@ -2248,9 +2245,7 @@ declare namespace gapi.client {
|
|
|
2248
2245
|
| 'DFP_NETWORK_CODE';
|
|
2249
2246
|
/** Describes whether the encrypted cookie was received from ad serving (the %m macro) or from Data Transfer. */
|
|
2250
2247
|
encryptionSource?:
|
|
2251
|
-
| '
|
|
2252
|
-
| 'AD_SERVING'
|
|
2253
|
-
| 'DATA_TRANSFER';
|
|
2248
|
+
'ENCRYPTION_SCOPE_UNKNOWN' | 'AD_SERVING' | 'DATA_TRANSFER';
|
|
2254
2249
|
/** Identifies what kind of resource this is. Value: the fixed string "dfareporting#encryptionInfo". */
|
|
2255
2250
|
kind?: string;
|
|
2256
2251
|
}
|
|
@@ -2461,11 +2456,7 @@ declare namespace gapi.client {
|
|
|
2461
2456
|
stringValue?: string;
|
|
2462
2457
|
/** Optional. Right hand side of the expression. */
|
|
2463
2458
|
valueType?:
|
|
2464
|
-
| '
|
|
2465
|
-
| 'STRING'
|
|
2466
|
-
| 'REQUEST'
|
|
2467
|
-
| 'BOOL'
|
|
2468
|
-
| 'DEPENDENT';
|
|
2459
|
+
'RHS_VALUE_TYPE_UNKNOWN' | 'STRING' | 'REQUEST' | 'BOOL' | 'DEPENDENT';
|
|
2469
2460
|
}
|
|
2470
2461
|
interface File {
|
|
2471
2462
|
/** The date range for which the file has report data. The date range will always be the absolute date range for which the report is run. */
|
|
@@ -2486,11 +2477,7 @@ declare namespace gapi.client {
|
|
|
2486
2477
|
reportId?: string;
|
|
2487
2478
|
/** The status of the report file. */
|
|
2488
2479
|
status?:
|
|
2489
|
-
| '
|
|
2490
|
-
| 'REPORT_AVAILABLE'
|
|
2491
|
-
| 'FAILED'
|
|
2492
|
-
| 'CANCELLED'
|
|
2493
|
-
| 'QUEUED';
|
|
2480
|
+
'PROCESSING' | 'REPORT_AVAILABLE' | 'FAILED' | 'CANCELLED' | 'QUEUED';
|
|
2494
2481
|
/** The URLs where the completed report file can be downloaded. */
|
|
2495
2482
|
urls?: {
|
|
2496
2483
|
/** The URL for downloading the report data through the API. */
|
|
@@ -2536,11 +2523,7 @@ declare namespace gapi.client {
|
|
|
2536
2523
|
attributionEnabled?: boolean;
|
|
2537
2524
|
/** Code type used for cache busting in the generated tag. Applicable only when floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. */
|
|
2538
2525
|
cacheBustingType?:
|
|
2539
|
-
| '
|
|
2540
|
-
| 'ACTIVE_SERVER_PAGE'
|
|
2541
|
-
| 'JSP'
|
|
2542
|
-
| 'PHP'
|
|
2543
|
-
| 'COLD_FUSION';
|
|
2526
|
+
'JAVASCRIPT' | 'ACTIVE_SERVER_PAGE' | 'JSP' | 'PHP' | 'COLD_FUSION';
|
|
2544
2527
|
/** Required. The conversion category of the activity. */
|
|
2545
2528
|
conversionCategory?:
|
|
2546
2529
|
| 'CONVERSION_CATEGORY_DEFAULT'
|
|
@@ -2605,10 +2588,7 @@ declare namespace gapi.client {
|
|
|
2605
2588
|
sslRequired?: boolean;
|
|
2606
2589
|
/** The status of the activity. This can only be set to ACTIVE or ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and cannot be set for Floodlight activities. The DISABLED_POLICY status indicates that a Floodlight activity is violating Google policy. Contact your account manager for more information. */
|
|
2607
2590
|
status?:
|
|
2608
|
-
| '
|
|
2609
|
-
| 'ARCHIVED_AND_DISABLED'
|
|
2610
|
-
| 'ARCHIVED'
|
|
2611
|
-
| 'DISABLED_POLICY';
|
|
2591
|
+
'ACTIVE' | 'ARCHIVED_AND_DISABLED' | 'ARCHIVED' | 'DISABLED_POLICY';
|
|
2612
2592
|
/** Subaccount ID of this floodlight activity. This is a read-only field that can be left blank. */
|
|
2613
2593
|
subaccountId?: string;
|
|
2614
2594
|
/** Tag format type for the floodlight activity. If left blank, the tag format will default to HTML. */
|
|
@@ -3582,9 +3562,7 @@ declare namespace gapi.client {
|
|
|
3582
3562
|
interface PricingSchedule {
|
|
3583
3563
|
/** Placement cap cost option. */
|
|
3584
3564
|
capCostOption?:
|
|
3585
|
-
| '
|
|
3586
|
-
| 'CAP_COST_MONTHLY'
|
|
3587
|
-
| 'CAP_COST_CUMULATIVE';
|
|
3565
|
+
'CAP_COST_NONE' | 'CAP_COST_MONTHLY' | 'CAP_COST_CUMULATIVE';
|
|
3588
3566
|
endDate?: string;
|
|
3589
3567
|
/** Whether this placement is flighted. If true, pricing periods will be computed automatically. */
|
|
3590
3568
|
flighted?: boolean;
|
|
@@ -3917,6 +3895,36 @@ declare namespace gapi.client {
|
|
|
3917
3895
|
/** Metrics which are compatible to be selected as activity metrics to pivot on in the "activities" section of the report. */
|
|
3918
3896
|
pivotedActivityMetrics?: Metric[];
|
|
3919
3897
|
}
|
|
3898
|
+
interface ReportDataQueryRequest {
|
|
3899
|
+
/** Optional. The requested date range covering the report duration. */
|
|
3900
|
+
dateRange?: DateRange;
|
|
3901
|
+
/** Optional. The list of dimension values on which report lines are filtered. Utilizes the existing legacy filter message `DimensionValue`. */
|
|
3902
|
+
dimensionFilters?: DimensionValue[];
|
|
3903
|
+
/** Optional. The list of dimension names to group by. */
|
|
3904
|
+
dimensionNames?: string[];
|
|
3905
|
+
/** Optional. Maximum number of result rows to return per page. The default value is 100. The maximum allowed value is 1000. Values above 1000 will be coerced (clamped) down to 1000. Negative values will be rejected. */
|
|
3906
|
+
maxResults?: number;
|
|
3907
|
+
/** Required. The list of metric names to include. */
|
|
3908
|
+
metricNames?: string[];
|
|
3909
|
+
/** Optional. Continuation token for paginating results. */
|
|
3910
|
+
pageToken?: string;
|
|
3911
|
+
/** Optional. Sort options across either requested dimensions or metrics. */
|
|
3912
|
+
sortBys?: SortBy[];
|
|
3913
|
+
}
|
|
3914
|
+
interface ReportDataResponse {
|
|
3915
|
+
/** Output only. Ordered descriptors of the requested column fields. */
|
|
3916
|
+
columnHeaders?: ColumnHeader[];
|
|
3917
|
+
/** Output only. Token to retrieve the next page of rows, or empty if end of results. */
|
|
3918
|
+
nextPageToken?: string;
|
|
3919
|
+
/** Output only. The resulting set of matching data rows. */
|
|
3920
|
+
rows?: ReportDataRow[];
|
|
3921
|
+
/** Output only. Singular aggregate total row for the entire query matching the criteria. Column headers apply in the exact same order as data rows. In the total_row: - All dimension columns contain an empty string (""), as aggregation does not apply. - Non-summable metric columns (e.g. Reach metrics) contain an empty string (""), as grand total aggregation cannot be mathematically/logically computed for them. */
|
|
3922
|
+
totalRow?: ReportDataRow;
|
|
3923
|
+
}
|
|
3924
|
+
interface ReportDataRow {
|
|
3925
|
+
/** Output only. A single sequential list of all cell values matching column_headers indices exactly. - Metric cells that are suppressed due to Minimum Reporting Standard (MRS) privacy protection constraints return "-". */
|
|
3926
|
+
values?: string[];
|
|
3927
|
+
}
|
|
3920
3928
|
interface ReportList {
|
|
3921
3929
|
/** The eTag of this response for caching purposes. */
|
|
3922
3930
|
etag?: string;
|
|
@@ -4097,6 +4105,12 @@ declare namespace gapi.client {
|
|
|
4097
4105
|
/** Whether the user can skip creatives served to this placement. */
|
|
4098
4106
|
skippable?: boolean;
|
|
4099
4107
|
}
|
|
4108
|
+
interface SortBy {
|
|
4109
|
+
/** Required. The dimension or metric field name to sort on. */
|
|
4110
|
+
name?: string;
|
|
4111
|
+
/** Optional. The sort order of this column. */
|
|
4112
|
+
sortOrder?: 'ASCENDING' | 'DESCENDING';
|
|
4113
|
+
}
|
|
4100
4114
|
interface SortedDimension {
|
|
4101
4115
|
/** The kind of resource this is, in this case dfareporting#sortedDimension. */
|
|
4102
4116
|
kind?: string;
|
|
@@ -4445,12 +4459,7 @@ declare namespace gapi.client {
|
|
|
4445
4459
|
interface UniversalAdId {
|
|
4446
4460
|
/** Registry used for the Ad ID value. */
|
|
4447
4461
|
registry?:
|
|
4448
|
-
| '
|
|
4449
|
-
| 'AD_ID_OFFICIAL'
|
|
4450
|
-
| 'CLEARCAST'
|
|
4451
|
-
| 'DCM'
|
|
4452
|
-
| 'ARPP'
|
|
4453
|
-
| 'CUSV';
|
|
4462
|
+
'OTHER' | 'AD_ID_OFFICIAL' | 'CLEARCAST' | 'DCM' | 'ARPP' | 'CUSV';
|
|
4454
4463
|
/** ID value for this creative. Only alphanumeric characters and the following symbols are valid: "_/\-". Maximum length is 64 characters. Read only when registry is DCM. */
|
|
4455
4464
|
value?: string;
|
|
4456
4465
|
}
|
|
@@ -12683,6 +12692,66 @@ declare namespace gapi.client {
|
|
|
12683
12692
|
body: RemarketingListShare,
|
|
12684
12693
|
): Request<RemarketingListShare>;
|
|
12685
12694
|
}
|
|
12695
|
+
interface ReportDataResource {
|
|
12696
|
+
/** Executes an ad-hoc query and returns structured JSON payload data. */
|
|
12697
|
+
query(request: {
|
|
12698
|
+
/** V1 error format. */
|
|
12699
|
+
'$.xgafv'?: '1' | '2';
|
|
12700
|
+
/** OAuth access token. */
|
|
12701
|
+
access_token?: string;
|
|
12702
|
+
/** Data format for response. */
|
|
12703
|
+
alt?: 'json' | 'media' | 'proto';
|
|
12704
|
+
/** JSONP */
|
|
12705
|
+
callback?: string;
|
|
12706
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
12707
|
+
fields?: string;
|
|
12708
|
+
/** 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. */
|
|
12709
|
+
key?: string;
|
|
12710
|
+
/** OAuth 2.0 token for the current user. */
|
|
12711
|
+
oauth_token?: string;
|
|
12712
|
+
/** Returns response with indentations and line breaks. */
|
|
12713
|
+
prettyPrint?: boolean;
|
|
12714
|
+
/** Required. The Campaign Manager 360 user profile ID. */
|
|
12715
|
+
profileId: string;
|
|
12716
|
+
/** 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. */
|
|
12717
|
+
quotaUser?: string;
|
|
12718
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
12719
|
+
upload_protocol?: string;
|
|
12720
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
12721
|
+
uploadType?: string;
|
|
12722
|
+
/** Request body */
|
|
12723
|
+
resource: ReportDataQueryRequest;
|
|
12724
|
+
}): Request<ReportDataResponse>;
|
|
12725
|
+
query(
|
|
12726
|
+
request: {
|
|
12727
|
+
/** V1 error format. */
|
|
12728
|
+
'$.xgafv'?: '1' | '2';
|
|
12729
|
+
/** OAuth access token. */
|
|
12730
|
+
access_token?: string;
|
|
12731
|
+
/** Data format for response. */
|
|
12732
|
+
alt?: 'json' | 'media' | 'proto';
|
|
12733
|
+
/** JSONP */
|
|
12734
|
+
callback?: string;
|
|
12735
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
12736
|
+
fields?: string;
|
|
12737
|
+
/** 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. */
|
|
12738
|
+
key?: string;
|
|
12739
|
+
/** OAuth 2.0 token for the current user. */
|
|
12740
|
+
oauth_token?: string;
|
|
12741
|
+
/** Returns response with indentations and line breaks. */
|
|
12742
|
+
prettyPrint?: boolean;
|
|
12743
|
+
/** Required. The Campaign Manager 360 user profile ID. */
|
|
12744
|
+
profileId: string;
|
|
12745
|
+
/** 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. */
|
|
12746
|
+
quotaUser?: string;
|
|
12747
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
12748
|
+
upload_protocol?: string;
|
|
12749
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
12750
|
+
uploadType?: string;
|
|
12751
|
+
},
|
|
12752
|
+
body: ReportDataQueryRequest,
|
|
12753
|
+
): Request<ReportDataResponse>;
|
|
12754
|
+
}
|
|
12686
12755
|
interface CompatibleFieldsResource {
|
|
12687
12756
|
/** Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions. */
|
|
12688
12757
|
query(request: {
|
|
@@ -14897,6 +14966,8 @@ declare namespace gapi.client {
|
|
|
14897
14966
|
|
|
14898
14967
|
const remarketingLists: RemarketingListsResource;
|
|
14899
14968
|
|
|
14969
|
+
const reportData: ReportDataResource;
|
|
14970
|
+
|
|
14900
14971
|
const reports: ReportsResource;
|
|
14901
14972
|
|
|
14902
14973
|
const sites: SitesResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1232,6 +1232,11 @@ await gapi.client.dfareporting.remarketingListShares.update({
|
|
|
1232
1232
|
profileId: 'profileId',
|
|
1233
1233
|
});
|
|
1234
1234
|
|
|
1235
|
+
/*
|
|
1236
|
+
Executes an ad-hoc query and returns structured JSON payload data.
|
|
1237
|
+
*/
|
|
1238
|
+
await gapi.client.dfareporting.reportData.query({profileId: 'profileId'});
|
|
1239
|
+
|
|
1235
1240
|
/*
|
|
1236
1241
|
Deletes a report by its ID.
|
|
1237
1242
|
*/
|