Hi, I follow your instructions to link Image to campaign, but it is giving errors. I am using this enum: com.google.ads.googleads.v15.enums.AssetFieldTypeEnum. AssetFieldType.AD_IMAGE
Please check below request and response: Request ------- MethodName: google.ads.googleads.v15.services.CampaignAssetService/MutateCampaignAssets Endpoint: googleads.googleapis.com:443 Headers: {developer-token=REDACTED, login-customer-id=REDACTED, x-goog-api-client=gl-java/1.8.0_202 gccl/28.0.0 gapic/28.0.0 gax/2.32.0 grpc/1.56.1} Body: customer_id: "REDACTED" operations { create { field_type: AD_IMAGE campaign: "customers/REDACTED/campaigns/20671574339" asset: "customers/REDACTED/assets/93874744246" } } Response -------- Headers: Metadata(content-type=application/grpc,request-id=g8QxWGVg5taGPCYOy1JB3w,date=Thu, 29 Aug 2024 03:53:05 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000) Body: null Failure message: errors { error_code { asset_link_error: FIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE } message: "The specified field type is incompatible with the given campaign type." trigger { string_value: "AD_IMAGE,UBERVERSAL" } location { field_path_elements { field_name: "operations" index: 0 } field_path_elements { field_name: "create" } field_path_elements { field_name: "field_type" } } } request_id: "g8QxWGVg5taGPCYOy1JB3w" Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}. On Wednesday, August 28, 2024 at 10:49:33 PM UTC+7 Google Ads API Forum Advisor wrote: > Hi Martin, > > Please find the answers to your questions below: > > > 1) How about Image Asset? Can we create it via API and link to the new > campaign? > > - Yes, you can create an image asset and link it to a campaign. I > would recommend you refer to this guide on "Asset creation and usage > > <https://developers.google.com/google-ads/api/docs/assets/working-with-assets>" > > for information on how to create an asset and use it in an ad. Note that > there are certain limitations regarding different ad and campaign types > that support different asset types. This information can be found in the > same guide provided above. > > 2) Some ad account can create that Image asset in GG Ads manager, some > not. What is the condition for an ad account to add that asset to the > campaign? > > - There are certain requirements to meet in order to use image assets. > I would recommend you refer to this Help Center article about image > assets <https://support.google.com/google-ads/answer/9566341?hl=en> > for more information. Note that the concerns related to creating the image > assets in Google Ads account are out of scope for the Google Ads API > support team, as our team specializes in Google Ads API > <https://developers.google.com/google-ads/api/docs/start> related > concerns and technical implementations only. With this, I would suggest > you > reach out to the Google Ads Product support team > <https://support.google.com/google-ads/gethelp>, as they are better > equipped to assist you on this. > > I hope this clarifies. > > > > This message is in relation to case > "ref:!00D1U01174p.!5004Q02vFR40:ref" (ADR-00265079) > > Thanks, > > [image: Google Logo] Google Ads API Team > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/2e3ef53a-69b0-4c81-a8a4-94ded299d734n%40googlegroups.com.