curl --location 'http://localhost:8001/api/v2/google/performance-max-campaign/create' \ --header 'Accept: application/json' \ --header 'x-datadog-trace-id: 5sd6f4gs6d5f4g654dsf' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer 874|Yf18xkgeUPmjhCcnZhFxCHR4ERAMj7qoqPpInU2y82601f93' \ --data '{ "headline_texts": [ "Get Fit Today", "Join Our Gym", "Your Health, Our Priority", "Achieve Your Goals", "Train with the Best" ], "description_texts": [ "Start your fitness journey with us.", "State-of-the-art equipment and professional trainers.", "Exclusive discounts for new members.", "Join now and transform your life!" ], "long_headline": [ "Join Our Gym and Achieve Your Fitness Goals" ], "business_name": [ "FitLife Gym" ], "youtube_video": [ { "title": "Gold'\''s Gym - Hauz Khas: Walk-through Video", "id": "9VpGQm5uxMQ" }, { "title": "Gold gym review and fees about full details in single video", "id": "2Zainwwd9q0" } ], "budget": { "name": "Gym Ad Campaign Budget", "amount": "250" }, "assetGroupSignal": { "audienceId": "", "searchThemeText": "gym" }, "campaign": { "customerId": 3039358552, "name": "Latest performance max-2", "url_expansion_opt_out": false, "start_date": "2024-10-10", "end_date": "2024-12-30", "biddingStrategy": "maximize_conversions", "target_cpa_micros": 500000 }, "asset_group": [ { "name": "Primary Asset Group", "final_urls": [ "https://fitlifegym.com", "https://fitlifegym.com/membership" ], "final_mobile_urls": [ "https://m.fitlifegym.com", "https://m.fitlifegym.com/membership" ] } ], "marketing_logo": [ { "name": "Gym Logo2", "url": "https://gaagl.page.link/bjYi" }, { "name": "Gym Logo", "url": "https://i.ibb.co/SwxP6R2/logo.jpg" } ], "marketing_image": [ { "name": "Gym Interior", "url": "https://gaagl.page.link/Eit5" }, { "name": "Gym marketing image", "url": "https://i.ibb.co/9yWx3pX/marketing-image.jpg" } ], "square_marketing_image": [ { "name": "Square Gym Image", "url": "https://i.ibb.co/nCLQ8qF/square-marketing-image.jpg" } ], "leadform": { "business_name": "My Business", "headline": "Sign Up to Get Offers", "description": "Get exclusive offers and updates", "privacy_policy_url": "https://www.mybusiness.com/privacy-policy", "call_to_action_type": "SIGN_UP", "call_to_action_description": "please Signup.", "form_post_submit_call_to_action_type": "VISIT_SITE", "fields": [ { "input_type": "FULL_NAME", "single_choice_answers": [ "Option 1", "Option 2", "Option 3" ] }, { "input_type": "EMAIL", "single_choice_answers": [ "Option 1", "Option 2", "Option 3" ] } ], "custom_question_fields" : [ { "custom_question_text": "what'\''s your height?", "single_choice_answers": [ "5 feet", "6 feet", "7 feet" ] }, { "custom_question_text": "what'\''s the color of your hair?", "single_choice_answers": [ "black color", "grey color", "brown color" ] } ] } }'
this is the curl, that i am using to launch a P max campaign from my test account and i am getting the following errors : { "errors": { "status_code": 500, "message": "AD_CAMPAIGN_ERROR", "error_details": "{\n \"message\": \"Request contains an invalid argument.\",\n \"code\": 3,\n \"status\": \"INVALID_ARGUMENT\",\n \"details\": [\n {\n \"@type\": \"type.googleapis.com\\/google.ads.googleads.v17.errors.GoogleAdsFailure\",\n \"errors\": [\n {\n \"errorCode\": {\n \"assetError\": \"LEAD_FORM_MISSING_AGREEMENT\"\n },\n \"message\": \"Lead forms require that the Terms of Service have been agreed to before mutates can be executed.\",\n \"location\": {\n \"fieldPathElements\": [\n {\n \"fieldName\": \"mutate_operations\",\n \"index\": 28\n },\n {\n \"fieldName\": \"asset_operation\"\n }\n ]\n }\n },\n {\n \"errorCode\": {\n \"fieldError\": \"REQUIRED_NONEMPTY_LIST\"\n },\n \"message\": \"The required repeated field was empty.\",\n \"location\": {\n \"fieldPathElements\": [\n {\n \"fieldName\": \"mutate_operations\",\n \"index\": 28\n },\n {\n \"fieldName\": \"asset_operation\"\n },\n {\n \"fieldName\": \"create\"\n },\n {\n \"fieldName\": \"final_urls\"\n }\n ]\n }\n },\n {\n \"errorCode\": {\n \"fieldError\": \"VALUE_MUST_BE_UNSET\"\n },\n \"message\": \"The field cannot be set.\",\n \"location\": {\n \"fieldPathElements\": [\n {\n \"fieldName\": \"mutate_operations\",\n \"index\": 28\n },\n {\n \"fieldName\": \"asset_operation\"\n },\n {\n \"fieldName\": \"create\"\n },\n {\n \"fieldName\": \"lead_form_asset\"\n },\n {\n \"fieldName\": \"fields\",\n \"index\": 0\n }\n ]\n }\n },\n {\n \"errorCode\": {\n \"fieldError\": \"VALUE_MUST_BE_UNSET\"\n },\n \"message\": \"The field cannot be set.\",\n \"location\": {\n \"fieldPathElements\": [\n {\n \"fieldName\": \"mutate_operations\",\n \"index\": 28\n },\n {\n \"fieldName\": \"asset_operation\"\n },\n {\n \"fieldName\": \"create\"\n },\n {\n \"fieldName\": \"lead_form_asset\"\n },\n {\n \"fieldName\": \"fields\",\n \"index\": 1\n }\n ]\n }\n },\n {\n \"errorCode\": {\n \"fieldError\": \"INVALID_VALUE\"\n },\n \"message\": \"The field's value is invalid.\",\n \"location\": {\n \"fieldPathElements\": [\n {\n \"fieldName\": \"mutate_operations\",\n \"index\": 28\n },\n {\n \"fieldName\": \"asset_operation\"\n },\n {\n \"fieldName\": \"create\"\n },\n {\n \"fieldName\": \"lead_form_asset\"\n },\n {\n \"fieldName\": \"custom_question_fields\",\n \"index\": 0\n },\n {\n \"fieldName\": \"custom_question_text\"\n }\n ]\n }\n },\n {\n \"errorCode\": {\n \"fieldError\": \"INVALID_VALUE\"\n },\n \"message\": \"The field's value is invalid.\",\n \"location\": {\n \"fieldPathElements\": [\n {\n \"fieldName\": \"mutate_operations\",\n \"index\": 28\n },\n {\n \"fieldName\": \"asset_operation\"\n },\n {\n \"fieldName\": \"create\"\n },\n {\n \"fieldName\": \"lead_form_asset\"\n },\n {\n \"fieldName\": \"custom_question_fields\",\n \"index\": 1\n },\n {\n \"fieldName\": \"custom_question_text\"\n }\n ]\n }\n },\n {\n \"errorCode\": {\n \"mutateError\": \"RESOURCE_NOT_FOUND\"\n },\n \"message\": \"Resource was not found.\",\n \"trigger\": {\n \"int64Value\": \"-22\"\n },\n \"location\": {\n \"fieldPathElements\": [\n {\n \"fieldName\": \"mutate_operations\",\n \"index\": 29\n },\n {\n \"fieldName\": \"asset_group_asset_operation\"\n },\n {\n \"fieldName\": \"create\"\n },\n {\n \"fieldName\": \"asset\"\n }\n ]\n }\n }\n ],\n \"requestId\": \"KpgyQGRYHiSV5GLwwvyU6A\"\n }\n ]\n} in file /application/vendor/google/gax/src/ApiException.php on line number 267" } } kindly assist me for the same , how can i resolve these issues -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/37bb905a-197a-406e-b81f-bb60916f6270n%40googlegroups.com.