ReferenceAdsAdsCampaignsIdTargeting
Change radius targeting and age range
Loading the API reference…
A practice API key or an OAuth access token, both presented as Authorization: Bearer <token>. The token itself names the practice, so no organization header is needed.
In: header
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidapplication/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/ads/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/targeting" \ -H "Content-Type: application/json" \ -d '{ "clientRef": "31af2cbb-b3fc-4769-87bc-bdbd1e264342", "expectedVersion": 1, "targeting": { "locations": [ { "locationId": "1a5515a3-ba81-4a42-aee7-ad9ffc090a54", "radiusKm": 1 } ], "ageMin": 18, "ageMax": 18 } }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d", "externalAccountId": "f3675f2e-da61-42e9-a9db-eef8bd4fb4e2", "locationId": "1a5515a3-ba81-4a42-aee7-ad9ffc090a54", "provider": "meta", "platformKind": "google_search", "name": "string", "externalId": "string", "managementState": "draft", "lifecycleStatus": "draft", "externalStatus": "string", "externalEffectiveStatus": "string", "adoptedAt": "2019-08-24T14:15:22Z", "currencyCode": "string", "dailyBudgetMicros": -9007199254740991, "startAt": "2019-08-24T14:15:22Z", "endAt": "2019-08-24T14:15:22Z", "targeting": { "locations": [ { "locationId": "1a5515a3-ba81-4a42-aee7-ad9ffc090a54", "radiusKm": 1 } ], "ageMin": 18, "ageMax": 18 }, "servicesAdvertised": [ { "serviceKey": "string", "label": "string", "templateKey": "meet_the_dentist", "treatmentId": "8b6aba27-0814-45aa-86d0-a70b355ab1de" } ], "targetCplMicros": -9007199254740991, "optimizationGoal": "booking", "optimizationFallbackAppliedAt": "2019-08-24T14:15:22Z", "destinationUrl": "string", "destinationSitePageId": "e89cccc4-c80a-4aa8-b0b2-acda32c69c24", "leadFormExternalId": "string", "learningStatus": "learning", "learningStartedAt": "2019-08-24T14:15:22Z", "publishedAt": "2019-08-24T14:15:22Z", "policyIssueCount": 0, "driftDetectedAt": "2019-08-24T14:15:22Z", "targetCostPerBookingMicros": 1, "adviceSnoozes": { "property1": "2019-08-24T14:15:22Z", "property2": "2019-08-24T14:15:22Z" }, "observedChangedAt": "2019-08-24T14:15:22Z", "version": 1, "createdById": "string", "createdByName": "string", "createdBySource": "user", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "adsManagerUrl": "string"}^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuid0 < value <= 9007199254740991ageMax must be at least ageMin