Hello,
I need to perform the operation that copy and paste ad group from one
campaign to another via API. Is there any method to call (just like the
google ads UI)?
Also, can I copy ads to new ad group with their ads ID?
For example, I have retrieved ads via Query with the following result:
[ad_group_ad { resource_name:
"customers/customer_id/adGroupAds/57529009819~282776892873" ad {
resource_name: "customers/customer_id/ads/282776892873" id: 282776892873 }
}]
then I execute following code:
ad_group_ad_service = client.get_service("AdGroupAdService")
ad_group_service = client.get_service("AdGroupService")
ad_group_ad_operation = client.get_type("AdGroupAdOperation")
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.ad_group = ad_group_service.ad_group_path(
customer_id, ad_group_id)
ad_group_ad.status = client.enums.AdGroupAdStatusEnum.PAUSED
ad_group_ad.ad.id = 282776892873
but I got error like this :
Request made: ClientCustomerId: [customer_id] , Host:
googleads.googleapis.com, Method:
/google.ads.googleads.v8.services.AdGroupAdService/MutateAdGroupAds,
RequestId: EZTZfFh3UEm3Dgm_Rd8hgw, IsFault: True, FaultMessage: *Resource
was not found.*
Could you please tell me what I did wrong?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"Google Ads API and AdWords 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/cad42289-d876-4655-bba7-445fc40689adn%40googlegroups.com.