unable to fetch AD_SOURCE

62 views
Skip to first unread message

Zeyuan Li

unread,
Aug 20, 2024, 5:55:02 PM8/20/24
to AdMob API Developer Forum
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

Lin Yang

unread,
Aug 20, 2024, 5:56:35 PM8/20/24
to AdMob API Developer Forum
Hi, AdMob Network reporting API is limited to AdMob Network only. For ad source level breakdown, please use the AdMob Mediation reporting API: https://developers.google.com/admob/api/reference/rest/v1/accounts.mediationReport.
Reply all
Reply to author
Forward
0 new messages