Hello, Thank you so much, I was able to create the display campaign with the information provided. Unfortunately, it does look like that I'm no able to add a responsive display ad to said campaign. This is the error message I'm getting:
"message": "The required field was not present.", "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 }, { "fieldName": "create" }, { "fieldName": "ad" }, { "fieldName": "responsive_display_ad" } ] } And this is an extract of the code I'm running to create the adgroup ad operation: use Google\Ads\GoogleAds\V12\Common\AdImageAsset; use Google\Ads\GoogleAds\V12\Common\AdTextAsset; use Google\Ads\GoogleAds\V12\Common\AdVideoAsset; use Google\Ads\GoogleAds\V12\Common\ResponsiveDisplayAdInfo; use Google\Ads\GoogleAds\V12\Enums\AdGroupAdStatusEnum\AdGroupAdStatus; use Google\Ads\GoogleAds\V12\Resources\Ad; use Google\Ads\GoogleAds\V12\Resources\AdGroupAd; use Google\Ads\GoogleAds\V12\Services\AdGroupAdOperation; $adInfo = new ResponsiveDisplayAdInfo([ 'business_name' => 'My business name', 'marketing_images' => [ new AdImageAsset(['asset' => 'customers/XXXXXXX/assets/XXXXXXX']), ], 'square_marketing_images' => [ new AdImageAsset(['asset' => 'customers/XXXXXXX/assets/XXXXXXX']), ], 'youtube_videos' => [ new AdVideoAsset(['asset' => 'customers/XXXXXXX/assets/XXXXXXX']), ], 'square_logo_images' => [ new AdImageAsset(['asset' => 'customers/XXXXXXX/assets/XXXXXXX')]), ], 'headlines' => [ new AdTextAsset(['text' => $headlineOne,]), new AdTextAsset(['text' => $headlineTwo,]), new AdTextAsset(['text' => $headlineThree,]), ], 'descriptions' => [ new AdTextAsset(['text' => $descriptionOne,]), new AdTextAsset(['text' => $descriptionTwo,]), ], ]); $ad = new Ad([ 'responsive_display_ad' => $adInfo, 'final_urls' => ['https://www.example.com'], ]); $adGroupAd = new AdGroupAd([ 'ad_group' => 'customers/XXXXXXX/adGroups/XXXXXXX', 'status' => AdGroupAdStatus::ENABLED, 'ad' => $ad, ]); $operation = new AdGroupAdOperation(); $operation->setCreate($adGroupAd); Is there something that I'm doing wrong? It does look like that it's not properly attaching the responsive display ad in the ad instance, I've debugged the code and I can get the values of the responsive display ad using the ad methods so could this be that the api is not reading it properly. Any help would be appreciated, thank you! El miércoles, 15 de marzo de 2023 a las 16:46:00 UTC+1, Google Ads API Forum Advisor escribió: Hi, Thank you for reaching out to Google Ads API Forum. *How can I create a campaign that does allow to create responsive display ads?* >> As per this *guide* <https://support.google.com/google-ads/answer/6363750>, Responsive display ads can be used in Display campaigns. These *Display campaigns* <https://support.google.com/google-ads/topic/10016807?> serve visually engaging ads on the *Google Display Network*. If you have already set your campaign AdvertisingChannelType to DISPLAY <https://developers.google.com/google-ads/api/reference/rpc/v13/AdvertisingChannelTypeEnum.AdvertisingChannelType#display>, that said, if you want to create responsive display ads, can you confirm if the Ad Group your are creating is with type = DISPLAY_STANDARD <https://developers.google.com/google-ads/api/reference/rpc/v13/AdGroupTypeEnum.AdGroupType#display_standard>? As per the enum documentation, this is the default ad group type for Display campaigns. Can you also confirm that you are setting your NetworkSettings target_content_network <https://developers.google.com/google-ads/api/reference/rpc/v13/Campaign.NetworkSettings#target_content_network> as true? If the issue persists after going through the suggested solution, can you please complete *request* <https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#request> and *response* <https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#response> logs with the *request-id* <https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en#request-id> generated on your end when you encountered the errors so our team can further investigate. You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com <https://groups.google.com/>. For the client library, logging can be enabled by navigating to the Client libraries > Your client library (ex. .Java) > Logging documentation, which you can access from this *link* <https://developers.google.com/google-ads/api/docs/client-libs?hl=en>. Kindly note that it would help us investigate the cause of your error if we have these logs. Regards, [image: Google Logo] Google Ads API Team ref:_00D1U1174p._5004Q2VOtrw:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/3546bc9f-b25c-4ecf-8489-cfdff7ed7657n%40googlegroups.com.