As the further investigation goes these campaigns have status REMOVED but 
AdGroups still have status ENABLED so I cannot filter them out.

W dniu poniedziałek, 8 lipca 2019 15:39:11 UTC+2 użytkownik Łukasz 
Stankiewicz napisał:
>
> Hello,
> is Google Ads API is reverted to beta program I am rewriting 
> implementation to AdWords API and encouraged strange problem when 
> requestion AdGroups API return AdGroups with campaignId not belonging to 
> the Account.
>
> AdGroups Request:
>
>> '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance";  xmlns:tns="
>> https://adwords.google.com/api/adwords/cm/v201809"; xmlns:jaxb="
>> http://java.sun.com/xml/ns/jaxb";><soap:Header><ns1:RequestHeader 
>> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"; xmlns="
>> https://adwords.google.com/api/adwords/cm/v201809";><ns1:developerToken>***</ns1:developerToken><ns1:userAgent>***</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:clientCustomerId>6110478927</ns1:clientCustomerId></ns1:RequestHeader></soap:Header><soap:Body><get
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201809
>> "><serviceSelector><fields>Id</fields><fields>Name</fields><fields>Status</fields><fields>AdGroupType</fields><fields>CampaignId</fields><paging><numberResults>100</numberResults></paging></serviceSelector></get></soap:Body></soap:Envelope>
>>
>
> in response I get for ex.
>
>             {
>>
>>                 "id": "39792076497",
>>
>>                 "campaignId": "803601490",
>>
>>                 "name": "Ad Group #1",
>>
>>                 "status": "ENABLED",
>>
>>                 "adGroupType": "SEARCH_STANDARD"
>>
>>             },
>>
>>             {
>>
>>                 "id": "41012012366",
>>
>>                 "campaignId": "820121402",
>>
>>                 "name": "Ad Group #1",
>>
>>                 "status": "ENABLED",
>>
>>                 "adGroupType": "SEARCH_STANDARD"
>>
>>             },
>>
>>
> And I query for this campaign ids:
>
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance";  xmlns:tns="
>> https://adwords.google.com/api/adwords/cm/v201809"; xmlns:jaxb="
>> http://java.sun.com/xml/ns/jaxb";><soap:Header><ns1:RequestHeader 
>> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"; xmlns="
>> https://adwords.google.com/api/adwords/cm/v201809";><ns1:developerToken>***</ns1:developerToken><ns1:userAgent>***</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:clientCustomerId>6110478927</ns1:clientCustomerId></ns1:RequestHeader></soap:Header><soap:Body><get
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201809
>> "><serviceSelector><fields>Id</fields><fields>Name</fields><fields>Status</fields><fields>ServingStatus</fields><fields>AdvertisingChannelType</fields><predicates><field>Id</field><operator>IN</operator><values>820121402</values><values>803601490</values></predicates><paging><numberResults>100</numberResults></paging></serviceSelector></get></soap:Body></soap:Envelope>
>>
>
> and the response is empty
>
> <soap:Envelope 
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><ResponseHeader
>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201809";><requestId>00058d2b8301be4a0ae9c105440e7d04</requestId><serviceName>CampaignService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>186</responseTime></ResponseHeader></soap:Header><soap:Body><getResponse
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201809
>> "><rval><totalNumEntries>0</totalNumEntries><Page.Type>CampaignPage</Page.Type></rval></getResponse></soap:Body></soap:Envelope>
>
>
> I do not also see this campaign ids within Google Ads Page
>
> What it can be caused by?
>
> Thanks 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e6ab61e8-da0b-47e9-be3d-dfa512ef1684%40googlegroups.com.

Reply via email to