title: Invalid parameter - AdCreative ( facebook-marketing-api)
body: <p>During the creation of an AdCreative in the facebook marketing api (using the PHP sdk), I get the "<em>Invalid Parameter</em>" error. According to the graph-api (see below), the error is happening because I am trying to create an AdCreative using an app that is in development mode.</p>
  
  <p>Since I am making a <em>Proof of Concept</em>, I doubt that my app will be approved for the <em>ads_management</em> permission (which I need for the creation of an AdCreative).</p>
  
  <p><strong>Is there a way to create the AdCreative (and consequently an Ad) using the facebook-marketing-api using my app (in development mode)?</strong></p>
  
  <p><em>if not, is there <strong>any other way</strong> to do so?</em></p>
  
  <hr>
  
  <p>When I put the application in "public" mode, I get the following error:</p>
  
  <pre><code>{"error":{"message":"(#294) Managing advertisements requires an access token with the extended permission for ads_management","type":"OAuthException","code":294,"fbtrace_id":"AHZ4vUXzCv+"}}
  </code></pre>
  
  <p>I am using the official Creative guide by facebook to create the AdCreative: <a href="https://developers.facebook.com/docs/marketing-api/buying-api" rel="nofollow noreferrer">https://developers.facebook.com/docs/marketing-api/buying-api</a></p>
  
  <p>I am currently using the following code to create the AdCreative</p>
  
  <pre class="lang-php prettyprint-override"><code>// campaign creation (objective -&gt; reach)
  // adset creation
  // adimage creation
  
  $creativeFields = [];
  
  $creativeParams = [
      'name' =&gt; $validatedRequest['creative_name'],
      'object_story_spec' =&gt; [
          'page_id' =&gt; $page_id,
          'link_data' =&gt; [
              'image_hash' =&gt; $image-&gt;{AdImageFields::HASH},
              'link' =&gt; "https://facebook.com/{$page_id}",
              'message' =&gt; 'THIS IS THE DEFAULT MESSAGE FOR AD CREATIVES - [[THIS IS VERSION 2]]',
          ],
      ],
  ];
  
  $creativeId = (new AdAccount($id))-&gt;createAdCreative($creativeFields, $creativeParams)
                                    -&gt;exportAllData();
  </code></pre>
  
  <p>When I try to create the AdCreative using the graph-api (using curl) I get the following JSON response:</p>
  
  <pre><code>{"error":{"message":"Invalid Parameter", "type":"OAuthException", "code":100, "error_subcode":1885183, "is_transient":false, "error_user_title":"Ads creative post was created by an app that is in development mode", "error_user_msg":"Ads creative post was created by an app that is in development mode. It must be in public to create this ad.", "fbtrace_id":"GzpSaGkDlNa"}}
  </code></pre>