Hi,

I'm not a PHP expert, but comparing your code to the client library example 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201409/AdvancedOperations/UploadOfflineConversions.php>,
 
I think you've got a case mismatch on the field name. Could you try:

$feed->googleClickId = $row['gclid'];

instead of:

$feed->googleClickID = $row['gclid'];

and let me know if that fixes the issue?

Thanks,
Josh, AdWords API Team

On Friday, December 19, 2014 11:22:20 AM UTC-5, Jacob Lambert wrote:
>
> I'm trying to test my up-loader written in php for Offline Conversions but 
> I am getting a  RequiredError.REQUIRED @ 
> operations[0].operand.conversionGclid error returned for every item (apx 
> 50) in the array. I am able to see that all of the operations I am trying 
> to upload do in fact have the gclid parameter set via this loop:
>
>         foreach($operations as $opp){
>     print "Value of opp->gclid : " . $opp->operand->googleClickID . "\n\n";
> }
>
> The gclid's are gathered from our data warehouse, and the operations are 
> generated via this section:
>
>         if($queryResult->rowCount() > 0){
> print "Query returned " . $queryResult->rowCount() . " rows\n\n";
>  $operations = array();
> while($row = $queryResult->fetch(PDO::FETCH_ASSOC)){
>  $feed = new OfflineConversionFeed();
> $feed->conversionName = $conversionName;
> $feed->conversionTime = $row['conversion_datetime'];
> $feed->googleClickID = $row['gclid'];
>  $operations[] = new OfflineConversionFeedOperation($feed, 'ADD');
> }
> print "Operation Creation Finished \n\n";
>  foreach($operations as $opp){
> print "Value of opp->gclid : " . $opp->operand->googleClickID . "\n\n";
> }
>                 //This line throws the errors
> $uploadResult = $conversionService->mutate($operations);
> printf('Upload for %s : %s complete', $user->GetClientCustomerId() , 
> $conversionName);
> return;
> }
>
>
> I asked this question on StackOverflow 
> <http://stackoverflow.com/questions/27559827/required-gclid-error-when-the-gclid-is-present>
>  but 
> haven't gotten a response yet.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c0c20058-926b-4537-b2d6-63e534adcd7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to