AdGroupId
, AdId
) pair is globally unique, can I ‘ADD' an ad by AdId to an existing AdGroupId?Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
operations_ddgroupad_single = [{
'operator': 'ADD',
'operand': {
'xsi_type': 'AdGroupAd',
'adGroupId': dest_adgroup_id,
'ad': {'xsi_type': 'ExpandedTextAd',
'headlinePart1': 'Cruise #%s to Mars'% str(uuid.uuid4())[:8],
'headlinePart2': 'Best Space Cruise Line',
'headlinePart3': 'For Your Loved Ones',
'description': 'Buy your tickets now!',
'description2': 'Discount ends soon',
'finalUrls': ['http://www.example.com'],
},
'status': 'PAUSED'
}
}]
# BELOW WORKED
ad_single = ad_group_ad_service.mutate(operations_ddgroupad_single)['value']
operations_ddgroupad_single = [{
'operator': 'ADD',
'operand': {
'xsi_type': 'AdGroupAd',
'adGroupId': dest_adgroup_id,
'ad': {
'xsi_type': 'ExpandedTextAd',
'url': None,
'displayUrl': None,
'finalUrls': ['http://www.example.com'],
'finalMobileUrls': [],
'finalAppUrls': [],
'trackingUrlTemplate': None,
'finalUrlSuffix': None,
'urlCustomParameters': None,
'urlData': [],
'automated': False,
'type': 'EXPANDED_TEXT_AD',
'devicePreference': None,
'systemManagedEntitySource': None,
# 'Ad.Type': 'ExpandedTextAd',
'headlinePart1': ‘cruise',
'headlinePart2': ‘mars',
'headlinePart2': None,
'description': ‘check this trip ',
'path1': None,
'path2': None
},
'status': 'PAUSED'
}
}]
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/ityc-5l8D40/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@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/00d12jhi98000000ola4oi001adefez74mj4d1g74o30c1g68qj6dpj%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/ityc-5l8D40/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@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/00d12gm89o000000o5acl60005g5t0w74mj4d1g74o30c1g68qj6dpj%40mail.gmail.com.