Hi,
I am unable to fetch the ad_source from Admob API
API works fine if I remove this field... but it is listed in the documentation. please help
below is my error code and request:
"code": 400,
"message": "Invalid value at 'report_spec.dimensions[0]' (
type.googleapis.com/google.ads.admob.v1.NetworkReportSpec.Dimension), \"AD_SOURCE\""
request = {
"report_spec": {
"date_range": {
"start_date": {"year": 2024, "month": 8, "day": 1},
"end_date": {"year": 2024, "month": 8, "day": 1}
},
"dimensions": ["DATE","AD_SOURCE", "APP", "COUNTRY", "PLATFORM","AD_UNIT","FORMAT"],
"metrics": ["ESTIMATED_EARNINGS" , "CLICKS", "IMPRESSIONS", "AD_REQUESTS","MATCHED_REQUESTS"],
"localization_settings": {"currency_code": "USD", "language_code": "en-US"},
"dimension_filters" : [
{
'dimension': 'COUNTRY',
'matches_any': {
'values': ['US']
}
}
]
}}
thanks
best Regards
zy