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've recently been trying to get all messages sent and received by a Whatsapp Business account. At the moment im using the MessageBird API in order to do this, but as soon as I add the phone number in Facebook Whatsapp Manager im not able to use the number on the Whatsapp Business App. (Phonenumber is invalid)

What am I doing wrong? All I want to do is:

  • Use the phonenumber in the WA Business App to send and receive messages.
  • Use the phonenumber in the MessageBird API to get a list of conversations and all messages sent and received in this conversation.

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?