Re: I can't get some campain from campaign resource

2019-10-10 Thread jeonhwan won
I already sent what u want through 'reply privately to author'  but I'm not 
sure if the message sent well and I'm not sure where to check the 'reply 
privately to author'.

1. Query
  
SELECT campaign.id, campaign.name FROM campaign where campaign.id in (
'6750323160')



2. campaign-id: 6750323160
3. Log for Ads API
2019-10-11 09:55:34.693  INFO 8960 --- [  Gax-3] c.g.ads.googleads.
lib.request.summary: SUCCESS REQUEST SUMMARY. Method: google.ads.
googleads.v2.services.GoogleAdsService/Search, Endpoint: googleads.
googleapis.com:443, CustomerID: 1129462986, RequestID: 
OTacyxhmllzkGabD7GkfVQ, ResponseCode: OK, Fault: null.
2019-10-11 09:55:35.263 DEBUG 8960 --- [  Gax-3] c.g.ads.googleads.
lib.request.detail : SUCCESS REQUEST DETAIL.
Request
---
MethodName: google.ads.googleads.v2.services.GoogleAdsService/Search
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=7987822632, x-goog-api
-client=gl-java/1.8.0_161 gapic/ gax/1.45.0 grpc/1.21.0}
Body: customer_id: "1129462986"
query: "SELECT campaign.id, campaign.name FROM campaign where campaign.id 
in (\'6750323160\')"
page_size: 1


Response

Headers: Metadata(content-disposition=attachment,content-type=application/
grpc,request-id=OTacyxhmllzkGabD7GkfVQ,date=Fri, 11 Oct 2019 00:55:26 GMT,
alt-svc=quic=":443"; ma=2592000; v="46,43",h3-Q048=":443"; ma=2592000,h3-
Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000)
Body: field_mask {
 paths: "campaign.id"
 paths: "campaign.name"
}

Failure message: null
Status: Status{code=OK, description=null, cause=null}.





4. Log for Adwords API
2019-10-11 09:56:04.680  INFO 11256 --- [   main] c.m.t.s.g.p.api.
GoogleApiService : limitSleepSec: 320
2019-10-11 09:56:05.982 DEBUG 11256 --- [   main] c.m.t.c.t.i.g.a.s.
CampaignReportTest : AWQL: SELECT CampaignId, CampaignName FROM 
CAMPAIGN_PERFORMANCE_REPORT WHERE CampaignId IN ["6750323160"]
2019-10-11 09:56:08.094  INFO 11256 --- [   main] c.g.a.a.a.lib.
utils.report_download  : Request made: Service: reportdownload Method: 
POST clientCustomerId: 1129462986 URL: 
https://adwords.google.com//api/adwords/reportdownload/v201809 
Request ID: null ResponseTime(ms): null OperationsCount: null IsFault: 
false FaultMessage: null






On Friday, 11 October 2019 04:24:14 UTC+9, adsapiforumadvisor wrote:
>
> Hi Jeonhwan,
>
> Can you please provide the complete SOAP logs of your API request via 
> reply privately to author? Here 
> is a guide 
> on how to enable logging in the Java client library. Also, can you please 
> provide the campaign ID of the campaign that isn’t showing up?
>
> Regards,
> Anthony
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UKModE: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a0f9a11c-fb68-4f19-8ccd-1a179b537b61%40googlegroups.com.


RE: I can't get some campain from campaign resource

2019-10-10 Thread Google Ads API Forum Advisor Prod
Hi Jeonhwan,

Can you please provide the complete SOAP logs of your API request via reply 
privately to author? Here is a guide on how to enable logging in the Java 
client library. Also, can you please provide the campaign ID of the campaign 
that isn’t showing up?

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UKModE: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/woNcA0PZ6B7U00WtzpcKanQNW_JmGNUTC9-Q%40sfdc.net.


Re: I can't get some campain from campaign resource

2019-10-09 Thread jeonhwan won
And The missing campaign has 1 ad-group, ad-group-type is 
'DISPLAY_ENGAGEMENT'.



On Thursday, 10 October 2019 10:48:47 UTC+9, jeonhwan won wrote:
>
> Hi there,  let say I have 10 campaigns. And for some specific campaign, I 
> can't get the information.
> Like I can get only 9 campaigns... one campaign is missing
>
> The interesting thing is when I try AdWords API  I can get all data.  
>
> Is there any possibility I can't get all campaign information when I use 
> Ads API? 
> So I must use AdWords API? 
>
>
>
>
> Here is the code for ads API
> ```
> GoogleAdsServiceClient googleAdsServiceClient = 
> googleAdsClient.getLatestVersion().createGoogleAdsServiceClient();
> SearchGoogleAdsRequest request = 
> SearchGoogleAdsRequest.newBuilder()
> .setCustomerId(testCustomerId) 
> .setPageSize(1)
> .setQuery("SELECT campaign.id, campaign.name FROM 
> campaign")
> .build();
> GoogleAdsServiceClient.SearchPagedResponse searchPagedResponse = 
> googleAdsServiceClient.search(request);
> ```
>
> This is the code for AdWords API
> ```
> Credential credential = 
> gas.getOfflineCredential(gas.getGoogleMezzoRefreshToken());
> AdWordsSession session = gas.getAdWordsSession(credential, 
> testCustomerId);
> AdWordsServicesInterface adWordsServices =  
> AdWordsServices.getInstance();
> CampaignServiceInterface campaignService= 
> adWordsServices.get(session, CampaignServiceInterface.class);
> int offset = 0;
> int page_size = 100;
> SelectorBuilder builder = new SelectorBuilder();
> Selector selector = builder
> .fields(CampaignField.Id, CampaignField.Name, 
> CampaignField.Status)
> .offset(offset)
> .limit(page_size)
> .build();
>  do {
>page = campaignService.get(selector);
> log.debug("campaigns count: {}", 
> page.getTotalNumEntries());
> } while (offset < page.getTotalNumEntries());
> ```
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a32a7141-1f07-4f8b-b355-9701421dc208%40googlegroups.com.


I can't get some campain from campaign resource

2019-10-09 Thread jeonhwan won
Hi there,  let say I have 10 campaigns. And for some specific campaign, I 
can't get the information.
Like I can get only 9 campaigns... one campaign is missing

The interesting thing is when I try AdWords API  I can get all data.  

Is there any possibility I can't get all campaign information when I use 
Ads API? 
So I must use AdWords API? 




Here is the code for ads API
```
GoogleAdsServiceClient googleAdsServiceClient = 
googleAdsClient.getLatestVersion().createGoogleAdsServiceClient();
SearchGoogleAdsRequest request = SearchGoogleAdsRequest.newBuilder()
.setCustomerId(testCustomerId) 
.setPageSize(1)
.setQuery("SELECT campaign.id, campaign.name FROM campaign")
.build();
GoogleAdsServiceClient.SearchPagedResponse searchPagedResponse = 
googleAdsServiceClient.search(request);
```

This is the code for AdWords API
```
Credential credential = 
gas.getOfflineCredential(gas.getGoogleMezzoRefreshToken());
AdWordsSession session = gas.getAdWordsSession(credential, 
testCustomerId);
AdWordsServicesInterface adWordsServices =  
AdWordsServices.getInstance();
CampaignServiceInterface campaignService= 
adWordsServices.get(session, CampaignServiceInterface.class);
int offset = 0;
int page_size = 100;
SelectorBuilder builder = new SelectorBuilder();
Selector selector = builder
.fields(CampaignField.Id, CampaignField.Name, 
CampaignField.Status)
.offset(offset)
.limit(page_size)
.build();
 do {
   page = campaignService.get(selector);
log.debug("campaigns count: {}", page.getTotalNumEntries());
} while (offset < page.getTotalNumEntries());
```


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/933fdae1-fa76-4da3-8647-8eb1a39d5750%40googlegroups.com.