Fatal error: Uncaught Google\ApiCore\ApiException: {
"message": "Request contains an invalid argument.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "google.ads.googleads.v9.errors.googleadsfailure-bin",
"data": "<Unknown Binary Data>"
},
{
"@type": "grpc-status-details-bin",
"data": "<Unknown Binary Data>"
},
{
"@type": "request-id",
"data": "c1Zuc8POiCgOfbm3I9Rt7A"
}
]
}
Do you have an idea to help me to fix this problem ?
Thanks for your help
Best
Eric
SELECT ad_group_ad.ad.id, ad_group_ad.ad.name, ad_group.id, campaign.id, segments.date, metrics.cost_micros, metrics.impressions, metrics.video_views, metrics.clicks FROM ad_group_ad WHERE segments.date = '2022-12-06' ORDER BY ad_group_ad.ad.id LIMIT 1000
PHP Fatal error: Uncaught Google\ApiCore\ApiException: {
"message": "Request contains an invalid argument.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "google.ads.googleads.v9.errors.googleadsfailure-bin",
"data": "<Unknown Binary Data>"
},
{
"@type": "grpc-status-details-bin",
"data": "<Unknown Binary Data>"
},
{
"@type": "request-id",
"data": "WV2giKv9zrdNV6F4cxWRCA"
}
]
}
Hi Eric,
Thanks for reaching out to the Google Ads API Forum.
I can see that you are trying to pull the reports using Google Ads API v9 version. Kindly note that you may receive the error message "Version v9 is deprecated. Requests to this version will be blocked." as V9 is sunset already. Also, note that this sunset of Google Ads API v9 was announced in this blog post. However, you may please see this guide as it contains the details on how to upgrade to the newest version of the Google Ads API. I highly recommend you to migrate to the latest version as soon as possible. You may also refer to this Deprecation guide for the future sunset dates. Let us know if you have any questions on the migration and we continue to assist you further.
Regards,
|
||||||