Hi ,
i'm using the google ads library v201806 ,
i'm trying to change the suffix url for creative the problem that when i'm
getting the creatives i got empty url for ads ,
even with that they really have values .
i'm using this code to get the creatives :
AdWordsSession adWordsSession =
googleAuthenticator.initSession(token,customerId,dsJsonConfig);
AdWordsServicesInterface adWordsServices =
AdWordsServices.getInstance();
AdServiceInterface adService =
adWordsServices.get(adWordsSession,
AdServiceInterface.class);
int offset = 0;
String s = "";
// Create selector.
SelectorBuilder builder = new SelectorBuilder();
Selector selector = builder
.fields(AdField.Id,AdField.Url)
//.in(AdField.Id,s)
.offset(offset)
.limit(500)
.build();
AdPage page;
do {
// Get all campaigns.
page = adService.get(selector);
// Display campaigns.
if (page.getEntries() != null) {
for (Ad ads : page.getEntries()) {
System.out.printf("Campaign with name '%s' and ID %d
was found.%n", ads.getDisplayUrl(),
ads.getId());
}
} else {
System.out.println("No campaigns were found.");
}
offset += 500;
selector = builder.increaseOffsetBy(500).build();
} while (offset < page.getTotalNumEntries());
thanks in advance ,
Asaad.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/e8a29868-e979-4234-9d45-c785b02a4402%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.