{
  "opencollection": "1.0.0",
  "info": {
    "name": "Google Campaign Manager Campaign Manager 360 Ads API",
    "version": "v4"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://accounts.google.com/o/oauth2/v2/auth",
      "accessTokenUrl": "https://oauth2.googleapis.com/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Ads",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Google Campaign Manager List Ads",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/:profileId/ads",
            "params": [
              {
                "name": "profileId",
                "value": "123456",
                "type": "path",
                "description": "The Campaign Manager 360 user profile ID. Each user has a profile for each account they have access to."
              },
              {
                "name": "campaignIds",
                "value": "",
                "type": "query",
                "description": "Select only ads belonging to these campaigns."
              },
              {
                "name": "advertiserIds",
                "value": "",
                "type": "query",
                "description": "Select only ads belonging to these advertisers."
              },
              {
                "name": "ids",
                "value": "",
                "type": "query",
                "description": "Select only ads with these IDs."
              },
              {
                "name": "placementIds",
                "value": "",
                "type": "query",
                "description": "Select only ads with these placement IDs assigned."
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Select only ads with the specified type."
              },
              {
                "name": "active",
                "value": "",
                "type": "query",
                "description": "Select only active ads."
              },
              {
                "name": "archived",
                "value": "",
                "type": "query",
                "description": "Select only archived ads."
              },
              {
                "name": "searchString",
                "value": "",
                "type": "query",
                "description": "Search string for filtering results. Matches against ad name and ID fields."
              },
              {
                "name": "sortField",
                "value": "",
                "type": "query"
              },
              {
                "name": "sortOrder",
                "value": "",
                "type": "query"
              },
              {
                "name": "maxResults",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return. Default is 1000."
              },
              {
                "name": "pageToken",
                "value": "",
                "type": "query",
                "description": "Value of the nextPageToken from the previous result page."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://accounts.google.com/o/oauth2/v2/auth",
              "accessTokenUrl": "https://oauth2.googleapis.com/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves a list of ads, possibly filtered. Results are returned in descending order by last modified time. Use query parameters to filter by campaign, advertiser, type, or other criteria."
        },
        {
          "info": {
            "name": "Google Campaign Manager Create an Ad",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/:profileId/ads",
            "params": [
              {
                "name": "profileId",
                "value": "123456",
                "type": "path",
                "description": "The Campaign Manager 360 user profile ID. Each user has a profile for each account they have access to."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Inserts a new ad. The ad is created under the specified campaign and advertiser with the provided delivery, creative rotation, and targeting configuration."
        },
        {
          "info": {
            "name": "Google Campaign Manager Get an Ad",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/:profileId/ads/:adId",
            "params": [
              {
                "name": "profileId",
                "value": "123456",
                "type": "path",
                "description": "The Campaign Manager 360 user profile ID. Each user has a profile for each account they have access to."
              },
              {
                "name": "adId",
                "value": "87654321",
                "type": "path",
                "description": "Ad ID."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://accounts.google.com/o/oauth2/v2/auth",
              "accessTokenUrl": "https://oauth2.googleapis.com/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Gets one ad by ID."
        },
        {
          "info": {
            "name": "Google Campaign Manager Update an Ad",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/:profileId/ads/:adId",
            "params": [
              {
                "name": "profileId",
                "value": "123456",
                "type": "path",
                "description": "The Campaign Manager 360 user profile ID. Each user has a profile for each account they have access to."
              },
              {
                "name": "adId",
                "value": "87654321",
                "type": "path",
                "description": "Ad ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing ad. All writable fields must be provided in the request body."
        },
        {
          "info": {
            "name": "Google Campaign Manager Patch an Ad",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/:profileId/ads/:adId",
            "params": [
              {
                "name": "profileId",
                "value": "123456",
                "type": "path",
                "description": "The Campaign Manager 360 user profile ID. Each user has a profile for each account they have access to."
              },
              {
                "name": "adId",
                "value": "87654321",
                "type": "path",
                "description": "Ad ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing ad. This method supports patch semantics; only the fields specified in the request body are modified."
        }
      ]
    }
  ],
  "bundled": true
}