From 27e4913543869cf39a29c1a951d22c579a425db2 Mon Sep 17 00:00:00 2001 From: Graham Tackley Date: Thu, 1 Aug 2024 18:01:54 +0100 Subject: [PATCH] fix: switch update profile call to "update self" (#1291) Resolves https://github.com/brave/ads-ui/issues/1293 For simplicitly, use the new API to "update the current user" rather than explicitly specify the user id to update. --- src/graphql-client/gql.ts | 9 +- src/graphql-client/graphql.ts | 152 +- src/graphql/ads-serve.graphql.schema.json | 2262 ++++++++++----------- src/graphql/user.graphql | 6 - src/user/settings/UserForm.tsx | 15 +- 5 files changed, 1113 insertions(+), 1331 deletions(-) diff --git a/src/graphql-client/gql.ts b/src/graphql-client/gql.ts index 2d82403e..d028a3eb 100644 --- a/src/graphql-client/gql.ts +++ b/src/graphql-client/gql.ts @@ -25,12 +25,13 @@ const documents = { "fragment Creative on Creative {\n id\n createdAt\n modifiedAt\n name\n state\n type {\n code\n }\n payloadNotification {\n body\n title\n targetUrl\n }\n payloadNewTabPage {\n logo {\n imageUrl\n alt\n companyName\n destinationUrl\n }\n wallpapers {\n imageUrl\n focalPoint {\n x\n y\n }\n }\n }\n payloadInlineContent {\n title\n ctaText\n imageUrl\n targetUrl\n dimensions\n description\n }\n payloadSearch {\n body\n title\n targetUrl\n }\n payloadSearchHomepage {\n body\n imageUrl\n imageDarkModeUrl\n targetUrl\n title\n ctaText\n }\n}\n\nquery AdvertiserCreatives($advertiserId: String!) {\n advertiser(id: $advertiserId) {\n id\n creatives {\n ...Creative\n }\n }\n}\n\nmutation CreateCreative($input: CreativeInput!) {\n createCreative(creative: $input) {\n ...Creative\n }\n}\n\nquery LoadCreative($id: String!) {\n creative(id: $id) {\n ...Creative\n }\n}\n\nquery CampaignsForCreative($creativeId: String!, $advertiserId: String!) {\n creativeCampaigns(creativeId: $creativeId, advertiserId: $advertiserId) {\n id\n name\n state\n format\n }\n}": types.CreativeFragmentDoc, "fragment DisplayedMetrics on Metrics {\n impression\n click\n siteVisit\n conversion\n viewThroughConversion\n clickThroughConversion\n dismiss\n spendUsd\n upvote\n downvote\n rates {\n clickThrough\n clickToConversion\n clickToSiteVisit\n impressionToSiteVisit\n impressionToDismiss\n costPerAcquisition\n }\n}\n\nfragment DailyMetricValues on Performance {\n dimensions {\n day\n }\n metrics {\n ...DisplayedMetrics\n }\n}": types.DisplayedMetricsFragmentDoc, "query ValidateTargetUrl($url: String!) {\n validateTargetUrl(targetUrl: $url) {\n isValid\n redirects {\n url\n violations {\n summary\n detail\n }\n }\n }\n}": types.ValidateTargetUrlDocument, - "fragment User on User {\n email\n fullName\n id\n role\n}\n\nquery LoadUser($id: String!) {\n user(id: $id) {\n ...User\n }\n}\n\nmutation UpdateUser($input: UpdateUserInput!) {\n updateUser(updateUserInput: $input) {\n ...User\n }\n}": types.UserFragmentDoc, + "fragment User on User {\n email\n fullName\n id\n role\n}\n\nquery LoadUser($id: String!) {\n user(id: $id) {\n ...User\n }\n}": types.UserFragmentDoc, "\n query CampaignAnalytics($filter: PerformanceFilter!) {\n performance(filter: $filter) {\n total {\n metrics {\n ...DisplayedMetrics\n }\n }\n values {\n ...DailyMetricValues\n }\n }\n }\n": types.CampaignAnalyticsDocument, "\n query AdSetBreakdown($filter: PerformanceFilter!) {\n performance(filter: $filter) {\n values {\n dimensions {\n adSet {\n id\n name\n }\n }\n metrics {\n ...DisplayedMetrics\n }\n }\n }\n }\n": types.AdSetBreakdownDocument, "\n query CreativeBreakdown($filter: PerformanceFilter!) {\n performance(filter: $filter) {\n values {\n dimensions {\n ad {\n id\n creative {\n id\n name\n }\n }\n }\n metrics {\n ...DisplayedMetrics\n }\n }\n }\n }\n": types.CreativeBreakdownDocument, "\n query OSBreakdown($filter: PerformanceFilter!) {\n performance(filter: $filter) {\n values {\n dimensions {\n os\n }\n metrics {\n ...DisplayedMetrics\n }\n }\n }\n }\n": types.OsBreakdownDocument, "\n query HourlyGraph($filter: PerformanceFilter!) {\n performance(filter: $filter) {\n values {\n ...HourlyValues\n }\n }\n }\n\n fragment HourlyValues on Performance {\n dimensions {\n hour\n }\n metrics {\n ...DisplayedMetrics\n }\n }\n": types.HourlyGraphDocument, + "\n mutation UpdateCurrentUser($input: UpdateCurrentUserInput!) {\n updateCurrentUser(input: $input) {\n ...User\n }\n }\n": types.UpdateCurrentUserDocument, "\n query LoadCampaignSummary($id: String!) {\n campaign(id: $id) {\n ...CampaignOverview\n }\n }\n\n fragment CampaignOverview on Campaign {\n ...CampaignSummary\n adSets {\n id\n conversions {\n id\n extractExternalId\n }\n }\n }\n": types.LoadCampaignSummaryDocument, "\n query CreateSearchCampaignLandingPageList(\n $domain: String!\n $country: String!\n $offset: Float!\n $limit: Float!\n ) {\n searchProspects {\n landingPagesWithStats(\n country: $country\n domain: $domain\n offset: $offset\n limit: $limit\n ) {\n ...SearchProspectsLandingPageList\n }\n }\n }\n\n fragment SearchProspectsLandingPageList on SearchLandingPageWithStats {\n url\n rank\n lastSeen\n favicon\n creatives {\n title\n body\n lastSeen\n }\n }\n": types.CreateSearchCampaignLandingPageListDocument, "\n query SearchProspectsLandingPageDetail(\n $domain: String!\n $country: String!\n $url: String!\n ) {\n searchProspects {\n landingPage(country: $country, domain: $domain, url: $url) {\n ...SearchProspectsLandingPageDetail\n }\n }\n }\n\n fragment SearchProspectsLandingPageDetail on SearchLandingPage {\n url\n queries {\n query\n }\n }\n": types.SearchProspectsLandingPageDetailDocument, @@ -101,7 +102,7 @@ export function graphql(source: "query ValidateTargetUrl($url: String!) {\n val /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "fragment User on User {\n email\n fullName\n id\n role\n}\n\nquery LoadUser($id: String!) {\n user(id: $id) {\n ...User\n }\n}\n\nmutation UpdateUser($input: UpdateUserInput!) {\n updateUser(updateUserInput: $input) {\n ...User\n }\n}"): (typeof documents)["fragment User on User {\n email\n fullName\n id\n role\n}\n\nquery LoadUser($id: String!) {\n user(id: $id) {\n ...User\n }\n}\n\nmutation UpdateUser($input: UpdateUserInput!) {\n updateUser(updateUserInput: $input) {\n ...User\n }\n}"]; +export function graphql(source: "fragment User on User {\n email\n fullName\n id\n role\n}\n\nquery LoadUser($id: String!) {\n user(id: $id) {\n ...User\n }\n}"): (typeof documents)["fragment User on User {\n email\n fullName\n id\n role\n}\n\nquery LoadUser($id: String!) {\n user(id: $id) {\n ...User\n }\n}"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -122,6 +123,10 @@ export function graphql(source: "\n query OSBreakdown($filter: PerformanceFilte * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function graphql(source: "\n query HourlyGraph($filter: PerformanceFilter!) {\n performance(filter: $filter) {\n values {\n ...HourlyValues\n }\n }\n }\n\n fragment HourlyValues on Performance {\n dimensions {\n hour\n }\n metrics {\n ...DisplayedMetrics\n }\n }\n"): (typeof documents)["\n query HourlyGraph($filter: PerformanceFilter!) {\n performance(filter: $filter) {\n values {\n ...HourlyValues\n }\n }\n }\n\n fragment HourlyValues on Performance {\n dimensions {\n hour\n }\n metrics {\n ...DisplayedMetrics\n }\n }\n"]; +/** + * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function graphql(source: "\n mutation UpdateCurrentUser($input: UpdateCurrentUserInput!) {\n updateCurrentUser(input: $input) {\n ...User\n }\n }\n"): (typeof documents)["\n mutation UpdateCurrentUser($input: UpdateCurrentUserInput!) {\n updateCurrentUser(input: $input) {\n ...User\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/src/graphql-client/graphql.ts b/src/graphql-client/graphql.ts index b8edf961..d265f7c8 100644 --- a/src/graphql-client/graphql.ts +++ b/src/graphql-client/graphql.ts @@ -43,7 +43,6 @@ export type Ad = { /** @deprecated rewardPaymentTokenValue has been moved to ad set */ rewardPaymentTokenValue: Scalars['Numeric']['output']; state: Scalars['String']['output']; - webhooks: Array; }; export type AdSet = { @@ -115,6 +114,48 @@ export type Address = { zipcode: Scalars['String']['output']; }; +export type AdsManagerAdSetInput = { + /** New Ad Sets to be added to the Campaign, which require price and billing type */ + add?: InputMaybe>; + /** Ad Sets that are already part of the Campaign, which require an ID */ + modify?: InputMaybe>; +}; + +export type AdsManagerConversionInput = { + observationWindow: Scalars['Float']['input']; + urlPattern: Scalars['String']['input']; +}; + +export type AdsManagerNewAdSetInput = { + billingType: Scalars['String']['input']; + conversion?: InputMaybe; + creativeIds?: InputMaybe>; + name?: InputMaybe; + osCodes: Array; + /** The price in the owning campaign's currency for each single confirmation of the priceType specified. Note therefore that the caller is responsible for dividing cost-per-mille by 1000. */ + price: Scalars['Numeric']['input']; + segmentCodes?: InputMaybe>; +}; + +export type AdsManagerUpdateAdSetInput = { + conversion?: InputMaybe; + creativeIds?: InputMaybe>; + id: Scalars['String']['input']; + name?: InputMaybe; + osCodes?: InputMaybe>; + segmentCodes?: InputMaybe>; +}; + +export type AdsManagerUpdateCampaignInput = { + adSets?: InputMaybe; + budget?: InputMaybe; + endAt?: InputMaybe; + geoTargetCodes?: InputMaybe>; + id: Scalars['String']['input']; + name?: InputMaybe; + startAt?: InputMaybe; +}; + export type AdsManagerUpdateCreativeInput = { id: Scalars['String']['input']; name?: InputMaybe; @@ -483,7 +524,6 @@ export type CreateAdInput = { creativeId?: InputMaybe; creativeSetId?: InputMaybe; id?: InputMaybe; - webhooks?: InputMaybe>; }; export type CreateAdSetInput = { @@ -586,36 +626,6 @@ export type CreateConversionInput = { urlPattern: Scalars['String']['input']; }; -export type CreateInPageCreativeInput = { - advertiserId: Scalars['String']['input']; - endAt?: InputMaybe; - name: Scalars['String']['input']; - payload: InPagePayloadInput; - startAt?: InputMaybe; - state: Scalars['String']['input']; - type?: InputMaybe; -}; - -export type CreateNewTabPageCreativeInput = { - advertiserId: Scalars['String']['input']; - endAt?: InputMaybe; - name: Scalars['String']['input']; - payload: NewTabPagePayloadInput; - startAt?: InputMaybe; - state: Scalars['String']['input']; - type?: InputMaybe; -}; - -export type CreateNotificationCreativeInput = { - advertiserId: Scalars['String']['input']; - endAt?: InputMaybe; - name: Scalars['String']['input']; - payload: NotificationPayloadInput; - startAt?: InputMaybe; - state: Scalars['String']['input']; - type?: InputMaybe; -}; - export type CreateOsInput = { code: Scalars['String']['input']; name: Scalars['String']['input']; @@ -888,6 +898,8 @@ export type Metrics = { export type Mutation = { __typename?: 'Mutation'; adsManagerUpdateAdSetState: AdSet; + adsManagerUpdateCampaign: Campaign; + adsManagerUpdateCampaignState: Campaign; adsManagerUpdateCreativePayload: Creative; adsManagerUpdateCreativeState: Creative; approveAdvertiser: Advertiser; @@ -899,11 +911,6 @@ export type Mutation = { createCampaign: Campaign; createComment: CampaignComment; createCreative: Creative; - /** @deprecated use createCreative instead */ - createInPageCreative: Creative; - /** @deprecated use createCreative instead */ - createNewTabPageCreative: Creative; - createNotificationCreative: Creative; createUser: User; /** Logically deletes the ad */ deleteAd: Ad; @@ -919,7 +926,6 @@ export type Mutation = { updateCampaign: Campaign; updateCreative: Creative; updateCurrentUser: User; - updateNotificationCreative: Creative; updateSelfServeAdvertiser: Advertiser; updateUser: User; }; @@ -931,6 +937,17 @@ export type MutationAdsManagerUpdateAdSetStateArgs = { }; +export type MutationAdsManagerUpdateCampaignArgs = { + adsManagerUpdateCampaignInput: AdsManagerUpdateCampaignInput; +}; + + +export type MutationAdsManagerUpdateCampaignStateArgs = { + id: Scalars['String']['input']; + state: CampaignState; +}; + + export type MutationAdsManagerUpdateCreativePayloadArgs = { adsManagerUpdateCreativeInput: AdsManagerUpdateCreativeInput; }; @@ -987,21 +1004,6 @@ export type MutationCreateCreativeArgs = { }; -export type MutationCreateInPageCreativeArgs = { - createInPageCreativeInput: CreateInPageCreativeInput; -}; - - -export type MutationCreateNewTabPageCreativeArgs = { - createNewTabPageCreativeInput: CreateNewTabPageCreativeInput; -}; - - -export type MutationCreateNotificationCreativeArgs = { - createNotificationCreativeInput: CreateNotificationCreativeInput; -}; - - export type MutationCreateUserArgs = { createUserInput: CreateUserInput; }; @@ -1073,11 +1075,6 @@ export type MutationUpdateCurrentUserArgs = { }; -export type MutationUpdateNotificationCreativeArgs = { - updateNotificationCreativeInput: UpdateNotificationCreativeInput; -}; - - export type MutationUpdateSelfServeAdvertiserArgs = { updateAdvertiserInput: UpdateSelfServeAdvertiserInput; }; @@ -1572,7 +1569,6 @@ export type UpdateAdInput = { creativeSetId?: InputMaybe; id?: InputMaybe; state?: InputMaybe; - webhooks?: InputMaybe>; }; export type UpdateAdSetInput = { @@ -1679,17 +1675,6 @@ export type UpdateCurrentUserInput = { password?: InputMaybe; }; -export type UpdateNotificationCreativeInput = { - advertiserId?: InputMaybe; - creativeId?: InputMaybe; - endAt?: InputMaybe; - name?: InputMaybe; - payload?: InputMaybe; - startAt?: InputMaybe; - state?: InputMaybe; - type?: InputMaybe; -}; - export type UpdateOSesInput = { code?: InputMaybe; name?: InputMaybe; @@ -1744,17 +1729,6 @@ export type WallpaperInput = { imageUrl: Scalars['String']['input']; }; -export type Webhook = { - __typename?: 'Webhook'; - type: Scalars['String']['output']; - url: Scalars['String']['output']; -}; - -export type CreateWebhookInput = { - type: Scalars['String']['input']; - url: Scalars['String']['input']; -}; - export type UpdateAdvertiserMutationVariables = Exact<{ input: UpdateSelfServeAdvertiserInput; }>; @@ -1981,13 +1955,6 @@ export type LoadUserQueryVariables = Exact<{ export type LoadUserQuery = { __typename?: 'Query', user: { __typename?: 'User', email: string, fullName: string, id: string, role: string } }; -export type UpdateUserMutationVariables = Exact<{ - input: UpdateUserInput; -}>; - - -export type UpdateUserMutation = { __typename?: 'Mutation', updateUser: { __typename?: 'User', email: string, fullName: string, id: string, role: string } }; - export type CampaignAnalyticsQueryVariables = Exact<{ filter: PerformanceFilter; }>; @@ -2025,6 +1992,13 @@ export type HourlyGraphQuery = { __typename?: 'Query', performance: { __typename export type HourlyValuesFragment = { __typename?: 'Performance', dimensions: { __typename?: 'Dimensions', hour: string }, metrics: { __typename?: 'Metrics', impression: string, click: string, siteVisit: string, conversion: string, viewThroughConversion: string, clickThroughConversion: string, dismiss: string, spendUsd: string, upvote: string, downvote: string, rates: { __typename?: 'MetricRates', clickThrough: string, clickToConversion: string, clickToSiteVisit: string, impressionToSiteVisit: string, impressionToDismiss: string, costPerAcquisition: string } } }; +export type UpdateCurrentUserMutationVariables = Exact<{ + input: UpdateCurrentUserInput; +}>; + + +export type UpdateCurrentUserMutation = { __typename?: 'Mutation', updateCurrentUser: { __typename?: 'User', email: string, fullName: string, id: string, role: string } }; + export type LoadCampaignSummaryQueryVariables = Exact<{ id: Scalars['String']['input']; }>; @@ -2109,12 +2083,12 @@ export const LoadCreativeDocument = {"kind":"Document","definitions":[{"kind":"O export const CampaignsForCreativeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CampaignsForCreative"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"creativeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"advertiserId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"creativeCampaigns"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"creativeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"creativeId"}}},{"kind":"Argument","name":{"kind":"Name","value":"advertiserId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"advertiserId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"format"}}]}}]}}]} as unknown as DocumentNode; export const ValidateTargetUrlDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ValidateTargetUrl"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"url"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validateTargetUrl"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"targetUrl"},"value":{"kind":"Variable","name":{"kind":"Name","value":"url"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isValid"}},{"kind":"Field","name":{"kind":"Name","value":"redirects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"violations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const LoadUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"LoadUser"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"fullName"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"role"}}]}}]} as unknown as DocumentNode; -export const UpdateUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateUser"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateUserInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateUser"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"updateUserInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"fullName"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"role"}}]}}]} as unknown as DocumentNode; export const CampaignAnalyticsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CampaignAnalytics"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filter"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PerformanceFilter"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"performance"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metrics"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DisplayedMetrics"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"values"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DailyMetricValues"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DisplayedMetrics"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Metrics"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"impression"}},{"kind":"Field","name":{"kind":"Name","value":"click"}},{"kind":"Field","name":{"kind":"Name","value":"siteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"conversion"}},{"kind":"Field","name":{"kind":"Name","value":"viewThroughConversion"}},{"kind":"Field","name":{"kind":"Name","value":"clickThroughConversion"}},{"kind":"Field","name":{"kind":"Name","value":"dismiss"}},{"kind":"Field","name":{"kind":"Name","value":"spendUsd"}},{"kind":"Field","name":{"kind":"Name","value":"upvote"}},{"kind":"Field","name":{"kind":"Name","value":"downvote"}},{"kind":"Field","name":{"kind":"Name","value":"rates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"clickThrough"}},{"kind":"Field","name":{"kind":"Name","value":"clickToConversion"}},{"kind":"Field","name":{"kind":"Name","value":"clickToSiteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"impressionToSiteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"impressionToDismiss"}},{"kind":"Field","name":{"kind":"Name","value":"costPerAcquisition"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DailyMetricValues"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Performance"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dimensions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"day"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metrics"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DisplayedMetrics"}}]}}]}}]} as unknown as DocumentNode; export const AdSetBreakdownDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AdSetBreakdown"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filter"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PerformanceFilter"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"performance"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"values"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dimensions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"adSet"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"metrics"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DisplayedMetrics"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DisplayedMetrics"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Metrics"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"impression"}},{"kind":"Field","name":{"kind":"Name","value":"click"}},{"kind":"Field","name":{"kind":"Name","value":"siteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"conversion"}},{"kind":"Field","name":{"kind":"Name","value":"viewThroughConversion"}},{"kind":"Field","name":{"kind":"Name","value":"clickThroughConversion"}},{"kind":"Field","name":{"kind":"Name","value":"dismiss"}},{"kind":"Field","name":{"kind":"Name","value":"spendUsd"}},{"kind":"Field","name":{"kind":"Name","value":"upvote"}},{"kind":"Field","name":{"kind":"Name","value":"downvote"}},{"kind":"Field","name":{"kind":"Name","value":"rates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"clickThrough"}},{"kind":"Field","name":{"kind":"Name","value":"clickToConversion"}},{"kind":"Field","name":{"kind":"Name","value":"clickToSiteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"impressionToSiteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"impressionToDismiss"}},{"kind":"Field","name":{"kind":"Name","value":"costPerAcquisition"}}]}}]}}]} as unknown as DocumentNode; export const CreativeBreakdownDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CreativeBreakdown"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filter"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PerformanceFilter"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"performance"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"values"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dimensions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ad"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"creative"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"metrics"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DisplayedMetrics"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DisplayedMetrics"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Metrics"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"impression"}},{"kind":"Field","name":{"kind":"Name","value":"click"}},{"kind":"Field","name":{"kind":"Name","value":"siteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"conversion"}},{"kind":"Field","name":{"kind":"Name","value":"viewThroughConversion"}},{"kind":"Field","name":{"kind":"Name","value":"clickThroughConversion"}},{"kind":"Field","name":{"kind":"Name","value":"dismiss"}},{"kind":"Field","name":{"kind":"Name","value":"spendUsd"}},{"kind":"Field","name":{"kind":"Name","value":"upvote"}},{"kind":"Field","name":{"kind":"Name","value":"downvote"}},{"kind":"Field","name":{"kind":"Name","value":"rates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"clickThrough"}},{"kind":"Field","name":{"kind":"Name","value":"clickToConversion"}},{"kind":"Field","name":{"kind":"Name","value":"clickToSiteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"impressionToSiteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"impressionToDismiss"}},{"kind":"Field","name":{"kind":"Name","value":"costPerAcquisition"}}]}}]}}]} as unknown as DocumentNode; export const OsBreakdownDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"OSBreakdown"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filter"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PerformanceFilter"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"performance"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"values"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dimensions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"os"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metrics"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DisplayedMetrics"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DisplayedMetrics"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Metrics"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"impression"}},{"kind":"Field","name":{"kind":"Name","value":"click"}},{"kind":"Field","name":{"kind":"Name","value":"siteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"conversion"}},{"kind":"Field","name":{"kind":"Name","value":"viewThroughConversion"}},{"kind":"Field","name":{"kind":"Name","value":"clickThroughConversion"}},{"kind":"Field","name":{"kind":"Name","value":"dismiss"}},{"kind":"Field","name":{"kind":"Name","value":"spendUsd"}},{"kind":"Field","name":{"kind":"Name","value":"upvote"}},{"kind":"Field","name":{"kind":"Name","value":"downvote"}},{"kind":"Field","name":{"kind":"Name","value":"rates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"clickThrough"}},{"kind":"Field","name":{"kind":"Name","value":"clickToConversion"}},{"kind":"Field","name":{"kind":"Name","value":"clickToSiteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"impressionToSiteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"impressionToDismiss"}},{"kind":"Field","name":{"kind":"Name","value":"costPerAcquisition"}}]}}]}}]} as unknown as DocumentNode; export const HourlyGraphDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"HourlyGraph"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filter"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PerformanceFilter"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"performance"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"values"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"HourlyValues"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DisplayedMetrics"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Metrics"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"impression"}},{"kind":"Field","name":{"kind":"Name","value":"click"}},{"kind":"Field","name":{"kind":"Name","value":"siteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"conversion"}},{"kind":"Field","name":{"kind":"Name","value":"viewThroughConversion"}},{"kind":"Field","name":{"kind":"Name","value":"clickThroughConversion"}},{"kind":"Field","name":{"kind":"Name","value":"dismiss"}},{"kind":"Field","name":{"kind":"Name","value":"spendUsd"}},{"kind":"Field","name":{"kind":"Name","value":"upvote"}},{"kind":"Field","name":{"kind":"Name","value":"downvote"}},{"kind":"Field","name":{"kind":"Name","value":"rates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"clickThrough"}},{"kind":"Field","name":{"kind":"Name","value":"clickToConversion"}},{"kind":"Field","name":{"kind":"Name","value":"clickToSiteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"impressionToSiteVisit"}},{"kind":"Field","name":{"kind":"Name","value":"impressionToDismiss"}},{"kind":"Field","name":{"kind":"Name","value":"costPerAcquisition"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"HourlyValues"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Performance"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dimensions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hour"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metrics"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DisplayedMetrics"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateCurrentUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCurrentUser"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateCurrentUserInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCurrentUser"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"User"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"User"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"fullName"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"role"}}]}}]} as unknown as DocumentNode; export const LoadCampaignSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"LoadCampaignSummary"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"campaign"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CampaignOverview"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CampaignSummary"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Campaign"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"dailyCap"}},{"kind":"Field","name":{"kind":"Name","value":"priority"}},{"kind":"Field","name":{"kind":"Name","value":"passThroughRate"}},{"kind":"Field","name":{"kind":"Name","value":"pacingOverride"}},{"kind":"Field","name":{"kind":"Name","value":"pacingStrategy"}},{"kind":"Field","name":{"kind":"Name","value":"externalId"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"budget"}},{"kind":"Field","name":{"kind":"Name","value":"paymentType"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"startAt"}},{"kind":"Field","name":{"kind":"Name","value":"endAt"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"dayProportion"}},{"kind":"Field","name":{"kind":"Name","value":"brandedKeywords"}},{"kind":"Field","name":{"kind":"Name","value":"advertiser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CampaignOverview"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Campaign"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CampaignSummary"}},{"kind":"Field","name":{"kind":"Name","value":"adSets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"conversions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"extractExternalId"}}]}}]}}]}}]} as unknown as DocumentNode; export const CreateSearchCampaignLandingPageListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CreateSearchCampaignLandingPageList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"domain"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"country"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"searchProspects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"landingPagesWithStats"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"country"},"value":{"kind":"Variable","name":{"kind":"Name","value":"country"}}},{"kind":"Argument","name":{"kind":"Name","value":"domain"},"value":{"kind":"Variable","name":{"kind":"Name","value":"domain"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SearchProspectsLandingPageList"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SearchProspectsLandingPageList"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SearchLandingPageWithStats"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"rank"}},{"kind":"Field","name":{"kind":"Name","value":"lastSeen"}},{"kind":"Field","name":{"kind":"Name","value":"favicon"}},{"kind":"Field","name":{"kind":"Name","value":"creatives"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"body"}},{"kind":"Field","name":{"kind":"Name","value":"lastSeen"}}]}}]}}]} as unknown as DocumentNode; export const SearchProspectsLandingPageDetailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SearchProspectsLandingPageDetail"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"domain"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"country"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"url"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"searchProspects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"landingPage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"country"},"value":{"kind":"Variable","name":{"kind":"Name","value":"country"}}},{"kind":"Argument","name":{"kind":"Name","value":"domain"},"value":{"kind":"Variable","name":{"kind":"Name","value":"domain"}}},{"kind":"Argument","name":{"kind":"Name","value":"url"},"value":{"kind":"Variable","name":{"kind":"Name","value":"url"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SearchProspectsLandingPageDetail"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SearchProspectsLandingPageDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SearchLandingPage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"queries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/src/graphql/ads-serve.graphql.schema.json b/src/graphql/ads-serve.graphql.schema.json index 46591311..09f77fc1 100644 --- a/src/graphql/ads-serve.graphql.schema.json +++ b/src/graphql/ads-serve.graphql.schema.json @@ -189,30 +189,6 @@ }, "isDeprecated": false, "deprecationReason": null - }, - { - "name": "webhooks", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Webhook", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null } ], "inputFields": null, @@ -987,21 +963,25 @@ }, { "kind": "INPUT_OBJECT", - "name": "AdsManagerUpdateCreativeInput", + "name": "AdsManagerAdSetInput", "description": null, "isOneOf": false, "fields": null, "inputFields": [ { - "name": "id", - "description": null, + "name": "add", + "description": "New Ad Sets to be added to the Campaign, which require price and billing type", "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AdsManagerNewAdSetInput", + "ofType": null + } } }, "defaultValue": null, @@ -1009,36 +989,64 @@ "deprecationReason": null }, { - "name": "name", - "description": null, + "name": "modify", + "description": "Ad Sets that are already part of the Campaign, which require an ID", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AdsManagerUpdateAdSetInput", + "ofType": null + } + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AdsManagerConversionInput", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ { - "name": "payloadInlineContent", + "name": "observationWindow", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "AdsManagerUpdateInlineContentPayloadInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "payloadNotification", + "name": "urlPattern", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "AdsManagerUpdateNotificationPayloadInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, @@ -1051,29 +1059,33 @@ }, { "kind": "INPUT_OBJECT", - "name": "AdsManagerUpdateInlineContentPayloadInput", + "name": "AdsManagerNewAdSetInput", "description": null, "isOneOf": false, "fields": null, "inputFields": [ { - "name": "ctaText", + "name": "billingType", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "description", + "name": "conversion", "description": null, "type": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "AdsManagerConversionInput", "ofType": null }, "defaultValue": null, @@ -1081,19 +1093,27 @@ "deprecationReason": null }, { - "name": "imageUrl", + "name": "creativeIds", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "targetUrl", + "name": "name", "description": null, "type": { "kind": "SCALAR", @@ -1105,60 +1125,60 @@ "deprecationReason": null }, { - "name": "title", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AdsManagerUpdateNotificationPayloadInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ - { - "name": "body", + "name": "osCodes", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "targetUrl", - "description": null, + "name": "price", + "description": "The price in the owning campaign's currency for each single confirmation of the priceType specified. Note therefore that the caller is responsible for dividing cost-per-mille by 1000.", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Numeric", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "title", + "name": "segmentCodes", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, "defaultValue": null, "isDeprecated": false, @@ -1170,27 +1190,27 @@ "possibleTypes": null }, { - "kind": "OBJECT", - "name": "Advertiser", + "kind": "INPUT_OBJECT", + "name": "AdsManagerUpdateAdSetInput", "description": null, - "isOneOf": null, - "fields": [ + "isOneOf": false, + "fields": null, + "inputFields": [ { - "name": "accountManager", + "name": "conversion", "description": null, - "args": [], "type": { - "kind": "OBJECT", - "name": "User", + "kind": "INPUT_OBJECT", + "name": "AdsManagerConversionInput", "ofType": null }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "additionalBillingEmails", + "name": "creativeIds", "description": null, - "args": [], "type": { "kind": "LIST", "name": null, @@ -1204,79 +1224,483 @@ } } }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "agreed", + "name": "id", "description": null, - "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null } }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "billingAddress", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "billingEmail", + "name": "name", "description": null, - "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "campaigns", + "name": "osCodes", "description": null, - "args": [], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Campaign", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "createdAt", + "name": "segmentCodes", "description": null, - "args": [], "type": { - "kind": "NON_NULL", + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AdsManagerUpdateCampaignInput", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "adSets", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "AdsManagerAdSetInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "budget", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "endAt", + "description": null, + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "geoTargetCodes", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "startAt", + "description": null, + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AdsManagerUpdateCreativeInput", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "payloadInlineContent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "AdsManagerUpdateInlineContentPayloadInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "payloadNotification", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "AdsManagerUpdateNotificationPayloadInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AdsManagerUpdateInlineContentPayloadInput", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "ctaText", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "imageUrl", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "targetUrl", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "title", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AdsManagerUpdateNotificationPayloadInput", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "body", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "targetUrl", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "title", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Advertiser", + "description": null, + "isOneOf": null, + "fields": [ + { + "name": "accountManager", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "additionalBillingEmails", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "agreed", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "billingAddress", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Address", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "billingEmail", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "campaigns", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Campaign", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", @@ -4184,26 +4608,6 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null - }, - { - "name": "webhooks", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "createWebhookInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null } ], "interfaces": null, @@ -4213,244 +4617,12 @@ { "kind": "INPUT_OBJECT", "name": "CreateAdSetInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ - { - "name": "ads", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateAdInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "bannedKeywords", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "billingType", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "brandedDesktopPrice", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Numeric", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "brandedMobilePrice", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Numeric", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "campaignId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "conversions", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateConversionInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "externalId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "keywordSimilarity", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "keywords", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "negativeKeywords", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "negativeTriggerUrls", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nonBrandedDesktopPrice", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Numeric", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nonBrandedMobilePrice", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Numeric", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ { - "name": "oses", + "name": "ads", "description": null, "type": { "kind": "LIST", @@ -4460,7 +4632,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CreateOSInput", + "name": "CreateAdInput", "ofType": null } } @@ -4470,15 +4642,19 @@ "deprecationReason": null }, { - "name": "perDay", + "name": "bannedKeywords", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, "defaultValue": null, @@ -4486,14 +4662,14 @@ "deprecationReason": null }, { - "name": "price", - "description": "The price in the owning campaign's currency for each single confirmation of the priceType specified. Note therefore that the caller is responsible for dividing cost-per-mille by 1000.", + "name": "billingType", + "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "Numeric", + "name": "String", "ofType": null } }, @@ -4502,35 +4678,23 @@ "deprecationReason": null }, { - "name": "segments", + "name": "brandedDesktopPrice", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateSegmentInput", - "ofType": null - } - } - } + "kind": "SCALAR", + "name": "Numeric", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "splitTestGroup", + "name": "brandedMobilePrice", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Numeric", "ofType": null }, "defaultValue": null, @@ -4538,11 +4702,11 @@ "deprecationReason": null }, { - "name": "state", + "name": "campaignId", "description": null, "type": { - "kind": "ENUM", - "name": "AdSetState", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null, @@ -4550,7 +4714,7 @@ "deprecationReason": null }, { - "name": "targetingTerms", + "name": "conversions", "description": null, "type": { "kind": "LIST", @@ -4559,8 +4723,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "CreateConversionInput", "ofType": null } } @@ -4570,23 +4734,31 @@ "deprecationReason": null }, { - "name": "totalMax", + "name": "externalId", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "triggerUrls", + "name": "keywordSimilarity", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "keywords", "description": null, "type": { "kind": "LIST", @@ -4604,61 +4776,33 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CreateAddressInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ - { - "name": "city", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null }, { - "name": "country", + "name": "name", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "state", + "name": "negativeKeywords", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, "defaultValue": null, @@ -4666,15 +4810,19 @@ "deprecationReason": null }, { - "name": "street1", + "name": "negativeTriggerUrls", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, "defaultValue": null, @@ -4682,11 +4830,11 @@ "deprecationReason": null }, { - "name": "street2", + "name": "nonBrandedDesktopPrice", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Numeric", "ofType": null }, "defaultValue": null, @@ -4694,59 +4842,31 @@ "deprecationReason": null }, { - "name": "zipcode", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CreateAdvertiserImageInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ - { - "name": "advertiserId", + "name": "nonBrandedMobilePrice", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "Numeric", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "format", + "name": "oses", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "ENUM", - "name": "CampaignFormat", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CreateOSInput", + "ofType": null + } } }, "defaultValue": null, @@ -4754,14 +4874,14 @@ "deprecationReason": null }, { - "name": "imageUrl", + "name": "perDay", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Float", "ofType": null } }, @@ -4770,58 +4890,38 @@ "deprecationReason": null }, { - "name": "name", - "description": null, + "name": "price", + "description": "The price in the owning campaign's currency for each single confirmation of the priceType specified. Note therefore that the caller is responsible for dividing cost-per-mille by 1000.", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Numeric", "ofType": null } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CreateAdvertiserInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ - { - "name": "accountManagerId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null }, { - "name": "additionalBillingEmails", + "name": "segments", "description": null, "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CreateSegmentInput", + "ofType": null + } } } }, @@ -4830,11 +4930,11 @@ "deprecationReason": null }, { - "name": "billingAddress", + "name": "splitTestGroup", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "CreateAddressInput", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null, @@ -4842,11 +4942,11 @@ "deprecationReason": null }, { - "name": "billingEmail", + "name": "state", "description": null, "type": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "AdSetState", "ofType": null }, "defaultValue": null, @@ -4854,7 +4954,7 @@ "deprecationReason": null }, { - "name": "billingModelPrices", + "name": "targetingTerms", "description": null, "type": { "kind": "LIST", @@ -4863,8 +4963,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "AdvertiserPriceInput", + "kind": "SCALAR", + "name": "String", "ofType": null } } @@ -4874,31 +4974,55 @@ "deprecationReason": null }, { - "name": "description", + "name": "totalMax", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "marketingChannel", + "name": "triggerUrls", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CreateAddressInput", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ { - "name": "name", + "name": "city", "description": null, "type": { "kind": "NON_NULL", @@ -4914,43 +5038,55 @@ "deprecationReason": null }, { - "name": "phone", + "name": "country", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "referrer", + "name": "state", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "selfServiceManageCampaign", + "name": "street1", "description": null, "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "state", + "name": "street2", "description": null, "type": { "kind": "SCALAR", @@ -4962,12 +5098,16 @@ "deprecationReason": null }, { - "name": "url", + "name": "zipcode", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, @@ -4980,37 +5120,37 @@ }, { "kind": "INPUT_OBJECT", - "name": "CreateCampaignInput", + "name": "CreateAdvertiserImageInput", "description": null, "isOneOf": false, "fields": null, "inputFields": [ { - "name": "accountManagerId", + "name": "advertiserId", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "adSets", + "name": "format", "description": null, "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateAdSetInput", - "ofType": null - } + "kind": "ENUM", + "name": "CampaignFormat", + "ofType": null } }, "defaultValue": null, @@ -5018,7 +5158,7 @@ "deprecationReason": null }, { - "name": "advertiserId", + "name": "imageUrl", "description": null, "type": { "kind": "NON_NULL", @@ -5034,27 +5174,35 @@ "deprecationReason": null }, { - "name": "bannedKeywords", + "name": "name", "description": null, "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CreateAdvertiserInput", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ { - "name": "brandedKeyword", + "name": "accountManagerId", "description": null, "type": { "kind": "SCALAR", @@ -5066,7 +5214,7 @@ "deprecationReason": null }, { - "name": "brandedKeywords", + "name": "additionalBillingEmails", "description": null, "type": { "kind": "LIST", @@ -5086,43 +5234,23 @@ "deprecationReason": null }, { - "name": "budget", + "name": "billingAddress", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Numeric", - "ofType": null - } + "kind": "INPUT_OBJECT", + "name": "CreateAddressInput", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "currency", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": "\"USD\"", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "dailyBudget", + "name": "billingEmail", "description": null, "type": { "kind": "SCALAR", - "name": "Numeric", + "name": "String", "ofType": null }, "defaultValue": null, @@ -5130,23 +5258,7 @@ "deprecationReason": null }, { - "name": "dailyCap", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Float", - "ofType": null - } - }, - "defaultValue": "0", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "dayPartings", + "name": "billingModelPrices", "description": null, "type": { "kind": "LIST", @@ -5156,7 +5268,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "DayPartingInput", + "name": "AdvertiserPriceInput", "ofType": null } } @@ -5166,11 +5278,11 @@ "deprecationReason": null }, { - "name": "dayProportion", + "name": "description", "description": null, "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null }, "defaultValue": null, @@ -5178,14 +5290,26 @@ "deprecationReason": null }, { - "name": "endAt", + "name": "marketingChannel", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null } }, @@ -5194,7 +5318,7 @@ "deprecationReason": null }, { - "name": "externalId", + "name": "phone", "description": null, "type": { "kind": "SCALAR", @@ -5206,79 +5330,71 @@ "deprecationReason": null }, { - "name": "format", + "name": "referrer", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CampaignFormat", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "geoTargets", + "name": "selfServiceManageCampaign", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "GeocodeInput", - "ofType": null - } - } - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "state", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "pacingStrategy", + "name": "url", "description": null, "type": { - "kind": "ENUM", - "name": "CampaignPacingStrategies", + "kind": "SCALAR", + "name": "String", "ofType": null }, - "defaultValue": "MODEL_V1", + "defaultValue": null, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CreateCampaignInput", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ { - "name": "paymentType", + "name": "accountManagerId", "description": null, "type": { - "kind": "ENUM", - "name": "PaymentType", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null, @@ -5286,19 +5402,27 @@ "deprecationReason": null }, { - "name": "priority", + "name": "adSets", "description": null, "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CreateAdSetInput", + "ofType": null + } + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "source", + "name": "advertiserId", "description": null, "type": { "kind": "NON_NULL", @@ -5314,15 +5438,19 @@ "deprecationReason": null }, { - "name": "startAt", + "name": "bannedKeywords", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, "defaultValue": null, @@ -5330,58 +5458,46 @@ "deprecationReason": null }, { - "name": "state", + "name": "brandedKeyword", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CampaignState", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "type", + "name": "brandedKeywords", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "ENUM", - "name": "CampaignType", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } } }, - "defaultValue": "PAID", + "defaultValue": null, "isDeprecated": false, "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CreateCommentInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ + }, { - "name": "campaignId", + "name": "budget", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Numeric", "ofType": null } }, @@ -5390,7 +5506,7 @@ "deprecationReason": null }, { - "name": "note", + "name": "currency", "description": null, "type": { "kind": "NON_NULL", @@ -5401,28 +5517,16 @@ "ofType": null } }, - "defaultValue": null, + "defaultValue": "\"USD\"", "isDeprecated": false, "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CreateConversionInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ + }, { - "name": "extractExternalId", + "name": "dailyBudget", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "Numeric", "ofType": null }, "defaultValue": null, @@ -5430,7 +5534,7 @@ "deprecationReason": null }, { - "name": "observationWindow", + "name": "dailyCap", "description": null, "type": { "kind": "NON_NULL", @@ -5441,32 +5545,24 @@ "ofType": null } }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "trailingAsteriskNotRequired", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, + "defaultValue": "0", "isDeprecated": false, "deprecationReason": null }, { - "name": "type", + "name": "dayPartings", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DayPartingInput", + "ofType": null + } } }, "defaultValue": null, @@ -5474,42 +5570,26 @@ "deprecationReason": null }, { - "name": "urlPattern", + "name": "dayProportion", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "Float", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CreateInPageCreativeInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ + }, { - "name": "advertiserId", + "name": "endAt", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "DateTime", "ofType": null } }, @@ -5518,11 +5598,11 @@ "deprecationReason": null }, { - "name": "endAt", + "name": "externalId", "description": null, "type": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null }, "defaultValue": null, @@ -5530,14 +5610,14 @@ "deprecationReason": null }, { - "name": "name", + "name": "format", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "CampaignFormat", "ofType": null } }, @@ -5546,15 +5626,23 @@ "deprecationReason": null }, { - "name": "payload", + "name": "geoTargets", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "InPagePayloadInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "GeocodeInput", + "ofType": null + } + } } }, "defaultValue": null, @@ -5562,19 +5650,7 @@ "deprecationReason": null }, { - "name": "startAt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "state", + "name": "name", "description": null, "type": { "kind": "NON_NULL", @@ -5590,51 +5666,35 @@ "deprecationReason": null }, { - "name": "type", + "name": "pacingStrategy", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "CreateTypeInput", + "kind": "ENUM", + "name": "CampaignPacingStrategies", "ofType": null }, - "defaultValue": null, + "defaultValue": "MODEL_V1", "isDeprecated": false, "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CreateNewTabPageCreativeInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ + }, { - "name": "advertiserId", + "name": "paymentType", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "ENUM", + "name": "PaymentType", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "endAt", + "name": "priority", "description": null, "type": { "kind": "SCALAR", - "name": "DateTime", + "name": "Float", "ofType": null }, "defaultValue": null, @@ -5642,7 +5702,7 @@ "deprecationReason": null }, { - "name": "name", + "name": "source", "description": null, "type": { "kind": "NON_NULL", @@ -5658,14 +5718,14 @@ "deprecationReason": null }, { - "name": "payload", + "name": "startAt", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "NewTabPagePayloadInput", + "kind": "SCALAR", + "name": "DateTime", "ofType": null } }, @@ -5673,18 +5733,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "startAt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "state", "description": null, @@ -5692,8 +5740,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "CampaignState", "ofType": null } }, @@ -5705,11 +5753,15 @@ "name": "type", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "CreateTypeInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CampaignType", + "ofType": null + } }, - "defaultValue": null, + "defaultValue": "PAID", "isDeprecated": false, "deprecationReason": null } @@ -5720,13 +5772,13 @@ }, { "kind": "INPUT_OBJECT", - "name": "CreateNotificationCreativeInput", + "name": "CreateCommentInput", "description": null, "isOneOf": false, "fields": null, "inputFields": [ { - "name": "advertiserId", + "name": "campaignId", "description": null, "type": { "kind": "NON_NULL", @@ -5742,19 +5794,7 @@ "deprecationReason": null }, { - "name": "endAt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", + "name": "note", "description": null, "type": { "kind": "NON_NULL", @@ -5768,16 +5808,40 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CreateConversionInput", + "description": null, + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "extractExternalId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null }, { - "name": "payload", + "name": "observationWindow", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "NotificationPayloadInput", + "kind": "SCALAR", + "name": "Float", "ofType": null } }, @@ -5786,11 +5850,11 @@ "deprecationReason": null }, { - "name": "startAt", + "name": "trailingAsteriskNotRequired", "description": null, "type": { "kind": "SCALAR", - "name": "DateTime", + "name": "Boolean", "ofType": null }, "defaultValue": null, @@ -5798,7 +5862,7 @@ "deprecationReason": null }, { - "name": "state", + "name": "type", "description": null, "type": { "kind": "NON_NULL", @@ -5814,12 +5878,16 @@ "deprecationReason": null }, { - "name": "type", + "name": "urlPattern", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "CreateTypeInput", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, @@ -8516,18 +8584,18 @@ "deprecationReason": null }, { - "name": "adsManagerUpdateCreativePayload", + "name": "adsManagerUpdateCampaign", "description": null, "args": [ { - "name": "adsManagerUpdateCreativeInput", + "name": "adsManagerUpdateCampaignInput", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "AdsManagerUpdateCreativeInput", + "name": "AdsManagerUpdateCampaignInput", "ofType": null } }, @@ -8541,7 +8609,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Creative", + "name": "Campaign", "ofType": null } }, @@ -8549,7 +8617,7 @@ "deprecationReason": null }, { - "name": "adsManagerUpdateCreativeState", + "name": "adsManagerUpdateCampaignState", "description": null, "args": [ { @@ -8575,8 +8643,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "CampaignState", "ofType": null } }, @@ -8590,7 +8658,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Creative", + "name": "Campaign", "ofType": null } }, @@ -8598,18 +8666,18 @@ "deprecationReason": null }, { - "name": "approveAdvertiser", + "name": "adsManagerUpdateCreativePayload", "description": null, "args": [ { - "name": "id", + "name": "adsManagerUpdateCreativeInput", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "AdsManagerUpdateCreativeInput", "ofType": null } }, @@ -8623,7 +8691,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Advertiser", + "name": "Creative", "ofType": null } }, @@ -8631,7 +8699,7 @@ "deprecationReason": null }, { - "name": "approveAdvertiserRegistration", + "name": "adsManagerUpdateCreativeState", "description": null, "args": [ { @@ -8649,33 +8717,16 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Advertiser", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "approveCampaign", - "description": null, - "args": [ + }, { - "name": "approveCampaignInput", + "name": "state", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "ApproveCampaignInput", + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -8689,7 +8740,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Campaign", + "name": "Creative", "ofType": null } }, @@ -8697,18 +8748,18 @@ "deprecationReason": null }, { - "name": "createAdSet", + "name": "approveAdvertiser", "description": null, "args": [ { - "name": "createAdSetInput", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateAdSetInput", + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -8722,7 +8773,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "AdSet", + "name": "Advertiser", "ofType": null } }, @@ -8730,18 +8781,18 @@ "deprecationReason": null }, { - "name": "createAdvertiser", + "name": "approveAdvertiserRegistration", "description": null, "args": [ { - "name": "createAdvertiserInput", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateAdvertiserInput", + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -8763,18 +8814,18 @@ "deprecationReason": null }, { - "name": "createAdvertiserImage", + "name": "approveCampaign", "description": null, "args": [ { - "name": "createImageInput", + "name": "approveCampaignInput", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CreateAdvertiserImageInput", + "name": "ApproveCampaignInput", "ofType": null } }, @@ -8788,7 +8839,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "AdvertiserImage", + "name": "Campaign", "ofType": null } }, @@ -8796,18 +8847,18 @@ "deprecationReason": null }, { - "name": "createCampaign", + "name": "createAdSet", "description": null, "args": [ { - "name": "createCampaignInput", + "name": "createAdSetInput", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CreateCampaignInput", + "name": "CreateAdSetInput", "ofType": null } }, @@ -8821,7 +8872,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Campaign", + "name": "AdSet", "ofType": null } }, @@ -8829,18 +8880,18 @@ "deprecationReason": null }, { - "name": "createComment", + "name": "createAdvertiser", "description": null, "args": [ { - "name": "createCommentInput", + "name": "createAdvertiserInput", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CreateCommentInput", + "name": "CreateAdvertiserInput", "ofType": null } }, @@ -8854,7 +8905,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "CampaignComment", + "name": "Advertiser", "ofType": null } }, @@ -8862,18 +8913,18 @@ "deprecationReason": null }, { - "name": "createCreative", + "name": "createAdvertiserImage", "description": null, "args": [ { - "name": "creative", + "name": "createImageInput", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CreativeInput", + "name": "CreateAdvertiserImageInput", "ofType": null } }, @@ -8887,7 +8938,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Creative", + "name": "AdvertiserImage", "ofType": null } }, @@ -8895,18 +8946,18 @@ "deprecationReason": null }, { - "name": "createInPageCreative", + "name": "createCampaign", "description": null, "args": [ { - "name": "createInPageCreativeInput", + "name": "createCampaignInput", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CreateInPageCreativeInput", + "name": "CreateCampaignInput", "ofType": null } }, @@ -8920,26 +8971,26 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Creative", + "name": "Campaign", "ofType": null } }, - "isDeprecated": true, - "deprecationReason": "use createCreative instead" + "isDeprecated": false, + "deprecationReason": null }, { - "name": "createNewTabPageCreative", + "name": "createComment", "description": null, "args": [ { - "name": "createNewTabPageCreativeInput", + "name": "createCommentInput", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CreateNewTabPageCreativeInput", + "name": "CreateCommentInput", "ofType": null } }, @@ -8953,26 +9004,26 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Creative", + "name": "CampaignComment", "ofType": null } }, - "isDeprecated": true, - "deprecationReason": "use createCreative instead" + "isDeprecated": false, + "deprecationReason": null }, { - "name": "createNotificationCreative", + "name": "createCreative", "description": null, "args": [ { - "name": "createNotificationCreativeInput", + "name": "creative", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CreateNotificationCreativeInput", + "name": "CreativeInput", "ofType": null } }, @@ -9506,39 +9557,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "updateNotificationCreative", - "description": null, - "args": [ - { - "name": "updateNotificationCreativeInput", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpdateNotificationCreativeInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Creative", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "updateSelfServeAdvertiser", "description": null, @@ -13688,26 +13706,6 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null - }, - { - "name": "webhooks", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "createWebhookInput", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null } ], "interfaces": null, @@ -14938,114 +14936,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "INPUT_OBJECT", - "name": "UpdateNotificationCreativeInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ - { - "name": "advertiserId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "creativeId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endAt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "payload", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "NotificationPayloadInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startAt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "state", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "CreateTypeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", "name": "UpdateOSesInput", @@ -15518,50 +15408,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "Webhook", - "description": null, - "isOneOf": null, - "fields": [ - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "__Directive", @@ -16488,50 +16334,6 @@ } ], "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "createWebhookInput", - "description": null, - "isOneOf": false, - "fields": null, - "inputFields": [ - { - "name": "type", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null } ], "directives": [ diff --git a/src/graphql/user.graphql b/src/graphql/user.graphql index eef6a38f..e220ebed 100644 --- a/src/graphql/user.graphql +++ b/src/graphql/user.graphql @@ -10,9 +10,3 @@ query LoadUser($id: String!) { ...User } } - -mutation UpdateUser($input: UpdateUserInput!) { - updateUser(updateUserInput: $input) { - ...User - } -} diff --git a/src/user/settings/UserForm.tsx b/src/user/settings/UserForm.tsx index 3098186b..91617696 100644 --- a/src/user/settings/UserForm.tsx +++ b/src/user/settings/UserForm.tsx @@ -9,9 +9,17 @@ import { FormikSubmitButton } from "@/form/FormikButton"; import { useTrackMatomoEvent } from "@/hooks/useTrackWithMatomo"; import { msg, Trans } from "@lingui/macro"; import { useLingui } from "@lingui/react"; -import { UpdateUserDocument } from "@/graphql-client/graphql"; import { useMutation } from "@apollo/client"; import { Snackbar, Stack } from "@mui/material"; +import { graphql } from "@/graphql-client"; + +const UpdateCurrentUser = graphql(` + mutation UpdateCurrentUser($input: UpdateCurrentUserInput!) { + updateCurrentUser(input: $input) { + ...User + } + } +`); interface UserFormValues { fullName: string; @@ -32,10 +40,10 @@ export function UserForm() { return ; } - const [updateUser] = useMutation(UpdateUserDocument, { + const [updateUser] = useMutation(UpdateCurrentUser, { onCompleted(user) { trackMatomoEvent("user", "update"); - setInitialVals(user.updateUser); + setInitialVals(user.updateCurrentUser); }, onError(err) { setErrorMessage(Failed to update profile: {err.message}); @@ -52,7 +60,6 @@ export function UserForm() { updateUser({ variables: { input: { - id: user.userId, fullName: v.fullName, password: v.password, },