Thank you so much for your help. Can you please help to take a look at what was going wrong with the data I posted below? All were created successfully including the asset, except the Campaign asset highlighted.
Appreciate your help! [ { "CampaignBudgetOperation": { "Create": { "ResourceName": "customers/1430311107/campaignBudgets/-1", "Id": 0, "HasId": false, "Name": "AdsAPI_Budget2022-3-31 23-29-8.068065", "HasName": true, "AmountMicros": 200000, "HasAmountMicros": true, "TotalAmountMicros": 0, "HasTotalAmountMicros": false, "Status": 0, "DeliveryMethod": 2, "ExplicitlyShared": false, "HasExplicitlyShared": true, "ReferenceCount": 0, "HasReferenceCount": false, "HasRecommendedBudget": false, "HasHasRecommendedBudget": false, "RecommendedBudgetAmountMicros": 0, "HasRecommendedBudgetAmountMicros": false, "Period": 0, "RecommendedBudgetEstimatedChangeWeeklyClicks": 0, "HasRecommendedBudgetEstimatedChangeWeeklyClicks": false, "RecommendedBudgetEstimatedChangeWeeklyCostMicros": 0, "HasRecommendedBudgetEstimatedChangeWeeklyCostMicros": false, "RecommendedBudgetEstimatedChangeWeeklyInteractions": 0, "HasRecommendedBudgetEstimatedChangeWeeklyInteractions": false, "RecommendedBudgetEstimatedChangeWeeklyViews": 0, "HasRecommendedBudgetEstimatedChangeWeeklyViews": false, "Type": 0 }, "Remove": "", "OperationCase": 1 }, "OperationCase": 8 }, { "CampaignOperation": { "Create": { "ResourceName": "customers/1430311107/campaigns/-2", "Id": 0, "HasId": false, "Name": "Batch Job Test Automation Campaign V29af0f67c-d1d8-4a35-a5e4-15295f0c07cf - 2022-3-31 23-29-5.724374", "HasName": true, "Status": 3, "ServingStatus": 0, "AdServingOptimizationStatus": 0, "AdvertisingChannelType": 2, "AdvertisingChannelSubType": 0, "TrackingUrlTemplate": "", "HasTrackingUrlTemplate": false, "UrlCustomParameters": [], "Labels": [], "ExperimentType": 0, "BaseCampaign": "", "HasBaseCampaign": false, "CampaignBudget": "customers/1430311107/campaignBudgets/-1", "HasCampaignBudget": true, "BiddingStrategyType": 0, "AccessibleBiddingStrategy": "", "StartDate": "", "HasStartDate": false, "EndDate": "", "HasEndDate": false, "FinalUrlSuffix": "", "HasFinalUrlSuffix": false, "FrequencyCaps": [], "VideoBrandSafetySuitability": 0, "PaymentMode": 0, "OptimizationScore": 0, "HasOptimizationScore": false, "ExcludedParentAssetFieldTypes": [], "UrlExpansionOptOut": false, "HasUrlExpansionOptOut": false, "BiddingStrategy": "", "ManualCpc": { "EnhancedCpcEnabled": false, "HasEnhancedCpcEnabled": false }, "CampaignBiddingStrategyCase": 24 }, "Remove": "", "OperationCase": 1 }, "OperationCase": 10 }, { "CampaignCriterionOperation": { "Create": { "ResourceName": "", "Campaign": "customers/1430311107/campaigns/-2", "HasCampaign": true, "CriterionId": 0, "HasCriterionId": true, "DisplayName": "", "BidModifier": 0, "HasBidModifier": false, "Negative": false, "HasNegative": false, "Type": 0, "Status": 0, "AdSchedule": { "StartMinute": 2, "EndMinute": 4, "StartHour": 12, "HasStartHour": true, "EndHour": 20, "HasEndHour": true, "DayOfWeek": 6 }, "CriterionCase": 15 }, "Remove": "", "OperationCase": 1 }, "OperationCase": 13 }, { "CampaignCriterionOperation": { "Create": { "ResourceName": "", "Campaign": "customers/1430311107/campaigns/-2", "HasCampaign": true, "CriterionId": 0, "HasCriterionId": false, "DisplayName": "", "BidModifier": 0, "HasBidModifier": false, "Negative": true, "HasNegative": true, "Type": 0, "Status": 0, "Keyword": { "Text": "TestNegtive69e167a8-331f-4d7a-9690-1b2b0c2fc27c - 2022-3-31 23-29-5.726451", "HasText": true, "MatchType": 4 }, "CriterionCase": 8 }, "Remove": "", "OperationCase": 1 }, "OperationCase": 13 }, { "AdGroupOperation": { "Create": { "ResourceName": "customers/1430311107/adGroups/-3", "Id": 0, "HasId": false, "Name": "Batch Job Test Automation Ad Group V2 ea19f7af-b18a-4cee-ab20-884d2060f839 - 2022-3-31 23-29-5.727250", "HasName": true, "Status": 0, "Type": 2, "AdRotationMode": 0, "BaseAdGroup": "", "HasBaseAdGroup": false, "TrackingUrlTemplate": "", "HasTrackingUrlTemplate": false, "UrlCustomParameters": [], "Campaign": "customers/1430311107/campaigns/-2", "HasCampaign": true, "CpcBidMicros": 200000000, "HasCpcBidMicros": true, "EffectiveCpcBidMicros": 0, "HasEffectiveCpcBidMicros": false, "CpmBidMicros": 0, "HasCpmBidMicros": false, "TargetCpaMicros": 0, "HasTargetCpaMicros": false, "CpvBidMicros": 0, "HasCpvBidMicros": false, "TargetCpmMicros": 0, "HasTargetCpmMicros": false, "TargetRoas": 0, "HasTargetRoas": false, "PercentCpcBidMicros": 0, "HasPercentCpcBidMicros": false, "DisplayCustomBidDimension": 0, "FinalUrlSuffix": "", "HasFinalUrlSuffix": false, "EffectiveTargetCpaMicros": 0, "HasEffectiveTargetCpaMicros": false, "EffectiveTargetCpaSource": 0, "EffectiveTargetRoas": 0, "HasEffectiveTargetRoas": false, "EffectiveTargetRoasSource": 0, "Labels": [], "ExcludedParentAssetFieldTypes": [] }, "Remove": "", "OperationCase": 1 }, "OperationCase": 5 }, { "AdGroupCriterionOperation": { "ExemptPolicyViolationKeys": [], "Create": { "ResourceName": "", "CriterionId": 0, "HasCriterionId": true, "DisplayName": "", "Status": 0, "AdGroup": "customers/1430311107/adGroups/-3", "HasAdGroup": true, "Type": 0, "Negative": false, "HasNegative": false, "SystemServingStatus": 0, "ApprovalStatus": 0, "DisapprovalReasons": [], "Labels": [], "BidModifier": 0, "HasBidModifier": false, "CpcBidMicros": 0, "HasCpcBidMicros": false, "CpmBidMicros": 0, "HasCpmBidMicros": false, "CpvBidMicros": 0, "HasCpvBidMicros": false, "PercentCpcBidMicros": 0, "HasPercentCpcBidMicros": false, "EffectiveCpcBidMicros": 0, "HasEffectiveCpcBidMicros": false, "EffectiveCpmBidMicros": 0, "HasEffectiveCpmBidMicros": false, "EffectiveCpvBidMicros": 0, "HasEffectiveCpvBidMicros": false, "EffectivePercentCpcBidMicros": 0, "HasEffectivePercentCpcBidMicros": false, "EffectiveCpcBidSource": 0, "EffectiveCpmBidSource": 0, "EffectiveCpvBidSource": 0, "EffectivePercentCpcBidSource": 0, "FinalUrls": [], "FinalMobileUrls": [], "FinalUrlSuffix": "", "HasFinalUrlSuffix": false, "TrackingUrlTemplate": "", "HasTrackingUrlTemplate": false, "UrlCustomParameters": [], "AgeRange": { "Type": 503003 }, "CriterionCase": 36 }, "Remove": "", "OperationCase": 1 }, "OperationCase": 3 }, { "AdGroupCriterionOperation": { "ExemptPolicyViolationKeys": [], "Create": { "ResourceName": "", "CriterionId": 0, "HasCriterionId": true, "DisplayName": "", "Status": 0, "AdGroup": "customers/1430311107/adGroups/-3", "HasAdGroup": true, "Type": 0, "Negative": false, "HasNegative": false, "SystemServingStatus": 0, "ApprovalStatus": 0, "DisapprovalReasons": [], "Labels": [], "BidModifier": 0, "HasBidModifier": false, "CpcBidMicros": 0, "HasCpcBidMicros": false, "CpmBidMicros": 0, "HasCpmBidMicros": false, "CpvBidMicros": 0, "HasCpvBidMicros": false, "PercentCpcBidMicros": 0, "HasPercentCpcBidMicros": false, "EffectiveCpcBidMicros": 0, "HasEffectiveCpcBidMicros": false, "EffectiveCpmBidMicros": 0, "HasEffectiveCpmBidMicros": false, "EffectiveCpvBidMicros": 0, "HasEffectiveCpvBidMicros": false, "EffectivePercentCpcBidMicros": 0, "HasEffectivePercentCpcBidMicros": false, "EffectiveCpcBidSource": 0, "EffectiveCpmBidSource": 0, "EffectiveCpvBidSource": 0, "EffectivePercentCpcBidSource": 0, "FinalUrls": [], "FinalMobileUrls": [], "FinalUrlSuffix": "", "HasFinalUrlSuffix": false, "TrackingUrlTemplate": "", "HasTrackingUrlTemplate": false, "UrlCustomParameters": [], "Gender": { "Type": 11 }, "CriterionCase": 37 }, "Remove": "", "OperationCase": 1 }, "OperationCase": 3 }, { "AdGroupCriterionOperation": { "ExemptPolicyViolationKeys": [], "Create": { "ResourceName": "", "CriterionId": 0, "HasCriterionId": true, "DisplayName": "", "Status": 0, "AdGroup": "customers/1430311107/adGroups/-3", "HasAdGroup": true, "Type": 0, "Negative": false, "HasNegative": false, "SystemServingStatus": 0, "ApprovalStatus": 0, "DisapprovalReasons": [], "Labels": [], "BidModifier": 0, "HasBidModifier": false, "CpcBidMicros": 0, "HasCpcBidMicros": false, "CpmBidMicros": 0, "HasCpmBidMicros": false, "CpvBidMicros": 0, "HasCpvBidMicros": false, "PercentCpcBidMicros": 0, "HasPercentCpcBidMicros": false, "EffectiveCpcBidMicros": 0, "HasEffectiveCpcBidMicros": false, "EffectiveCpmBidMicros": 0, "HasEffectiveCpmBidMicros": false, "EffectiveCpvBidMicros": 0, "HasEffectiveCpvBidMicros": false, "EffectivePercentCpcBidMicros": 0, "HasEffectivePercentCpcBidMicros": false, "EffectiveCpcBidSource": 0, "EffectiveCpmBidSource": 0, "EffectiveCpvBidSource": 0, "EffectivePercentCpcBidSource": 0, "FinalUrls": [], "FinalMobileUrls": [], "FinalUrlSuffix": "", "HasFinalUrlSuffix": false, "TrackingUrlTemplate": "", "HasTrackingUrlTemplate": false, "UrlCustomParameters": [], "IncomeRange": { "Type": 510004 }, "CriterionCase": 38 }, "Remove": "", "OperationCase": 1 }, "OperationCase": 3 }, { "AdGroupCriterionOperation": { "ExemptPolicyViolationKeys": [], "Create": { "ResourceName": "", "CriterionId": 0, "HasCriterionId": false, "DisplayName": "", "Status": 2, "AdGroup": "customers/1430311107/adGroups/-3", "HasAdGroup": true, "Type": 0, "Negative": false, "HasNegative": false, "SystemServingStatus": 0, "ApprovalStatus": 0, "DisapprovalReasons": [], "Labels": [], "BidModifier": 0, "HasBidModifier": false, "CpcBidMicros": 2000000000, "HasCpcBidMicros": true, "CpmBidMicros": 0, "HasCpmBidMicros": false, "CpvBidMicros": 0, "HasCpvBidMicros": false, "PercentCpcBidMicros": 0, "HasPercentCpcBidMicros": false, "EffectiveCpcBidMicros": 0, "HasEffectiveCpcBidMicros": false, "EffectiveCpmBidMicros": 0, "HasEffectiveCpmBidMicros": false, "EffectiveCpvBidMicros": 0, "HasEffectiveCpvBidMicros": false, "EffectivePercentCpcBidMicros": 0, "HasEffectivePercentCpcBidMicros": false, "EffectiveCpcBidSource": 0, "EffectiveCpmBidSource": 0, "EffectiveCpvBidSource": 0, "EffectivePercentCpcBidSource": 0, "FinalUrls": [ "https://www.baidu.com/" ], "FinalMobileUrls": [], "FinalUrlSuffix": "", "HasFinalUrlSuffix": false, "TrackingUrlTemplate": "", "HasTrackingUrlTemplate": false, "UrlCustomParameters": [], "Keyword": { "Text": "Testba249c15-e073-41e2-ace8-7983dd451987 - 2022-3-31 23-29-5.730013", "HasText": true, "MatchType": 4 }, "CriterionCase": 27 }, "Remove": "", "OperationCase": 1 }, "OperationCase": 3 }, { "AdGroupAdOperation": { "Create": { "ResourceName": "", "Status": 0, "AdGroup": "customers/1430311107/adGroups/-3", "HasAdGroup": true, "Ad": { "ResourceName": "", "Id": 0, "HasId": false, "FinalUrls": [ "http://www.teamrapidtooling.com/rapid-prototyping-china-t-22.htmlRapid" ], "FinalAppUrls": [], "FinalMobileUrls": [], "TrackingUrlTemplate": "", "HasTrackingUrlTemplate": false, "FinalUrlSuffix": "", "HasFinalUrlSuffix": false, "UrlCustomParameters": [], "DisplayUrl": "", "HasDisplayUrl": false, "Type": 0, "AddedByGoogleAds": false, "HasAddedByGoogleAds": false, "DevicePreference": 0, "UrlCollections": [], "Name": "", "HasName": false, "SystemManagedResourceSource": 0, "ExpandedTextAd": { "HeadlinePart1": "Ad Title Seg1V2", "HasHeadlinePart1": true, "HeadlinePart2": "Ad Title Seg2V2", "HasHeadlinePart2": true, "HeadlinePart3": "Ad Title Seg3V2", "HasHeadlinePart3": true, "Description": "Ad Description from automation", "HasDescription": true, "Description2": "Ad Description from automation 2", "HasDescription2": true, "Path1": "path1", "HasPath1": true, "Path2": "path2", "HasPath2": true }, "AdDataCase": 7 }, "AdStrength": 0, "ActionItems": [], "Labels": [] }, "Remove": "", "OperationCase": 1 }, "OperationCase": 1 }, { "AssetOperation": { "Create": { "ResourceName": "", "Id": -4, "HasId": true, "Name": "", "HasName": false, "Type": 0, "FinalUrls": [], "FinalMobileUrls": [], "TrackingUrlTemplate": "", "HasTrackingUrlTemplate": false, "UrlCustomParameters": [], "FinalUrlSuffix": "", "HasFinalUrlSuffix": false, "CalloutAsset": { "CalloutText": "Auto Callout Batch", "StartDate": "", "EndDate": "", "AdScheduleTargets": [] }, "AssetDataCase": 20 }, "OperationCase": 1 }, "OperationCase": 23 }, { "CampaignAssetOperation": { "Create": { "ResourceName": "", "Campaign": "customers/1430311107/campaigns/-2", "HasCampaign": true, "Asset": "customers/1430311107/assets/-4", "HasAsset": true, "FieldType": 11, "Status": 0 }, "Remove": "", "OperationCase": 1 }, "OperationCase": 52 } ] On Tuesday, March 29, 2022 at 10:36:08 AM UTC-7 adsapi wrote: > Hi Sailing, > > Here's a list of all supported operations in a batch job > <https://developers.google.com/google-ads/api/reference/rpc/v10/MutateOperation>, > > it appears all resources necessary to make asset based extensions are > available via batch job, and here's a guide to using temporary Id's > <https://developers.google.com/google-ads/api/docs/batch-processing/temporary-ids> > > so that the result of creating one object will be available to another > object, this way, you don't have to wait for an object to have a resource > name name yet or be in existence in order to link it in a batch job to > another object. You can look at our samples > <https://developers.google.com/google-ads/api/docs/extensions/assets/asset-extensions#create_an_asset> > without > batch job and try to implement them in a batch job by modifying the batch > job sample > <https://developers.google.com/google-ads/api/docs/samples/add-complete-campaigns-using-batch-job> > . > > Regards, > > [image: Google Logo] > Aryeh > Google Ads API Team > > > ref:_00D1U1174p._5004Q2YsQ06: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/a7dd3b5e-707e-4737-811b-679a13cbc26fn%40googlegroups.com.