How to add ads based on the name of adgroup

12 views
Skip to first unread message

aditigs...@gmail.com

unread,
May 7, 2018, 10:44:12 PM5/7/18
to AdWords API and Google Ads API Forum
Hi,

I want to add expanded text ads based on the name of adgroup. So, lets say if the adgroup name is "alphabets" and ad is something like "Amazing prices..sign up now"
How can I do that in Python?

For adding ads, do we need to add it using AdGroupAdService? the AdGroupAdService doesnt have the field selector as AdGroupName.

Thank you

Aditi

Dannison Yao (AdWords API Team)

unread,
May 8, 2018, 3:42:48 AM5/8/18
to AdWords API and Google Ads API Forum
Hi Aditi,

Yes, you are correct. You have to use AdGroupAdService to create your expanded text ads. But since you wanted your ads to be based from your AdGroup Name, I would suggest you to also use AdGroupService for you to make a separate API call to retrieve your AdGroup properties. See this example on how to create a text ad for your reference.

Let me know if you have further clarifications.

Regards,
Dannison
AdWords API Team
Reply all
Reply to author
Forward
0 new messages