GenerateHistoricalMetrics for KeywordPlan(Campaigns) with multiple Geotargets

72 views
Skip to first unread message

Lasse Bonner

unread,
Feb 11, 2022, 3:25:04 AM2/11/22
to Google Ads API and AdWords API Forum
Hello, 

I have a question regarding the Google Ads API. When I try to execute GenerateHistoricalMetrics for KeywordPlan(Campaigns) with multiple Geotargets only one result is returned. 
Is this result the average of the values in the different Geotargets? If so, is there a way to get the results from each Geotarget without creating a new KeywordPlan with another location. 

Looking forward to hear from you,

Best regards,
Lasse Bonner

Team Data PerformicsDE

unread,
Sep 29, 2022, 6:45:54 AM9/29/22
to Google Ads API and AdWords API Forum
I have a similar problem.
 When I make this Request:


I get the results for germany. I changed location in the Plan but I see no changes. 

I have tried to change the Body the Request but I get an error. 

{
    "error": {
        "code": 400,
        "message": "Invalid JSON payload received. Unknown name \"customerId\": Cannot find field.\nInvalid JSON payload received. Unknown name \"language\": Cannot find field.\nInvalid JSON payload received. Unknown name \"geoTargetConstants\": Cannot find field.\nInvalid JSON payload received. Unknown name \"keywordPlanNetwork\": Cannot find field.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": "type.googleapis.com/google.rpc.BadRequest",
                "fieldViolations": [
                    {
                        "description": "Invalid JSON payload received. Unknown name \"customerId\": Cannot find field."
                    },
                    {
                        "description": "Invalid JSON payload received. Unknown name \"language\": Cannot find field."
                    },
                    {
                        "description": "Invalid JSON payload received. Unknown name \"geoTargetConstants\": Cannot find field."
                    },
                    {
                        "description": "Invalid JSON payload received. Unknown name \"keywordPlanNetwork\": Cannot find field."
                    }
                ]
            }
        ]
    }
}


=> Do you know any way to specify the location or show the data at global level?

Google Ads API Forum Advisor

unread,
Sep 29, 2022, 10:21:28 AM9/29/22
to pfx....@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. Can you please provide us with the complete request and response logs so we can see the full context of the issue?

Thanks,

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2eujED:ref
Reply all
Reply to author
Forward
0 new messages