Hi, Thank you for your response

I'm getting error when i try to call Rest Api :- 
https://googleads.googleapis.com/v16/customers/{customer.id}/googleAds:searchStream

Request Body :- "SELECT click_view.gclid, campaign.id FROM click_view WHERE 
segments.date = '2023-12-10' AND campaign.id = {my_campaign_id}"

Response :- {
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 
"type.googleapis.com/google.ads.googleads.v16.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"requestError": "UNKNOWN"
},
"message": "The requested date is too old. It cannot be older than 90 days."
}
],
"requestId": "6p9T_bHXo7cIp1O-gBfIeg"
}
]
}
}

On Thursday 16 May 2024 at 22:03:11 UTC+5:30 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> Please refer to this Rest API endpoint : 
> https://developers.google.com/google-ads/api/rest/reference/rest/v16/customers.googleAds/searchStream
>
> Also, kindly try the below provided query to get the GCLID using campaign 
> id.
>
> Query : "SELECT click_view.gclid, campaign.id FROM click_view WHERE 
> segments.date = '2024-05-16' AND campaign.id = 123456789"
>
> You may use this Google Ads Query Builder 
> <https://developers.google.com/google-ads/api/fields/v16/click_view_query_builder>
>  
> to build your own query with the click_view 
> <https://developers.google.com/google-ads/api/fields/v16/click_view> 
> resource.
>
> Hope this helps. If you have any more queries, please feel free to get 
> back to us.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02tJ01J:ref" (ADR-00235302)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fb326233-17dc-40bf-ba5a-bee7b4307364n%40googlegroups.com.
  • Fi... Bhavya Ardeshana
    • ... bhavya dev
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... bhavya dev
        • ... bhavya dev
          • ... D. H.
          • ... D. H.
            • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... bhavya dev

Reply via email to