Hi Asaad,
Could you confirm if the url you are referring to is the finalUrlSuffix
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupAdService.ExpandedTextAd#finalurlsuffix>
field?
If yes, could you change your selector and use the
*AdField.CreativeFinalUrlSuffix* instead of *AdField.Url*? Let me know if
this helps.
Thanks and regards,
Peter
Google Ads API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
https://ads-developers.googleblog.com/search/label/google_ads_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
On 04/17/19 14:28:51 [email protected] wrote:
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
<https://groups.google.com/d/msgid/adwords-api/e8a29868-e979-4234-9d45-c785b02a4402%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/18i4390000000000gcngko002kg4n2z6gmj0cpn68o30c1g68r3ccpn%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.