admob.accounts.adSources.adapters.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.adSources.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.adUnitMappings.batchCreate

valid {
    input.Body.requests[_].adUnitMapping.adUnitConfigurations.STRING == STRING
    input.Body.requests[_].adUnitMapping.adapterId == STRING
    input.Body.requests[_].adUnitMapping.displayName == STRING
    input.Body.requests[_].adUnitMapping.name == STRING
    input.Body.requests[_].parent == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.adUnits.adUnitMappings.create

valid {
    input.Body.adUnitConfigurations.STRING == STRING
    input.Body.adapterId == STRING
    input.Body.displayName == STRING
    input.Body.name == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.adUnits.adUnitMappings.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.filter == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.adUnits.create

valid {
    input.Body.adFormat == STRING
    input.Body.adTypes[_] == STRING
    input.Body.adUnitId == STRING
    input.Body.appId == STRING
    input.Body.displayName == STRING
    input.Body.name == STRING
    input.Body.rewardSettings.unitAmount == STRING
    input.Body.rewardSettings.unitType == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.adUnits.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.apps.create

enum_AppLinkedAppInfoAndroidAppStores := [ "ANDROID_APP_STORE_UNSPECIFIED", "GOOGLE_PLAY_APP_STORE", "AMAZON_APP_STORE", "OPPO_APP_STORE", "SAMSUNG_APP_STORE", "VIVO_APP_STORE", "XIAOMI_APP_STORE" ]

valid {
    input.Body.appId == STRING
    input.Body.linkedAppInfo.androidAppStores[_] == enum_AppLinkedAppInfoAndroidAppStores[_]
    input.Body.linkedAppInfo.appStoreId == STRING
    input.Body.manualAppInfo.displayName == STRING
    input.Body.name == STRING
    input.Body.platform == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.apps.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.campaignReport.generate

enum_CampaignReportSpecDimensions := [ "DIMENSION_UNSPECIFIED", "DATE", "CAMPAIGN_ID", "CAMPAIGN_NAME", "AD_ID", "AD_NAME", "PLACEMENT_ID", "PLACEMENT_NAME", "PLACEMENT_PLATFORM", "COUNTRY", "FORMAT" ]
enum_CampaignReportSpecMetrics := [ "METRIC_UNSPECIFIED", "IMPRESSIONS", "CLICKS", "CLICK_THROUGH_RATE", "INSTALLS", "ESTIMATED_COST", "AVERAGE_CPI", "INTERACTIONS" ]

valid {
    input.Body.reportSpec.dateRange.endDate.day == INTEGER
    input.Body.reportSpec.dateRange.endDate.month == INTEGER
    input.Body.reportSpec.dateRange.endDate.year == INTEGER
    input.Body.reportSpec.dateRange.startDate.day == INTEGER
    input.Body.reportSpec.dateRange.startDate.month == INTEGER
    input.Body.reportSpec.dateRange.startDate.year == INTEGER
    input.Body.reportSpec.dimensions[_] == enum_CampaignReportSpecDimensions[_]
    input.Body.reportSpec.languageCode == STRING
    input.Body.reportSpec.metrics[_] == enum_CampaignReportSpecMetrics[_]
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.get

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.list

valid {
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.mediationGroups.create

enum_MediationGroupMediationGroupLineCpmMode := [ "CPM_MODE_UNSPECIFIED", "LIVE", "MANUAL", "ANO" ]
enum_MediationGroupMediationGroupLineState := [ "STATE_UNSPECIFIED", "ENABLED", "DISABLED", "REMOVED" ]
enum_MediationGroupState := [ "STATE_UNSPECIFIED", "ENABLED", "DISABLED" ]
enum_MediationGroupTargetingIdfaTargeting := [ "IDFA_TARGETING_UNSPECIFIED", "ALL", "AVAILABLE", "NOT_AVAILABLE" ]

valid {
    input.Body.displayName == STRING
    input.Body.mediationGroupId == STRING
    input.Body.mediationGroupLines.STRING.adSourceId == STRING
    input.Body.mediationGroupLines.STRING.adUnitMappings.STRING == STRING
    input.Body.mediationGroupLines.STRING.cpmMicros == STRING
    input.Body.mediationGroupLines.STRING.cpmMode == enum_MediationGroupMediationGroupLineCpmMode[_]
    input.Body.mediationGroupLines.STRING.displayName == STRING
    input.Body.mediationGroupLines.STRING.id == STRING
    input.Body.mediationGroupLines.STRING.state == enum_MediationGroupMediationGroupLineState[_]
    input.Body.name == STRING
    input.Body.state == enum_MediationGroupState[_]
    input.Body.targeting.adUnitIds[_] == STRING
    input.Body.targeting.excludedRegionCodes[_] == STRING
    input.Body.targeting.format == STRING
    input.Body.targeting.idfaTargeting == enum_MediationGroupTargetingIdfaTargeting[_]
    input.Body.targeting.platform == STRING
    input.Body.targeting.targetedRegionCodes[_] == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.mediationGroups.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.filter == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.mediationGroups.mediationAbExperiments.create

enum_MediationGroupMediationGroupLineCpmMode := [ "CPM_MODE_UNSPECIFIED", "LIVE", "MANUAL", "ANO" ]
enum_MediationGroupMediationGroupLineState := [ "STATE_UNSPECIFIED", "ENABLED", "DISABLED", "REMOVED" ]

valid {
    input.Body.displayName == STRING
    input.Body.name == STRING
    input.Body.treatmentMediationLines[_].mediationGroupLine.adSourceId == STRING
    input.Body.treatmentMediationLines[_].mediationGroupLine.adUnitMappings.STRING == STRING
    input.Body.treatmentMediationLines[_].mediationGroupLine.cpmMicros == STRING
    input.Body.treatmentMediationLines[_].mediationGroupLine.cpmMode == enum_MediationGroupMediationGroupLineCpmMode[_]
    input.Body.treatmentMediationLines[_].mediationGroupLine.displayName == STRING
    input.Body.treatmentMediationLines[_].mediationGroupLine.id == STRING
    input.Body.treatmentMediationLines[_].mediationGroupLine.state == enum_MediationGroupMediationGroupLineState[_]
    input.Body.treatmentTrafficPercentage == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.mediationGroups.mediationAbExperiments.stop

enum_StopMediationAbExperimentRequestVariantChoice := [ "VARIANT_CHOICE_UNSPECIFIED", "VARIANT_CHOICE_A", "VARIANT_CHOICE_B" ]

valid {
    input.Body.variantChoice == enum_StopMediationAbExperimentRequestVariantChoice[_]
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.mediationGroups.patch

enum_MediationGroupMediationGroupLineCpmMode := [ "CPM_MODE_UNSPECIFIED", "LIVE", "MANUAL", "ANO" ]
enum_MediationGroupMediationGroupLineState := [ "STATE_UNSPECIFIED", "ENABLED", "DISABLED", "REMOVED" ]
enum_MediationGroupState := [ "STATE_UNSPECIFIED", "ENABLED", "DISABLED" ]
enum_MediationGroupTargetingIdfaTargeting := [ "IDFA_TARGETING_UNSPECIFIED", "ALL", "AVAILABLE", "NOT_AVAILABLE" ]

valid {
    input.Body.displayName == STRING
    input.Body.mediationGroupId == STRING
    input.Body.mediationGroupLines.STRING.adSourceId == STRING
    input.Body.mediationGroupLines.STRING.adUnitMappings.STRING == STRING
    input.Body.mediationGroupLines.STRING.cpmMicros == STRING
    input.Body.mediationGroupLines.STRING.cpmMode == enum_MediationGroupMediationGroupLineCpmMode[_]
    input.Body.mediationGroupLines.STRING.displayName == STRING
    input.Body.mediationGroupLines.STRING.id == STRING
    input.Body.mediationGroupLines.STRING.state == enum_MediationGroupMediationGroupLineState[_]
    input.Body.name == STRING
    input.Body.state == enum_MediationGroupState[_]
    input.Body.targeting.adUnitIds[_] == STRING
    input.Body.targeting.excludedRegionCodes[_] == STRING
    input.Body.targeting.format == STRING
    input.Body.targeting.idfaTargeting == enum_MediationGroupTargetingIdfaTargeting[_]
    input.Body.targeting.platform == STRING
    input.Body.targeting.targetedRegionCodes[_] == STRING
    input.ReqMap.name == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.mediationReport.generate

enum_MediationReportSpecDimensionFilterDimension := [ "DIMENSION_UNSPECIFIED", "DATE", "MONTH", "WEEK", "AD_SOURCE", "AD_SOURCE_INSTANCE", "AD_UNIT", "APP", "MEDIATION_GROUP", "COUNTRY", "FORMAT", "PLATFORM", "MOBILE_OS_VERSION", "GMA_SDK_VERSION", "APP_VERSION_NAME", "SERVING_RESTRICTION" ]
enum_MediationReportSpecDimensions := [ "DIMENSION_UNSPECIFIED", "DATE", "MONTH", "WEEK", "AD_SOURCE", "AD_SOURCE_INSTANCE", "AD_UNIT", "APP", "MEDIATION_GROUP", "COUNTRY", "FORMAT", "PLATFORM", "MOBILE_OS_VERSION", "GMA_SDK_VERSION", "APP_VERSION_NAME", "SERVING_RESTRICTION" ]
enum_MediationReportSpecMetrics := [ "METRIC_UNSPECIFIED", "AD_REQUESTS", "CLICKS", "ESTIMATED_EARNINGS", "IMPRESSIONS", "IMPRESSION_CTR", "MATCHED_REQUESTS", "MATCH_RATE", "OBSERVED_ECPM" ]
enum_MediationReportSpecSortConditionDimension := [ "DIMENSION_UNSPECIFIED", "DATE", "MONTH", "WEEK", "AD_SOURCE", "AD_SOURCE_INSTANCE", "AD_UNIT", "APP", "MEDIATION_GROUP", "COUNTRY", "FORMAT", "PLATFORM", "MOBILE_OS_VERSION", "GMA_SDK_VERSION", "APP_VERSION_NAME", "SERVING_RESTRICTION" ]
enum_MediationReportSpecSortConditionMetric := [ "METRIC_UNSPECIFIED", "AD_REQUESTS", "CLICKS", "ESTIMATED_EARNINGS", "IMPRESSIONS", "IMPRESSION_CTR", "MATCHED_REQUESTS", "MATCH_RATE", "OBSERVED_ECPM" ]
enum_MediationReportSpecSortConditionOrder := [ "SORT_ORDER_UNSPECIFIED", "ASCENDING", "DESCENDING" ]

valid {
    input.Body.reportSpec.dateRange.endDate.day == INTEGER
    input.Body.reportSpec.dateRange.endDate.month == INTEGER
    input.Body.reportSpec.dateRange.endDate.year == INTEGER
    input.Body.reportSpec.dateRange.startDate.day == INTEGER
    input.Body.reportSpec.dateRange.startDate.month == INTEGER
    input.Body.reportSpec.dateRange.startDate.year == INTEGER
    input.Body.reportSpec.dimensionFilters[_].dimension == enum_MediationReportSpecDimensionFilterDimension[_]
    input.Body.reportSpec.dimensionFilters[_].matchesAny.values[_] == STRING
    input.Body.reportSpec.dimensions[_] == enum_MediationReportSpecDimensions[_]
    input.Body.reportSpec.localizationSettings.currencyCode == STRING
    input.Body.reportSpec.localizationSettings.languageCode == STRING
    input.Body.reportSpec.maxReportRows == INTEGER
    input.Body.reportSpec.metrics[_] == enum_MediationReportSpecMetrics[_]
    input.Body.reportSpec.sortConditions[_].dimension == enum_MediationReportSpecSortConditionDimension[_]
    input.Body.reportSpec.sortConditions[_].metric == enum_MediationReportSpecSortConditionMetric[_]
    input.Body.reportSpec.sortConditions[_].order == enum_MediationReportSpecSortConditionOrder[_]
    input.Body.reportSpec.timeZone == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

admob.accounts.networkReport.generate

enum_NetworkReportSpecDimensionFilterDimension := [ "DIMENSION_UNSPECIFIED", "DATE", "MONTH", "WEEK", "AD_UNIT", "APP", "AD_TYPE", "COUNTRY", "FORMAT", "PLATFORM", "MOBILE_OS_VERSION", "GMA_SDK_VERSION", "APP_VERSION_NAME", "SERVING_RESTRICTION" ]
enum_NetworkReportSpecDimensions := [ "DIMENSION_UNSPECIFIED", "DATE", "MONTH", "WEEK", "AD_UNIT", "APP", "AD_TYPE", "COUNTRY", "FORMAT", "PLATFORM", "MOBILE_OS_VERSION", "GMA_SDK_VERSION", "APP_VERSION_NAME", "SERVING_RESTRICTION" ]
enum_NetworkReportSpecMetrics := [ "METRIC_UNSPECIFIED", "AD_REQUESTS", "CLICKS", "ESTIMATED_EARNINGS", "IMPRESSIONS", "IMPRESSION_CTR", "IMPRESSION_RPM", "MATCHED_REQUESTS", "MATCH_RATE", "SHOW_RATE" ]
enum_NetworkReportSpecSortConditionDimension := [ "DIMENSION_UNSPECIFIED", "DATE", "MONTH", "WEEK", "AD_UNIT", "APP", "AD_TYPE", "COUNTRY", "FORMAT", "PLATFORM", "MOBILE_OS_VERSION", "GMA_SDK_VERSION", "APP_VERSION_NAME", "SERVING_RESTRICTION" ]
enum_NetworkReportSpecSortConditionMetric := [ "METRIC_UNSPECIFIED", "AD_REQUESTS", "CLICKS", "ESTIMATED_EARNINGS", "IMPRESSIONS", "IMPRESSION_CTR", "IMPRESSION_RPM", "MATCHED_REQUESTS", "MATCH_RATE", "SHOW_RATE" ]
enum_NetworkReportSpecSortConditionOrder := [ "SORT_ORDER_UNSPECIFIED", "ASCENDING", "DESCENDING" ]

valid {
    input.Body.reportSpec.dateRange.endDate.day == INTEGER
    input.Body.reportSpec.dateRange.endDate.month == INTEGER
    input.Body.reportSpec.dateRange.endDate.year == INTEGER
    input.Body.reportSpec.dateRange.startDate.day == INTEGER
    input.Body.reportSpec.dateRange.startDate.month == INTEGER
    input.Body.reportSpec.dateRange.startDate.year == INTEGER
    input.Body.reportSpec.dimensionFilters[_].dimension == enum_NetworkReportSpecDimensionFilterDimension[_]
    input.Body.reportSpec.dimensionFilters[_].matchesAny.values[_] == STRING
    input.Body.reportSpec.dimensions[_] == enum_NetworkReportSpecDimensions[_]
    input.Body.reportSpec.localizationSettings.currencyCode == STRING
    input.Body.reportSpec.localizationSettings.languageCode == STRING
    input.Body.reportSpec.maxReportRows == INTEGER
    input.Body.reportSpec.metrics[_] == enum_NetworkReportSpecMetrics[_]
    input.Body.reportSpec.sortConditions[_].dimension == enum_NetworkReportSpecSortConditionDimension[_]
    input.Body.reportSpec.sortConditions[_].metric == enum_NetworkReportSpecSortConditionMetric[_]
    input.Body.reportSpec.sortConditions[_].order == enum_NetworkReportSpecSortConditionOrder[_]
    input.Body.reportSpec.timeZone == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}