Skip to content

Commit 43a3732

Browse files
feat(all): auto-regenerate discovery clients (#1531)
1 parent 5ba22f1 commit 43a3732

34 files changed

Lines changed: 2042 additions & 219 deletions

adsense/v2/adsense-api.json

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,32 @@
203203
"resources": {
204204
"adclients": {
205205
"methods": {
206+
"get": {
207+
"description": "Gets the ad client from the given resource name.",
208+
"flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}",
209+
"httpMethod": "GET",
210+
"id": "adsense.accounts.adclients.get",
211+
"parameterOrder": [
212+
"name"
213+
],
214+
"parameters": {
215+
"name": {
216+
"description": "Required. The name of the ad client to retrieve. Format: accounts/{account}/adclients/{adclient}",
217+
"location": "path",
218+
"pattern": "^accounts/[^/]+/adclients/[^/]+$",
219+
"required": true,
220+
"type": "string"
221+
}
222+
},
223+
"path": "v2/{+name}",
224+
"response": {
225+
"$ref": "AdClient"
226+
},
227+
"scopes": [
228+
"https://www.googleapis.com/auth/adsense",
229+
"https://www.googleapis.com/auth/adsense.readonly"
230+
]
231+
},
206232
"getAdcode": {
207233
"description": "Gets the AdSense code for a given ad client. This returns what was previously known as the 'auto ad code'. This is only supported for ad clients with a product_code of AFC. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634).",
208234
"flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/adcode",
@@ -504,6 +530,32 @@
504530
},
505531
"urlchannels": {
506532
"methods": {
533+
"get": {
534+
"description": "Gets information about the selected url channel.",
535+
"flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/urlchannels/{urlchannelsId}",
536+
"httpMethod": "GET",
537+
"id": "adsense.accounts.adclients.urlchannels.get",
538+
"parameterOrder": [
539+
"name"
540+
],
541+
"parameters": {
542+
"name": {
543+
"description": "Required. The name of the url channel to retrieve. Format: accounts/{account}/adclients/{adclient}/urlchannels/{urlchannel}",
544+
"location": "path",
545+
"pattern": "^accounts/[^/]+/adclients/[^/]+/urlchannels/[^/]+$",
546+
"required": true,
547+
"type": "string"
548+
}
549+
},
550+
"path": "v2/{+name}",
551+
"response": {
552+
"$ref": "UrlChannel"
553+
},
554+
"scopes": [
555+
"https://www.googleapis.com/auth/adsense",
556+
"https://www.googleapis.com/auth/adsense.readonly"
557+
]
558+
},
507559
"list": {
508560
"description": "Lists active url channels.",
509561
"flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/urlchannels",
@@ -1227,6 +1279,32 @@
12271279
"https://www.googleapis.com/auth/adsense",
12281280
"https://www.googleapis.com/auth/adsense.readonly"
12291281
]
1282+
},
1283+
"getSaved": {
1284+
"description": "Gets the saved report from the given resource name.",
1285+
"flatPath": "v2/accounts/{accountsId}/reports/{reportsId}/saved",
1286+
"httpMethod": "GET",
1287+
"id": "adsense.accounts.reports.getSaved",
1288+
"parameterOrder": [
1289+
"name"
1290+
],
1291+
"parameters": {
1292+
"name": {
1293+
"description": "Required. The name of the saved report to retrieve. Format: accounts/{account}/reports/{report}",
1294+
"location": "path",
1295+
"pattern": "^accounts/[^/]+/reports/[^/]+$",
1296+
"required": true,
1297+
"type": "string"
1298+
}
1299+
},
1300+
"path": "v2/{+name}/saved",
1301+
"response": {
1302+
"$ref": "SavedReport"
1303+
},
1304+
"scopes": [
1305+
"https://www.googleapis.com/auth/adsense",
1306+
"https://www.googleapis.com/auth/adsense.readonly"
1307+
]
12301308
}
12311309
},
12321310
"resources": {
@@ -1567,7 +1645,7 @@
15671645
}
15681646
}
15691647
},
1570-
"revision": "20220420",
1648+
"revision": "20220503",
15711649
"rootUrl": "https://adsense.googleapis.com/",
15721650
"schemas": {
15731651
"Account": {
@@ -1635,7 +1713,7 @@
16351713
"type": "string"
16361714
},
16371715
"productCode": {
1638-
"description": "Output only. Product code of the ad client. For example, \"AFC\" for AdSense for Content.",
1716+
"description": "Output only. Reporting product code of the ad client. For example, \"AFC\" for AdSense for Content. Corresponds to the `PRODUCT_CODE` dimension, and present only if the ad client supports reporting.",
16391717
"readOnly": true,
16401718
"type": "string"
16411719
},

0 commit comments

Comments
 (0)