Tuesday, 22 December 2015

how to update text ads FinalUrls

I want to update ads finalUrls , Here is code : 

AdGroupAdServiceInterface adGroupAdService = adWordsServices.get(session, AdGroupAdServiceInterface.class);
Ad ad = new Ad();
ad.setId(adId);
ad.setFinalUrls(new String[]{ http://www.example.com/ });

AdGroupAd adGroupAd = new AdGroupAd();
adGroupAd.setAdGroupId(adGroupId);
adGroupAd.setAd(ad);
adGroupAd.setStatus(AdGroupAdStatus.ENABLED);

AdGroupAdOperation operation = new AdGroupAdOperation();
operation.setOperand(adGroupAd);
operation.setOperator(Operator.SET);

AdGroupAdOperation[] operations = new AdGroupAdOperation[] {operation};
AdGroupAdReturnValue result = adGroupAdService.mutate(operations);



There is no error in the result , Is it a success ?
But ads 
FinalUrls no update , Why ?

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords 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+unsubscribe@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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
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/95b8b8b1-e5ca-4526-8c69-8195dd677aa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment