Hello Umer,

Yes, you could use the same AdGroup name for different campaigns. The
campaign might already be having the AdGroup with the same name you are
trying to add which resulted in DUPLICATE_ADGROUP_NAME
<https://developers.google.com/adwords/api/docs/common-errors#AdGroupServiceError.DUPLICATE_ADGROUP_NAME> error.
To see the names of the existing AdGroups for a campaign, you could perform
the AdGroupService.get
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupService#get> operation
and use the fields, name
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupService.AdGroup#name>
 and campaignId
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupService.AdGroup#campaignid> of
the AdGroup.

If you are still facing the problems could you please share the SOAP logs(request
and response
<https://developers.google.com/adwords/api/docs/guides/call-structure#response>)
of the operation performing without redacting any data? You could refer this
guide <https://github.com/googleads/googleads-php-lib#logging> to enable
logging.

Regards,
Sai Teja, AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/00d12i8id80000008kgtk2000adj50x74mj4c9j6go30c1g68q3gc1n%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to