Assets data by customer id : Google-ads-api PHP

26 views
Skip to first unread message

Sourabh wadhwa

unread,
Apr 26, 2023, 11:45:11 PM4/26/23
to Google Ads API and AdWords API Forum
   $googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();
        $query = "SELECT " .
            " asset.id,  " .
            " asset.type,  " .
            " asset.name,  " .
            " asset.resource_name,  " .
            " asset.policy_summary.approval_status  " .
            " FROM asset WHERE customer.id = " . $customerId;

        $response =  $googleAdsServiceClient->search($customerId, $query, ['pageSize' => 5]);
        $finalJson = array();
        foreach ($response->iterateAllElements() as $googleAdsRow) {

everytime response is "message": "Maximum execution time of 60 seconds exceeded",

Google Ads API Forum Advisor

unread,
Apr 27, 2023, 4:48:47 AM4/27/23
to sor...@gmail.com, adwor...@googlegroups.com
Hi Sourabh,

Thank you for reaching out to the Google Ads API support team. I hope that you are doing well today.

I can see that you encountered an error message "Maximum execution time of 60 seconds exceeded". To further investigate this on our end, complete request and response logs with request ID and request header generated on your end? You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com. If you haven't enabled the logging yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link https://developers.google.com/google-ads/api/docs/client-libs?hl=en.

Reference links:
Kind regards,
Google Logo Google Ads API Team
​​​​​​​

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