Posts tagged with google-ads-api

I am using Google Ads REST API to pull Ads data. I am not using client library.

One question, how do you programatically check current API usage when calling requests, so you can stop and wait before continuing? Other APIs like Facebook Marketing API has a header in the result that tells you how much requests you have left, so I could stop and wait. Is there a similar info on Google Ads REST API?

Thank you for reading this.

I'm querying Google Ads Api via google/apiclient:2.0 in PHP using this GAQL:

SELECT asset.final_urls, asset.name, asset.type, asset.id FROM ad_group_ad_asset_view WHERE segments.date = '$date' 

But all the type YOUTUBE_VIDEO result had an empty asset.name. When I query from the hub, the Asset name is not empty. What should I do to get the right asset name for YOUTUBE_VIDEO?