Hello.Please check the contents below.=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
campaign create result
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
{ "results": [ { "resourceName": "customers/
5209595745/campaigns/20431695985", "campaign": { "resourceName": "customers/
5209595745/campaigns/20431695985", "status": "ENABLED", "adServingOptimizationStatus": "CONVERSION_OPTIMIZE", "advertisingChannelType": "MULTI_CHANNEL", "advertisingChannelSubType": "APP_CAMPAIGN", "networkSettings": { "targetGoogleSearch": true, "targetSearchNetwork": true, "targetContentNetwork": true, "targetPartnerSearchNetwork": false }, "targetCpa": { "targetCpaMicros": "10000000" }, "selectiveOptimization": { "conversionActions": [ "customers/
5209595745/conversionActions/
6604903346" ] }, "geoTargetTypeSetting": { "positiveGeoTargetType": "PRESENCE_OR_INTEREST" }, "appCampaignSetting": { "biddingStrategyGoalType": "OPTIMIZE_INSTALLS_TARGET_INSTALL_COST", "appStore": "GOOGLE_APP_STORE", "appId": "com.ucar.customer" }, "name": "nshangukin-campaign-20230806011407", "id": "20431695985", "campaignBudget": "customers/
5209595745/campaignBudgets/12826816763", "startDate": "2023-08-06", "endDate": "2023-08-09" } } ] }
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
adGroupAds:mutate
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Request ***
requestId : UBIc6ezNANcYeTXgA-uDUg
$data = {'operations': [{'create': {'adGroup': 'customers/
5209595745/adGroups/152134082156','status': 'ENABLED','ad': {'name': 'nshangukin-creative-20230807200318','type': 'APP_AD','appAd': {'mandatoryAdText': {'text': '당신의 완벽한 파트너 UCAR'},'headlines': [{'text': '당신의 완벽한 파트너 UCAR_1' },{'text': '당신의 완벽한 파트너 UCAR_2' }],'descriptions': [{'text': '당신의 완벽한 파트너 UCAR_3' },{'text': '당신의 완벽한 파트너 UCAR_4' }],'images': [{'asset': 'customers/
5209595745/assets/94980550759'},{'asset': 'customers/
5209595745/assets/94998755540'},{'asset': 'customers/
5209595745/assets/94998778472'}],'youtubeVideos': [{'asset': 'customers/
5209595745/assets/94981099912'},{'asset': 'customers/5209595745/assets/94999121435'}]}}}}],"partialFailure": false,"validateOnly": false,"responseContentType": "MUTABLE_RESOURCE"}
$app_url = "
https://googleads.googleapis.com/v14/customers/".$GOOGLE_ADS_CUSTOMER_ID."/adGroupAds:mutate";
$opts = array(
CURLOPT_URL => $app_url,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $data,
CURLOPT_HTTPHEADER => array("Content-Type: application/json", "Authorization: Bearer " . $access_token, "login-customer-id: ".$GOOGLE_MASTER_CUSTOMER_ID, "developer-token: ".$GOOGLE_ADS_DEVELOPER_TOKEN )
);
*** Reponse ***
{ "error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "
type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "fieldError": "VALUE_MUST_BE_UNSET" }, "message": "The field cannot be set.", "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 }, { "fieldName": "create" }, { "fieldName": "ad" }, { "fieldName": "app_ad" } ] } } ], "requestId": "UBIc6ezNANcYeTXgA-uDUg" } ] } }
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thank you.2023년 8월 7일 월요일 오후 8시 4분 34초 UTC+9에 Google Ads API Forum Advisor님이 작성: