Hi all,
I am using java api v200906. I am updating display url of an ad. It is
not reflecting in the UI.
Below is my peace of code:
List<AdGroupAdOperation> adGroupAdOperations = new
ArrayList<AdGroupAdOperation>();
// Create new text ad structure.
Long adGroupId = adInfo.getAdGruopId();
TextAd textAd = new TextAd();
textAd.setHeadline(adInfo.getTitle());
textAd.setDescription1(adInfo.getShortDescription());
textAd.setDescription2(adInfo.getLongDescription());
textAd.setDisplayUrl(adInfo.getDisplayUrl());
textAd.setUrl(adInfo.getClickUrl());
textAd.setId(adInfo.getNetworkMapingInfo().getNetworkEntityId());
AdGroupAd adGroupAd = new AdGroupAd();
AdGroupAd removeAdGroupAd = new AdGroupAd();
removeAdGroupAd.setAdGroupId(adGroupId);
adGroupAd.setAd(textAd);
adGroupAd.setAdGroupId(adGroupId);
adGroupAd.setStatus(AdGroupAdStatus.ENABLED);
AdGroupAdOperation operation = new AdGroupAdOperation();
operation.setOperator(Operator.SET);
operation.setOperand(adGroupAd);
adGroupAdOperations.add(operation);
// Add text ads.
AdGroupAdReturnValue adGroupAdReturnValue = null;
try {
adGroupAdReturnValue =
adGroupAdServiceInterface.mutate(adGroupAdOperations.toArray(new
AdGroupAdOperation[] {}));
} catch (ApiException e) {
} catch (RemoteException e) {
}
Thanks & Regards,
Sreenu Daram , Sr. Software Engineer
Cybage Software Pvt. Ltd. (An SEI-CMMI Level 5 assessed & ISO 27001
Company ),
Hyderabad, India
Phone(O) : 91-40-66294100 Ext:4047
Mobile:91-9949918983
"Legal Disclaimer: This electronic message and all contents contain information
from Cybage Software Private Limited which may be privileged, confidential, or
otherwise protected from disclosure. The information is intended to be for the
addressee(s) only. If you are not an addressee, any disclosure, copy,
distribution, or use of the contents of this message is strictly prohibited. If
you have received this electronic message in error please notify the sender by
reply e-mail to and destroy the original message and all copies. Cybage has
taken every reasonable precaution to minimize the risk of malicious content in
the mail, but is not liable for any damage you may sustain as a result of any
malicious content in this e-mail. You should carry out your own malicious
content checks before opening the e-mail or attachment."
www.cybage.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"AdWords 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
-~----------~----~----~----~------~----~------~--~---