Hi,
Debug info

[2021-11-23T15:03:12.710891+03:00] google-ads.NOTICE: Request
-------
Method Name: /google.ads.googleads.v9.services.GoogleAdsService/SearchStream
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.3 gccl\/12.1.0 gapic\/12.1.0 gax\/1.10.0 
grpc\/1.41.0 rest\/1.10.0",
"x-goog-request-params": "customer_id=2472654488",
"developer-token": "REDACTED",
"login-customer-id": "2888919473"
}
Request: 
{"customerId":"2472654488","query":"SELECT ad_group_asset.ad_group, 
ad_group_asset.asset FROM ad_group_asset WHERE ad_group_asset.ad_group IN 
(15059727331)"}

Response
-------
Headers: {
"request-id": "6CO91twBe1oB4igwFMBdZA",
"date": "Tue, 23 Nov 2021 12:03:10 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; 
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; 
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; 
v=\"46,43\""
}

Fault
-------
Status code: 3
Details: Request contains an invalid argument.
Failure: 
{"errors":[{"errorCode":{"requestError":"RESOURCE_NAME_MALFORMED"},"message":"Resource
 
name '15059727331' is malformed: expected 
'customers\/{customer_id}\/adGroups\/{ad_group_id}'."}],"requestId":"6CO91twBe1oB4igwFMBdZA"}
  

My code

$fields = [
'ad_group_asset.ad_group',
'ad_group_asset.asset',
];

$where[] = 'ad_group_asset.ad_group IN (' . join(',', $cIds) . ')';

$elements = $client->getAllElements($customerId, 'ad_group_asset', $fields, 
$where);

foreach ($elements as $element) {
$asset = $element->getAsset();
}

четверг, 18 ноября 2021 г. в 01:02:42 UTC+3, adsapi: 

> Hi Денис,
>
> Could you privately send us a request and response log of API 
> communication that returns nothing combined with a screenshot of the assets 
> attached at ad group level? 
>
> The request and response appears similar to the JSON Mappings in our REST 
> documentation 
> <https://developers.google.com/google-ads/api/rest/design/json-mappings?hl=en>.
>  
> Our client libraries have loggers with logging instructions, to see these 
> instructions you can click on the client library you use in the sidebar of 
> our client library guide 
> <https://developers.google.com/google-ads/api/docs/client-libs?hl=en> and 
> click on "Logging". Setting the logger to 'DEBUG' will get the desired log.
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> <https://google.qualtrics.com/jfe/form/SV_eQbOpf4VxRyyqqO?source=so>
>
> Regards,
>   
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2R9nyj:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3d00ddfb-4c7e-4c56-8bab-5be8a221c7c8n%40googlegroups.com.
  • Pr... Денис Грязев
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Денис Грязев
      • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
        • ... Денис Грязев
          • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
            • ... Денис Грязев
              • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
                • ... Денис Грязев
                • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
                • ... Денис Грязев
                • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
                • ... Денис Грязев

Reply via email to