Promotion Extension via API

18 views
Skip to first unread message

Denys Kovalenko

unread,
Feb 25, 2019, 8:34:09 AM2/25/19
to AdWords API and Google Ads API Forum

Re: API, PHP Library: https://github.com/googleads/googleads-php-lib

https://support.google.com/google-ads/answer/7367622?hl=en

Hi guys, I can't find any references or example on how to create AdGroup Level Promotion Extension with API. Extensions folder https://github.com/googleads/googleads-php-lib/tree/master/examples/AdWords/v201809/Extensions does not have any examples on that. I tried to make it similar to https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/Extensions/AddPrices.php, but something isn't right. Can someone point me to the right direction please?

Thanks.

googleadsapi...@google.com

unread,
Feb 25, 2019, 3:56:12 PM2/25/19
to AdWords API and Google Ads API Forum
Hello Denys, 

You will need to create a PromotionFeedItem object and use the CampaignExtensionSettingService.mutate() to create a campaign level feed item. You may refer to the code sample available here in different languages as a reference. Could you please take a look and let me know if you have any other questions?

Regards,
Bharani, 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.

Take Survey

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

Reply all
Reply to author
Forward
0 new messages