I am currently trying to create a Bumper-Ad(Class: VideoBumperInStreamAdInfo) via the API.I am aware that a corresponding campaign and AdGroup cannot be created via the API, however I have already found posts here in the forum that indicate that it is possible to create bumper ads via the API. For example here: https://groups.google.com/g/adwords-api/c/wD6U0cpAmOk/m/0g7V8CDABQAJI have already created the campaign and AdGroup manually, so they already exist. However, it is unfortunately not possible for me to create the ad. I get the following error message: Request with ID 'YBFjGTZSFDqguaoSBlXjXQ' has failed. Mutates are not allowed for the requested resource.This is the code I am trying to use:
$asset = new Asset([ 'name' => 'Test Asset', 'type' => AssetType::YOUTUBE_VIDEO, 'youtube_video_asset' => new YoutubeVideoAsset([ 'youtube_video_id' => 'YKsQJVzr3a8', ]), ]); $createAsset = (new AssetOperation())->setCreate($asset); $assetResponse = $this->GoogleAdsClient()->getAssetServiceClient()->mutateAssets( USERID, [$createAsset] ); $asset = $assetResponse->getResults()[0]; $adGroupAd = ( new AdGroupAd([ 'ad_group' => $adGroup->getResourceName(), 'status' => AdGroupAdStatus::PAUSED, ]) ) ->setAd(new Ad([ 'display_url' => ' https://www.mydomain.de', 'name' => 'Test', 'final_urls' => [' https://www.mydomain.de'], 'video_ad' => new VideoAdInfo([ 'video' => new AdVideoAsset([ 'asset' => $asset->getResourceName(), ]), 'bumper' => new VideoBumperInStreamAdInfo([ 'action_button_label' => 'testbtnlbl', 'action_headline' => 'testheadline', ]), ]), ])); $createAdGroupAd = (new AdGroupAdOperation())->setCreate($adGroupAd); $adGroupAdResponse = $this->GoogleAdsClient()->getAdGroupAdServiceClient()->mutateAdGroupAds( USERID, [$createAdGroupAd] ); $adGroupAd = $adGroupAdResponse->getResults()[0]; Now how is it possible to add a bumper ad to an AdGroup via the API?If it is not possible via the API, is it possible via the "Bulk Actions Uploads" and if so, how?Many thanks in advance. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/718da455-5ea3-4f9e-aaa1-9bdff2ac7376n%40googlegroups.com.