> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aitasker.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Download Global Ad Library Ad Creatives

> Download every available creative for one library ad as a ZIP.

The archive is the ad's full creative payload, so it is gated exactly like
the JSON detail. The auth dependency is only useful if the request
actually carries the Bearer header — a bare ``<a href download>`` does
not, which is why ``api.adLibrary.downloadCreativeArchive`` fetches the
blob with the header and hands it to a synthetic anchor, the same shape
``downloadTrendsCsv`` already uses. Optional (not required) auth so the
public library keeps working signed-out.



## OpenAPI

````yaml /openapi.json get /api/v1/ad-library/ads/{ad_id}/creatives.zip
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/ad-library/ads/{ad_id}/creatives.zip:
    get:
      tags:
        - Ad Library
        - Ad Library
      summary: Download Global Ad Library Ad Creatives
      description: >-
        Download every available creative for one library ad as a ZIP.


        The archive is the ad's full creative payload, so it is gated exactly
        like

        the JSON detail. The auth dependency is only useful if the request

        actually carries the Bearer header — a bare ``<a href download>`` does

        not, which is why ``api.adLibrary.downloadCreativeArchive`` fetches the

        blob with the header and hands it to a synthetic anchor, the same shape

        ``downloadTrendsCsv`` already uses. Optional (not required) auth so the

        public library keeps working signed-out.
      operationId: >-
        download_global_ad_library_ad_creatives_api_v1_ad_library_ads__ad_id__creatives_zip_get
      parameters:
        - name: ad_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Ad Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````