{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-get":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_get","summary":"Get information about the selected associated AdSense account.","description":"GET /accounts/{accountId}","tags":["analytics"],"parameters":[{"name":"accountId","in":"query","required":true,"description":"Account to get information about.","schema":{"type":"string","description":"Account to get information about."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-list":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_list","summary":"List hosted accounts associated with this AdSense account by ad client id.","description":"GET /accounts","tags":["analytics"],"parameters":[{"name":"filterAdClientId","in":"query","required":true,"description":"Ad clients to list accounts for.","schema":{"type":"string","description":"Ad clients to list accounts for."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-adclients-get":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_adclients_get","summary":"Get information about one of the ad clients in the specified publisher's AdSense account.","description":"GET /accounts/{accountId}/adclients/{adClientId}","tags":["analytics"],"parameters":[{"name":"accountId","in":"query","required":true,"description":"Account which contains the ad client.","schema":{"type":"string","description":"Account which contains the ad client."}},{"name":"adClientId","in":"query","required":true,"description":"Ad client to get.","schema":{"type":"string","description":"Ad client to get."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-adclients-list":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_adclients_list","summary":"List all hosted ad clients in the specified hosted account.","description":"GET /accounts/{accountId}/adclients","tags":["analytics"],"parameters":[{"name":"accountId","in":"query","required":true,"description":"Account for which to list ad clients.","schema":{"type":"string","description":"Account for which to list ad clients."}},{"name":"maxResults","in":"query","required":false,"description":"The maximum number of ad clients to include in the response, used for paging.","schema":{"type":"integer","description":"The maximum number of ad clients to include in the response, used for paging."}},{"name":"pageToken","in":"query","required":false,"description":"A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from…","schema":{"type":"string","description":"A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-adunits-get":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_adunits_get","summary":"Get the specified host ad unit in this AdSense account.","description":"GET /accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}","tags":["analytics"],"parameters":[{"name":"accountId","in":"query","required":true,"description":"Account which contains the ad unit.","schema":{"type":"string","description":"Account which contains the ad unit."}},{"name":"adClientId","in":"query","required":true,"description":"Ad client for which to get ad unit.","schema":{"type":"string","description":"Ad client for which to get ad unit."}},{"name":"adUnitId","in":"query","required":true,"description":"Ad unit to get.","schema":{"type":"string","description":"Ad unit to get."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-adunits-delete":{"post":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_adunits_delete","summary":"Delete the specified ad unit from the specified publisher AdSense account.","description":"DELETE /accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["accountId","adClientId","adUnitId"],"properties":{"accountId":{"type":"string","description":"Account which contains the ad unit."},"adClientId":{"type":"string","description":"Ad client for which to get ad unit."},"adUnitId":{"type":"string","description":"Ad unit to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-adunits-get-ad-code":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_adunits_get_ad_code","summary":"Get ad code for the specified ad unit, attaching the specified host custom channels.","description":"GET /accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode","tags":["analytics"],"parameters":[{"name":"accountId","in":"query","required":true,"description":"Account which contains the ad client.","schema":{"type":"string","description":"Account which contains the ad client."}},{"name":"adClientId","in":"query","required":true,"description":"Ad client with contains the ad unit.","schema":{"type":"string","description":"Ad client with contains the ad unit."}},{"name":"adUnitId","in":"query","required":true,"description":"Ad unit to get the code for.","schema":{"type":"string","description":"Ad unit to get the code for."}},{"name":"hostCustomChannelId","in":"query","required":false,"description":"Host custom channel to attach to the ad code.","schema":{"type":"string","description":"Host custom channel to attach to the ad code."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-adunits-list":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_adunits_list","summary":"List all ad units in the specified publisher's AdSense account.","description":"GET /accounts/{accountId}/adclients/{adClientId}/adunits","tags":["analytics"],"parameters":[{"name":"accountId","in":"query","required":true,"description":"Account which contains the ad client.","schema":{"type":"string","description":"Account which contains the ad client."}},{"name":"adClientId","in":"query","required":true,"description":"Ad client for which to list ad units.","schema":{"type":"string","description":"Ad client for which to list ad units."}},{"name":"includeInactive","in":"query","required":false,"description":"Whether to include inactive ad units. Default: true.","schema":{"type":"boolean","description":"Whether to include inactive ad units. Default: true."}},{"name":"maxResults","in":"query","required":false,"description":"The maximum number of ad units to include in the response, used for paging.","schema":{"type":"integer","description":"The maximum number of ad units to include in the response, used for paging."}},{"name":"pageToken","in":"query","required":false,"description":"A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from…","schema":{"type":"string","description":"A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-adunits-insert":{"post":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_adunits_insert","summary":"Insert the supplied ad unit into the specified publisher AdSense account.","description":"POST /accounts/{accountId}/adclients/{adClientId}/adunits","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["accountId","adClientId","body"],"properties":{"accountId":{"type":"string","description":"Account which will contain the ad unit."},"adClientId":{"type":"string","description":"Ad client into which to insert the ad unit."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-adunits-update":{"post":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_adunits_update","summary":"Update the supplied ad unit in the specified publisher AdSense account.","description":"PUT /accounts/{accountId}/adclients/{adClientId}/adunits","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["accountId","adClientId","body"],"properties":{"accountId":{"type":"string","description":"Account which contains the ad client."},"adClientId":{"type":"string","description":"Ad client which contains the ad unit."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-adunits-patch":{"post":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_adunits_patch","summary":"Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.","description":"PATCH /accounts/{accountId}/adclients/{adClientId}/adunits","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["accountId","adClientId","adUnitId","body"],"properties":{"accountId":{"type":"string","description":"Account which contains the ad client."},"adClientId":{"type":"string","description":"Ad client which contains the ad unit."},"adUnitId":{"type":"string","description":"Ad unit to get."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-accounts-reports-generate":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_accounts_reports_generate","summary":"Generate an AdSense report based on the report request sent in the query parameters. Returns the result as…","description":"GET /accounts/{accountId}/reports","tags":["analytics"],"parameters":[{"name":"accountId","in":"query","required":true,"description":"Hosted account upon which to report.","schema":{"type":"string","description":"Hosted account upon which to report."}},{"name":"dimension","in":"query","required":false,"description":"Dimensions to base the report on.","schema":{"type":"string","description":"Dimensions to base the report on."}},{"name":"endDate","in":"query","required":true,"description":"End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.","schema":{"type":"string","description":"End of the date range to report on in \"YYYY-MM-DD\" format, inclusive."}},{"name":"filter","in":"query","required":false,"description":"Filters to be run on the report.","schema":{"type":"string","description":"Filters to be run on the report."}},{"name":"locale","in":"query","required":false,"description":"Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.","schema":{"type":"string","description":"Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified."}},{"name":"maxResults","in":"query","required":false,"description":"The maximum number of rows of report data to return.","schema":{"type":"integer","description":"The maximum number of rows of report data to return."}},{"name":"metric","in":"query","required":false,"description":"Numeric columns to include in the report.","schema":{"type":"string","description":"Numeric columns to include in the report."}},{"name":"sort","in":"query","required":false,"description":"The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort…","schema":{"type":"string","description":"The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort…"}},{"name":"startDate","in":"query","required":true,"description":"Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.","schema":{"type":"string","description":"Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive."}},{"name":"startIndex","in":"query","required":false,"description":"Index of the first row of report data to return.","schema":{"type":"integer","description":"Index of the first row of report data to return."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-adclients-get":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_adclients_get","summary":"Get information about one of the ad clients in the Host AdSense account.","description":"GET /adclients/{adClientId}","tags":["analytics"],"parameters":[{"name":"adClientId","in":"query","required":true,"description":"Ad client to get.","schema":{"type":"string","description":"Ad client to get."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-adclients-list":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_adclients_list","summary":"List all host ad clients in this AdSense account.","description":"GET /adclients","tags":["analytics"],"parameters":[{"name":"maxResults","in":"query","required":false,"description":"The maximum number of ad clients to include in the response, used for paging.","schema":{"type":"integer","description":"The maximum number of ad clients to include in the response, used for paging."}},{"name":"pageToken","in":"query","required":false,"description":"A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from…","schema":{"type":"string","description":"A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-associationsessions-start":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_associationsessions_start","summary":"Create an association session for initiating an association with an AdSense user.","description":"GET /associationsessions/start","tags":["analytics"],"parameters":[{"name":"callbackUrl","in":"query","required":false,"description":"The URL to redirect the user to once association is completed. It receives a token parameter that can then be used to retrieve the…","schema":{"type":"string","description":"The URL to redirect the user to once association is completed. It receives a token parameter that can then be used to retrieve the…"}},{"name":"productCode","in":"query","required":true,"description":"Products to associate with the user.","schema":{"type":"string","enum":["AFC","AFG","AFMC","AFS","AFV"],"description":"Products to associate with the user."}},{"name":"userLocale","in":"query","required":false,"description":"The preferred locale of the user.","schema":{"type":"string","description":"The preferred locale of the user."}},{"name":"websiteLocale","in":"query","required":false,"description":"The locale of the user's hosted website.","schema":{"type":"string","description":"The locale of the user's hosted website."}},{"name":"websiteUrl","in":"query","required":true,"description":"The URL of the user's hosted website.","schema":{"type":"string","description":"The URL of the user's hosted website."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-associationsessions-verify":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_associationsessions_verify","summary":"Verify an association session after the association callback returns from AdSense signup.","description":"GET /associationsessions/verify","tags":["analytics"],"parameters":[{"name":"token","in":"query","required":true,"description":"The token returned to the association callback URL.","schema":{"type":"string","description":"The token returned to the association callback URL."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-customchannels-get":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_customchannels_get","summary":"Get a specific custom channel from the host AdSense account.","description":"GET /adclients/{adClientId}/customchannels/{customChannelId}","tags":["analytics"],"parameters":[{"name":"adClientId","in":"query","required":true,"description":"Ad client from which to get the custom channel.","schema":{"type":"string","description":"Ad client from which to get the custom channel."}},{"name":"customChannelId","in":"query","required":true,"description":"Custom channel to get.","schema":{"type":"string","description":"Custom channel to get."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-customchannels-delete":{"post":{"operationId":"analytics_googleapis_adsensehost_adsensehost_customchannels_delete","summary":"Delete a specific custom channel from the host AdSense account.","description":"DELETE /adclients/{adClientId}/customchannels/{customChannelId}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["adClientId","customChannelId"],"properties":{"adClientId":{"type":"string","description":"Ad client from which to delete the custom channel."},"customChannelId":{"type":"string","description":"Custom channel to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-customchannels-list":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_customchannels_list","summary":"List all host custom channels in this AdSense account.","description":"GET /adclients/{adClientId}/customchannels","tags":["analytics"],"parameters":[{"name":"adClientId","in":"query","required":true,"description":"Ad client for which to list custom channels.","schema":{"type":"string","description":"Ad client for which to list custom channels."}},{"name":"maxResults","in":"query","required":false,"description":"The maximum number of custom channels to include in the response, used for paging.","schema":{"type":"integer","description":"The maximum number of custom channels to include in the response, used for paging."}},{"name":"pageToken","in":"query","required":false,"description":"A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\"…","schema":{"type":"string","description":"A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\"…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-customchannels-insert":{"post":{"operationId":"analytics_googleapis_adsensehost_adsensehost_customchannels_insert","summary":"Add a new custom channel to the host AdSense account.","description":"POST /adclients/{adClientId}/customchannels","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["adClientId","body"],"properties":{"adClientId":{"type":"string","description":"Ad client to which the new custom channel will be added."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-customchannels-update":{"post":{"operationId":"analytics_googleapis_adsensehost_adsensehost_customchannels_update","summary":"Update a custom channel in the host AdSense account.","description":"PUT /adclients/{adClientId}/customchannels","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["adClientId","body"],"properties":{"adClientId":{"type":"string","description":"Ad client in which the custom channel will be updated."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-customchannels-patch":{"post":{"operationId":"analytics_googleapis_adsensehost_adsensehost_customchannels_patch","summary":"Update a custom channel in the host AdSense account. This method supports patch semantics.","description":"PATCH /adclients/{adClientId}/customchannels","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["adClientId","customChannelId","body"],"properties":{"adClientId":{"type":"string","description":"Ad client in which the custom channel will be updated."},"customChannelId":{"type":"string","description":"Custom channel to get."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-reports-generate":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_reports_generate","summary":"Generate an AdSense report based on the report request sent in the query parameters. Returns the result as…","description":"GET /reports","tags":["analytics"],"parameters":[{"name":"dimension","in":"query","required":false,"description":"Dimensions to base the report on.","schema":{"type":"string","description":"Dimensions to base the report on."}},{"name":"endDate","in":"query","required":true,"description":"End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.","schema":{"type":"string","description":"End of the date range to report on in \"YYYY-MM-DD\" format, inclusive."}},{"name":"filter","in":"query","required":false,"description":"Filters to be run on the report.","schema":{"type":"string","description":"Filters to be run on the report."}},{"name":"locale","in":"query","required":false,"description":"Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.","schema":{"type":"string","description":"Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified."}},{"name":"maxResults","in":"query","required":false,"description":"The maximum number of rows of report data to return.","schema":{"type":"integer","description":"The maximum number of rows of report data to return."}},{"name":"metric","in":"query","required":false,"description":"Numeric columns to include in the report.","schema":{"type":"string","description":"Numeric columns to include in the report."}},{"name":"sort","in":"query","required":false,"description":"The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort…","schema":{"type":"string","description":"The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort…"}},{"name":"startDate","in":"query","required":true,"description":"Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.","schema":{"type":"string","description":"Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive."}},{"name":"startIndex","in":"query","required":false,"description":"Index of the first row of report data to return.","schema":{"type":"integer","description":"Index of the first row of report data to return."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-urlchannels-delete":{"post":{"operationId":"analytics_googleapis_adsensehost_adsensehost_urlchannels_delete","summary":"Delete a URL channel from the host AdSense account.","description":"DELETE /adclients/{adClientId}/urlchannels/{urlChannelId}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["adClientId","urlChannelId"],"properties":{"adClientId":{"type":"string","description":"Ad client from which to delete the URL channel."},"urlChannelId":{"type":"string","description":"URL channel to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-urlchannels-list":{"get":{"operationId":"analytics_googleapis_adsensehost_adsensehost_urlchannels_list","summary":"List all host URL channels in the host AdSense account.","description":"GET /adclients/{adClientId}/urlchannels","tags":["analytics"],"parameters":[{"name":"adClientId","in":"query","required":true,"description":"Ad client for which to list URL channels.","schema":{"type":"string","description":"Ad client for which to list URL channels."}},{"name":"maxResults","in":"query","required":false,"description":"The maximum number of URL channels to include in the response, used for paging.","schema":{"type":"integer","description":"The maximum number of URL channels to include in the response, used for paging."}},{"name":"pageToken","in":"query","required":false,"description":"A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\"…","schema":{"type":"string","description":"A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\"…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-adsensehost/adsensehost-urlchannels-insert":{"post":{"operationId":"analytics_googleapis_adsensehost_adsensehost_urlchannels_insert","summary":"Add a new URL channel to the host AdSense account.","description":"POST /adclients/{adClientId}/urlchannels","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["adClientId","body"],"properties":{"adClientId":{"type":"string","description":"Ad client to which the new URL channel will be added."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}