{"swagger":"2.0","info":{"title":"Advance (powered by Loblaw) - OnSite Media","version":"0.9"},"tags":[{"name":"AdGroupService"},{"name":"AdService"},{"name":"CampaignService"},{"name":"CriteriaService"},{"name":"ReportingService"}],"schemes":["http","https"],"consumes":["application/json"],"produces":["application/json"],"paths":{"/v1/adGroups/{adGroupId}/ads":{"get":{"summary":"Request a list of all Ads assigned to a given Ad Group","operationId":"AdService_ListAds2","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesListAdsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"adGroupId","description":"Required. The ad group ID","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"campaignId","in":"query","required":true,"type":"string"},{"name":"page.nextPageToken","in":"query","required":false,"type":"string"}],"tags":["AdService"]},"post":{"summary":"Creates an Ad in the specified ad group","operationId":"AdService_CreateAd2","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesCreateAdResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"campaignId","in":"query","required":true,"type":"string"},{"name":"ad.id","in":"query","required":false,"type":"string"},{"name":"ad.adGroupId","in":"query","required":false,"type":"string"},{"name":"ad.productAdInfo.product.articleNumber","in":"query","required":false,"type":"string"},{"name":"ad.productAdInfo.product.catalogue","in":"query","required":false,"type":"string"},{"name":"ad.versionCode","in":"query","required":false,"type":"string"}],"tags":["AdService"]}},"/v1/adGroups/{adGroupId}/ads/{adId}":{"delete":{"summary":"Removes the specified ad. Requires a version code to synchronize access.","operationId":"AdService_RemoveAd2","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesRemoveAdResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"campaignId","in":"query","required":true,"type":"string"},{"name":"versionCode","in":"query","required":true,"type":"string"}],"tags":["AdService"]},"put":{"summary":"Update the specified ad. Requires a version code to synchronize access.","operationId":"AdService_UpdateAd2","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesUpdateAdResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"campaignId","in":"query","required":true,"type":"string"},{"name":"versionCode","in":"query","required":true,"type":"string"},{"name":"ad.id","in":"query","required":false,"type":"string"},{"name":"ad.adGroupId","in":"query","required":false,"type":"string"},{"name":"ad.productAdInfo.product.articleNumber","in":"query","required":false,"type":"string"},{"name":"ad.productAdInfo.product.catalogue","in":"query","required":false,"type":"string"},{"name":"ad.versionCode","in":"query","required":false,"type":"string"}],"tags":["AdService"]}},"/v1/adGroups/{adGroupId}/ads/{adId}/ads":{"get":{"summary":"Request a list of all Ads assigned to a given Ad Group","operationId":"AdService_GetAd2","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesGetAdResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"campaignId","in":"query","required":true,"type":"string"}],"tags":["AdService"]}},"/v1/adGroups/{adGroupId}/criteria":{"get":{"summary":"Request a list of all Criteria assigned to a given Criterion Group","operationId":"CriteriaService_ListCriteria2","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesListCriteriaResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"adGroupId","description":"Required. The ad group ID","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"campaignId","in":"query","required":false,"type":"string"},{"name":"page.nextPageToken","in":"query","required":false,"type":"string"}],"tags":["CriteriaService"]},"post":{"summary":"Creates an Criterion in the specified ad group","operationId":"CriteriaService_CreateCriterion2","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesCreateCriterionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"campaignId","in":"query","required":true,"type":"string"},{"name":"criterion.criteriaId","in":"query","required":false,"type":"string"},{"name":"criterion.adGroupId","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpc.currencyCode","description":"The three-letter currency code defined in ISO 4217.","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpc.units","description":"The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.","in":"query","required":false,"type":"string","format":"int64"},{"name":"criterion.bidCpc.nanos","description":"Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.","in":"query","required":false,"type":"integer","format":"int32"},{"name":"criterion.bidCpm.currencyCode","description":"The three-letter currency code defined in ISO 4217.","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpm.units","description":"The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.","in":"query","required":false,"type":"string","format":"int64"},{"name":"criterion.bidCpm.nanos","description":"Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.","in":"query","required":false,"type":"integer","format":"int32"},{"name":"criterion.negative","in":"query","required":false,"type":"boolean"},{"name":"criterion.keyword.text","in":"query","required":false,"type":"string"},{"name":"criterion.keyword.matchType","in":"query","required":false,"type":"string","enum":["UNSPECIFIED","EXACT","PHRASE","BROAD"],"default":"UNSPECIFIED"},{"name":"criterion.keyword.locale","in":"query","required":false,"type":"string"},{"name":"criterion.similarity.enabled","in":"query","required":false,"type":"boolean"},{"name":"criterion.autoBidAdjustment.enabled","in":"query","required":false,"type":"boolean"},{"name":"criterion.status","in":"query","required":false,"type":"string","enum":["UNSPECIFIED","ACTIVE","INACTIVE"],"default":"UNSPECIFIED"},{"name":"criterion.versionCode","in":"query","required":false,"type":"string"},{"name":"versionCode","in":"query","required":true,"type":"string"}],"tags":["CriteriaService"]}},"/v1/adGroups/{adGroupId}/criteria/{criterionId}":{"get":{"summary":"Request a list of all Criteria assigned to a given Criterion Group","operationId":"CriteriaService_GetCriterion2","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesGetCriterionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"criterionId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"campaignId","in":"query","required":true,"type":"string"}],"tags":["CriteriaService"]},"delete":{"summary":"Removes the specified ad. Requires a version code to synchronize access.","operationId":"CriteriaService_RemoveCriterion2","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesRemoveCriterionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"criterionId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"campaignId","in":"query","required":true,"type":"string"},{"name":"versionCode","in":"query","required":true,"type":"string"}],"tags":["CriteriaService"]},"put":{"summary":"Update the specified ad. Requires a version code to synchronize access.","operationId":"CriteriaService_UpdateCriterion2","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesUpdateCriterionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"criterionId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"campaignId","in":"query","required":true,"type":"string"},{"name":"versionCode","in":"query","required":true,"type":"string"},{"name":"criterion.criteriaId","in":"query","required":false,"type":"string"},{"name":"criterion.adGroupId","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpc.currencyCode","description":"The three-letter currency code defined in ISO 4217.","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpc.units","description":"The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.","in":"query","required":false,"type":"string","format":"int64"},{"name":"criterion.bidCpc.nanos","description":"Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.","in":"query","required":false,"type":"integer","format":"int32"},{"name":"criterion.bidCpm.currencyCode","description":"The three-letter currency code defined in ISO 4217.","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpm.units","description":"The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.","in":"query","required":false,"type":"string","format":"int64"},{"name":"criterion.bidCpm.nanos","description":"Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.","in":"query","required":false,"type":"integer","format":"int32"},{"name":"criterion.negative","in":"query","required":false,"type":"boolean"},{"name":"criterion.keyword.text","in":"query","required":false,"type":"string"},{"name":"criterion.keyword.matchType","in":"query","required":false,"type":"string","enum":["UNSPECIFIED","EXACT","PHRASE","BROAD"],"default":"UNSPECIFIED"},{"name":"criterion.keyword.locale","in":"query","required":false,"type":"string"},{"name":"criterion.similarity.enabled","in":"query","required":false,"type":"boolean"},{"name":"criterion.autoBidAdjustment.enabled","in":"query","required":false,"type":"boolean"},{"name":"criterion.status","in":"query","required":false,"type":"string","enum":["UNSPECIFIED","ACTIVE","INACTIVE"],"default":"UNSPECIFIED"},{"name":"criterion.versionCode","in":"query","required":false,"type":"string"}],"tags":["CriteriaService"]}},"/v1/campaigns":{"get":{"summary":"List all campaigns for the organization.","operationId":"CampaignService_ListCampaigns","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesListCampaignsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"page.nextPageToken","in":"query","required":false,"type":"string"},{"name":"campaignStatus","description":"Filter campaigns by campaign status\n\n - DRAFT: Draft status. The campaign has been created but has not been approved and scheduled\nserving. This is the default status for a newly created campaign.","in":"query","required":false,"type":"string","enum":["UNSPECIFIED","DRAFT","READY","COMPLETED","SCHEDULED","CANCELLED","ARCHIVED"],"default":"UNSPECIFIED"}],"tags":["CampaignService"]},"post":{"summary":"Create a new campaign","operationId":"CampaignService_CreateCampaign","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesCreateCampaignResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/servicesCreateCampaignRequest"}}],"tags":["CampaignService"]}},"/v1/campaigns/{campaignId}":{"get":{"summary":"Get a specific campaign by ID\nWill return an error if the campaign is not found","operationId":"CampaignService_GetCampaign","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesGetCampaignResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"}],"tags":["CampaignService"]},"put":{"summary":"Update an existing campaign","operationId":"CampaignService_UpdateCampaign","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesUpdateCampaignResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"body","in":"body","required":true,"schema":{"type":"object","properties":{"campaign":{"$ref":"#/definitions/resourcesCampaign"}}}}],"tags":["CampaignService"]}},"/v1/campaigns/{campaignId}/adGroups":{"get":{"summary":"Query multiple adds groups. Can be used to query all the ad groups for a given campaign\nwith the query string parameter campaign_id.","operationId":"AdGroupService_ListAdGroups","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesListAdGroupResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string"},{"name":"page.nextPageToken","in":"query","required":false,"type":"string"}],"tags":["AdGroupService"]},"post":{"summary":"Create a new ad group","operationId":"AdGroupService_CreateAdGroup","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesCreateAdGroupResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string"},{"name":"body","in":"body","required":true,"schema":{"type":"object","properties":{"adGroup":{"$ref":"#/definitions/resourcesAdGroup"}}}}],"tags":["AdGroupService"]}},"/v1/campaigns/{campaignId}/adGroups/{adGroupId}":{"get":{"summary":"Request a single ad group by id\nWill return an error if the campaign is not found","operationId":"AdGroupService_GetAdGroup","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesGetAdGroupResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string"},{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"}],"tags":["AdGroupService"]},"put":{"summary":"Update an existing ad group.","operationId":"AdGroupService_UpdateAdGroup","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesUpdateAdGroupResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string"},{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"body","in":"body","required":true,"schema":{"type":"object","properties":{"adGroup":{"$ref":"#/definitions/resourcesAdGroup"}}}}],"tags":["AdGroupService"]}},"/v1/campaigns/{campaignId}/adGroups/{adGroupId}/ads":{"get":{"summary":"Request a list of all Ads assigned to a given Ad Group","operationId":"AdService_ListAds","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesListAdsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adGroupId","description":"Required. The ad group ID","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"page.nextPageToken","in":"query","required":false,"type":"string"}],"tags":["AdService"]},"post":{"summary":"Creates an Ad in the specified ad group","operationId":"AdService_CreateAd","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesCreateAdResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"ad.id","in":"query","required":false,"type":"string"},{"name":"ad.adGroupId","in":"query","required":false,"type":"string"},{"name":"ad.productAdInfo.product.articleNumber","in":"query","required":false,"type":"string"},{"name":"ad.productAdInfo.product.catalogue","in":"query","required":false,"type":"string"},{"name":"ad.versionCode","in":"query","required":false,"type":"string"}],"tags":["AdService"]}},"/v1/campaigns/{campaignId}/adGroups/{adGroupId}/ads/{adId}":{"delete":{"summary":"Removes the specified ad. Requires a version code to synchronize access.","operationId":"AdService_RemoveAd","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesRemoveAdResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"versionCode","in":"query","required":true,"type":"string"}],"tags":["AdService"]},"put":{"summary":"Update the specified ad. Requires a version code to synchronize access.","operationId":"AdService_UpdateAd","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesUpdateAdResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"versionCode","in":"query","required":true,"type":"string"},{"name":"ad.id","in":"query","required":false,"type":"string"},{"name":"ad.adGroupId","in":"query","required":false,"type":"string"},{"name":"ad.productAdInfo.product.articleNumber","in":"query","required":false,"type":"string"},{"name":"ad.productAdInfo.product.catalogue","in":"query","required":false,"type":"string"},{"name":"ad.versionCode","in":"query","required":false,"type":"string"}],"tags":["AdService"]}},"/v1/campaigns/{campaignId}/adGroups/{adGroupId}/ads/{adId}/ads":{"get":{"summary":"Request a list of all Ads assigned to a given Ad Group","operationId":"AdService_GetAd","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesGetAdResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adId","in":"path","required":true,"type":"string","pattern":"[^/]+"}],"tags":["AdService"]}},"/v1/campaigns/{campaignId}/adGroups/{adGroupId}/criteria":{"get":{"summary":"Request a list of all Criteria assigned to a given Criterion Group","operationId":"CriteriaService_ListCriteria","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesListCriteriaResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adGroupId","description":"Required. The ad group ID","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"page.nextPageToken","in":"query","required":false,"type":"string"}],"tags":["CriteriaService"]},"post":{"summary":"Creates an Criterion in the specified ad group","operationId":"CriteriaService_CreateCriterion","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesCreateCriterionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"criterion.criteriaId","in":"query","required":false,"type":"string"},{"name":"criterion.adGroupId","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpc.currencyCode","description":"The three-letter currency code defined in ISO 4217.","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpc.units","description":"The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.","in":"query","required":false,"type":"string","format":"int64"},{"name":"criterion.bidCpc.nanos","description":"Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.","in":"query","required":false,"type":"integer","format":"int32"},{"name":"criterion.bidCpm.currencyCode","description":"The three-letter currency code defined in ISO 4217.","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpm.units","description":"The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.","in":"query","required":false,"type":"string","format":"int64"},{"name":"criterion.bidCpm.nanos","description":"Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.","in":"query","required":false,"type":"integer","format":"int32"},{"name":"criterion.negative","in":"query","required":false,"type":"boolean"},{"name":"criterion.keyword.text","in":"query","required":false,"type":"string"},{"name":"criterion.keyword.matchType","in":"query","required":false,"type":"string","enum":["UNSPECIFIED","EXACT","PHRASE","BROAD"],"default":"UNSPECIFIED"},{"name":"criterion.keyword.locale","in":"query","required":false,"type":"string"},{"name":"criterion.similarity.enabled","in":"query","required":false,"type":"boolean"},{"name":"criterion.autoBidAdjustment.enabled","in":"query","required":false,"type":"boolean"},{"name":"criterion.status","in":"query","required":false,"type":"string","enum":["UNSPECIFIED","ACTIVE","INACTIVE"],"default":"UNSPECIFIED"},{"name":"criterion.versionCode","in":"query","required":false,"type":"string"},{"name":"versionCode","in":"query","required":true,"type":"string"}],"tags":["CriteriaService"]}},"/v1/campaigns/{campaignId}/adGroups/{adGroupId}/criteria/{criterionId}":{"get":{"summary":"Request a list of all Criteria assigned to a given Criterion Group","operationId":"CriteriaService_GetCriterion","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesGetCriterionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"criterionId","in":"path","required":true,"type":"string","pattern":"[^/]+"}],"tags":["CriteriaService"]},"delete":{"summary":"Removes the specified ad. Requires a version code to synchronize access.","operationId":"CriteriaService_RemoveCriterion","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesRemoveCriterionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"criterionId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"versionCode","in":"query","required":true,"type":"string"}],"tags":["CriteriaService"]},"put":{"summary":"Update the specified ad. Requires a version code to synchronize access.","operationId":"CriteriaService_UpdateCriterion","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesUpdateCriterionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"adGroupId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"criterionId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"versionCode","in":"query","required":true,"type":"string"},{"name":"criterion.criteriaId","in":"query","required":false,"type":"string"},{"name":"criterion.adGroupId","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpc.currencyCode","description":"The three-letter currency code defined in ISO 4217.","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpc.units","description":"The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.","in":"query","required":false,"type":"string","format":"int64"},{"name":"criterion.bidCpc.nanos","description":"Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.","in":"query","required":false,"type":"integer","format":"int32"},{"name":"criterion.bidCpm.currencyCode","description":"The three-letter currency code defined in ISO 4217.","in":"query","required":false,"type":"string"},{"name":"criterion.bidCpm.units","description":"The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.","in":"query","required":false,"type":"string","format":"int64"},{"name":"criterion.bidCpm.nanos","description":"Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.","in":"query","required":false,"type":"integer","format":"int32"},{"name":"criterion.negative","in":"query","required":false,"type":"boolean"},{"name":"criterion.keyword.text","in":"query","required":false,"type":"string"},{"name":"criterion.keyword.matchType","in":"query","required":false,"type":"string","enum":["UNSPECIFIED","EXACT","PHRASE","BROAD"],"default":"UNSPECIFIED"},{"name":"criterion.keyword.locale","in":"query","required":false,"type":"string"},{"name":"criterion.similarity.enabled","in":"query","required":false,"type":"boolean"},{"name":"criterion.autoBidAdjustment.enabled","in":"query","required":false,"type":"boolean"},{"name":"criterion.status","in":"query","required":false,"type":"string","enum":["UNSPECIFIED","ACTIVE","INACTIVE"],"default":"UNSPECIFIED"},{"name":"criterion.versionCode","in":"query","required":false,"type":"string"}],"tags":["CriteriaService"]}},"/v1/campaigns/{campaignId}/reports/performance":{"post":{"operationId":"ReportingService_GetPerformanceData","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesReportOperation"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"campaignId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"body","in":"body","required":true,"schema":{"type":"object","properties":{"interval":{"$ref":"#/definitions/typeInterval","title":"The time interval to generate performance data for"}},"required":["interval"]}}],"tags":["ReportingService"]}},"/v1/reports/poll/{operationId}":{"get":{"operationId":"ReportingService_PollReportOperation","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/servicesReportOperation"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/rpcStatus"}}},"parameters":[{"name":"operationId","in":"path","required":true,"type":"string","pattern":"[^/]+"},{"name":"done","in":"query","required":false,"type":"boolean"},{"name":"error","in":"query","required":false,"type":"string"},{"name":"response.reportUrl","in":"query","required":false,"type":"string"}],"tags":["ReportingService"]}}},"definitions":{"AdFormatTypeEnumAdFormatType":{"type":"string","enum":["UNSPECIFIED","SEARCH","DISPLAY","CATEGORY","BANNER","PRODUCTS","INSTORE"],"default":"UNSPECIFIED"},"AdGroupStatusEnumAdGroupStatus":{"type":"string","enum":["UNSPECIFIED","ACTIVE","REMOVED"],"default":"UNSPECIFIED","description":" - ACTIVE: The ad group is active and eligible to be served in an active campaign.\n - REMOVED: Ad groups can't be removed directly because they have to maintained for record keeping.\nThis status allows the ad group to be removed from serving."},"CampaignActionEnumCampaignAction":{"type":"string","enum":["UNSPECIFIED","LAUNCH","ARCHIVE","CANCEL","DELETE","PAUSE","RESUME","UNARCHIVE"],"default":"UNSPECIFIED"},"CampaignStatusEnumCampaignStatus":{"type":"string","enum":["UNSPECIFIED","DRAFT","READY","COMPLETED","SCHEDULED","CANCELLED","ARCHIVED"],"default":"UNSPECIFIED","description":" - DRAFT: Draft status. The campaign has been created but has not been approved and scheduled\nserving. This is the default status for a newly created campaign."},"CostTypeEnumCostType":{"type":"string","enum":["UNSPECIFIED","CPC","CPM","RESERVED","VCPM","VFLAT","VCPM_FIXED_IMPRESSION","FLAT"],"default":"UNSPECIFIED","title":"- CPC: CPC - Cost Per Click\n - CPM: CPM - Cost Per 1,000 impressions\n - RESERVED: Reserved inventory. Only for approved callers.\n - VCPM: VCPM - Viewable Cost Per 1,000 impressions"},"CriteriaStatusEnumCriteriaStatus":{"type":"string","enum":["UNSPECIFIED","ACTIVE","INACTIVE"],"default":"UNSPECIFIED"},"KeywordMatchTypeEnumKeywordMatchType":{"type":"string","enum":["UNSPECIFIED","EXACT","PHRASE","BROAD"],"default":"UNSPECIFIED"},"PacingEnumPacing":{"type":"string","enum":["UNSPECIFIED","EQUAL","FRONT_LOADED","AS_SOON_AS_POSSIBLE"],"default":"UNSPECIFIED","description":" - EQUAL: Budget is equally allocated across the days of a campaign.\n - FRONT_LOADED: Budget is divided similar to equally, but with a larger bias for the early days of the campaign.\n - AS_SOON_AS_POSSIBLE: Budget isn't divided and is used as soon as possible."},"PlatformEnumPlatform":{"type":"string","enum":["UNSPECIFIED","INHERIT","ALL","WEBSITE","MOBILE","INSTORE"],"default":"UNSPECIFIED","title":"- INHERIT: Inherits the platform of the campaign. Not valid on campaigns.  (DEPRECATED)\n - ALL: All platforms (ie. Website and Mobile).\n - WEBSITE: Web applications (DEPRECATED)\n - MOBILE: Mobile platforms, both Android and iOS.  (DEPRECATED)\n - INSTORE: In-Store"},"commonAdGroupBiddingStrategy":{"type":"object","properties":{"biddingPrice":{"$ref":"#/definitions/typeMoney"},"budget":{"$ref":"#/definitions/typeMoney"},"impressionCap":{"type":"string"},"costType":{"$ref":"#/definitions/CostTypeEnumCostType","readOnly":true},"pacing":{"$ref":"#/definitions/PacingEnumPacing"},"bidMultipliers":{"type":"array","items":{"type":"object","$ref":"#/definitions/commonBidMultiplier"}},"shareOfVoice":{"type":"number","format":"float"},"targetImpressions":{"type":"string","format":"int64"},"maxDailySpend":{"$ref":"#/definitions/typeMoney"}}},"commonAdLabel":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"array","items":{"type":"string"}}}},"commonAdvertiser":{"type":"object","properties":{"advertiserId":{"type":"string"},"advertiserName":{"type":"string"}}},"commonAutoBidAdjustmentInfo":{"type":"object","properties":{"enabled":{"type":"boolean"}}},"commonBidMultiplier":{"type":"object","properties":{"platform":{"$ref":"#/definitions/PlatformEnumPlatform"},"multiplier":{"type":"number","format":"float"}}},"commonKeywordInfo":{"type":"object","properties":{"text":{"type":"string"},"matchType":{"$ref":"#/definitions/KeywordMatchTypeEnumKeywordMatchType"},"locale":{"type":"string"}}},"commonPageRequest":{"type":"object","properties":{"nextPageToken":{"type":"string"}}},"commonPageResponse":{"type":"object","properties":{"size":{"type":"string","format":"int64"},"nextPageToken":{"type":"string"},"completed":{"type":"boolean"},"totalResults":{"type":"string","format":"int64"}}},"commonProductInfo":{"type":"object","properties":{"articleNumber":{"type":"string"},"catalogue":{"type":"string"}}},"commonProductSimilarityInfo":{"type":"object","properties":{"enabled":{"type":"boolean"}}},"commonSponsoredProductAdInfo":{"type":"object","properties":{"product":{"$ref":"#/definitions/commonProductInfo"}}},"protobufAny":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"resourcesAd":{"type":"object","properties":{"id":{"type":"string"},"adGroupId":{"type":"string"},"productAdInfo":{"$ref":"#/definitions/commonSponsoredProductAdInfo","title":"A sponsored product ad unit that will be composed into an a composite ad unit with\nother sponsored products and served to consumers in product listings"},"labels":{"type":"array","items":{"type":"object","$ref":"#/definitions/commonAdLabel"},"title":"Internal only"},"versionCode":{"type":"string","readOnly":true}},"title":"Represents an individual Ad unit.\nResource Name: /campaigns/{campaign_id}/adGroups/{ad_group_id}/ads/{ad_id}"},"resourcesAdGroup":{"type":"object","properties":{"adGroupId":{"type":"string","title":"A Unique ID, expected to be in UUID format, when creating an add unit this id may be\nignored in favour of a generated ID which will be available in the result payload"},"campaignId":{"type":"string","title":"The identifier of an existing campaign. If the campaign does not exist the\nrequest will be invalid"},"adGroupName":{"type":"string","title":"A user friendly display name, used in UIs and reports"},"publisher":{"type":"string"},"adGroupStatus":{"$ref":"#/definitions/AdGroupStatusEnumAdGroupStatus"},"bidCpc":{"$ref":"#/definitions/typeMoney"},"costType":{"$ref":"#/definitions/CostTypeEnumCostType","readOnly":true},"modifiedAt":{"type":"string","format":"date-time","readOnly":true},"biddingStrategy":{"$ref":"#/definitions/commonAdGroupBiddingStrategy"},"versionCode":{"type":"string","readOnly":true}},"title":"An Ad Group which serves as a logical grouping of Ads and targeting criteria.\nResource Name: /campaigns/{campaign_id}/adGroups/{ad_group_id}","required":["campaignId"]},"resourcesCampaign":{"type":"object","properties":{"campaignId":{"type":"string","title":"A unique identifier for this campaign\nExpected to be in the format of a UUID (ex. 550e8400-e29b-41d4-a716-446655440000)","readOnly":true},"advertiser":{"$ref":"#/definitions/commonAdvertiser","description":"Advertiser meta data."},"campaignName":{"type":"string","title":"Human readable name for the campaign"},"adFormatType":{"$ref":"#/definitions/AdFormatTypeEnumAdFormatType","description":"The Ad Formats targeted by this campaign."},"interval":{"$ref":"#/definitions/typeInterval","title":"The time interval, start to end time the campaign is allowed to run"},"lastModifiedBy":{"type":"string","title":"Most recently modified by user"},"campaignStatus":{"$ref":"#/definitions/CampaignStatusEnumCampaignStatus","title":"The status of the campaign. Determines if a campaign is allowed to run"}},"description":"An advertising campaign. Can have several Ad Groups related to it."},"resourcesCriterion":{"type":"object","properties":{"criteriaId":{"type":"string"},"adGroupId":{"type":"string"},"bidCpc":{"$ref":"#/definitions/typeMoney"},"bidCpm":{"$ref":"#/definitions/typeMoney"},"negative":{"type":"boolean"},"keyword":{"$ref":"#/definitions/commonKeywordInfo","description":"Keyword."},"similarity":{"$ref":"#/definitions/commonProductSimilarityInfo","title":"Product Similarity"},"autoBidAdjustment":{"$ref":"#/definitions/commonAutoBidAdjustmentInfo","title":"Automatic Bid Adjustment"},"status":{"$ref":"#/definitions/CriteriaStatusEnumCriteriaStatus"},"versionCode":{"type":"string","readOnly":true}},"title":"Resource Name: /campaigns/{campaign_id}/adGroups/{ad_group_id}/criteria/{criterion_id}"},"rpcStatus":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","$ref":"#/definitions/protobufAny"}}}},"servicesBatchUpsertAdsResponse":{"type":"object","properties":{"adGroupId":{"type":"string"},"campaignId":{"type":"string"},"versionCode":{"type":"string"},"ads":{"type":"array","items":{"type":"object","$ref":"#/definitions/resourcesAd"}}}},"servicesBatchUpsertCriteriaResponse":{"type":"object","properties":{"adGroupId":{"type":"string"},"campaignId":{"type":"string"},"versionCode":{"type":"string"},"criteria":{"type":"array","items":{"type":"object","$ref":"#/definitions/resourcesCriterion"}}}},"servicesCreateAdGroupResponse":{"type":"object","properties":{"adGroupId":{"type":"string"},"campaignId":{"type":"string"},"adGroup":{"$ref":"#/definitions/resourcesAdGroup"}}},"servicesCreateAdResponse":{"type":"object","properties":{"adId":{"type":"string"},"adGroupId":{"type":"string"},"ad":{"$ref":"#/definitions/resourcesAd"}}},"servicesCreateCampaignRequest":{"type":"object","properties":{"campaign":{"$ref":"#/definitions/resourcesCampaign"}}},"servicesCreateCampaignResponse":{"type":"object","properties":{"campaign":{"$ref":"#/definitions/resourcesCampaign"}}},"servicesCreateCriterionResponse":{"type":"object","properties":{"criterionId":{"type":"string"},"adGroupId":{"type":"string"},"criterion":{"$ref":"#/definitions/resourcesCriterion"},"versionCode":{"type":"string"}}},"servicesGetAdGroupResponse":{"type":"object","properties":{"adGroup":{"$ref":"#/definitions/resourcesAdGroup"}}},"servicesGetAdResponse":{"type":"object","properties":{"ad":{"$ref":"#/definitions/resourcesAd"}}},"servicesGetCampaignResponse":{"type":"object","properties":{"campaign":{"$ref":"#/definitions/resourcesCampaign"}},"title":"Will return an error if the campaign is not found"},"servicesGetCriterionResponse":{"type":"object","properties":{"criterion":{"$ref":"#/definitions/resourcesCriterion"}}},"servicesListAdGroupResponse":{"type":"object","properties":{"adGroup":{"type":"array","items":{"type":"object","$ref":"#/definitions/resourcesAdGroup"}},"page":{"$ref":"#/definitions/commonPageResponse"}}},"servicesListAdsResponse":{"type":"object","properties":{"ads":{"type":"array","items":{"type":"object","$ref":"#/definitions/resourcesAd"},"title":"The collection of AdGroupAds that met the query"},"page":{"$ref":"#/definitions/commonPageResponse","description":"Contains information about the further requests if any. Pass the next page\ntoken to `ListAdsRequest` to get the next page if there is one."}},"title":"The response for Listing ads for and ad group"},"servicesListCampaignsResponse":{"type":"object","properties":{"campaigns":{"type":"array","items":{"type":"object","$ref":"#/definitions/resourcesCampaign"}},"page":{"$ref":"#/definitions/commonPageResponse"}}},"servicesListCriteriaResponse":{"type":"object","properties":{"criteria":{"type":"array","items":{"type":"object","$ref":"#/definitions/resourcesCriterion"}},"page":{"$ref":"#/definitions/commonPageResponse","description":"Contains information about the further requests if any."}},"title":"The response for Listing ads for and ad group"},"servicesRemoveAdResponse":{"type":"object","properties":{"adId":{"type":"string"},"adGroupId":{"type":"string"},"versionCode":{"type":"string"}},"required":["versionCode"]},"servicesRemoveCriterionResponse":{"type":"object","properties":{"criterionId":{"type":"string"},"adGroupId":{"type":"string"},"versionCode":{"type":"string"}}},"servicesReportOperation":{"type":"object","properties":{"operationId":{"type":"string"},"done":{"type":"boolean"},"error":{"type":"string"},"response":{"$ref":"#/definitions/servicesReportResponse"}}},"servicesReportResponse":{"type":"object","properties":{"reportUrl":{"type":"string"}}},"servicesTriggerCampaignActionResponse":{"type":"object","properties":{"success":{"type":"boolean"}}},"servicesUpdateAdGroupResponse":{"type":"object","properties":{"adGroupId":{"type":"string"},"campaignId":{"type":"string"},"adGroup":{"$ref":"#/definitions/resourcesAdGroup"}}},"servicesUpdateAdResponse":{"type":"object","properties":{"adId":{"type":"string"},"adGroupId":{"type":"string"},"ad":{"$ref":"#/definitions/resourcesAd"}}},"servicesUpdateCampaignResponse":{"type":"object","properties":{"campaign":{"$ref":"#/definitions/resourcesCampaign"}}},"servicesUpdateCriterionResponse":{"type":"object","properties":{"criterionId":{"type":"string"},"adGroupId":{"type":"string"},"criterion":{"$ref":"#/definitions/resourcesCriterion"},"versionCode":{"type":"string"}}},"typeInterval":{"type":"object","properties":{"startTime":{"type":"string","format":"date-time","description":"Optional. Inclusive start of the interval.\n\nIf specified, a Timestamp matching this interval will have to be the same\nor after the start."},"endTime":{"type":"string","format":"date-time","description":"Optional. Exclusive end of the interval.\n\nIf specified, a Timestamp matching this interval will have to be before the\nend."}},"description":"Represents a time interval, encoded as a Timestamp start (inclusive) and a\nTimestamp end (exclusive).\n\nThe start must be less than or equal to the end.\nWhen the start equals the end, the interval is empty (matches no time).\nWhen both start and end are unspecified, the interval matches any time."},"typeMoney":{"type":"object","properties":{"currencyCode":{"type":"string","description":"The three-letter currency code defined in ISO 4217."},"units":{"type":"string","format":"int64","description":"The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar."},"nanos":{"type":"integer","format":"int32","description":"Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000."}},"description":"Represents an amount of money with its currency type."}},"securityDefinitions":{"bearer":{"type":"oauth2","description":"Authentication token, prefixed by Bearer: Bearer <token>","name":"Authorization","in":"header","flow":"implicit"}},"security":[{"bearer":[]}]}