Hi Peter, Thanks for the reply. I understand that I can update the ImageAds using AdService using Adwords API. But my question is, after creating the Image Ad using AdWords JAVA API, am getting some adId for the newly created Image Ad and am persisting this adId for future purpose.
After that, if someone goes to Google Ads UI, open that newly created Image Ad, doing some changes and saving the Image Ad, In this case, it is creating a new adId which I am not aware of or my application does not aware of. For example, this is the url for viewing/editing the Image Ad, https://ads.google.com/aw/ads/edit/display?campaignId=6445309094&adGroupId=77377458659&ocid=306880979& *adId=378372800299* &adGroupIdForAd=77377458659&__c=4810536426&__u=8206534617&authuser=0 <https://ads.google.com/aw/ads/edit/display?campaignId=6445309094&adGroupId=77377458659&ocid=306880979&adId=378372800299&adGroupIdForAd=77377458659&__c=4810536426&__u=8206534617&authuser=0> Please note the adId parameter in the above URL and I am able to open the Image Ad using the above URL. After opening, if I make some changes like updating the finalURL or name, then it is creating a new Image Ad with new adId. So, I have stored some adId earlier (while creation), but here after this changes, new adId is different from stored one. Is there any link/connection between the old and new adId? I want you to try these steps to replicate the problem, 1. Create a new Image Ad using Adwords Java API and note down the adId. 2. Login to Google Ads UI and edit the newly created Image Ad and Save. Note the adId now, both are different 3. So, if i want to read the Image Ad using adId which has been already stored, it returns null, since it could not find the Image Ad for the adId. I hope you understand the problem now. Suresh On Monday, August 19, 2019 at 3:39:18 PM UTC+5:30, adsapiforumadvisor wrote: > > Hi Suresh, > > In the AdWords API, you should be able to update the fields of the ImageAd > <https://developers.google.com/adwords/api/docs/reference/v201809/AdService.ImageAd> > > using the AdService.mutate() > <https://developers.google.com/adwords/api/docs/reference/v201809/AdService#mutate> > > method. You need only to pass the Id > <https://developers.google.com/adwords/api/docs/reference/v201809/AdService.Ad#id> > > of the said ad and the fields you wish to modify. After the request, the Id > should remain the same. > > For retrieving the ImageAd details, you can use either the > AdGroupAdService.get() > <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupAdService#get> > > or the AdService.get() > <https://developers.google.com/adwords/api/docs/reference/v201809/AdService#get> > > methods. Please also note that the AdGroupAdService is only for ADD > operations and for updating the Status > <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupAdService.AdGroupAd#status> > > field, while the AdService serves as the one used for updating the other > fields of the supported ads of the AdWords API. > > Let me know if this helps. > > Thanks and regards, > Peter > Google Ads API Team > > ref:_00D1U1174p._5001UEJTrl: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 [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]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/48e62706-265d-4215-8c72-f8c105a0c75d%40googlegroups.com.
