{
  "openapi": "3.0.0",
  "info": {
    "title": "Uber Ads API",
    "version": "1.1.0",
    "description": "Complete reference for the Uber Ads external API. This document aggregates every endpoint (ad accounts, campaigns, ad groups, ads, assets, creatives, product catalog, and reporting) into a single OpenAPI specification."
  },
  "servers": [
    {
      "url": "https://api.uber.com"
    }
  ],
  "tags": [
    {
      "name": "Ad Account"
    },
    {
      "name": "Campaigns"
    },
    {
      "name": "Ad Groups"
    },
    {
      "name": "Ads"
    },
    {
      "name": "Asset"
    },
    {
      "name": "Creative"
    },
    {
      "name": "Product Catalog"
    },
    {
      "name": "Reporting"
    }
  ],
  "paths": {
    "/v1/ads/ad-accounts": {
      "get": {
        "summary": "Get Ad Accounts",
        "description": "Retrieve a list of ad accounts for the authenticated user. Only active ad accounts are returned.",
        "security": [
          {
            "auth": [
              "ads.ad-accounts.read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ad_accounts": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GetAdAccounts_AdAccount"
                      },
                      "description": "List of ad account objects"
                    }
                  }
                },
                "example": {
                  "ad_accounts": [
                    {
                      "ad_account_id": "acc_12345",
                      "name": "Main Advertising Account",
                      "country_code": "US",
                      "currency_code": "USD",
                      "account_type": "OFD",
                      "billing": {
                        "address": {
                          "address_line1": "123 Main Street",
                          "address_line2": "Suite 100",
                          "city": "San Francisco",
                          "state": "CA",
                          "country_code": "US",
                          "postal_code": "94102"
                        },
                        "type": "ACCOUNT_BILLING_MODE_MANUAL"
                      }
                    },
                    {
                      "ad_account_id": "acc_67890",
                      "name": "Secondary Account",
                      "country_code": "CA",
                      "currency_code": "CAD",
                      "account_type": "USER_STORES_GROUP",
                      "billing": {
                        "address": {
                          "address_line1": "456 Maple Avenue",
                          "city": "Toronto",
                          "state": "ON",
                          "country_code": "CA",
                          "postal_code": "M5V 3A8"
                        },
                        "type": "ACCOUNT_BILLING_MODE_MANUAL"
                      }
                    },
                    {
                      "ad_account_id": "acc_24680",
                      "name": "CPG Brand Account",
                      "country_code": "MX",
                      "currency_code": "MXN",
                      "account_type": "CPG",
                      "billing": {
                        "address": {
                          "address_line1": "789 Reforma Avenue",
                          "city": "Mexico City",
                          "state": "CDMX",
                          "country_code": "MX",
                          "postal_code": "06600"
                        },
                        "type": "ACCOUNT_BILLING_MODE_MANUAL"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdAccounts_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdAccounts_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdAccounts_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdAccounts_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdAccounts_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdAccounts_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "get-ad-accounts",
        "tags": [
          "Ad Account"
        ]
      }
    },
    "/v1/ads/{ad_account_id}/stores": {
      "get": {
        "summary": "Get Stores",
        "description": "Retrieve a list of stores for an ad account.",
        "security": [
          {
            "auth": [
              "ads.ad-accounts.read"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "ad_account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_token",
            "required": false,
            "description": "Page token for pagination",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_limit",
            "required": false,
            "description": "Number of results to return (Max 2000)",
            "schema": {
              "type": "integer",
              "maximum": 2000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "stores": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GetStores_Store"
                      },
                      "description": "List of store objects"
                    },
                    "next_page_token": {
                      "$ref": "#/components/schemas/GetStores_PageToken"
                    }
                  }
                },
                "example": {
                  "stores": [
                    {
                      "id": "store-123",
                      "name": "Downtown Restaurant",
                      "currency_code": "USD",
                      "image_url": "https://images.uber.com/store/downtown-restaurant.jpg",
                      "address": {
                        "address_line1": "123 Main Street",
                        "address_line2": "Suite 100",
                        "city": "San Francisco",
                        "region": "CA",
                        "postal_code": "94102",
                        "country": "US",
                        "latitude": 37.7749,
                        "longitude": -122.4194
                      }
                    },
                    {
                      "id": "store-456",
                      "name": "Uptown Cafe",
                      "currency_code": "USD",
                      "image_url": "https://images.uber.com/store/uptown-cafe.jpg",
                      "address": {
                        "address_line1": "456 Market Street",
                        "city": "San Francisco",
                        "region": "CA",
                        "postal_code": "94103",
                        "country": "US",
                        "latitude": 37.7849,
                        "longitude": -122.4294
                      }
                    }
                  ],
                  "next_page_token": {
                    "value": "eyJsYXN0X3N0b3JlX2lkIjoic3RvcmUtNDU2In0"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetStores_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetStores_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetStores_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetStores_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetStores_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetStores_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "get-stores",
        "tags": [
          "Ad Account"
        ]
      }
    },
    "/v1/ads/{account_id}/campaigns": {
      "get": {
        "summary": "Get Campaigns",
        "description": "Retrieve a list of campaigns for an account.",
        "security": [
          {
            "auth": [
              "ads.campaigns.read"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_token",
            "required": false,
            "description": "Page token for pagination",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_limit",
            "required": false,
            "description": "Number of results to return (Max 2000)",
            "schema": {
              "type": "integer",
              "maximum": 2000
            }
          },
          {
            "in": "query",
            "name": "campaign_id",
            "required": false,
            "description": "Filter by specific campaign ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "campaigns": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GetCampaigns_Campaign"
                      },
                      "description": "List of campaign objects"
                    },
                    "next_page_token": {
                      "$ref": "#/components/schemas/GetCampaigns_PageToken"
                    }
                  }
                },
                "example": {
                  "campaigns": [
                    {
                      "campaign_id": "00117dad-f83f-4a38-9192-a371250ff09e",
                      "name": "Q4 Holiday Sponsored Listings Campaign",
                      "created_at": "2023-12-01T20:27:24Z",
                      "updated_at": "2023-12-01T22:09:13Z",
                      "created_by_email": "advertiser@restaurant.com",
                      "updated_by_email": "manager@restaurant.com",
                      "budget": {
                        "unit": "BUDGET_UNIT_DAILY",
                        "total": {
                          "amount_e5": "50000",
                          "currency_code": "USD"
                        },
                        "cofunding_sources": [
                          {
                            "funding_percentage": 70
                          }
                        ]
                      },
                      "ad_groups": [
                        {
                          "ad_group_id": "379638e6-5ecf-5b27-af83-68368ee3f597",
                          "name": "Downtown Store Promotion - Ad Group 1",
                          "configured_status": "AD_GROUP_CONFIGURED_STATUS_ACTIVE",
                          "effective_status": "AD_GROUP_EFFECTIVE_STATUS_ACTIVE",
                          "permissions": [
                            "READ",
                            "UPDATE",
                            "DELETE"
                          ]
                        }
                      ],
                      "configured_status": "CAMPAIGN_CONFIGURED_STATUS_ACTIVE",
                      "effective_status": "CAMPAIGN_EFFECTIVE_STATUS_ACTIVE",
                      "permissions": [
                        "READ",
                        "UPDATE",
                        "DELETE"
                      ]
                    },
                    {
                      "campaign_id": "02416290-cf7b-4f17-ab46-f77cb13f5051",
                      "name": "Winter Menu Launch Campaign",
                      "created_at": "2023-12-18T23:47:34Z",
                      "updated_at": "2023-12-18T23:47:34Z",
                      "created_by_email": "marketing@brand.com",
                      "updated_by_email": "manager@brand.com",
                      "budget": {
                        "unit": "BUDGET_UNIT_WEEKLY",
                        "total": {
                          "amount_e5": "25000",
                          "currency_code": "USD"
                        },
                        "cofunding_sources": [
                          {
                            "funding_percentage": 70
                          }
                        ]
                      },
                      "ad_groups": [
                        {
                          "ad_group_id": "41dd6ced-2465-5e8d-a686-bad20c1de101",
                          "name": "Chicago Area Stores - Ad Group 1",
                          "configured_status": "AD_GROUP_CONFIGURED_STATUS_ACTIVE",
                          "effective_status": "AD_GROUP_EFFECTIVE_STATUS_ACTIVE",
                          "permissions": [
                            "READ",
                            "UPDATE"
                          ]
                        }
                      ],
                      "configured_status": "CAMPAIGN_CONFIGURED_STATUS_ACTIVE",
                      "effective_status": "CAMPAIGN_EFFECTIVE_STATUS_ACTIVE",
                      "permissions": [
                        "READ",
                        "UPDATE"
                      ]
                    },
                    {
                      "campaign_id": "ddc8ecc0-3a1b-4e5f-9c72-a8b2d4e6f012",
                      "name": "CPG Sponsored Items Campaign",
                      "created_at": "2026-06-24T14:20:19Z",
                      "updated_at": "2026-06-29T17:20:09Z",
                      "created_by_email": "advertiser@cpgbrand.com",
                      "updated_by_email": "advertiser@cpgbrand.com",
                      "budget": {
                        "unit": "BUDGET_UNIT_WEEKLY",
                        "total": {
                          "amount_e5": "240000000",
                          "currency_code": "MXN"
                        },
                        "cofunding_sources": []
                      },
                      "ad_groups": [
                        {
                          "ad_group_id": "8e41f1c7-7899-41e6-9691-9ab80365afe1",
                          "name": "Product Promotion - Ad Group 1",
                          "configured_status": "AD_GROUP_CONFIGURED_STATUS_ACTIVE",
                          "effective_status": "AD_GROUP_EFFECTIVE_STATUS_ACTIVE",
                          "effective_status_reasons": [],
                          "permissions": [
                            "READ",
                            "UPDATE",
                            "DELETE"
                          ]
                        }
                      ],
                      "configured_status": "CAMPAIGN_CONFIGURED_STATUS_ACTIVE",
                      "effective_status": "CAMPAIGN_EFFECTIVE_STATUS_ACTIVE",
                      "version": 20,
                      "effective_status_reasons": [],
                      "permissions": [
                        "READ",
                        "UPDATE",
                        "DELETE"
                      ]
                    }
                  ],
                  "next_page_token": {
                    "value": "eyJsYXN0X2NhbXBhaWduX2lkIjoiMDI0MTYyOTAtY2Y3Yi00ZjE3LWFiNDYtZjc3Y2IxM2Y1MDUxIn0"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaigns_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaigns_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaigns_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaigns_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaigns_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaigns_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "get-campaigns",
        "tags": [
          "Campaigns"
        ]
      },
      "post": {
        "summary": "Create Campaigns",
        "description": "Create one or more campaigns for an account.",
        "security": [
          {
            "auth": [
              "ads.campaigns.write"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "campaigns": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CreateCampaigns_CreateCampaignInput"
                    },
                    "description": "List of campaigns to create"
                  }
                }
              },
              "example": {
                "campaigns": [
                  {
                    "name": "Q1 Spring Promotion Campaign",
                    "configured_status": "CAMPAIGN_CONFIGURED_STATUS_ACTIVE",
                    "budget": {
                      "unit": "BUDGET_UNIT_DAILY",
                      "total": {
                        "amount_e5": "50000",
                        "currency_code": "USD"
                      }
                    }
                  },
                  {
                    "name": "Weekend Special Campaign",
                    "configured_status": "CAMPAIGN_CONFIGURED_STATUS_PAUSED",
                    "budget": {
                      "unit": "BUDGET_UNIT_WEEKLY",
                      "total": {
                        "amount_e5": "100000",
                        "currency_code": "USD"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CreateCampaigns_OperationResult"
                      },
                      "description": "Results of the create operations"
                    }
                  }
                },
                "example": {
                  "results": [
                    {
                      "success": {
                        "id": "00117dad-f83f-4a38-9192-a371250ff09e"
                      }
                    },
                    {
                      "success": {
                        "id": "02416290-cf7b-4f17-ab46-f77cb13f5051"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCampaigns_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCampaigns_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCampaigns_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCampaigns_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCampaigns_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCampaigns_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "create-campaigns",
        "tags": [
          "Campaigns"
        ]
      },
      "patch": {
        "summary": "Update Campaigns",
        "description": "Update one or more existing campaigns for an account.",
        "security": [
          {
            "auth": [
              "ads.campaigns.write"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "campaigns": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/UpdateCampaigns_UpdateCampaignInput"
                    },
                    "description": "List of campaigns to update"
                  }
                }
              },
              "example": {
                "campaigns": [
                  {
                    "campaign_id": "00117dad-f83f-4a38-9192-a371250ff09e",
                    "name": "Q1 Spring Promotion Campaign - Updated",
                    "configured_status": "CAMPAIGN_CONFIGURED_STATUS_PAUSED",
                    "budget": {
                      "unit": "BUDGET_UNIT_DAILY",
                      "total": {
                        "amount_e5": "75000",
                        "currency_code": "USD"
                      }
                    }
                  },
                  {
                    "campaign_id": "02416290-cf7b-4f17-ab46-f77cb13f5051",
                    "configured_status": "CAMPAIGN_CONFIGURED_STATUS_ACTIVE"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/UpdateCampaigns_OperationResult"
                      },
                      "description": "Results of the update operations"
                    }
                  }
                },
                "example": {
                  "results": [
                    {
                      "success": {
                        "id": "00117dad-f83f-4a38-9192-a371250ff09e"
                      }
                    },
                    {
                      "success": {
                        "id": "02416290-cf7b-4f17-ab46-f77cb13f5051"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCampaigns_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCampaigns_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCampaigns_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCampaigns_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCampaigns_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCampaigns_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "update-campaigns",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/v1/ads/{account_id}/campaigns/archive": {
      "post": {
        "summary": "Archive Campaigns",
        "security": [
          {
            "auth": [
              "ads.campaigns.write"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "campaign_ids"
                ],
                "properties": {
                  "campaign_ids": {
                    "type": "array",
                    "maxItems": 500,
                    "items": {
                      "type": "string"
                    },
                    "description": "Identifiers of the campaigns to archive. At least 1 and at most 500."
                  }
                }
              },
              "example": {
                "campaign_ids": [
                  "0ba75c34-90e0-42a9-903f-f8d3ccaa264a",
                  "3255ba99-a850-45ce-a05b-638ed11ac55f"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ArchiveCampaigns_OperationResult"
                      },
                      "description": "Results of the archive operations, in request order"
                    }
                  }
                },
                "example": {
                  "results": [
                    {
                      "success": {
                        "id": "0ba75c34-90e0-42a9-903f-f8d3ccaa264a"
                      }
                    },
                    {
                      "failure": {
                        "error_code": "INVALID_CAMPAIGN_ID",
                        "error_message": "Campaign not found."
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveCampaigns_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Bulk archive campaigns request exceeds the maximum allowed size of 500."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveCampaigns_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveCampaigns_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveCampaigns_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveCampaigns_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveCampaigns_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "archive-campaigns",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/v1/ads/{account_id}/campaigns/{campaign_id}/ad-groups": {
      "get": {
        "summary": "Get Ad Groups",
        "description": "Retrieve ad groups for a specific campaign.",
        "security": [
          {
            "auth": [
              "ads.campaigns.read"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "description": "Campaign identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_token",
            "required": false,
            "description": "Page token for pagination",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_limit",
            "required": false,
            "description": "Number of results to return (Max 2000)",
            "schema": {
              "type": "integer",
              "maximum": 2000
            }
          },
          {
            "in": "query",
            "name": "ad_group_id",
            "required": false,
            "description": "Filter by specific ad group ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ad_groups": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GetAdGroups_AdGroup"
                      },
                      "description": "List of ad group objects"
                    },
                    "next_page_token": {
                      "$ref": "#/components/schemas/GetAdGroups_PageToken"
                    }
                  }
                },
                "example": {
                  "ad_groups": [
                    {
                      "ad_group_id": "41dd6ced-2465-5e8d-a686-bad20c1de101",
                      "campaign_id": "02416290-cf7b-4f17-ab46-f77cb13f5051",
                      "name": "National Brands Holiday Campaign - Ad Group 1",
                      "ad_product": "SPONSORED_LISTING",
                      "schedule": {
                        "start_time": "2023-12-18T05:00:00Z",
                        "end_time": "2024-01-01T05:00:00Z"
                      },
                      "budget": {
                        "unit": "BUDGET_UNIT_WEEKLY",
                        "total": {
                          "amount_e5": "25000",
                          "currency_code": "USD"
                        },
                        "cofunding_sources": [
                          {
                            "funding_percentage": 70
                          }
                        ]
                      },
                      "bidding": {
                        "auto": {}
                      },
                      "targeting": {
                        "negation": false,
                        "operator": "AND",
                        "criteria": [
                          {
                            "keyword_targeting": {
                              "keywords": [
                                "pizza",
                                "pasta",
                                "italian food"
                              ],
                              "match_type": "MatchTypeExact"
                            }
                          }
                        ]
                      },
                      "dayparting_schedule": {
                        "schedule": [
                          {
                            "intervals": [
                              {
                                "start_time": {
                                  "hour": 6,
                                  "minute": 0
                                },
                                "end_time": {
                                  "hour": 22,
                                  "minute": 0
                                }
                              }
                            ]
                          },
                          {
                            "intervals": [
                              {
                                "start_time": {
                                  "hour": 6,
                                  "minute": 0
                                },
                                "end_time": {
                                  "hour": 22,
                                  "minute": 0
                                }
                              }
                            ]
                          },
                          {
                            "intervals": [
                              {
                                "start_time": {
                                  "hour": 6,
                                  "minute": 0
                                },
                                "end_time": {
                                  "hour": 22,
                                  "minute": 0
                                }
                              }
                            ]
                          },
                          {
                            "intervals": [
                              {
                                "start_time": {
                                  "hour": 6,
                                  "minute": 0
                                },
                                "end_time": {
                                  "hour": 22,
                                  "minute": 0
                                }
                              }
                            ]
                          },
                          {
                            "intervals": [
                              {
                                "start_time": {
                                  "hour": 6,
                                  "minute": 0
                                },
                                "end_time": {
                                  "hour": 22,
                                  "minute": 0
                                }
                              }
                            ]
                          },
                          {
                            "intervals": [
                              {
                                "start_time": {
                                  "hour": 6,
                                  "minute": 0
                                },
                                "end_time": {
                                  "hour": 24,
                                  "minute": 0
                                }
                              }
                            ]
                          },
                          {
                            "intervals": [
                              {
                                "start_time": {
                                  "hour": 6,
                                  "minute": 0
                                },
                                "end_time": {
                                  "hour": 24,
                                  "minute": 0
                                }
                              }
                            ]
                          }
                        ]
                      },
                      "subjects": {
                        "stores": {
                          "store_ids": [
                            "65681a33-d4b2-4e23-b9a2-8e9fd44f0b60"
                          ]
                        }
                      },
                      "configured_status": "AD_GROUP_CONFIGURED_STATUS_ACTIVE",
                      "effective_status": "AD_GROUP_EFFECTIVE_STATUS_ACTIVE",
                      "permissions": [
                        "READ",
                        "UPDATE",
                        "DELETE"
                      ]
                    },
                    {
                      "ad_group_id": "f1768d22-414e-4dfa-8871-0c0ae345092d",
                      "campaign_id": "03527abc-8d4e-4c19-bc67-f88da25ef203",
                      "name": "Asian Cuisine Targeting Group",
                      "ad_product": "SPONSORED_SEARCH",
                      "schedule": {
                        "start_time": "2025-08-21T21:00:00Z"
                      },
                      "budget": {
                        "unit": "BUDGET_UNIT_DAILY",
                        "total": {
                          "amount_e5": "30000",
                          "currency_code": "USD"
                        },
                        "cofunding_sources": [
                          {
                            "funding_percentage": 70
                          }
                        ]
                      },
                      "bidding": {
                        "auto": {}
                      },
                      "targeting": {
                        "negation": false,
                        "operator": "AND",
                        "criteria": [
                          {
                            "keyword_targeting": {
                              "keywords": [
                                "sushi",
                                "asian fusion",
                                "takeout"
                              ],
                              "match_type": "MatchTypeBroad"
                            }
                          }
                        ]
                      },
                      "subjects": {
                        "stores": {
                          "store_ids": [
                            "9ec56511-e1d6-4361-86b3-0e35f55fe24f"
                          ]
                        }
                      },
                      "configured_status": "AD_GROUP_CONFIGURED_STATUS_ACTIVE",
                      "effective_status": "AD_GROUP_EFFECTIVE_STATUS_ACTIVE",
                      "permissions": [
                        "READ",
                        "UPDATE"
                      ]
                    },
                    {
                      "ad_group_id": "8e41f1c7-7899-41e6-9691-9ab80365afe1",
                      "campaign_id": "37b1923f-9cbf-4329-a8fe-df1e89114823",
                      "name": "CPG Brand Product Promotion",
                      "ad_product": "SPONSORED_ITEMS",
                      "schedule": {
                        "start_time": "2025-06-24T14:00:00Z"
                      },
                      "bidding": {
                        "manual": {
                          "bid_amount": {
                            "amount_e5": "50000",
                            "currency_code": "MXN"
                          }
                        }
                      },
                      "subjects": {
                        "gtin_items": {
                          "gtin_items": [
                            {
                              "gtin": "07501086802678"
                            },
                            {
                              "gtin": "07501000645169"
                            },
                            {
                              "gtin": "07501000617432"
                            }
                          ]
                        }
                      },
                      "configured_status": "AD_GROUP_CONFIGURED_STATUS_ACTIVE",
                      "effective_status": "AD_GROUP_EFFECTIVE_STATUS_ACTIVE",
                      "effective_status_reasons": [],
                      "ads": [
                        {
                          "ad_id": "0345df56-bfbd-48e2-9a23-1c2f020f818d",
                          "name": "Product Ad - 1"
                        }
                      ],
                      "bidding_enhancements": {
                        "enhancements": [
                          {
                            "keyword": {
                              "keyword_bids": [
                                {
                                  "keyword": "cookies",
                                  "bid": {
                                    "manual": {
                                      "bid_amount": {
                                        "amount_e5": "50000",
                                        "currency_code": "MXN"
                                      }
                                    }
                                  }
                                },
                                {
                                  "keyword": "chips",
                                  "bid": {
                                    "manual": {
                                      "bid_amount": {
                                        "amount_e5": "70000",
                                        "currency_code": "MXN"
                                      }
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "permissions": [
                        "READ",
                        "UPDATE",
                        "DELETE"
                      ]
                    },
                    {
                      "ad_group_id": "98057fcc-5c32-4b86-9147-022a4cfc65bd",
                      "campaign_id": "0d115bab-3044-59f2-9f92-0d0d8010e3a0",
                      "name": "CPG Sponsored Brands Promotion",
                      "ad_product": "SPONSORED_BRANDS",
                      "schedule": {
                        "start_time": "2025-07-10T00:00:00Z"
                      },
                      "bidding": {
                        "auto": {}
                      },
                      "subjects": {
                        "gtin_items": {
                          "gtin_items": [
                            {
                              "gtin": "07501031303977"
                            },
                            {
                              "gtin": "07501086802678"
                            },
                            {
                              "gtin": "07501011140363"
                            }
                          ]
                        }
                      },
                      "configured_status": "AD_GROUP_CONFIGURED_STATUS_PAUSED",
                      "effective_status": "AD_GROUP_EFFECTIVE_STATUS_PAUSED",
                      "effective_status_reasons": [],
                      "ads": [
                        {
                          "ad_id": "48a7fd9a-284d-4cef-b228-3e559c58d04c",
                          "name": "Sponsored Brands Ad"
                        }
                      ],
                      "permissions": [
                        "READ",
                        "UPDATE",
                        "DELETE"
                      ]
                    }
                  ],
                  "next_page_token": {
                    "value": "eyJsYXN0X2FkX2dyb3VwX2lkIjoiNDFkZDZjZWQtMjQ2NS01ZThkLWE2ODYtYmFkMjBjMWRlMTAxIn0"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdGroups_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdGroups_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdGroups_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdGroups_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdGroups_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAdGroups_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "get-ad-groups",
        "tags": [
          "Ad Groups"
        ]
      },
      "post": {
        "summary": "Create Ad Groups",
        "description": "Create one or more ad groups within a campaign.",
        "security": [
          {
            "auth": [
              "ads.campaigns.write"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "description": "Campaign identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ad_groups": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CreateAdGroups_CreateAdGroupInput"
                    },
                    "description": "List of ad groups to create"
                  }
                }
              },
              "example": {
                "ad_groups": [
                  {
                    "name": "Downtown Store Promotion",
                    "ad_product": "SPONSORED_LISTING",
                    "configured_status": "AD_GROUP_CONFIGURED_STATUS_ACTIVE",
                    "budget": {
                      "unit": "BUDGET_UNIT_DAILY",
                      "total": {
                        "amount_e5": "25000",
                        "currency_code": "USD"
                      }
                    },
                    "schedule": {
                      "start_time": "2024-01-01T00:00:00Z"
                    },
                    "dayparting_schedule": {
                      "dayparting_day_schedule": [
                        {
                          "intervals": [
                            {
                              "start_time": {
                                "hour": 6,
                                "minute": 0
                              },
                              "end_time": {
                                "hour": 22,
                                "minute": 0
                              }
                            }
                          ]
                        },
                        {
                          "intervals": [
                            {
                              "start_time": {
                                "hour": 6,
                                "minute": 0
                              },
                              "end_time": {
                                "hour": 22,
                                "minute": 0
                              }
                            }
                          ]
                        },
                        {
                          "intervals": [
                            {
                              "start_time": {
                                "hour": 6,
                                "minute": 0
                              },
                              "end_time": {
                                "hour": 22,
                                "minute": 0
                              }
                            }
                          ]
                        },
                        {
                          "intervals": [
                            {
                              "start_time": {
                                "hour": 6,
                                "minute": 0
                              },
                              "end_time": {
                                "hour": 22,
                                "minute": 0
                              }
                            }
                          ]
                        },
                        {
                          "intervals": [
                            {
                              "start_time": {
                                "hour": 6,
                                "minute": 0
                              },
                              "end_time": {
                                "hour": 22,
                                "minute": 0
                              }
                            }
                          ]
                        },
                        {
                          "intervals": [
                            {
                              "start_time": {
                                "hour": 6,
                                "minute": 0
                              },
                              "end_time": {
                                "hour": 24,
                                "minute": 0
                              }
                            }
                          ]
                        },
                        {
                          "intervals": [
                            {
                              "start_time": {
                                "hour": 6,
                                "minute": 0
                              },
                              "end_time": {
                                "hour": 24,
                                "minute": 0
                              }
                            }
                          ]
                        }
                      ]
                    },
                    "bidding": {
                      "auto": {}
                    },
                    "targeting": {
                      "negation": false,
                      "operator": "AND",
                      "criteria": [
                        {
                          "uber_one": {}
                        }
                      ]
                    },
                    "ad_subjects": {
                      "stores": {
                        "store_ids": [
                          "store-123",
                          "store-456"
                        ]
                      }
                    }
                  },
                  {
                    "name": "CPG Brand Product Promotion",
                    "ad_product": "SPONSORED_ITEMS",
                    "configured_status": "AD_GROUP_CONFIGURED_STATUS_PAUSED",
                    "schedule": {
                      "start_time": "2025-07-10T00:00:00Z"
                    },
                    "bidding": {
                      "auto": {}
                    },
                    "ad_subjects": {
                      "gtin_items": {
                        "gtin_items": [
                          {
                            "gtin": "07501086802678"
                          },
                          {
                            "gtin": "07501000645169"
                          }
                        ]
                      }
                    },
                    "bidding_enhancements": {
                      "enhancements": [
                        {
                          "keyword": {
                            "keyword_bids": [
                              {
                                "keyword": "cookies",
                                "bid": {
                                  "manual": {
                                    "bid_amount": {
                                      "amount_e5": "50000",
                                      "currency_code": "MXN"
                                    }
                                  }
                                }
                              },
                              {
                                "keyword": "chips",
                                "bid": {
                                  "manual": {
                                    "bid_amount": {
                                      "amount_e5": "70000",
                                      "currency_code": "MXN"
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  },
                  {
                    "name": "CPG Sponsored Brands Promotion",
                    "ad_product": "SPONSORED_BRANDS",
                    "configured_status": "AD_GROUP_CONFIGURED_STATUS_PAUSED",
                    "schedule": {
                      "start_time": "2025-07-10T00:00:00Z"
                    },
                    "bidding": {
                      "auto": {}
                    },
                    "ad_subjects": {
                      "gtin_items": {
                        "gtin_items": [
                          {
                            "gtin": "07501031303977"
                          },
                          {
                            "gtin": "07501086802678"
                          },
                          {
                            "gtin": "07501011140363"
                          }
                        ]
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CreateAdGroups_OperationResult"
                      },
                      "description": "Results of the create operations"
                    }
                  }
                },
                "example": {
                  "results": [
                    {
                      "success": {
                        "id": "379638e6-5ecf-5b27-af83-68368ee3f597"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAdGroups_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAdGroups_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAdGroups_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAdGroups_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAdGroups_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAdGroups_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "create-ad-groups",
        "tags": [
          "Ad Groups"
        ]
      },
      "patch": {
        "summary": "Update Ad Groups",
        "description": "Update one or more existing ad groups within a campaign.",
        "security": [
          {
            "auth": [
              "ads.campaigns.write"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "description": "Campaign identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ad_groups": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/UpdateAdGroups_UpdateAdGroupInput"
                    },
                    "description": "List of ad groups to update"
                  }
                }
              },
              "example": {
                "ad_groups": [
                  {
                    "ad_group_id": "379638e6-5ecf-5b27-af83-68368ee3f597",
                    "name": "Downtown Store Promotion - Updated",
                    "configured_status": "AD_GROUP_CONFIGURED_STATUS_PAUSED",
                    "budget": {
                      "unit": "BUDGET_UNIT_DAILY",
                      "total": {
                        "amount_e5": "35000",
                        "currency_code": "USD"
                      }
                    },
                    "bidding": {
                      "manual": {
                        "bid_amount": {
                          "amount_e5": "15000",
                          "currency_code": "USD"
                        }
                      }
                    },
                    "targeting": {
                      "negation": false,
                      "operator": "AND",
                      "criteria": [
                        {
                          "uber_one": {}
                        }
                      ]
                    }
                  },
                  {
                    "ad_group_id": "11c606f7-9aa2-4706-be2d-64100a286919",
                    "configured_status": "AD_GROUP_CONFIGURED_STATUS_ACTIVE",
                    "ad_subjects": {
                      "gtin_items": {
                        "gtin_items": [
                          {
                            "gtin": "07501086802678"
                          },
                          {
                            "gtin": "07501000645169"
                          },
                          {
                            "gtin": "07501000617432"
                          }
                        ]
                      }
                    },
                    "bidding_enhancements": {
                      "enhancements": [
                        {
                          "keyword": {
                            "keyword_bids": [
                              {
                                "keyword": "cookies",
                                "bid": {
                                  "manual": {
                                    "bid_amount": {
                                      "amount_e5": "50000",
                                      "currency_code": "MXN"
                                    }
                                  }
                                }
                              },
                              {
                                "keyword": "chips",
                                "bid": {
                                  "manual": {
                                    "bid_amount": {
                                      "amount_e5": "70000",
                                      "currency_code": "MXN"
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/UpdateAdGroups_OperationResult"
                      },
                      "description": "Results of the update operations"
                    }
                  }
                },
                "example": {
                  "results": [
                    {
                      "success": {
                        "id": "379638e6-5ecf-5b27-af83-68368ee3f597"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAdGroups_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAdGroups_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAdGroups_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAdGroups_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAdGroups_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAdGroups_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "update-ad-groups",
        "tags": [
          "Ad Groups"
        ]
      }
    },
    "/v1/ads/{account_id}/campaigns/{campaign_id}/ad-groups/{ad_group_id}/ads": {
      "get": {
        "summary": "Get Ads",
        "description": "Retrieve a list of ads within an ad group.",
        "security": [
          {
            "auth": [
              "ads.campaigns.read"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "description": "Campaign identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "ad_group_id",
            "required": true,
            "description": "Ad group identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_token",
            "required": false,
            "description": "Page token for pagination",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_limit",
            "required": false,
            "description": "Number of results to return (Max 2000)",
            "schema": {
              "type": "integer",
              "maximum": 2000
            }
          },
          {
            "in": "query",
            "name": "ad_id",
            "required": false,
            "description": "Filter by specific ad ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ads": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GetAds_Ad"
                      },
                      "description": "List of ad objects"
                    },
                    "next_page_token": {
                      "$ref": "#/components/schemas/GetAds_PageToken"
                    }
                  }
                },
                "example": {
                  "ads": [
                    {
                      "ad_id": "ad-123-456-789",
                      "ad_group_id": "379638e6-5ecf-5b27-af83-68368ee3f597",
                      "campaign_id": "00117dad-f83f-4a38-9192-a371250ff09e",
                      "name": "Downtown Store Ad",
                      "configured_status": "AD_CONFIGURED_STATUS_ACTIVE",
                      "effective_status": "AD_EFFECTIVE_STATUS_ACTIVE",
                      "effective_status_reasons": []
                    },
                    {
                      "ad_id": "ad-987-654-321",
                      "ad_group_id": "379638e6-5ecf-5b27-af83-68368ee3f597",
                      "campaign_id": "00117dad-f83f-4a38-9192-a371250ff09e",
                      "name": "Weekend Special Ad",
                      "configured_status": "AD_CONFIGURED_STATUS_PAUSED",
                      "effective_status": "AD_EFFECTIVE_STATUS_PAUSED",
                      "effective_status_reasons": [
                        "AD_EFFECTIVE_STATUS_REASON_PAUSED"
                      ]
                    },
                    {
                      "ad_id": "48a7fd9a-284d-4cef-b228-3e559c58d04c",
                      "ad_group_id": "98057fcc-5c32-4b86-9147-022a4cfc65bd",
                      "campaign_id": "0d115bab-3044-59f2-9f92-0d0d8010e3a0",
                      "name": "Sponsored Brands Ad",
                      "creative_id": "bb5bfc43-4c1d-4eca-8e4f-88d351663b9f",
                      "configured_status": "AD_CONFIGURED_STATUS_ACTIVE",
                      "effective_status": "AD_EFFECTIVE_STATUS_WITH_ISSUES",
                      "effective_status_reasons": [
                        "AD_EFFECTIVE_STATUS_REASON_AD_PENDING"
                      ]
                    }
                  ],
                  "next_page_token": {
                    "value": "eyJsYXN0X2FkX2lkIjoiYWQtOTg3LTY1NC0zMjEifQ"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAds_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAds_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAds_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAds_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAds_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAds_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "get-ads",
        "tags": [
          "Ads"
        ]
      },
      "post": {
        "summary": "Create Ads",
        "description": "Create one or more ads within an ad group.",
        "security": [
          {
            "auth": [
              "ads.campaigns.write"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "description": "Campaign identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "ad_group_id",
            "required": true,
            "description": "Ad group identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ads": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CreateAds_CreateAdInput"
                    },
                    "description": "List of ads to create"
                  }
                }
              },
              "example": {
                "ads": [
                  {
                    "name": "Downtown Store Ad",
                    "configured_status": "AD_CONFIGURED_STATUS_ACTIVE"
                  },
                  {
                    "name": "Weekend Special Ad",
                    "configured_status": "AD_CONFIGURED_STATUS_PAUSED"
                  },
                  {
                    "name": "Sponsored Brands Ad",
                    "creative_id": "bb5bfc43-4c1d-4eca-8e4f-88d351663b9f",
                    "configured_status": "AD_CONFIGURED_STATUS_ACTIVE"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CreateAds_OperationResult"
                      },
                      "description": "Results of the create operations"
                    }
                  }
                },
                "example": {
                  "results": [
                    {
                      "success": {
                        "id": "ad-123-456-789"
                      }
                    },
                    {
                      "success": {
                        "id": "ad-987-654-321"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAds_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAds_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAds_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAds_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAds_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAds_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "create-ads",
        "tags": [
          "Ads"
        ]
      },
      "patch": {
        "summary": "Update Ads",
        "description": "Update one or more existing ads within an ad group.",
        "security": [
          {
            "auth": [
              "ads.campaigns.write"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "description": "Campaign identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "ad_group_id",
            "required": true,
            "description": "Ad group identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ads": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/UpdateAds_UpdateAdInput"
                    },
                    "description": "List of ads to update"
                  }
                }
              },
              "example": {
                "ads": [
                  {
                    "ad_id": "ad-123-456-789",
                    "name": "Downtown Store Ad - Updated"
                  },
                  {
                    "ad_id": "ad-987-654-321",
                    "configured_status": "AD_CONFIGURED_STATUS_PAUSED"
                  },
                  {
                    "ad_id": "48a7fd9a-284d-4cef-b228-3e559c58d04c",
                    "creative_id": "bb5bfc43-4c1d-4eca-8e4f-88d351663b9f"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/UpdateAds_OperationResult"
                      },
                      "description": "Results of the update operations"
                    }
                  }
                },
                "example": {
                  "results": [
                    {
                      "success": {
                        "id": "ad-123-456-789"
                      }
                    },
                    {
                      "success": {
                        "id": "ad-987-654-321"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAds_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAds_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAds_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAds_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAds_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAds_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "update-ads",
        "tags": [
          "Ads"
        ]
      }
    },
    "/v1/ads/{account_id}/assets": {
      "get": {
        "summary": "Get Assets",
        "description": "Retrieve the assets that belong to an ad account.",
        "security": [
          {
            "auth": [
              "ads.creatives.read"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "asset_id",
            "required": false,
            "description": "Return only the asset matching this identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_token",
            "required": false,
            "description": "Page token for pagination",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_limit",
            "required": false,
            "description": "Number of results to return (Max 2000)",
            "schema": {
              "type": "integer",
              "maximum": 2000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "assets": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GetAssets_Asset"
                      },
                      "description": "List of asset objects"
                    },
                    "next_page_token": {
                      "$ref": "#/components/schemas/GetAssets_PageToken"
                    }
                  }
                },
                "example": {
                  "assets": [
                    {
                      "asset_id": "b3d9f0a2-1c47-4e8b-9a52-7f6c1d0e3a84",
                      "name": "Summer Campaign Hero",
                      "file_url": "https://tb-static.uber.com/prod/ads-assets/summer-hero-1200x628.jpg",
                      "image_specs": {
                        "width": 1200,
                        "height": 628
                      },
                      "metadata": {
                        "created_at": "2026-06-01T14:22:31Z",
                        "updated_at": "2026-06-02T09:15:04Z",
                        "created_by_email": "marketing@example.com",
                        "updated_by_email": "marketing@example.com"
                      },
                      "status": "ASSET_STATUS_COMPLETED",
                      "status_reasons": []
                    },
                    {
                      "asset_id": "5e1c8a76-9b02-4d3f-8c15-2a7e4b9d6f30",
                      "name": "Fall Promo Logo",
                      "file_url": "https://tb-static.uber.com/prod/ads-assets/fall-promo-logo-312x312.png",
                      "image_specs": {
                        "width": 312,
                        "height": 312
                      },
                      "metadata": {
                        "created_at": "2026-06-04T11:05:47Z",
                        "updated_at": "2026-06-04T11:05:47Z",
                        "created_by_email": "design@example.com",
                        "updated_by_email": "design@example.com"
                      },
                      "status": "ASSET_STATUS_FAILED",
                      "status_reasons": [
                        "ASSET_STATUS_REASON_INVALID_DIMENSIONS"
                      ]
                    }
                  ],
                  "next_page_token": {
                    "value": "eyJsYXN0X2Fzc2V0X2lkIjoiNWUxYzhhNzYtOWIwMi00ZDNmLThjMTUifQ"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAssets_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAssets_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAssets_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAssets_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAssets_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAssets_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "get-assets",
        "tags": [
          "Asset"
        ]
      },
      "post": {
        "summary": "Create Asset",
        "description": "Register a media file as an asset on an ad account.",
        "security": [
          {
            "auth": [
              "ads.creatives.write"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "file_url"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Human-readable asset name"
                  },
                  "file_url": {
                    "type": "string",
                    "description": "Publicly reachable URL of the image file to register"
                  }
                }
              },
              "example": {
                "name": "Summer Campaign Hero",
                "file_url": "https://cdn.example.com/creative/summer-hero-1200x628.jpg"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "asset_id": {
                      "type": "string",
                      "description": "Identifier of the created asset"
                    }
                  }
                },
                "example": {
                  "asset_id": "b3d9f0a2-1c47-4e8b-9a52-7f6c1d0e3a84"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAsset_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAsset_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAsset_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAsset_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAsset_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAsset_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "create-asset",
        "tags": [
          "Asset"
        ]
      }
    },
    "/v1/ads/{account_id}/creatives": {
      "get": {
        "summary": "Get Creatives",
        "description": "Retrieve the creatives that belong to an ad account.",
        "security": [
          {
            "auth": [
              "ads.creatives.read"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "creative_id",
            "required": false,
            "description": "Return only the creative matching this identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_token",
            "required": false,
            "description": "Page token for pagination",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_limit",
            "required": false,
            "description": "Number of results to return (Max 2000)",
            "schema": {
              "type": "integer",
              "maximum": 2000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "creatives": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GetCreatives_Creative"
                      },
                      "description": "List of creative objects"
                    },
                    "next_page_token": {
                      "$ref": "#/components/schemas/GetCreatives_PageToken"
                    }
                  }
                },
                "example": {
                  "creatives": [
                    {
                      "creative_id": "7c2f4b19-8ad3-4e60-b1f7-9e05c3a2d846",
                      "name": "Summer Campaign Banner",
                      "type": {
                        "sponsored_brands": {
                          "banner_asset_id": "b3d9f0a2-1c47-4e8b-9a52-7f6c1d0e3a84",
                          "title": "Summer Refresh Sale",
                          "gradient_color": "#1A73E8"
                        }
                      },
                      "status": "CREATIVE_STATUS_APPROVED",
                      "review_metadata": {
                        "review_notes": ""
                      },
                      "metadata": {
                        "created_at": "2026-06-02T10:31:12Z",
                        "updated_at": "2026-06-03T08:44:20Z",
                        "created_by_email": "marketing@example.com",
                        "updated_by_email": "marketing@example.com"
                      }
                    },
                    {
                      "creative_id": "e0a6d5c3-2f81-4b7a-9d34-5c8e1f0b6273",
                      "name": "Fall Promo Banner",
                      "type": {
                        "sponsored_brands": {
                          "banner_asset_id": "5e1c8a76-9b02-4d3f-8c15-2a7e4b9d6f30",
                          "title": "Fall Flavors Are Here",
                          "gradient_color": "#B23A00"
                        }
                      },
                      "status": "CREATIVE_STATUS_REJECTED",
                      "review_metadata": {
                        "review_notes": "Banner asset contains excessive text"
                      },
                      "metadata": {
                        "created_at": "2026-06-05T09:12:55Z",
                        "updated_at": "2026-06-05T16:02:41Z",
                        "created_by_email": "design@example.com",
                        "updated_by_email": "design@example.com"
                      }
                    }
                  ],
                  "next_page_token": {
                    "value": "eyJsYXN0X2NyZWF0aXZlX2lkIjoiZTBhNmQ1YzMtMmY4MS00YjdhIn0"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCreatives_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCreatives_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCreatives_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCreatives_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCreatives_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCreatives_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "get-creatives",
        "tags": [
          "Creative"
        ]
      },
      "post": {
        "summary": "Create Creatives",
        "description": "Create one or more creatives on an ad account.",
        "security": [
          {
            "auth": [
              "ads.creatives.write"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Ad account identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "creatives": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CreateCreatives_CreateCreativeInput"
                    },
                    "description": "List of creatives to create"
                  }
                }
              },
              "example": {
                "creatives": [
                  {
                    "name": "Summer Campaign Banner",
                    "type": {
                      "sponsored_brands": {
                        "banner_asset_id": "b3d9f0a2-1c47-4e8b-9a52-7f6c1d0e3a84",
                        "title": "Summer Refresh Sale",
                        "gradient_color": "#1A73E8"
                      }
                    }
                  },
                  {
                    "name": "Fall Promo Banner",
                    "type": {
                      "sponsored_brands": {
                        "banner_asset_id": "5e1c8a76-9b02-4d3f-8c15-2a7e4b9d6f30",
                        "title": "Fall Flavors Are Here",
                        "gradient_color": "#B23A00"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CreateCreatives_BulkOperationResult"
                      },
                      "description": "One result per submitted creative, in request order"
                    }
                  }
                },
                "example": {
                  "results": [
                    {
                      "success": {
                        "id": "7c2f4b19-8ad3-4e60-b1f7-9e05c3a2d846"
                      }
                    },
                    {
                      "failure": {
                        "error_code": "INVALID_ARGUMENT",
                        "error_message": "Creative title cannot exceed 20 characters."
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCreatives_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCreatives_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCreatives_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCreatives_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCreatives_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCreatives_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "create-creatives",
        "tags": [
          "Creative"
        ]
      }
    },
    "/v1/ads/{account_id}/products": {
      "get": {
        "summary": "Get Products",
        "description": "Retrieve product information for advertising inventory.\n\n**Note: Product catalog data may be updated every 4 hours.**\n",
        "security": [
          {
            "auth": [
              "ads.products.read"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_token",
            "required": false,
            "description": "Page token for pagination",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_limit",
            "required": false,
            "description": "Number of results to return (Max 2000)",
            "schema": {
              "type": "integer",
              "maximum": 2000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "products": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GetProducts_Product"
                      },
                      "description": "List of product objects"
                    },
                    "next_page_token": {
                      "$ref": "#/components/schemas/GetProducts_PageToken"
                    }
                  }
                },
                "example": {
                  "products": [
                    {
                      "gtin": "0123456789012",
                      "product_name": "Classic Margherita Pizza",
                      "brand_owner_name": "Tony's Italian Kitchen",
                      "brand_name": "Tony's",
                      "main_image_url": "https://images.uber.com/products/margherita-pizza-001.jpg",
                      "size": "25 oz"
                    },
                    {
                      "gtin": "0987654321098",
                      "product_name": "Chicago Deep Dish Special",
                      "brand_owner_name": "Windy City Pizza Co",
                      "brand_name": "Windy City",
                      "main_image_url": "https://images.uber.com/products/deep-dish-special-002.jpg",
                      "size": "32 oz"
                    },
                    {
                      "gtin": "0456789123456",
                      "product_name": "Fresh Caesar Salad",
                      "brand_owner_name": "Garden Bistro",
                      "brand_name": "Garden",
                      "main_image_url": "https://images.uber.com/products/caesar-salad-003.jpg",
                      "size": "18 oz"
                    }
                  ],
                  "next_page_token": {
                    "value": "eyJsYXN0X3Byb2R1Y3RfZ3RpbiI6IjA0NTY3ODkxMjM0NTYifQ"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProducts_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProducts_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProducts_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProducts_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProducts_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProducts_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "get-products",
        "tags": [
          "Product Catalog"
        ]
      }
    },
    "/v1/ads/{account_id}/reporting/report": {
      "post": {
        "summary": "Generate Report",
        "description": "Request an asynchronous report with advertising metrics including performance, keyword, and category data.",
        "security": [
          {
            "auth": [
              "ads.reporting"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Account identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Report generation request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReports_ExternalSubmitReportJobRequest"
              },
              "example": {
                "report_type": "AD_PERFORMANCE",
                "time_range": {
                  "start_time": "2025-08-01T00:00:00Z",
                  "end_time": "2025-08-21T00:00:00Z"
                },
                "columns": [
                  "campaign_id",
                  "ad_group_id",
                  "impressions",
                  "clicks",
                  "ad_spend",
                  "sales_7d_on_click_date",
                  "orders_7d_on_click_date",
                  "roas_7d_on_click_date",
                  "cost_per_click"
                ],
                "time_unit": "DAILY",
                "filters": [
                  {
                    "column": "campaign_id",
                    "operator": "EQUAL",
                    "values": [
                      "13529bf9-328e-5cf9-b2a7-b670334c2bd9"
                    ]
                  }
                ],
                "include_headers": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateReports_ExternalSubmitReportJobResponse"
                },
                "example": {
                  "report_id": "report_abc123def456"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateReports_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateReports_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateReports_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateReports_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateReports_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateReports_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "create-reports",
        "tags": [
          "Reporting"
        ]
      }
    },
    "/v1/ads/{account_id}/reporting/{report_id}": {
      "get": {
        "summary": "Get Report Status",
        "description": "Check the status of a report generation request and retrieve the download URL when ready.\n\nThe download URL expires 5 minutes after the report status becomes `COMPLETED`.\n\nReport status expires after 7 days. After that, this endpoint returns a `404` error with code `Expired`. Submit a new report job to regenerate.\n\nWait 5–10 seconds between polls. Polling faster may return a `429` [rate limit](/docs/ads/overview/rate-limiting) error.\n",
        "security": [
          {
            "auth": [
              "ads.reporting"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Account identifier",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "report_id",
            "required": true,
            "description": "Report identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReport_ExternalGetReportJobStatusResponse"
                },
                "example": {
                  "status": "COMPLETED",
                  "result": {
                    "success_result": {
                      "report_url": "https://reports.uber.com/download/abc123def456",
                      "file_size": "1048576",
                      "url_expires_at": "2024-02-01T00:00:00Z",
                      "report_schema": [
                        "campaign_id",
                        "impressions",
                        "clicks",
                        "spend"
                      ]
                    },
                    "started_at": "2024-01-01T10:00:00Z",
                    "finished_at": "2024-01-01T10:05:30Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReport_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReport_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReport_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReport_error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Report not found",
                    "value": {
                      "code": "NOT_FOUND",
                      "message": "The requested resource was not found or is inaccessible"
                    }
                  },
                  "expired": {
                    "summary": "Report expired (>7 days)",
                    "value": {
                      "code": "Expired",
                      "message": "The requested report has expired and is no longer available."
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReport_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetReport_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "get-report",
        "tags": [
          "Reporting"
        ]
      }
    },
    "/v1/ads/{account_id}/reporting/sync": {
      "post": {
        "summary": "Sync Report",
        "description": "Request a synchronous report that returns advertising metrics immediately in the response. Ideal for real-time dashboards and interactive analytics.",
        "security": [
          {
            "auth": [
              "ads.sync.reporting"
            ]
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "description": "Account identifier",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Sync report request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncReport_SyncReportRequest"
              },
              "example": {
                "report_type": "AD_PERFORMANCE",
                "time_range": {
                  "start_time": "2025-11-03T00:00:00Z",
                  "end_time": "2025-11-05T00:00:00Z"
                },
                "columns": [
                  "campaign_id",
                  "ad_group_id",
                  "impressions",
                  "clicks",
                  "ad_spend",
                  "sales_7d_on_click_date",
                  "roas_7d_on_click_date"
                ],
                "time_unit": "DAILY",
                "filters": [
                  {
                    "column": "campaign_id",
                    "operator": "EQUAL",
                    "values": [
                      "13529bf9-328e-5cf9-b2a7-b670334c2bd9"
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncReport_SyncReportResponse"
                },
                "example": {
                  "schema": {
                    "columns": [
                      {
                        "name": "day_of",
                        "type": "COLUMN_TYPE_TIMESTAMP"
                      },
                      {
                        "name": "campaign_id",
                        "type": "COLUMN_TYPE_STRING"
                      },
                      {
                        "name": "ad_group_id",
                        "type": "COLUMN_TYPE_STRING"
                      },
                      {
                        "name": "impressions",
                        "type": "COLUMN_TYPE_INT64"
                      },
                      {
                        "name": "clicks",
                        "type": "COLUMN_TYPE_INT64"
                      },
                      {
                        "name": "ad_spend",
                        "type": "COLUMN_TYPE_DOUBLE"
                      },
                      {
                        "name": "sales_7d_on_click_date",
                        "type": "COLUMN_TYPE_DOUBLE"
                      },
                      {
                        "name": "roas_7d_on_click_date",
                        "type": "COLUMN_TYPE_DOUBLE"
                      }
                    ]
                  },
                  "data": {
                    "rows": [
                      {
                        "values": [
                          "2025-11-04T00:00:00Z",
                          "{campaign_uuid}",
                          "{ad_group_uuid}",
                          "8428",
                          "506",
                          "159.35",
                          "2250",
                          "14.119861939127706"
                        ]
                      },
                      {
                        "values": [
                          "2025-11-03T00:00:00Z",
                          "{campaign_uuid}",
                          "{ad_group_uuid}",
                          "6677",
                          "457",
                          "111.92",
                          "2201.26",
                          "19.668155825589707"
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncReport_error"
                },
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "Invalid request format or parameters."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncReport_error"
                },
                "example": {
                  "code": "PERMISSION_DENIED",
                  "message": "Authentication credentials are missing or invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncReport_error"
                },
                "example": {
                  "code": "FORBIDDEN",
                  "message": "Insufficient permissions to perform this operation."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncReport_error"
                },
                "example": {
                  "code": "NOT_FOUND",
                  "message": "The requested resource was not found or is inaccessible"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncReport_error"
                },
                "example": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Request limit exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncReport_error"
                },
                "example": {
                  "code": "INTERNAL",
                  "message": "An unexpected server error occurred."
                }
              }
            }
          }
        },
        "operationId": "sync-report",
        "tags": [
          "Reporting"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "auth": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.uber.com/oauth/v2/authorize",
            "tokenUrl": "https://login.uber.com/oauth/v2/token",
            "scopes": {
              "ads.ad-accounts.read": "Read access to ad account data",
              "ads.campaigns.read": "Read access to campaign data",
              "ads.campaigns.write": "Write access to campaign data",
              "ads.creatives.read": "Read access to creative and asset endpoints",
              "ads.creatives.write": "Write access to creative and asset endpoints",
              "ads.products.read": "Read access to product endpoints",
              "ads.reporting": "Access to asynchronous reporting endpoints",
              "ads.sync.reporting": "Access to synchronous reporting endpoints"
            }
          }
        }
      }
    },
    "schemas": {
      "GetAdAccounts_AdAccount": {
        "type": "object",
        "properties": {
          "ad_account_id": {
            "type": "string",
            "description": "Unique ad account identifier"
          },
          "name": {
            "type": "string",
            "description": "Ad account name"
          },
          "country_code": {
            "type": "string",
            "description": "Country code of the ad account (ISO 3166-1 alpha-2)"
          },
          "currency_code": {
            "type": "string",
            "description": "Currency code of the ad account (ISO 4217)"
          },
          "account_type": {
            "type": "string",
            "description": "Type of ad account. See [AdAccount](/docs/ads/references/models/v1/ad-account) for value descriptions and [Ad Products](/docs/ads/campaign-management/ad-products) for campaign-creation eligibility by type.",
            "enum": [
              "OFD",
              "USER_STORES_GROUP",
              "CPG",
              "NON_ENDEMIC_ADVERTISER",
              "AGENCY",
              "INTERNAL",
              "UNKNOWN"
            ]
          },
          "billing": {
            "$ref": "#/components/schemas/GetAdAccounts_Billing"
          }
        }
      },
      "GetAdAccounts_Billing": {
        "type": "object",
        "description": "Billing information for the ad account",
        "properties": {
          "address": {
            "$ref": "#/components/schemas/GetAdAccounts_Address"
          },
          "type": {
            "type": "string",
            "description": "Billing type",
            "enum": [
              "ACCOUNT_BILLING_MODE_INVALID",
              "ACCOUNT_BILLING_MODE_MANUAL",
              "ACCOUNT_BILLING_MODE_REVENUE_DEDUCTION",
              "ACCOUNT_BILLING_MODE_UCOMMERCE",
              "ACCOUNT_BILLING_MODE_NON_BILLABLE"
            ]
          }
        }
      },
      "GetAdAccounts_Address": {
        "type": "object",
        "description": "Billing address information",
        "properties": {
          "address_line1": {
            "type": "string",
            "description": "Primary address line"
          },
          "address_line2": {
            "type": "string",
            "description": "Secondary address line (optional, for suite/apartment/etc)"
          },
          "city": {
            "type": "string",
            "description": "City name"
          },
          "state": {
            "type": "string",
            "description": "State or province"
          },
          "country_code": {
            "type": "string",
            "description": "Country code (ISO 3166-1 alpha-2)"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal or ZIP code"
          }
        }
      },
      "GetAdAccounts_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "GetStores_Store": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique store identifier"
          },
          "name": {
            "type": "string",
            "description": "Store name"
          },
          "currency_code": {
            "type": "string",
            "format": "currency-code",
            "description": "Currency code (ISO 4217)"
          },
          "image_url": {
            "type": "string",
            "format": "uri",
            "description": "Store image URL"
          },
          "address": {
            "$ref": "#/components/schemas/GetStores_StoreAddress",
            "description": "Store address"
          }
        }
      },
      "GetStores_StoreAddress": {
        "type": "object",
        "description": "Store address information",
        "properties": {
          "address_line1": {
            "type": "string",
            "description": "Primary address line"
          },
          "address_line2": {
            "type": "string",
            "description": "Secondary address line (optional)"
          },
          "city": {
            "type": "string",
            "description": "City name"
          },
          "region": {
            "type": "string",
            "description": "State or region"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal or ZIP code"
          },
          "country": {
            "type": "string",
            "description": "Country name or code"
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "description": "Latitude coordinate"
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "description": "Longitude coordinate"
          }
        }
      },
      "GetStores_PageToken": {
        "type": "object",
        "description": "Pagination token for retrieving additional results",
        "properties": {
          "value": {
            "type": "string",
            "description": "Opaque page token for pagination"
          }
        }
      },
      "GetStores_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "GetCampaigns_Campaign": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string",
            "description": "Unique campaign identifier"
          },
          "name": {
            "type": "string",
            "description": "Campaign name"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Creation timestamp (RFC 3339)"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last update timestamp (RFC 3339)"
          },
          "created_by_email": {
            "type": "string",
            "description": "Email of user who created the campaign"
          },
          "updated_by_email": {
            "type": "string",
            "description": "Email of user who last updated the campaign"
          },
          "budget": {
            "$ref": "#/components/schemas/GetCampaigns_Budget"
          },
          "ad_groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetCampaigns_AdGroupSummary"
            },
            "description": "Summary of ad groups in this campaign"
          },
          "configured_status": {
            "type": "string",
            "description": "Status configured by the user"
          },
          "effective_status": {
            "type": "string",
            "description": "Status representing deliverability of the campaign"
          },
          "version": {
            "type": "integer",
            "description": "Campaign version number"
          },
          "effective_status_reasons": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Reasons why the campaign is not eligible to be served"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "READ",
                "UPDATE",
                "DELETE"
              ]
            },
            "description": "Operations the caller is permitted to perform on this campaign"
          }
        }
      },
      "GetCampaigns_Budget": {
        "type": "object",
        "description": "Budget configuration for campaigns",
        "properties": {
          "unit": {
            "type": "string",
            "enum": [
              "BUDGET_UNIT_INVALID",
              "BUDGET_UNIT_FIXED",
              "BUDGET_UNIT_DAILY",
              "BUDGET_UNIT_WEEKLY"
            ],
            "description": "Budget time unit"
          },
          "total": {
            "$ref": "#/components/schemas/GetCampaigns_CurrencyAmount",
            "description": "Total budget amount"
          },
          "cofunding_sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetCampaigns_CofundingSource"
            },
            "description": "Sources of campaign funding"
          }
        }
      },
      "GetCampaigns_AdGroupSummary": {
        "type": "object",
        "properties": {
          "ad_group_id": {
            "type": "string",
            "description": "Unique ad group identifier"
          },
          "name": {
            "type": "string",
            "description": "Ad group name"
          },
          "configured_status": {
            "type": "string",
            "description": "Status configured by the user"
          },
          "effective_status": {
            "type": "string",
            "description": "Status representing deliverability of the ad group"
          },
          "effective_status_reasons": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Reasons why the campaign is not eligible to be served"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "READ",
                "UPDATE",
                "DELETE"
              ]
            },
            "description": "Operations the caller is permitted to perform on this ad group"
          }
        }
      },
      "GetCampaigns_CurrencyAmount": {
        "type": "object",
        "properties": {
          "amount_e5": {
            "type": "string",
            "format": "currency-amount",
            "description": "Amount in E5"
          },
          "currency_code": {
            "type": "string",
            "format": "currency-code",
            "description": "Currency code (ISO 4217)"
          }
        }
      },
      "GetCampaigns_CofundingSource": {
        "type": "object",
        "properties": {
          "funding_percentage": {
            "type": "number",
            "format": "double",
            "description": "Percentage of cofunding for this campaign (e.g., 70.0 means 70% of the campaign budget is cofunded)"
          }
        }
      },
      "GetCampaigns_PageToken": {
        "type": "object",
        "description": "Pagination token for retrieving additional results",
        "properties": {
          "value": {
            "type": "string",
            "description": "Opaque page token for pagination"
          }
        }
      },
      "GetCampaigns_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "CreateCampaigns_CreateCampaignInput": {
        "type": "object",
        "required": [
          "name",
          "configured_status"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Campaign name"
          },
          "configured_status": {
            "type": "string",
            "enum": [
              "CAMPAIGN_CONFIGURED_STATUS_ACTIVE",
              "CAMPAIGN_CONFIGURED_STATUS_PAUSED"
            ],
            "description": "Status configured by the user"
          },
          "budget": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CreateCampaigns_BudgetInput"
              }
            ],
            "description": "Budget configuration. Can be set at campaign level (shared across ad groups) or ad group level (more granular control)."
          }
        }
      },
      "CreateCampaigns_BudgetInput": {
        "type": "object",
        "required": [
          "unit",
          "total"
        ],
        "properties": {
          "unit": {
            "type": "string",
            "enum": [
              "BUDGET_UNIT_FIXED",
              "BUDGET_UNIT_DAILY",
              "BUDGET_UNIT_WEEKLY"
            ],
            "description": "Budget time unit"
          },
          "total": {
            "$ref": "#/components/schemas/CreateCampaigns_CurrencyAmountInput",
            "description": "Total budget amount"
          }
        }
      },
      "CreateCampaigns_CurrencyAmountInput": {
        "type": "object",
        "required": [
          "amount_e5",
          "currency_code"
        ],
        "properties": {
          "amount_e5": {
            "type": "string",
            "format": "currency-amount",
            "description": "Amount in E5 format (e.g., \"50000\" represents $0.50)"
          },
          "currency_code": {
            "type": "string",
            "format": "currency-code",
            "description": "Currency code (ISO 4217)"
          }
        }
      },
      "CreateCampaigns_OperationResult": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "success": {
                "$ref": "#/components/schemas/CreateCampaigns_OperationSuccess"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "failure": {
                "$ref": "#/components/schemas/CreateCampaigns_OperationFailure"
              }
            }
          }
        ]
      },
      "CreateCampaigns_OperationSuccess": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the created campaign"
          }
        }
      },
      "CreateCampaigns_OperationFailure": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code for the failed operation"
          },
          "error_message": {
            "type": "string",
            "description": "Error message for the failed operation"
          }
        }
      },
      "CreateCampaigns_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "UpdateCampaigns_UpdateCampaignInput": {
        "type": "object",
        "description": "Input for updating a campaign.",
        "required": [
          "campaign_id"
        ],
        "properties": {
          "campaign_id": {
            "type": "string",
            "description": "Unique campaign identifier"
          },
          "name": {
            "type": "string",
            "description": "Campaign name"
          },
          "configured_status": {
            "type": "string",
            "enum": [
              "CAMPAIGN_CONFIGURED_STATUS_ACTIVE",
              "CAMPAIGN_CONFIGURED_STATUS_PAUSED"
            ],
            "description": "Status configured by the user"
          },
          "budget": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UpdateCampaigns_BudgetInput"
              }
            ],
            "description": "Budget configuration for the campaign. Providing an empty budget removes the budget from the campaign."
          }
        }
      },
      "UpdateCampaigns_BudgetInput": {
        "type": "object",
        "required": [
          "unit",
          "total"
        ],
        "properties": {
          "unit": {
            "type": "string",
            "enum": [
              "BUDGET_UNIT_FIXED",
              "BUDGET_UNIT_DAILY",
              "BUDGET_UNIT_WEEKLY"
            ],
            "description": "Budget time unit"
          },
          "total": {
            "$ref": "#/components/schemas/UpdateCampaigns_CurrencyAmount",
            "description": "Total budget amount"
          }
        }
      },
      "UpdateCampaigns_CurrencyAmount": {
        "type": "object",
        "required": [
          "amount_e5",
          "currency_code"
        ],
        "properties": {
          "amount_e5": {
            "type": "string",
            "format": "currency-amount",
            "description": "Amount in E5 format (e.g., \"50000\" represents $0.50)"
          },
          "currency_code": {
            "type": "string",
            "format": "currency-code",
            "description": "Currency code (ISO 4217)"
          }
        }
      },
      "UpdateCampaigns_OperationResult": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "success": {
                "$ref": "#/components/schemas/UpdateCampaigns_OperationSuccess"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "failure": {
                "$ref": "#/components/schemas/UpdateCampaigns_OperationFailure"
              }
            }
          }
        ]
      },
      "UpdateCampaigns_OperationSuccess": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the updated campaign"
          }
        }
      },
      "UpdateCampaigns_OperationFailure": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code for the failed operation"
          },
          "error_message": {
            "type": "string",
            "description": "Error message for the failed operation"
          }
        }
      },
      "UpdateCampaigns_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "ArchiveCampaigns_OperationResult": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "success": {
                "$ref": "#/components/schemas/ArchiveCampaigns_OperationSuccess"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "failure": {
                "$ref": "#/components/schemas/ArchiveCampaigns_OperationFailure"
              }
            }
          }
        ]
      },
      "ArchiveCampaigns_OperationSuccess": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the archived campaign"
          }
        }
      },
      "ArchiveCampaigns_OperationFailure": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code for the failed operation"
          },
          "error_message": {
            "type": "string",
            "description": "Error message for the failed operation"
          }
        }
      },
      "ArchiveCampaigns_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "GetAdGroups_AdGroup": {
        "type": "object",
        "properties": {
          "ad_group_id": {
            "type": "string",
            "description": "Unique ad group identifier"
          },
          "campaign_id": {
            "type": "string",
            "description": "Parent campaign ID"
          },
          "name": {
            "type": "string",
            "description": "Ad group name"
          },
          "ad_product": {
            "type": "string",
            "description": "Ad product type"
          },
          "schedule": {
            "$ref": "#/components/schemas/GetAdGroups_Schedule"
          },
          "budget": {
            "$ref": "#/components/schemas/GetAdGroups_Budget"
          },
          "bidding": {
            "$ref": "#/components/schemas/GetAdGroups_Bidding"
          },
          "targeting": {
            "$ref": "#/components/schemas/GetAdGroups_TargetingCriteria"
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetAdGroups_AdGroupAction"
            },
            "description": "Actions configured for this ad group"
          },
          "dayparting_schedule": {
            "$ref": "#/components/schemas/GetAdGroups_DaypartingSchedule"
          },
          "subjects": {
            "$ref": "#/components/schemas/GetAdGroups_AdSubjects"
          },
          "configured_status": {
            "type": "string",
            "description": "Status configured by the user"
          },
          "effective_status": {
            "type": "string",
            "description": "Status representing deliverability of the ad group"
          },
          "effective_status_reasons": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Reasons why the ad group is not eligible to be served"
          },
          "bidding_enhancements": {
            "$ref": "#/components/schemas/GetAdGroups_BiddingEnhancements",
            "description": "Optional keyword-level bid overrides that supplement the ad group's base bidding strategy"
          },
          "ads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetAdGroups_AdSummary"
            },
            "description": "Summary of ads in this ad group"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "READ",
                "UPDATE",
                "DELETE"
              ]
            },
            "description": "Operations the caller is permitted to perform on this ad group"
          }
        }
      },
      "GetAdGroups_Schedule": {
        "type": "object",
        "description": "Time-based schedule configuration for ad groups",
        "properties": {
          "start_time": {
            "type": "string",
            "format": "date-time",
            "description": "Start time (RFC 3339)"
          },
          "end_time": {
            "type": "string",
            "format": "date-time",
            "description": "End time (RFC 3339). If not provided, there is no end date."
          }
        }
      },
      "GetAdGroups_Budget": {
        "type": "object",
        "description": "Budget configuration for ad groups",
        "properties": {
          "unit": {
            "type": "string",
            "enum": [
              "BUDGET_UNIT_INVALID",
              "BUDGET_UNIT_FIXED",
              "BUDGET_UNIT_DAILY",
              "BUDGET_UNIT_WEEKLY"
            ],
            "description": "Budget time unit"
          },
          "total": {
            "$ref": "#/components/schemas/GetAdGroups_CurrencyAmount",
            "description": "Total budget amount"
          },
          "cofunding_sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetAdGroups_CofundingSource"
            },
            "description": "Sources of campaign funding"
          }
        }
      },
      "GetAdGroups_Bidding": {
        "type": "object",
        "description": "Bidding strategy configuration for the ad group",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "auto": {
                "$ref": "#/components/schemas/GetAdGroups_AutoBidding"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "manual": {
                "$ref": "#/components/schemas/GetAdGroups_ManualBidding"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "goal_based": {
                "$ref": "#/components/schemas/GetAdGroups_GoalBasedBidding"
              }
            }
          }
        ]
      },
      "GetAdGroups_AutoBidding": {
        "type": "object",
        "description": "Automatic bidding strategy"
      },
      "GetAdGroups_ManualBidding": {
        "type": "object",
        "description": "Manual bidding strategy with fixed bid amount",
        "properties": {
          "bid_amount": {
            "$ref": "#/components/schemas/GetAdGroups_CurrencyAmount"
          }
        }
      },
      "GetAdGroups_GoalBasedBidding": {
        "type": "object",
        "description": "Goal-based bidding strategy targeting specific ROAS",
        "properties": {
          "roas_goal": {
            "type": "number",
            "format": "double",
            "description": "Return on ad spend goal"
          }
        }
      },
      "GetAdGroups_TargetingCriteria": {
        "type": "object",
        "description": "Targeting configuration for the ad group",
        "properties": {
          "negation": {
            "type": "boolean",
            "description": "Whether this is a negative targeting criteria"
          },
          "operator": {
            "type": "string",
            "enum": [
              "AND",
              "OR",
              "NONE"
            ]
          },
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetAdGroups_TargetingCriterion"
            }
          }
        },
        "example": {
          "negation": false,
          "operator": "AND",
          "criteria": [
            {
              "keyword_targeting": {
                "keywords": [
                  "sushi",
                  "noodles"
                ],
                "match_type": "MatchTypeExact"
              }
            },
            {
              "uber_one": {}
            },
            {
              "new_to_brand": {}
            }
          ]
        }
      },
      "GetAdGroups_TargetingCriterion": {
        "type": "object",
        "description": "Individual targeting criterion",
        "oneOf": [
          {
            "type": "object",
            "description": "Nested targeting criteria",
            "properties": {
              "criteria": {
                "$ref": "#/components/schemas/GetAdGroups_TargetingCriteria"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have an active Uber One membership subscription",
            "properties": {
              "uber_one": {
                "$ref": "#/components/schemas/GetAdGroups_UberOneTargetingCriterion"
              }
            },
            "example": {
              "uber_one": {}
            }
          },
          {
            "type": "object",
            "description": "Target users based on their order frequency within a specified time range (e.g., users who placed 1-3 orders in the past 30 days)",
            "properties": {
              "order_frequency": {
                "$ref": "#/components/schemas/GetAdGroups_OrderFrequencyTargetingCriterion"
              }
            },
            "example": {
              "order_frequency": {
                "lower_bound": 1,
                "upper_bound": 5,
                "time_range": {
                  "past_days_range": {
                    "start_day": 0,
                    "end_day": 30
                  }
                }
              }
            }
          },
          {
            "type": "object",
            "description": "Target users based on search terms they use (keyword matching for sponsored search campaigns)",
            "properties": {
              "keyword_targeting": {
                "$ref": "#/components/schemas/GetAdGroups_KeywordTargetingCriterion"
              }
            },
            "example": {
              "keyword_targeting": {
                "keywords": [
                  "pizza",
                  "delivery"
                ],
                "match_type": "MatchTypeExact"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users from a custom audience segment",
            "properties": {
              "custom_audience": {
                "$ref": "#/components/schemas/GetAdGroups_CustomAudienceTargetingCriterion"
              }
            },
            "example": {
              "custom_audience": {}
            }
          },
          {
            "type": "object",
            "description": "Target users who have not ordered from the merchant's brand within the last 365 days",
            "properties": {
              "new_to_brand": {
                "$ref": "#/components/schemas/GetAdGroups_NewToBrandTargetingCriterion"
              }
            },
            "example": {
              "new_to_brand": {}
            }
          },
          {
            "type": "object",
            "description": "Target users who have not ordered from the merchant's location within the last 365 days",
            "properties": {
              "new_to_location": {
                "$ref": "#/components/schemas/GetAdGroups_NewToLocationTargetingCriterion"
              }
            },
            "example": {
              "new_to_location": {}
            }
          },
          {
            "type": "object",
            "description": "Target users who have previously ordered from the merchant's location within the last 42 days",
            "properties": {
              "existing_to_location": {
                "$ref": "#/components/schemas/GetAdGroups_ExistingToLocationTargetingCriterion"
              }
            },
            "example": {
              "existing_to_location": {}
            }
          },
          {
            "type": "object",
            "description": "Target users who have ordered from the merchant's location in the last 365 days but have not ordered in the last 42 days",
            "properties": {
              "lapsed_to_location": {
                "$ref": "#/components/schemas/GetAdGroups_LapsedToLocationTargetingCriterion"
              }
            },
            "example": {
              "lapsed_to_location": {}
            }
          },
          {
            "type": "object",
            "description": "Target users based on the value of their average order (Sponsored Listing only)",
            "properties": {
              "order_size": {
                "$ref": "#/components/schemas/GetAdGroups_OrderSizeTargetingCriterion"
              }
            },
            "example": {
              "order_size": {
                "size": "LARGE"
              }
            }
          }
        ]
      },
      "GetAdGroups_UberOneTargetingCriterion": {
        "type": "object",
        "description": "Targets users who have an active Uber One membership subscription"
      },
      "GetAdGroups_OrderFrequencyTargetingCriterion": {
        "type": "object",
        "description": "Targets users based on their order frequency within a specified time range.",
        "properties": {
          "lower_bound": {
            "type": "integer",
            "description": "Lower bound for the number of orders (non-inclusive)."
          },
          "upper_bound": {
            "type": "integer",
            "description": "Upper bound for the number of orders (non-inclusive). Set to `-1` to indicate no upper limit (any number of orders)."
          },
          "time_range": {
            "$ref": "#/components/schemas/GetAdGroups_OrderFrequencyTimeRange",
            "description": "Time range for order frequency calculation"
          }
        }
      },
      "GetAdGroups_OrderFrequencyTimeRange": {
        "type": "object",
        "properties": {
          "past_days_range": {
            "$ref": "#/components/schemas/GetAdGroups_PastDaysRange"
          }
        }
      },
      "GetAdGroups_PastDaysRange": {
        "type": "object",
        "properties": {
          "start_day": {
            "type": "integer",
            "description": "Start day for the range (0 = today, closest day to now)"
          },
          "end_day": {
            "type": "integer",
            "description": "End day for the range (furthest day from now)"
          }
        }
      },
      "GetAdGroups_KeywordTargetingCriterion": {
        "type": "object",
        "description": "Targets users based on search terms they use for keyword matching",
        "properties": {
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of keywords to target",
            "example": [
              "pizza",
              "delivery",
              "fast food"
            ]
          },
          "match_type": {
            "type": "string",
            "enum": [
              "MatchTypeExact",
              "MatchTypeBroad"
            ],
            "example": "MatchTypeExact"
          }
        }
      },
      "GetAdGroups_CustomAudienceTargetingCriterion": {
        "type": "object",
        "description": "Targets users from a custom audience segment"
      },
      "GetAdGroups_NewToBrandTargetingCriterion": {
        "type": "object",
        "description": "Targets users who have not ordered from the merchant's brand within the last 365 days"
      },
      "GetAdGroups_NewToLocationTargetingCriterion": {
        "type": "object",
        "description": "Targets users who have not ordered from the merchant's location within the last 365 days"
      },
      "GetAdGroups_ExistingToLocationTargetingCriterion": {
        "type": "object",
        "description": "Targets users who have previously ordered from the merchant's location within the last 42 days"
      },
      "GetAdGroups_LapsedToLocationTargetingCriterion": {
        "type": "object",
        "description": "Targets users who have ordered from the merchant's location in the last 365 days but have not ordered in the last 42 days"
      },
      "GetAdGroups_OrderSizeTargetingCriterion": {
        "type": "object",
        "description": "Targets users based on the value of their average order",
        "properties": {
          "size": {
            "type": "string",
            "enum": [
              "SMALL",
              "MEDIUM",
              "LARGE"
            ],
            "description": "Targeted order size, always returned in uppercase",
            "example": "LARGE"
          }
        }
      },
      "GetAdGroups_AdGroupAction": {
        "type": "object",
        "description": "Automated actions configured for ad groups",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "auto_resume_action": {
                "$ref": "#/components/schemas/GetAdGroups_AutoResumeAction"
              }
            }
          }
        ]
      },
      "GetAdGroups_AutoResumeAction": {
        "type": "object",
        "description": "Automatic resume action configuration",
        "properties": {
          "resume_date": {
            "type": "string",
            "format": "date-time",
            "description": "Date to resume the ad group (RFC 3339 format, e.g., \"2024-01-15T10:00:00Z\")"
          }
        }
      },
      "GetAdGroups_DaypartingSchedule": {
        "type": "object",
        "description": "Schedule configuration for ad delivery by time of day. Contains exactly 7 day schedules (Monday through Sunday).",
        "properties": {
          "schedule": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetAdGroups_DaypartingDaySchedule"
            },
            "description": "Weekly schedule starting from Monday (7 elements)"
          }
        }
      },
      "GetAdGroups_DaypartingDaySchedule": {
        "type": "object",
        "description": "Schedule configuration for a specific day",
        "properties": {
          "intervals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetAdGroups_DaypartingInterval"
            }
          }
        }
      },
      "GetAdGroups_DaypartingInterval": {
        "type": "object",
        "description": "Time interval for ad delivery",
        "properties": {
          "start_time": {
            "$ref": "#/components/schemas/GetAdGroups_DaypartingTime"
          },
          "end_time": {
            "$ref": "#/components/schemas/GetAdGroups_DaypartingTime"
          }
        }
      },
      "GetAdGroups_DaypartingTime": {
        "type": "object",
        "description": "Specific time of day",
        "properties": {
          "hour": {
            "type": "integer",
            "minimum": 0,
            "maximum": 24,
            "description": "Hour of the day (0-23, or 24 to represent end of day)"
          },
          "minute": {
            "type": "integer",
            "minimum": 0,
            "maximum": 59,
            "description": "Minute of the hour (0-59)"
          }
        }
      },
      "GetAdGroups_AdSubjects": {
        "type": "object",
        "description": "Subject configuration for the ad group. Exactly one field is present.",
        "oneOf": [
          {
            "type": "object",
            "description": "Store subjects, for Sponsored Listing and Sponsored Search",
            "properties": {
              "stores": {
                "$ref": "#/components/schemas/GetAdGroups_StoreSubjects"
              }
            }
          },
          {
            "type": "object",
            "description": "GTIN subjects, for Sponsored Item and Sponsored Brands",
            "properties": {
              "gtin_items": {
                "$ref": "#/components/schemas/GetAdGroups_GTINSubjects"
              }
            }
          }
        ]
      },
      "GetAdGroups_StoreSubjects": {
        "type": "object",
        "description": "Store-based targeting configuration",
        "properties": {
          "store_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of store IDs"
          }
        }
      },
      "GetAdGroups_GTINSubjects": {
        "type": "object",
        "description": "GTIN-based product targeting configuration for Sponsored Item and Sponsored Brands ad groups",
        "properties": {
          "gtin_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetAdGroups_GTINItem"
            },
            "description": "List of GTIN items"
          }
        }
      },
      "GetAdGroups_GTINItem": {
        "type": "object",
        "description": "Individual GTIN product item",
        "properties": {
          "gtin": {
            "type": "string",
            "description": "Global Trade Item Number identifying the product"
          }
        }
      },
      "GetAdGroups_BiddingEnhancements": {
        "type": "object",
        "description": "Optional keyword-level bid overrides that supplement the ad group's base bidding strategy",
        "properties": {
          "enhancements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetAdGroups_BiddingEnhancement"
            },
            "description": "List of bid enhancements"
          }
        }
      },
      "GetAdGroups_BiddingEnhancement": {
        "type": "object",
        "description": "A bid enhancement override",
        "properties": {
          "keyword": {
            "$ref": "#/components/schemas/GetAdGroups_KeywordBiddingEnhancement"
          }
        }
      },
      "GetAdGroups_KeywordBiddingEnhancement": {
        "type": "object",
        "description": "Keyword-level bid overrides",
        "properties": {
          "keyword_bids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetAdGroups_KeywordBid"
            },
            "description": "List of keyword-specific bids"
          }
        }
      },
      "GetAdGroups_KeywordBid": {
        "type": "object",
        "description": "A bid override for a specific keyword",
        "properties": {
          "keyword": {
            "type": "string",
            "description": "The keyword to override the bid for"
          },
          "bid": {
            "$ref": "#/components/schemas/GetAdGroups_Bidding",
            "description": "Bid configuration for this keyword"
          }
        }
      },
      "GetAdGroups_AdSummary": {
        "type": "object",
        "properties": {
          "ad_id": {
            "type": "string",
            "description": "Unique ad identifier"
          },
          "name": {
            "type": "string",
            "description": "Ad name"
          }
        }
      },
      "GetAdGroups_CurrencyAmount": {
        "type": "object",
        "properties": {
          "amount_e5": {
            "type": "string",
            "format": "currency-amount",
            "description": "Amount in E5"
          },
          "currency_code": {
            "type": "string",
            "format": "currency-code",
            "description": "Currency code (ISO 4217)"
          }
        }
      },
      "GetAdGroups_CofundingSource": {
        "type": "object",
        "properties": {
          "funding_percentage": {
            "type": "number",
            "format": "double",
            "description": "Percentage of cofunding for this campaign (e.g., 70.0 means 70% of the campaign budget is cofunded)"
          }
        }
      },
      "GetAdGroups_PageToken": {
        "type": "object",
        "description": "Pagination token for retrieving additional results",
        "properties": {
          "value": {
            "type": "string",
            "description": "Opaque page token for pagination"
          }
        }
      },
      "GetAdGroups_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "CreateAdGroups_CreateAdGroupInput": {
        "type": "object",
        "required": [
          "name",
          "ad_product",
          "configured_status",
          "schedule",
          "bidding",
          "ad_subjects"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Ad group name"
          },
          "ad_product": {
            "type": "string",
            "enum": [
              "SPONSORED_LISTING",
              "SPONSORED_SEARCH",
              "SPONSORED_ITEMS",
              "SPONSORED_BRANDS"
            ],
            "description": "Ad product type"
          },
          "configured_status": {
            "type": "string",
            "enum": [
              "AD_GROUP_CONFIGURED_STATUS_ACTIVE",
              "AD_GROUP_CONFIGURED_STATUS_PAUSED"
            ],
            "description": "Status configured by the user"
          },
          "budget": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CreateAdGroups_BudgetInput"
              }
            ],
            "description": "Budget configuration. Can be set at campaign level (shared across ad groups) or ad group level (more granular control)."
          },
          "schedule": {
            "$ref": "#/components/schemas/CreateAdGroups_ScheduleInput",
            "description": "Schedule configuration for the ad group"
          },
          "dayparting_schedule": {
            "$ref": "#/components/schemas/CreateAdGroups_DaypartingScheduleInput",
            "description": "Dayparting schedule configuration"
          },
          "bidding": {
            "$ref": "#/components/schemas/CreateAdGroups_BiddingInput",
            "description": "Bidding configuration"
          },
          "targeting": {
            "$ref": "#/components/schemas/CreateAdGroups_TargetingCriteriaInput",
            "description": "Targeting criteria configuration. Supported for restaurant ads only. Optional - if not provided or set to null, targets all users without restrictions."
          },
          "ad_subjects": {
            "$ref": "#/components/schemas/CreateAdGroups_AdSubjectsInput",
            "description": "Ad subjects configuration"
          },
          "bidding_enhancements": {
            "$ref": "#/components/schemas/CreateAdGroups_BiddingEnhancementsInput",
            "description": "Optional keyword-level bid overrides that supplement the ad group's base bidding strategy. Supported for retail ads only."
          }
        }
      },
      "CreateAdGroups_BudgetInput": {
        "type": "object",
        "required": [
          "unit",
          "total"
        ],
        "properties": {
          "unit": {
            "type": "string",
            "enum": [
              "BUDGET_UNIT_FIXED",
              "BUDGET_UNIT_DAILY",
              "BUDGET_UNIT_WEEKLY"
            ],
            "description": "Budget time unit"
          },
          "total": {
            "$ref": "#/components/schemas/CreateAdGroups_CurrencyAmountInput",
            "description": "Total budget amount"
          }
        }
      },
      "CreateAdGroups_ScheduleInput": {
        "type": "object",
        "required": [
          "start_time"
        ],
        "properties": {
          "start_time": {
            "type": "string",
            "format": "date-time",
            "description": "Start time (RFC 3339)"
          },
          "end_time": {
            "type": "string",
            "format": "date-time",
            "description": "End time (RFC 3339). If not provided, there is no end date."
          }
        }
      },
      "CreateAdGroups_DaypartingScheduleInput": {
        "type": "object",
        "required": [
          "dayparting_day_schedule"
        ],
        "description": "Schedule configuration for ad delivery by time of day. Must include exactly 7 day schedules (Monday through Sunday).",
        "properties": {
          "dayparting_day_schedule": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateAdGroups_DaypartingDayScheduleInput"
            },
            "description": "Weekly schedule starting from Monday (7 elements required)"
          }
        }
      },
      "CreateAdGroups_DaypartingDayScheduleInput": {
        "type": "object",
        "properties": {
          "intervals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateAdGroups_DaypartingIntervalInput"
            },
            "description": "Time intervals for the day"
          }
        }
      },
      "CreateAdGroups_DaypartingIntervalInput": {
        "type": "object",
        "required": [
          "start_time",
          "end_time"
        ],
        "description": "Time interval for ad delivery",
        "properties": {
          "start_time": {
            "$ref": "#/components/schemas/CreateAdGroups_DaypartingTimeInput",
            "description": "Start time for the interval"
          },
          "end_time": {
            "$ref": "#/components/schemas/CreateAdGroups_DaypartingTimeInput",
            "description": "End time for the interval"
          }
        }
      },
      "CreateAdGroups_DaypartingTimeInput": {
        "type": "object",
        "required": [
          "hour",
          "minute"
        ],
        "description": "Specific time of day",
        "properties": {
          "hour": {
            "type": "integer",
            "minimum": 0,
            "maximum": 24,
            "description": "Hour of the day (0-23, or 24 to represent end of day)"
          },
          "minute": {
            "type": "integer",
            "minimum": 0,
            "maximum": 59,
            "description": "Minute of the hour (0-59). Must be divisible by 15."
          }
        }
      },
      "CreateAdGroups_BiddingInput": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "auto": {
                "$ref": "#/components/schemas/CreateAdGroups_AutoBiddingInput"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "manual": {
                "$ref": "#/components/schemas/CreateAdGroups_ManualBiddingInput"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "goal_based": {
                "$ref": "#/components/schemas/CreateAdGroups_GoalBasedBiddingInput"
              }
            }
          }
        ]
      },
      "CreateAdGroups_AutoBiddingInput": {
        "type": "object",
        "description": "Automatic bidding configuration"
      },
      "CreateAdGroups_ManualBiddingInput": {
        "type": "object",
        "required": [
          "bid_amount"
        ],
        "properties": {
          "bid_amount": {
            "$ref": "#/components/schemas/CreateAdGroups_CurrencyAmountInput",
            "description": "Manual bid amount"
          }
        }
      },
      "CreateAdGroups_GoalBasedBiddingInput": {
        "type": "object",
        "required": [
          "roas_goal"
        ],
        "properties": {
          "roas_goal": {
            "type": "number",
            "format": "double",
            "description": "Return on ad spend goal"
          }
        }
      },
      "CreateAdGroups_TargetingCriteriaInput": {
        "type": "object",
        "required": [
          "negation",
          "operator",
          "criteria"
        ],
        "properties": {
          "negation": {
            "type": "boolean",
            "description": "Whether to negate the targeting criteria"
          },
          "operator": {
            "type": "string",
            "enum": [
              "AND",
              "OR",
              "NONE"
            ],
            "description": "Logical operator for combining criteria"
          },
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateAdGroups_TargetingCriterionInput"
            },
            "description": "List of targeting criteria"
          }
        }
      },
      "CreateAdGroups_TargetingCriterionInput": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "description": "Nested targeting criteria",
            "properties": {
              "criteria": {
                "$ref": "#/components/schemas/CreateAdGroups_TargetingCriteriaInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have an active Uber One membership subscription",
            "properties": {
              "uber_one": {
                "$ref": "#/components/schemas/CreateAdGroups_UberOneTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users based on their order frequency within a specified time range (e.g., users who placed 1-3 orders in the past 30 days)",
            "properties": {
              "order_frequency": {
                "$ref": "#/components/schemas/CreateAdGroups_OrderFrequencyTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users based on search terms they use (keyword matching for sponsored search campaigns)",
            "properties": {
              "keyword_targeting": {
                "$ref": "#/components/schemas/CreateAdGroups_KeywordTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have not ordered from the merchant's brand within the last 365 days",
            "properties": {
              "new_to_brand": {
                "$ref": "#/components/schemas/CreateAdGroups_NewToBrandTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have not ordered from the merchant's location within the last 365 days",
            "properties": {
              "new_to_location": {
                "$ref": "#/components/schemas/CreateAdGroups_NewToLocationTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have previously ordered from the merchant's location within the last 42 days",
            "properties": {
              "existing_to_location": {
                "$ref": "#/components/schemas/CreateAdGroups_ExistingToLocationTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have ordered from the merchant's location in the last 365 days but have not ordered in the last 42 days",
            "properties": {
              "lapsed_to_location": {
                "$ref": "#/components/schemas/CreateAdGroups_LapsedToLocationTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users based on the value of their average order (Sponsored Listing only)",
            "properties": {
              "order_size": {
                "$ref": "#/components/schemas/CreateAdGroups_OrderSizeTargetingCriterionInput"
              }
            }
          }
        ]
      },
      "CreateAdGroups_UberOneTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users who have an active Uber One membership subscription"
      },
      "CreateAdGroups_NewToBrandTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users who have not ordered from the merchant's brand within the last 365 days"
      },
      "CreateAdGroups_NewToLocationTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users who have not ordered from the merchant's location within the last 365 days"
      },
      "CreateAdGroups_ExistingToLocationTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users who have previously ordered from the merchant's location within the last 42 days"
      },
      "CreateAdGroups_LapsedToLocationTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users who have ordered from the merchant's location in the last 365 days but have not ordered in the last 42 days"
      },
      "CreateAdGroups_OrderSizeTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users based on the value of their average order. Each criterion targets one size; to target several sizes, place one order_size criterion per size in a nested OR group.",
        "required": [
          "size"
        ],
        "properties": {
          "size": {
            "type": "string",
            "enum": [
              "SMALL",
              "MEDIUM",
              "LARGE"
            ],
            "description": "Order size to target. Case-insensitive.",
            "example": "LARGE"
          }
        }
      },
      "CreateAdGroups_OrderFrequencyTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users based on their order frequency within a specified time range.",
        "required": [
          "lower_bound",
          "upper_bound",
          "time_range"
        ],
        "properties": {
          "lower_bound": {
            "type": "integer",
            "description": "Lower bound for order frequency (non-inclusive)."
          },
          "upper_bound": {
            "type": "integer",
            "description": "Upper bound for order frequency (non-inclusive). Set to `-1` to indicate no upper limit (any number of orders)."
          },
          "time_range": {
            "$ref": "#/components/schemas/CreateAdGroups_OrderFrequencyTimeRangeInput",
            "description": "Time range for order frequency"
          }
        }
      },
      "CreateAdGroups_OrderFrequencyTimeRangeInput": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "past_days_range": {
                "$ref": "#/components/schemas/CreateAdGroups_PastDaysRangeInput"
              }
            }
          }
        ]
      },
      "CreateAdGroups_PastDaysRangeInput": {
        "type": "object",
        "required": [
          "start_day",
          "end_day"
        ],
        "properties": {
          "start_day": {
            "type": "integer",
            "description": "Start day for the range (0 = today, closest day to now)"
          },
          "end_day": {
            "type": "integer",
            "description": "End day for the range (furthest day from now)"
          }
        }
      },
      "CreateAdGroups_KeywordTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users based on search terms they use for keyword matching",
        "required": [
          "keywords",
          "match_type"
        ],
        "properties": {
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of keywords to target"
          },
          "match_type": {
            "type": "string",
            "enum": [
              "EXACT",
              "BROAD"
            ],
            "description": "Keyword match type"
          }
        }
      },
      "CreateAdGroups_AdSubjectsInput": {
        "type": "object",
        "description": "Subject configuration for the ad group. Exactly one field must be set.",
        "oneOf": [
          {
            "type": "object",
            "description": "Store subjects, for Sponsored Listing and Sponsored Search",
            "properties": {
              "stores": {
                "$ref": "#/components/schemas/CreateAdGroups_StoreSubjectsInput"
              }
            }
          },
          {
            "type": "object",
            "description": "GTIN subjects, for Sponsored Item and Sponsored Brands",
            "properties": {
              "gtin_items": {
                "$ref": "#/components/schemas/CreateAdGroups_GTINSubjectsInput"
              }
            }
          }
        ]
      },
      "CreateAdGroups_StoreSubjectsInput": {
        "type": "object",
        "required": [
          "store_ids"
        ],
        "properties": {
          "store_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of store IDs"
          }
        }
      },
      "CreateAdGroups_GTINSubjectsInput": {
        "type": "object",
        "description": "GTIN-based product targeting configuration for Sponsored Item and Sponsored Brands ad groups",
        "required": [
          "gtin_items"
        ],
        "properties": {
          "gtin_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateAdGroups_GTINItemInput"
            },
            "description": "List of GTIN items"
          }
        }
      },
      "CreateAdGroups_GTINItemInput": {
        "type": "object",
        "description": "Individual GTIN product item",
        "required": [
          "gtin"
        ],
        "properties": {
          "gtin": {
            "type": "string",
            "description": "Global Trade Item Number identifying the product"
          }
        }
      },
      "CreateAdGroups_BiddingEnhancementsInput": {
        "type": "object",
        "description": "Optional keyword-level bid overrides that supplement the ad group's base bidding strategy",
        "properties": {
          "enhancements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateAdGroups_BiddingEnhancementInput"
            },
            "description": "List of bid enhancements"
          }
        }
      },
      "CreateAdGroups_BiddingEnhancementInput": {
        "type": "object",
        "description": "A bid enhancement override",
        "properties": {
          "keyword": {
            "$ref": "#/components/schemas/CreateAdGroups_KeywordBiddingEnhancementInput"
          }
        }
      },
      "CreateAdGroups_KeywordBiddingEnhancementInput": {
        "type": "object",
        "description": "Keyword-level bid overrides",
        "properties": {
          "keyword_bids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateAdGroups_KeywordBidInput"
            },
            "description": "List of keyword-specific bids"
          }
        }
      },
      "CreateAdGroups_KeywordBidInput": {
        "type": "object",
        "description": "A bid override for a specific keyword",
        "required": [
          "keyword",
          "bid"
        ],
        "properties": {
          "keyword": {
            "type": "string",
            "description": "The keyword to override the bid for"
          },
          "bid": {
            "$ref": "#/components/schemas/CreateAdGroups_BiddingInput",
            "description": "Bid configuration for this keyword"
          }
        }
      },
      "CreateAdGroups_CurrencyAmountInput": {
        "type": "object",
        "required": [
          "amount_e5",
          "currency_code"
        ],
        "properties": {
          "amount_e5": {
            "type": "string",
            "format": "currency-amount",
            "description": "Amount in E5 format (e.g., \"50000\" represents $0.50)"
          },
          "currency_code": {
            "type": "string",
            "format": "currency-code",
            "description": "Currency code (ISO 4217)"
          }
        }
      },
      "CreateAdGroups_OperationResult": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "success": {
                "$ref": "#/components/schemas/CreateAdGroups_OperationSuccess"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "failure": {
                "$ref": "#/components/schemas/CreateAdGroups_OperationFailure"
              }
            }
          }
        ]
      },
      "CreateAdGroups_OperationSuccess": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the created ad group"
          }
        }
      },
      "CreateAdGroups_OperationFailure": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code for the failed operation"
          },
          "error_message": {
            "type": "string",
            "description": "Error message for the failed operation"
          }
        }
      },
      "CreateAdGroups_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "UpdateAdGroups_UpdateAdGroupInput": {
        "type": "object",
        "description": "Input for updating an ad group.",
        "required": [
          "ad_group_id"
        ],
        "properties": {
          "ad_group_id": {
            "type": "string",
            "description": "Unique ad group identifier"
          },
          "name": {
            "type": "string",
            "description": "Ad group name"
          },
          "configured_status": {
            "type": "string",
            "enum": [
              "AD_GROUP_CONFIGURED_STATUS_ACTIVE",
              "AD_GROUP_CONFIGURED_STATUS_PAUSED"
            ],
            "description": "Status configured by the user"
          },
          "budget": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UpdateAdGroups_BudgetInput"
              }
            ],
            "description": "Budget configuration for the ad group. Providing an empty budget removes the budget from the ad group."
          },
          "bidding": {
            "$ref": "#/components/schemas/UpdateAdGroups_BiddingInput",
            "description": "Bidding configuration"
          },
          "targeting": {
            "$ref": "#/components/schemas/UpdateAdGroups_TargetingCriteriaInput",
            "description": "Targeting criteria configuration. Supported for restaurant ads only. Optional - if not provided or set to null, targets all users without restrictions. Providing an empty targeting object clears the targeting from the ad group."
          },
          "ad_subjects": {
            "$ref": "#/components/schemas/UpdateAdGroups_AdSubjectsInput",
            "description": "Ad subjects configuration"
          },
          "schedule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UpdateAdGroups_ScheduleInput"
              }
            ],
            "description": "Schedule configuration for the ad group"
          },
          "dayparting_schedule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UpdateAdGroups_DaypartingScheduleInput"
              }
            ],
            "description": "Dayparting schedule configuration. Providing an empty dayparting schedule disables the dayparting schedule for the ad group."
          },
          "bidding_enhancements": {
            "$ref": "#/components/schemas/UpdateAdGroups_BiddingEnhancementsInput",
            "description": "Optional keyword-level bid overrides that supplement the ad group's base bidding strategy. Supported for retail ads only."
          }
        }
      },
      "UpdateAdGroups_BudgetInput": {
        "type": "object",
        "required": [
          "unit",
          "total"
        ],
        "properties": {
          "unit": {
            "type": "string",
            "enum": [
              "BUDGET_UNIT_FIXED",
              "BUDGET_UNIT_DAILY",
              "BUDGET_UNIT_WEEKLY"
            ],
            "description": "Budget time unit"
          },
          "total": {
            "$ref": "#/components/schemas/UpdateAdGroups_CurrencyAmount",
            "description": "Total budget amount"
          }
        }
      },
      "UpdateAdGroups_ScheduleInput": {
        "type": "object",
        "required": [
          "start_time"
        ],
        "properties": {
          "start_time": {
            "type": "string",
            "format": "date-time",
            "description": "Start time (RFC 3339)"
          },
          "end_time": {
            "type": "string",
            "format": "date-time",
            "description": "End time (RFC 3339). If not provided, there is no end date."
          }
        }
      },
      "UpdateAdGroups_DaypartingScheduleInput": {
        "type": "object",
        "required": [
          "dayparting_day_schedule"
        ],
        "description": "Schedule configuration for ad delivery by time of day. Must include exactly 7 day schedules (Monday through Sunday).",
        "properties": {
          "dayparting_day_schedule": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateAdGroups_DaypartingDayScheduleInput"
            },
            "description": "Weekly schedule starting from Monday (7 elements required)"
          }
        }
      },
      "UpdateAdGroups_DaypartingDayScheduleInput": {
        "type": "object",
        "properties": {
          "intervals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateAdGroups_DaypartingIntervalInput"
            },
            "description": "Time intervals for the day"
          }
        }
      },
      "UpdateAdGroups_DaypartingIntervalInput": {
        "type": "object",
        "required": [
          "start_time",
          "end_time"
        ],
        "description": "Time interval for ad delivery",
        "properties": {
          "start_time": {
            "$ref": "#/components/schemas/UpdateAdGroups_DaypartingTimeInput",
            "description": "Start time for the interval"
          },
          "end_time": {
            "$ref": "#/components/schemas/UpdateAdGroups_DaypartingTimeInput",
            "description": "End time for the interval"
          }
        }
      },
      "UpdateAdGroups_DaypartingTimeInput": {
        "type": "object",
        "required": [
          "hour",
          "minute"
        ],
        "description": "Specific time of day",
        "properties": {
          "hour": {
            "type": "integer",
            "minimum": 0,
            "maximum": 24,
            "description": "Hour of the day (0-23, or 24 to represent end of day)"
          },
          "minute": {
            "type": "integer",
            "minimum": 0,
            "maximum": 59,
            "description": "Minute of the hour (0-59). Must be divisible by 15."
          }
        }
      },
      "UpdateAdGroups_BiddingInput": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "auto": {
                "$ref": "#/components/schemas/UpdateAdGroups_AutoBiddingInput"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "manual": {
                "$ref": "#/components/schemas/UpdateAdGroups_ManualBiddingInput"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "goal_based": {
                "$ref": "#/components/schemas/UpdateAdGroups_GoalBasedBiddingInput"
              }
            }
          }
        ]
      },
      "UpdateAdGroups_AutoBiddingInput": {
        "type": "object",
        "description": "Automatic bidding configuration"
      },
      "UpdateAdGroups_ManualBiddingInput": {
        "type": "object",
        "required": [
          "bid_amount"
        ],
        "properties": {
          "bid_amount": {
            "$ref": "#/components/schemas/UpdateAdGroups_CurrencyAmount",
            "description": "Manual bid amount"
          }
        }
      },
      "UpdateAdGroups_GoalBasedBiddingInput": {
        "type": "object",
        "required": [
          "roas_goal"
        ],
        "properties": {
          "roas_goal": {
            "type": "number",
            "format": "double",
            "description": "Return on ad spend goal"
          }
        }
      },
      "UpdateAdGroups_TargetingCriteriaInput": {
        "type": "object",
        "required": [
          "negation",
          "operator",
          "criteria"
        ],
        "properties": {
          "negation": {
            "type": "boolean",
            "description": "Whether to negate the targeting criteria"
          },
          "operator": {
            "type": "string",
            "enum": [
              "AND",
              "OR",
              "NONE"
            ],
            "description": "Logical operator for combining criteria"
          },
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateAdGroups_TargetingCriterionInput"
            },
            "description": "List of targeting criteria"
          }
        }
      },
      "UpdateAdGroups_TargetingCriterionInput": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "description": "Nested targeting criteria",
            "properties": {
              "criteria": {
                "$ref": "#/components/schemas/UpdateAdGroups_TargetingCriteriaInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have an active Uber One membership subscription",
            "properties": {
              "uber_one": {
                "$ref": "#/components/schemas/UpdateAdGroups_UberOneTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users based on their order frequency within a specified time range (e.g., users who placed 1-3 orders in the past 30 days)",
            "properties": {
              "order_frequency": {
                "$ref": "#/components/schemas/UpdateAdGroups_OrderFrequencyTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users based on search terms they use (keyword matching for sponsored search campaigns)",
            "properties": {
              "keyword_targeting": {
                "$ref": "#/components/schemas/UpdateAdGroups_KeywordTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have not ordered from the merchant's brand within the last 365 days",
            "properties": {
              "new_to_brand": {
                "$ref": "#/components/schemas/UpdateAdGroups_NewToBrandTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have not ordered from the merchant's location within the last 365 days",
            "properties": {
              "new_to_location": {
                "$ref": "#/components/schemas/UpdateAdGroups_NewToLocationTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have previously ordered from the merchant's location within the last 42 days",
            "properties": {
              "existing_to_location": {
                "$ref": "#/components/schemas/UpdateAdGroups_ExistingToLocationTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users who have ordered from the merchant's location in the last 365 days but have not ordered in the last 42 days",
            "properties": {
              "lapsed_to_location": {
                "$ref": "#/components/schemas/UpdateAdGroups_LapsedToLocationTargetingCriterionInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Target users based on the value of their average order (Sponsored Listing only)",
            "properties": {
              "order_size": {
                "$ref": "#/components/schemas/UpdateAdGroups_OrderSizeTargetingCriterionInput"
              }
            }
          }
        ]
      },
      "UpdateAdGroups_UberOneTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users who have an active Uber One membership subscription"
      },
      "UpdateAdGroups_NewToBrandTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users who have not ordered from the merchant's brand within the last 365 days"
      },
      "UpdateAdGroups_NewToLocationTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users who have not ordered from the merchant's location within the last 365 days"
      },
      "UpdateAdGroups_ExistingToLocationTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users who have previously ordered from the merchant's location within the last 42 days"
      },
      "UpdateAdGroups_LapsedToLocationTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users who have ordered from the merchant's location in the last 365 days but have not ordered in the last 42 days"
      },
      "UpdateAdGroups_OrderSizeTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users based on the value of their average order. Each criterion targets one size; to target several sizes, place one order_size criterion per size in a nested OR group.",
        "required": [
          "size"
        ],
        "properties": {
          "size": {
            "type": "string",
            "enum": [
              "SMALL",
              "MEDIUM",
              "LARGE"
            ],
            "description": "Order size to target. Case-insensitive.",
            "example": "LARGE"
          }
        }
      },
      "UpdateAdGroups_OrderFrequencyTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users based on their order frequency within a specified time range.",
        "required": [
          "lower_bound",
          "upper_bound",
          "time_range"
        ],
        "properties": {
          "lower_bound": {
            "type": "integer",
            "description": "Lower bound for order frequency (non-inclusive)."
          },
          "upper_bound": {
            "type": "integer",
            "description": "Upper bound for order frequency (non-inclusive). Set to `-1` to indicate no upper limit (any number of orders)."
          },
          "time_range": {
            "$ref": "#/components/schemas/UpdateAdGroups_OrderFrequencyTimeRangeInput",
            "description": "Time range for order frequency"
          }
        }
      },
      "UpdateAdGroups_OrderFrequencyTimeRangeInput": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "past_days_range": {
                "$ref": "#/components/schemas/UpdateAdGroups_PastDaysRangeInput"
              }
            }
          }
        ]
      },
      "UpdateAdGroups_PastDaysRangeInput": {
        "type": "object",
        "required": [
          "start_day",
          "end_day"
        ],
        "properties": {
          "start_day": {
            "type": "integer",
            "description": "Start day for the range (0 = today, closest day to now)"
          },
          "end_day": {
            "type": "integer",
            "description": "End day for the range (furthest day from now)"
          }
        }
      },
      "UpdateAdGroups_KeywordTargetingCriterionInput": {
        "type": "object",
        "description": "Targets users based on search terms they use for keyword matching",
        "required": [
          "keywords",
          "match_type"
        ],
        "properties": {
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of keywords to target"
          },
          "match_type": {
            "type": "string",
            "enum": [
              "EXACT",
              "BROAD"
            ],
            "description": "Keyword match type"
          }
        }
      },
      "UpdateAdGroups_AdSubjectsInput": {
        "type": "object",
        "description": "Subject configuration for the ad group. Exactly one field must be set.",
        "oneOf": [
          {
            "type": "object",
            "description": "Store subjects, for Sponsored Listing and Sponsored Search",
            "properties": {
              "stores": {
                "$ref": "#/components/schemas/UpdateAdGroups_StoreSubjectsInput"
              }
            }
          },
          {
            "type": "object",
            "description": "GTIN subjects, for Sponsored Item and Sponsored Brands",
            "properties": {
              "gtin_items": {
                "$ref": "#/components/schemas/UpdateAdGroups_GTINSubjectsInput"
              }
            }
          }
        ]
      },
      "UpdateAdGroups_StoreSubjectsInput": {
        "type": "object",
        "required": [
          "store_ids"
        ],
        "properties": {
          "store_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of store IDs"
          }
        }
      },
      "UpdateAdGroups_GTINSubjectsInput": {
        "type": "object",
        "description": "GTIN-based product targeting configuration for Sponsored Item and Sponsored Brands ad groups",
        "required": [
          "gtin_items"
        ],
        "properties": {
          "gtin_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateAdGroups_GTINItemInput"
            },
            "description": "List of GTIN items"
          }
        }
      },
      "UpdateAdGroups_GTINItemInput": {
        "type": "object",
        "description": "Individual GTIN product item",
        "required": [
          "gtin"
        ],
        "properties": {
          "gtin": {
            "type": "string",
            "description": "Global Trade Item Number identifying the product"
          }
        }
      },
      "UpdateAdGroups_BiddingEnhancementsInput": {
        "type": "object",
        "description": "Optional keyword-level bid overrides that supplement the ad group's base bidding strategy",
        "properties": {
          "enhancements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateAdGroups_BiddingEnhancementInput"
            },
            "description": "List of bid enhancements"
          }
        }
      },
      "UpdateAdGroups_BiddingEnhancementInput": {
        "type": "object",
        "description": "A bid enhancement override",
        "properties": {
          "keyword": {
            "$ref": "#/components/schemas/UpdateAdGroups_KeywordBiddingEnhancementInput"
          }
        }
      },
      "UpdateAdGroups_KeywordBiddingEnhancementInput": {
        "type": "object",
        "description": "Keyword-level bid overrides",
        "properties": {
          "keyword_bids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateAdGroups_KeywordBidInput"
            },
            "description": "List of keyword-specific bids"
          }
        }
      },
      "UpdateAdGroups_KeywordBidInput": {
        "type": "object",
        "description": "A bid override for a specific keyword",
        "required": [
          "keyword",
          "bid"
        ],
        "properties": {
          "keyword": {
            "type": "string",
            "description": "The keyword to override the bid for"
          },
          "bid": {
            "$ref": "#/components/schemas/UpdateAdGroups_BiddingInput",
            "description": "Bid configuration for this keyword"
          }
        }
      },
      "UpdateAdGroups_CurrencyAmount": {
        "type": "object",
        "required": [
          "amount_e5",
          "currency_code"
        ],
        "properties": {
          "amount_e5": {
            "type": "string",
            "format": "currency-amount",
            "description": "Amount in E5 format (e.g., \"50000\" represents $0.50)"
          },
          "currency_code": {
            "type": "string",
            "format": "currency-code",
            "description": "Currency code (ISO 4217)"
          }
        }
      },
      "UpdateAdGroups_OperationResult": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "success": {
                "$ref": "#/components/schemas/UpdateAdGroups_OperationSuccess"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "failure": {
                "$ref": "#/components/schemas/UpdateAdGroups_OperationFailure"
              }
            }
          }
        ]
      },
      "UpdateAdGroups_OperationSuccess": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the updated ad group"
          }
        }
      },
      "UpdateAdGroups_OperationFailure": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code for the failed operation"
          },
          "error_message": {
            "type": "string",
            "description": "Error message for the failed operation"
          }
        }
      },
      "UpdateAdGroups_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "GetAds_Ad": {
        "type": "object",
        "properties": {
          "ad_id": {
            "type": "string",
            "description": "Unique ad identifier"
          },
          "ad_group_id": {
            "type": "string",
            "description": "Ad group identifier"
          },
          "campaign_id": {
            "type": "string",
            "description": "Campaign identifier"
          },
          "name": {
            "type": "string",
            "description": "Ad name"
          },
          "creative_id": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the creative associated with the ad. Present for Sponsored Brands ads only."
          },
          "configured_status": {
            "type": "string",
            "description": "Status configured by the user"
          },
          "effective_status": {
            "type": "string",
            "description": "Status representing deliverability of the ad"
          },
          "effective_status_reasons": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Reasons why the ad is not eligible to be served"
          }
        }
      },
      "GetAds_PageToken": {
        "type": "object",
        "description": "Pagination token for retrieving additional results",
        "properties": {
          "value": {
            "type": "string",
            "description": "Opaque page token for pagination"
          }
        }
      },
      "GetAds_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "CreateAds_CreateAdInput": {
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Ad name"
          },
          "creative_id": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the creative to use for the ad. Required for Sponsored Brands ads. Must reference a creative that has been created and approved in Ads Manager."
          },
          "configured_status": {
            "type": "string",
            "description": "Status configured by the user. Valid values: AD_CONFIGURED_STATUS_ACTIVE, AD_CONFIGURED_STATUS_PAUSED"
          }
        }
      },
      "CreateAds_OperationResult": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "success": {
                "$ref": "#/components/schemas/CreateAds_OperationSuccess"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "failure": {
                "$ref": "#/components/schemas/CreateAds_OperationFailure"
              }
            }
          }
        ]
      },
      "CreateAds_OperationSuccess": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the created ad"
          }
        }
      },
      "CreateAds_OperationFailure": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code for the failed operation"
          },
          "error_message": {
            "type": "string",
            "description": "Error message for the failed operation"
          }
        }
      },
      "CreateAds_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "UpdateAds_UpdateAdInput": {
        "type": "object",
        "required": [
          "ad_id"
        ],
        "properties": {
          "ad_id": {
            "type": "string",
            "description": "Unique ad identifier"
          },
          "name": {
            "type": "string",
            "description": "Ad name"
          },
          "configured_status": {
            "type": "string",
            "enum": [
              "AD_CONFIGURED_STATUS_ACTIVE",
              "AD_CONFIGURED_STATUS_PAUSED"
            ],
            "description": "Status configured by the user"
          },
          "creative_id": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the creative to use for the ad. Only supported for Sponsored Brands ads. Must reference a creative that has been created and approved in Ads Manager."
          }
        }
      },
      "UpdateAds_OperationResult": {
        "type": "object",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "success": {
                "$ref": "#/components/schemas/UpdateAds_OperationSuccess"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "failure": {
                "$ref": "#/components/schemas/UpdateAds_OperationFailure"
              }
            }
          }
        ]
      },
      "UpdateAds_OperationSuccess": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the updated ad"
          }
        }
      },
      "UpdateAds_OperationFailure": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code for the failed operation"
          },
          "error_message": {
            "type": "string",
            "description": "Error message for the failed operation"
          }
        }
      },
      "UpdateAds_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "GetAssets_Asset": {
        "type": "object",
        "description": "An uploaded media file that can be referenced by creatives",
        "properties": {
          "asset_id": {
            "type": "string",
            "description": "Unique asset identifier"
          },
          "name": {
            "type": "string",
            "description": "Human-readable asset name"
          },
          "file_url": {
            "type": "string",
            "description": "URL the asset file is served from"
          },
          "image_specs": {
            "$ref": "#/components/schemas/GetAssets_ImageSpecs"
          },
          "metadata": {
            "$ref": "#/components/schemas/GetAssets_AssetMetadata"
          },
          "status": {
            "type": "string",
            "description": "Processing status of the asset",
            "enum": [
              "ASSET_STATUS_PROCESSING",
              "ASSET_STATUS_COMPLETED",
              "ASSET_STATUS_FAILED"
            ]
          },
          "status_reasons": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ASSET_STATUS_REASON_INVALID_DIMENSIONS",
                "ASSET_STATUS_REASON_DOWNLOAD_ERROR",
                "ASSET_STATUS_REASON_INTERNAL"
              ]
            },
            "description": "Reason codes explaining the current status. Populated when processing fails."
          }
        }
      },
      "GetAssets_ImageSpecs": {
        "type": "object",
        "description": "Dimensions of an image file. A member of the asset's `file_specs` oneof. The oneof name is not a key in the response, so this is returned directly on the asset as `image_specs`, with no `file_specs` wrapper. It is the only set of file specifications an asset carries today.",
        "properties": {
          "width": {
            "type": "integer",
            "description": "Image width in pixels"
          },
          "height": {
            "type": "integer",
            "description": "Image height in pixels"
          }
        }
      },
      "GetAssets_AssetMetadata": {
        "type": "object",
        "description": "Audit information describing when and by whom an asset was created and last updated",
        "properties": {
          "created_at": {
            "type": "string",
            "description": "Time the asset was created, in RFC 3339 format"
          },
          "updated_at": {
            "type": "string",
            "description": "Time the asset was last updated, in RFC 3339 format"
          },
          "created_by_email": {
            "type": "string",
            "description": "Email of the user who created the asset"
          },
          "updated_by_email": {
            "type": "string",
            "description": "Email of the user who last updated the asset"
          }
        }
      },
      "GetAssets_PageToken": {
        "type": "object",
        "description": "Pagination token for retrieving additional results",
        "properties": {
          "value": {
            "type": "string",
            "description": "Opaque page token for pagination"
          }
        }
      },
      "GetAssets_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "CreateAsset_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "GetCreatives_Creative": {
        "type": "object",
        "description": "A group of assets with the copy and styling that go with them",
        "properties": {
          "creative_id": {
            "type": "string",
            "description": "Unique creative identifier"
          },
          "name": {
            "type": "string",
            "description": "Human-readable creative name"
          },
          "type": {
            "$ref": "#/components/schemas/GetCreatives_CreativeType"
          },
          "status": {
            "type": "string",
            "description": "Review status of the creative",
            "enum": [
              "CREATIVE_STATUS_DRAFT",
              "CREATIVE_STATUS_PENDING_APPROVAL",
              "CREATIVE_STATUS_APPROVED",
              "CREATIVE_STATUS_REJECTED",
              "CREATIVE_STATUS_ARCHIVED"
            ]
          },
          "review_metadata": {
            "$ref": "#/components/schemas/GetCreatives_ReviewMetadata"
          },
          "metadata": {
            "$ref": "#/components/schemas/GetCreatives_CreativeMetadata"
          }
        }
      },
      "GetCreatives_CreativeType": {
        "type": "object",
        "description": "Ad-product-specific configuration of the creative. Exactly one field is present.",
        "oneOf": [
          {
            "type": "object",
            "description": "Sponsored Brands configuration",
            "properties": {
              "sponsored_brands": {
                "$ref": "#/components/schemas/GetCreatives_SponsoredBrandsCreative"
              }
            }
          },
          {
            "type": "object",
            "description": "Sponsored Listing configuration",
            "properties": {
              "sponsored_listing": {
                "$ref": "#/components/schemas/GetCreatives_SponsoredListingCreative"
              }
            }
          }
        ]
      },
      "GetCreatives_SponsoredBrandsCreative": {
        "type": "object",
        "description": "Sponsored Brands creative configuration",
        "properties": {
          "banner_asset_id": {
            "type": "string",
            "description": "Identifier of the image asset used as the banner"
          },
          "title": {
            "type": "string",
            "description": "Creative title, at most 20 characters",
            "maxLength": 20
          },
          "gradient_color": {
            "type": "string",
            "description": "Background gradient color as a hex color code (for example \"#1A73E8\")",
            "pattern": "^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})$"
          }
        }
      },
      "GetCreatives_SponsoredListingCreative": {
        "type": "object",
        "description": "Sponsored Listing creative configuration",
        "properties": {
          "image_asset_id": {
            "type": "string",
            "description": "Identifier of the image asset used by the creative"
          }
        }
      },
      "GetCreatives_ReviewMetadata": {
        "type": "object",
        "description": "Information from the creative review process",
        "properties": {
          "review_notes": {
            "type": "string",
            "description": "Reviewer notes. Populated when a creative is rejected, explaining why."
          }
        }
      },
      "GetCreatives_CreativeMetadata": {
        "type": "object",
        "description": "Audit information describing when and by whom a creative was created and last updated",
        "properties": {
          "created_at": {
            "type": "string",
            "description": "Time the creative was created, in RFC 3339 format"
          },
          "updated_at": {
            "type": "string",
            "description": "Time the creative was last updated, in RFC 3339 format"
          },
          "created_by_email": {
            "type": "string",
            "description": "Email of the user who created the creative"
          },
          "updated_by_email": {
            "type": "string",
            "description": "Email of the user who last updated the creative"
          }
        }
      },
      "GetCreatives_PageToken": {
        "type": "object",
        "description": "Pagination token for retrieving additional results",
        "properties": {
          "value": {
            "type": "string",
            "description": "Opaque page token for pagination"
          }
        }
      },
      "GetCreatives_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "CreateCreatives_CreateCreativeInput": {
        "type": "object",
        "description": "Input for creating a single creative",
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Human-readable creative name"
          },
          "type": {
            "$ref": "#/components/schemas/CreateCreatives_CreativeTypeInput"
          }
        }
      },
      "CreateCreatives_CreativeTypeInput": {
        "type": "object",
        "description": "Ad-product-specific configuration of the creative. Exactly one field must be set.",
        "oneOf": [
          {
            "type": "object",
            "description": "Sponsored Brands configuration",
            "properties": {
              "sponsored_brands": {
                "$ref": "#/components/schemas/CreateCreatives_SponsoredBrandsCreativeInput"
              }
            }
          },
          {
            "type": "object",
            "description": "Sponsored Listing configuration",
            "properties": {
              "sponsored_listing": {
                "$ref": "#/components/schemas/CreateCreatives_SponsoredListingCreativeInput"
              }
            }
          }
        ]
      },
      "CreateCreatives_SponsoredBrandsCreativeInput": {
        "type": "object",
        "description": "Sponsored Brands creative configuration",
        "required": [
          "banner_asset_id",
          "title",
          "gradient_color"
        ],
        "properties": {
          "banner_asset_id": {
            "type": "string",
            "description": "Identifier of an image asset to use as the banner"
          },
          "title": {
            "type": "string",
            "description": "Creative title, at most 20 characters",
            "maxLength": 20
          },
          "gradient_color": {
            "type": "string",
            "description": "Background gradient color as a hex color code (for example \"#1A73E8\"). Hex is the only accepted format.",
            "pattern": "^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})$"
          }
        }
      },
      "CreateCreatives_SponsoredListingCreativeInput": {
        "type": "object",
        "description": "Sponsored Listing creative configuration",
        "properties": {
          "image_asset_id": {
            "type": "string",
            "description": "Identifier of an image asset to use for the creative"
          }
        }
      },
      "CreateCreatives_BulkOperationResult": {
        "type": "object",
        "description": "Outcome for a single creative in the batch. Exactly one of success or failure is present.",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "success": {
                "$ref": "#/components/schemas/CreateCreatives_BulkOperationSuccessResult"
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "failure": {
                "$ref": "#/components/schemas/CreateCreatives_BulkOperationFailureResult"
              }
            }
          }
        ]
      },
      "CreateCreatives_BulkOperationSuccessResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the created creative"
          }
        }
      },
      "CreateCreatives_BulkOperationFailureResult": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code for the failed creative"
          },
          "error_message": {
            "type": "string",
            "description": "Error message for the failed creative"
          }
        }
      },
      "CreateCreatives_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "GetProducts_Product": {
        "type": "object",
        "description": "Product information for advertising inventory",
        "properties": {
          "gtin": {
            "type": "string",
            "description": "Global Trade Item Number"
          },
          "product_name": {
            "type": "string",
            "description": "Official or commonly recognized name of the product as sold to consumers"
          },
          "brand_owner_name": {
            "type": "string",
            "description": "Company or legal entity that owns the rights to the brand and product"
          },
          "brand_name": {
            "type": "string",
            "description": "Marketed or consumer-facing brand under which the product is sold"
          },
          "main_image_url": {
            "type": "string",
            "description": "Primary image that visually represents the product on Uber Eats"
          },
          "size": {
            "type": "string",
            "description": "Measurable quantity expressed in standardized units (e.g., \"500 mL,\" \"12 oz,\" \"10 count\")"
          }
        }
      },
      "GetProducts_PageToken": {
        "type": "object",
        "description": "Pagination token for retrieving additional results",
        "properties": {
          "value": {
            "type": "string",
            "description": "Opaque page token for pagination"
          }
        }
      },
      "GetProducts_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "CreateReports_ExternalSubmitReportJobRequest": {
        "type": "object",
        "description": "Request configuration for generating an asynchronous report",
        "required": [
          "report_type",
          "time_range",
          "columns",
          "time_unit",
          "file_format"
        ],
        "properties": {
          "report_type": {
            "type": "string",
            "description": "Type of report"
          },
          "time_range": {
            "$ref": "#/components/schemas/CreateReports_TimeRange"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of dimensions and metrics to include in the report"
          },
          "time_unit": {
            "type": "string",
            "enum": [
              "DAILY",
              "WEEKLY",
              "MONTHLY",
              "SUMMARY"
            ],
            "description": "Time unit for aggregation:\n- DAILY: Day-by-day breakdown\n- WEEKLY: Week-by-week aggregation (start date must be Monday)\n- MONTHLY: Month-by-month aggregation (start date must be first of month)\n- SUMMARY: Total aggregation across date range\n\nTime Range Configuration:\n- Weekly Reports: start_time must be Monday, end_time must be next Monday\n- Monthly Reports: start_time must be first of month, end_time must be first of next month\n- Daily/Summary Reports: any valid date range\n\nExamples:\n- Weekly: \"2024-01-01T00:00:00Z\" to \"2024-01-08T00:00:00Z\"\n- Monthly: \"2024-01-01T00:00:00Z\" to \"2024-02-01T00:00:00Z\"\n- Daily: \"2024-01-15T00:00:00Z\" to \"2024-01-20T00:00:00Z\"\n"
          },
          "file_format": {
            "type": "string",
            "description": "Output file format (CSV)"
          },
          "filters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateReports_Filter"
            },
            "description": "Filters to apply to the report"
          },
          "include_headers": {
            "type": "boolean",
            "description": "Whether to include a header row in the generated CSV file. When set to `true`, the first row of the report contains column names matching the requested `columns`. Defaults to `false`."
          }
        }
      },
      "CreateReports_ExternalSubmitReportJobResponse": {
        "type": "object",
        "description": "Response containing the report identifier for tracking",
        "properties": {
          "report_id": {
            "type": "string",
            "description": "Unique report identifier"
          }
        }
      },
      "CreateReports_TimeRange": {
        "type": "object",
        "description": "Time range specification for report data",
        "required": [
          "start_time",
          "end_time"
        ],
        "properties": {
          "start_time": {
            "type": "string",
            "format": "date-time",
            "description": "Start time (RFC 3339)"
          },
          "end_time": {
            "type": "string",
            "format": "date-time",
            "description": "End time (RFC 3339), exclusive. The report covers data up to but not including this time, so to include a full day set it to the start of the following day. For example, data for September 8 through September 9 uses an end_time of 2026-09-10T00:00:00Z."
          }
        }
      },
      "CreateReports_Filter": {
        "type": "object",
        "description": "Filter configuration for report data",
        "required": [
          "column",
          "operator",
          "values"
        ],
        "properties": {
          "column": {
            "type": "string",
            "description": "Column to filter on"
          },
          "operator": {
            "type": "string",
            "enum": [
              "EQUAL",
              "NOT_EQUAL",
              "IN",
              "TEXT_MATCH"
            ],
            "description": "Filter operator. `TEXT_MATCH` performs a substring match, useful for filtering on keyword and search term columns."
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Filter values"
          }
        }
      },
      "CreateReports_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "GetReport_ExternalGetReportJobStatusResponse": {
        "type": "object",
        "description": "Response containing report generation status and results",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "COMPLETED",
              "FAILED",
              "PROCESSING"
            ],
            "description": "Report status"
          },
          "result": {
            "$ref": "#/components/schemas/GetReport_ReportResult"
          }
        }
      },
      "GetReport_ReportResult": {
        "description": "Report generation result with timing information and outcome",
        "allOf": [
          {
            "type": "object",
            "properties": {
              "started_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the report started processing (RFC 3339)"
              },
              "finished_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the report finished processing (RFC 3339)"
              }
            }
          },
          {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "success_result": {
                    "$ref": "#/components/schemas/GetReport_ReportSuccessResult"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "failure_result": {
                    "$ref": "#/components/schemas/GetReport_ReportFailureResult"
                  }
                }
              }
            ]
          }
        ]
      },
      "GetReport_ReportSuccessResult": {
        "type": "object",
        "description": "Successful report generation result with download information",
        "properties": {
          "report_url": {
            "type": "string",
            "description": "URL to download the report"
          },
          "file_size": {
            "type": "string",
            "format": "int64",
            "description": "Size of the report file in bytes"
          },
          "url_expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the download URL expires (RFC 3339)"
          },
          "report_schema": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Schema of the report columns"
          },
          "message": {
            "type": "string",
            "description": "Additional information about the generated report"
          }
        }
      },
      "GetReport_ReportFailureResult": {
        "type": "object",
        "description": "Failed report generation result with error information",
        "properties": {
          "failure_reason": {
            "type": "string",
            "description": "Reason why the report failed"
          }
        }
      },
      "GetReport_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "SyncReport_SyncReportRequest": {
        "type": "object",
        "description": "Request configuration for generating a synchronous report",
        "required": [
          "report_type",
          "time_range",
          "columns",
          "time_unit"
        ],
        "properties": {
          "report_type": {
            "type": "string",
            "description": "Type of report (must support sync reporting)"
          },
          "time_range": {
            "$ref": "#/components/schemas/SyncReport_TimeRange"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of dimensions and metrics to include in the report"
          },
          "time_unit": {
            "type": "string",
            "enum": [
              "HOURLY",
              "DAILY"
            ],
            "description": "Time unit for aggregation:\n- HOURLY: Hour-by-hour breakdown\n- DAILY: Day-by-day breakdown\n"
          },
          "filters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SyncReport_Filter"
            },
            "description": "Filters to apply to the report"
          }
        }
      },
      "SyncReport_SyncReportResponse": {
        "type": "object",
        "description": "Response containing report data with schema and rows",
        "properties": {
          "schema": {
            "$ref": "#/components/schemas/SyncReport_ReportSchema"
          },
          "data": {
            "$ref": "#/components/schemas/SyncReport_ReportData"
          }
        }
      },
      "SyncReport_ReportSchema": {
        "type": "object",
        "description": "Schema describing the structure of report data",
        "properties": {
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SyncReport_ColumnDefinition"
            }
          }
        }
      },
      "SyncReport_ColumnDefinition": {
        "type": "object",
        "description": "Definition of a report column",
        "properties": {
          "name": {
            "type": "string",
            "description": "Column name"
          },
          "type": {
            "type": "string",
            "enum": [
              "COLUMN_TYPE_STRING",
              "COLUMN_TYPE_INT64",
              "COLUMN_TYPE_DOUBLE",
              "COLUMN_TYPE_TIMESTAMP",
              "COLUMN_TYPE_BOOLEAN"
            ],
            "description": "Column data type"
          }
        }
      },
      "SyncReport_ReportData": {
        "type": "object",
        "description": "Report data containing rows of values",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SyncReport_ReportRow"
            }
          }
        }
      },
      "SyncReport_ReportRow": {
        "type": "object",
        "description": "A single row of report data",
        "properties": {
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Row values as strings, ordered according to schema columns"
          }
        }
      },
      "SyncReport_TimeRange": {
        "type": "object",
        "description": "Time range specification for report data",
        "required": [
          "start_time",
          "end_time"
        ],
        "properties": {
          "start_time": {
            "type": "string",
            "format": "date-time",
            "description": "Start time (RFC 3339)"
          },
          "end_time": {
            "type": "string",
            "format": "date-time",
            "description": "End time (RFC 3339), exclusive. The report covers data up to but not including this time, so to include a full day set it to the start of the following day. For example, data for September 8 through September 9 uses an end_time of 2026-09-10T00:00:00Z."
          }
        }
      },
      "SyncReport_Filter": {
        "type": "object",
        "description": "Filter configuration for report data",
        "required": [
          "column",
          "operator",
          "values"
        ],
        "properties": {
          "column": {
            "type": "string",
            "description": "Column to filter on"
          },
          "operator": {
            "type": "string",
            "enum": [
              "EQUAL",
              "NOT_EQUAL",
              "IN",
              "TEXT_MATCH"
            ],
            "description": "Filter operator. `TEXT_MATCH` performs a substring match, useful for filtering on keyword and search term columns."
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Filter values"
          }
        }
      },
      "SyncReport_error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      }
    }
  }
}
